/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    /* Color Palette - Dark Mode (Default) */
    --bg-body: #0a0a0c;
    --bg-surface: #131316;
    --bg-surface-hover: #1c1c21;
    --primary-color: #6366f1;
    /* Indigo */
    --primary-glow: rgba(99, 102, 241, 0.4);
    --secondary-color: #ec4899;
    /* Pink */
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --border-color: rgba(255, 255, 255, 0.1);
    --nav-glass: rgba(10, 10, 12, 0.8);

    /* Spacing & Layout */
    --container-width: 1200px;
    --section-padding: 100px 0;
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Fonts */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;

    /* Background Pattern - Default None */
    --bg-pattern: none;
}

[data-theme="light"] {
    --bg-body: #f8fafc;
    --bg-surface: #ffffff;
    --bg-surface-hover: #f1f5f9;
    --primary-color: #4f46e5;
    --primary-glow: rgba(79, 70, 229, 0.2);
    --secondary-color: #db2777;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-color: rgba(0, 0, 0, 0.08);
    --nav-glass: rgba(255, 255, 255, 0.8);

    /* Interactive Dot Pattern for Light Mode - REMOVED in favor of Canvas */
    --bg-pattern: none;
}



* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-body);
    background-image: var(--bg-pattern);
    background-size: 24px 24px;
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.4s ease, color 0.4s ease;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* =========================================
   2. UTILITIES & COMPONENTS
   ========================================= */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: var(--section-padding);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    font-weight: 700;
}

.highlight-text {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-family: var(--font-heading);
    cursor: pointer;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px var(--primary-glow);
    border: 2px solid transparent;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--primary-glow);
}

.btn-secondary {
    background: transparent;
    color: var(--text-main);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* =========================================
   3. NAVBAR
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
    z-index: 1000;
    background: var(--nav-glass);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    font-family: var(--font-heading);
    letter-spacing: -1px;
}

.logo span {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    opacity: 0.8;
}

.nav-link:hover {
    opacity: 1;
    color: var(--primary-color);
}

.nav-link.btn-prominent {
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    opacity: 1;
}

.nav-link.btn-prominent:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Theme Toggle */
.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    margin-left: 20px;
    transition: var(--transition);
}

.theme-toggle:hover {
    background: var(--bg-surface-hover);
    color: var(--primary-color);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    margin-left: 20px;
}

/* =========================================
   4. HERO SECTION
   ========================================= */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    opacity: 0.5;
    z-index: -1;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 50px;
}

.greeting {
    display: block;
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--primary-color);
    font-weight: 600;
}

.hero-name {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
    font-family: var(--font-heading);
}

.hero-role {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 25px;
    color: var(--text-muted);
    margin-bottom: 25px;
    font-weight: 400;
}





.hero-intro {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 500px;
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

/* Abstract Shape CSS Art */
/* Hero Image with Spinning Border */
.hero-img-box {
    position: relative;
    width: 350px;
    height: 350px;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: float 6s ease-in-out infinite;
}

.hero-img-box .circle-border {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: var(--primary-color);
    border-right-color: var(--secondary-color);
    border-bottom-color: var(--primary-color);
    animation: spin 15s linear infinite;
    z-index: 1;
}

/* Extra Outer Ring - Dashed */
.hero-img-box::before {
    content: '';
    position: absolute;
    width: 115%;
    height: 115%;
    border-radius: 50%;
    border: 2px dashed rgba(99, 102, 241, 0.3);
    animation: spin 30s linear infinite reverse;
    z-index: 0;
}

/* Extra Inner Glow/Ring */
.hero-img-box::after {
    content: '';
    position: absolute;
    width: 90%;
    height: 90%;
    border-radius: 50%;
    border: 2px solid transparent;
    border-left-color: var(--secondary-color);
    border-right-color: var(--secondary-color);
    animation: spin 10s linear infinite;
    z-index: 1;
    opacity: 0.7;
}

.hero-img-box img {
    width: 320px;
    height: 320px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--bg-surface);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
    transition: all 0.5s ease;
    animation: img-pulse 4s ease-in-out infinite;
}

.hero-img-box:hover img {
    animation: none;
    transform: scale(1.05) perspective(1000px) rotateY(10deg);
    border-color: var(--primary-color);
    box-shadow: 0 0 50px var(--primary-glow), 0 0 20px var(--secondary-color);
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}



/* =========================================
   5. ABOUT SECTION
   ========================================= */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    display: flex;
    justify-content: center;
    position: relative;
}

.img-placeholder {
    width: 300px;
    height: 300px;
    background: var(--bg-surface);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8rem;
    color: var(--text-muted);
    border: 2px solid var(--border-color);
    /* Changed from dashed to solid for photo frame */
    position: relative;
    overflow: hidden;
    /* Ensure image stays within border radius */
}

.img-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.img-placeholder::after {
    content: '';
    position: absolute;
    inset: -20px;
    z-index: -1;
    border-radius: 25px;
    border: 1px solid var(--border-color);
    transform: rotate(-5deg);
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.05rem;
    color: var(--text-muted);
}

.about-text strong {
    color: var(--text-main);
    font-weight: 600;
}

/* =========================================
   6. SKILLS SECTION
   ========================================= */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.skill-category {
    background: var(--bg-surface);
    padding: 30px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.skill-category:hover {
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px -10px var(--primary-glow);
}

.category-title {
    font-size: 1.2rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-title i {
    color: var(--primary-color);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tag {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.tag:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* =========================================
   7. PROJECTS SECTION
   ========================================= */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--bg-surface);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
}

.project-card:hover .project-icon {
    transform: scale(1.1) rotate(10deg);
    transition: transform 0.3s ease;
}

.project-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-icon {
    width: 50px;
    height: 50px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.project-title {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.project-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.project-tech {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.project-tech span {
    position: relative;
    padding-right: 10px;
}

.project-tech span:not(:last-child)::after {
    content: '•';
    position: absolute;
    right: 0;
    color: var(--border-color);
}

.project-link {
    align-self: flex-start;
    color: var(--primary-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.project-link:hover {
    gap: 12px;
}

.project-link.disabled {
    color: var(--text-muted);
    cursor: default;
}

.project-link.disabled:hover {
    gap: 8px;
}

/* =========================================
   8. EXPERIENCE SECTION
   ========================================= */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    height: 100%;
    width: 2px;
    background: var(--border-color);
}

.timeline-item {
    padding-left: 60px;
    position: relative;
    margin-bottom: 40px;
}

.timeline-dot {
    width: 16px;
    height: 16px;
    background: var(--primary-color);
    border-radius: 50%;
    position: absolute;
    left: 13px;
    top: 5px;
    box-shadow: 0 0 0 5px rgba(99, 102, 241, 0.2);
}

.timeline-date {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

.timeline-content h3 {
    margin-bottom: 5px;
}

.timeline-company {
    display: block;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 15px;
}

.timeline-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    color: var(--text-muted);
}

.timeline-list li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
}

/* =========================================
   9. SERVICES SECTION
   ========================================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--bg-surface);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.service-card:hover {
    background: var(--bg-surface-hover);
    transform: translateY(-5px);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* =========================================
   10. OBJECTIVE & CONTACT
   ========================================= */
.objective-section {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

.objective-box {
    max-width: 800px;
    margin: 0 auto;
}

.quote-icon {
    font-size: 2rem;
    color: var(--primary-color);
    opacity: 0.5;
    margin-bottom: 20px;
}

.objective-text {
    font-size: 1.5rem;
    font-family: var(--font-heading);
    line-height: 1.5;
}

/* Contact */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.contact-info p {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-btn.facebook:hover {
    background: #1877f2;
    color: white;
    border-color: #1877f2;
}

.social-btn.instagram:hover {
    background: #E1306C;
    color: white;
    border-color: #E1306C;
}

.contact-form {
    background: var(--bg-surface);
    padding: 40px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.form-group {
    position: relative;
    margin-bottom: 25px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-group label {
    position: absolute;
    left: 15px;
    top: 13px;
    color: var(--text-muted);
    pointer-events: none;
    transition: var(--transition);
    background: var(--bg-surface);
    padding: 0 5px;
}

.form-group input:focus~label,
.form-group input:not(:placeholder-shown)~label,
.form-group textarea:focus~label,
.form-group textarea:not(:placeholder-shown)~label {
    top: -10px;
    font-size: 0.85rem;
    color: var(--primary-color);
}

.submit-btn {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

/* =========================================
   11. FOOTER
   ========================================= */
.footer {
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
    position: relative;
}

.back-to-top {
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.back-to-top:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* =========================================
   12. ANIMATIONS & RESPONSIVENESS
   ========================================= */
/* Animations */
.fade-in,
.fade-in-up,
.fade-in-left,
.fade-in-right {
    opacity: 0;
    transition: all 0.8s ease-out;
}

.fade-in-up {
    transform: translateY(30px);
}

.fade-in-left {
    transform: translateX(-30px);
}

.fade-in-right {
    transform: translateX(30px);
}

.visible {
    opacity: 1;
    transform: translate(0);
}

/* Responsive Media Queries */
@media (max-width: 992px) {
    .container {
        padding: 0 30px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 60px;
    }

    .hero-visual {
        display: flex;
        justify-content: center;
        order: -1;
        /* Image on top for mobile */
        margin-bottom: 20px;
    }

    .hero-img-box {
        width: 300px;
        /* Resize for tablet */
        height: 300px;
    }

    .hero-img-box img {
        width: 280px;
        height: 280px;
    }

    .hero-intro {
        margin: 0 auto 40px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 50px;
    }

    .about-image {
        margin-bottom: 0;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* Only hide links, keep toggle */
    }

    .mobile-menu-btn {
        display: block;
        color: var(--text-main);
    }

    .hero-name {
        font-size: 3rem;
    }

    .hero-role {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .section {
        padding: 60px 0;
    }

    .hero-img-box {
        width: 260px;
        height: 260px;
    }

    .hero-img-box img {
        width: 240px;
        height: 240px;
    }
}

@media (max-width: 480px) {
    .hero-name {
        font-size: 2.5rem;
        /* Smaller for very small screens */
    }

    .container {
        padding: 0 20px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}

/* Mobile Menu */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 1001;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu-content {
    position: absolute;
    top: 0;
    right: -250px;
    width: 250px;
    height: 100%;
    background: var(--bg-surface);
    display: flex;
    flex-direction: column;
    padding: 80px 30px;
    gap: 20px;
    transition: var(--transition);
    border-left: 1px solid var(--border-color);
}

.mobile-menu-overlay.active .mobile-menu-content {
    right: 0;
}

.close-menu-btn {
    position: absolute;
    top: 25px;
    right: 25px;
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-link {
    font-size: 1.2rem;
    font-weight: 500;
}

/* =========================================
   12. CUSTOM CURSOR
   ========================================= */
.cursor-dot,
.cursor-outline,
.cursor-bg-glow {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-glow);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1.5px solid rgba(99, 102, 241, 0.5);
    transition: width 0.2s, height 0.2s, background-color 0.2s, transform 0.1s, border-color 0.2s;
}

/* Background Glow (The Antigravity Effect) */
.cursor-bg-glow {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--primary-glow) 0%, rgba(255, 255, 255, 0) 70%);
    opacity: 0.15;
    z-index: 0;
    /* Behind content but above background */
    filter: blur(20px);
    transition: width 0.3s, height 0.3s, opacity 0.3s;
}

/* Hide cursor on touch devices */
@media (max-width: 1024px) {

    .cursor-dot,
    .cursor-outline,
    .cursor-bg-glow {
        display: none;
    }
}

/* Hover state expansion */
body.hovering .cursor-dot {
    transform: translate(-50%, -50%) scale(1.2);
}

body.hovering .cursor-outline {
    width: 60px;
    height: 60px;
    background-color: rgba(99, 102, 241, 0.05);
    border-color: var(--primary-color);
}

body.hovering .cursor-bg-glow {
    width: 600px;
    height: 600px;
    opacity: 0.25;
}

/* Click Animation State */
body.clicking .cursor-outline {
    transform: translate(-50%, -50%) scale(0.8);
    background-color: var(--primary-glow);
    border-color: transparent;
}
