* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        :root {
    --primary: #3b82f6;        /* blue-500 */
    --secondary: #6366f1;      /* indigo-500 */
    --accent: #06b6d4;         /* cyan-500 */
    --dark: #f1f5f9;           /* slate-100 */
    --darker: #ffffff;         /* full white */
    --text: #1e293b;           /* slate-800 */
    --text-muted: #64748b;     /* slate-500 */
    --glass: rgba(255, 255, 255, 0.6); /* light glass */
    --glass-border: rgba(0, 0, 0, 0.1); /* soft dark border */
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--darker);   /* now white */
    color: var(--text);          /* now dark */
    overflow-x: hidden;
    line-height: 1.6;
}

body.dark-mode {
    --primary: #2563eb;
    --secondary: #818cf8;
    --accent: #22d3ee;
    --dark: #1e293b;
    --darker: #0f172a;
    --text: #f1f5f9;
    --text-muted: #94a3b8;
    --glass: rgba(30, 41, 59, 0.8);
    --glass-border: rgba(255, 255, 255, 0.12);
    background: var(--darker);
    color: var(--text);
}

.dark-mode-toggle {
    background: none;
    border: none;
    font-size: 1.7rem;
    margin-left: 1.5rem;
    cursor: pointer;
    color: var(--text);
    transition: color 0.3s;
    z-index: 1100;
}

.dark-mode-toggle:hover {
    color: var(--accent);
}

/* Animated Background */
        .bg-animation {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -1;
            background: linear-gradient(45deg, var(--darker), var(--dark));
        }

        .bg-animation::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: radial-gradient(circle at 20% 80%, var(--primary) 0%, transparent 50%),
                        radial-gradient(circle at 80% 20%, var(--secondary) 0%, transparent 50%),
                        radial-gradient(circle at 40% 40%, var(--accent) 0%, transparent 50%);
            opacity: 0.1;
            animation: float 20s ease-in-out infinite;
        }

        @keyframes float {
            0%, 100% { transform: translate(0, 0) rotate(0deg); }
            33% { transform: translate(30px, -30px) rotate(120deg); }
            66% { transform: translate(-20px, 20px) rotate(240deg); }
        }

        /* Navigation */
        nav {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 1000;
            padding: 1rem 2rem;
            backdrop-filter: blur(20px);
      
            background: var(--glass);

            border-bottom: 1px solid var(--glass-border);
            transition: all 0.3s ease;
        }

        .nav-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
            max-width: 1200px;
            margin: 0 auto;
            /* Add gap for spacing if needed */
        }

        .logo {
            flex-shrink: 0;
        }

        /* Group nav-links, hamburger, and dark-mode-toggle on the right */
        .nav-right {
            display: flex;
            align-items: center;
            gap: 1.2rem;
        }

        .logo {
            font-size: 1.5rem;
            font-weight: 700;
            background: linear-gradient(135deg, var(--primary), var(--accent));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            animation: pulse 2s ease-in-out infinite;
        }

        @keyframes pulse {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.8; }
        }

        .nav-links {
            display: flex;
            gap: 2rem;
            list-style: none;
        }

        .nav-links a {
            color: var(--text);
            text-decoration: none;
            font-weight: 500;
            position: relative;
            transition: all 0.3s ease;
        }

        .nav-links a::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 0;
            width: 0;
            height: 2px;
            background: linear-gradient(90deg, var(--primary), var(--accent));
            transition: width 0.3s ease;
        }

        .nav-links a:hover::after {
            width: 100%;
        }

        .nav-links a:hover {
            color: var(--accent);
            transform: translateY(-2px);
        }

        /* Hero Section */
        .hero {
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            position: relative;
            padding: 2rem;
        }

        .hero-content {
            max-width: 800px;
            animation: fadeInUp 1s ease-out;
        }

        .hero h1 {
            font-size: clamp(3rem, 8vw, 6rem);
            font-weight: 800;
            line-height: 1.1;
            background: linear-gradient(135deg, var(--text), var(--accent), var(--primary));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            margin-bottom: 1rem;
            animation: slideInRight 1s ease-out 0.2s both;
        }

        .hero-subtitle {
            font-size: 1.25rem;
            color: var(--text-muted);
            margin-bottom: 2rem;
            animation: slideInLeft 1s ease-out 0.4s both;
        }

        .hero-cta {
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            color: white;
            border: none;
            padding: 1rem 2rem;
            font-size: 1rem;
            font-weight: 600;
            border-radius: 50px;
            cursor: pointer;
            position: relative;
            overflow: hidden;
            transition: all 0.3s ease;
            animation: fadeInUp 1s ease-out 0.6s both;
        }

        .hero-cta::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
            transition: left 0.5s ease;
        }

        .hero-cta:hover::before {
            left: 100%;
        }

        .hero-cta:hover {
            transform: translateY(-3px);
            box-shadow: 0 20px 40px rgba(99, 102, 241, 0.3);
        }

        @keyframes fadeInUp {
            from { opacity: 0; transform: translateY(30px); }
            to { opacity: 1; transform: translateY(0); }
        }

        @keyframes slideInRight {
            from { opacity: 0; transform: translateX(50px); }
            to { opacity: 1; transform: translateX(0); }
        }

        @keyframes slideInLeft {
            from { opacity: 0; transform: translateX(-50px); }
            to { opacity: 1; transform: translateX(0); }
        }

        /* Sections */
        section {
            padding: 5rem 2rem;
            max-width: 1200px;
            margin: 0 auto;
        }

        .section-title {
            font-size: 3rem;
            font-weight: 700;
            text-align: center;
            margin-bottom: 3rem;
            background: linear-gradient(135deg, var(--text), var(--accent));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            opacity: 0;
            transform: translateY(30px);
            transition: all 0.6s ease;
        }

        .section-title.visible {
            opacity: 1;
            transform: translateY(0);
        }

        /* Projects Grid */
        .project-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
            gap: 2rem;
            margin-top: 3rem;
        }

        .project-card {
    background: var(--glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateY(50px);

    /* New lines below */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}


        .project-card.visible {
            opacity: 1;
            transform: translateY(0);
        }

        .project-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: linear-gradient(90deg, var(--primary), var(--accent), var(--secondary));
            transform: scaleX(0);
            transition: transform 0.3s ease;
        }

        .project-card:hover::before {
            transform: scaleX(1);
        }

        .project-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
            border-color: var(--accent);
        }

        .project-title {
            font-size: 1.5rem;
            font-weight: 700;
            margin-bottom: 1rem;
            color: var(--text);
        }

        .project-desc {
            color: var(--text-muted);
            margin-bottom: 1.5rem;
            line-height: 1.6;
        }

        .project-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            margin-bottom: 1.5rem;
        }

        .project-tag {
            background: rgba(99, 102, 241, 0.2);
            color: var(--secondary);
            padding: 0.3rem 0.8rem;
            border-radius: 20px;
            font-size: 0.85rem;
            font-weight: 500;
            border: 1px solid rgba(99, 102, 241, 0.3);
        }

        .view-project-btn {
    margin-top: auto; /* Push button to bottom */
    align-self: start; /* Optional: align to left inside the card */
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}


        .view-project-btn::after {
            content: '→';
            transition: transform 0.3s ease;
        }

        .view-project-btn:hover::after {
            transform: translateX(5px);
        }

        .view-project-btn:hover {
            transform: translateX(5px);
            box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
        }

        /* About Section */
        .about-content {
            max-width: 800px;
            margin: 0 auto;
            text-align: center;
        }

        .about-text {
            font-size: 1.1rem;
            line-height: 1.8;
            margin-bottom: 2rem;
            color: var(--text-muted);
            opacity: 0;
            transform: translateY(30px);
            transition: all 0.6s ease;
        }

        .about-text.visible {
            opacity: 1;
            transform: translateY(0);
        }

        .badges {
            display: flex;
            flex-wrap: wrap;
            gap: 1rem;
            justify-content: center;
            margin: 2rem 0;
        }

        .badge {
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            color: white;
            padding: 0.8rem 1.5rem;
            border-radius: 25px;
            font-weight: 600;
            font-size: 0.9rem;
            opacity: 0;
            transform: scale(0.8);
            transition: all 0.4s ease;
            cursor: default;
        }

        .badge.visible {
            opacity: 1;
            transform: scale(1);
        }

        .badge:hover {
            transform: scale(1.05);
            box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
        }

        .skills {
            display: flex;
            flex-wrap: wrap;
            gap: 1rem;
            justify-content: center;
            margin-top: 2rem;
        }

        .skill {
            background: var(--glass);
            backdrop-filter: blur(10px);
            border: 1px solid var(--glass-border);
            color: var(--text);
            padding: 0.8rem 1.5rem;
            border-radius: 25px;
            font-weight: 500;
            transition: all 0.3s ease;
            opacity: 0;
            transform: translateY(20px);
        }

        .skill.visible {
            opacity: 1;
            transform: translateY(0);
        }

        .skill:hover {
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            color: white;
            transform: translateY(-5px);
        }

        /* Contact Section */
       .contact {
    text-align: center;
    background: var(--glass);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    padding: 3rem;
    margin: 3rem auto; /* center horizontally */
    border: 1px solid var(--glass-border);
    max-width: 700px;   /* limit width */
    width: 90%;         /* responsive */
}


        .social-buttons {
            display: flex;
            gap: 1rem;
            justify-content: center;
            margin-top: 2rem;
        }

        .social-icon {
            width: 60px;
            height: 60px;
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            text-decoration: none;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .social-icon::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(135deg, var(--secondary), var(--accent));
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .social-icon:hover::before {
            opacity: 1;
        }

        .social-icon svg {
            width: 24px;
            height: 24px;
            position: relative;
            z-index: 1;
        }

        .social-icon:hover {
            transform: translateY(-5px) scale(1.1);
            box-shadow: 0 15px 30px rgba(99, 102, 241, 0.4);
        }

        /* Footer */
        footer {
            text-align: center;
            padding: 2rem;
            border-top: 1px solid var(--glass-border);
            color: var(--text-muted);
        }

        /* Mobile Responsive */
        @media (max-width: 768px) {
            .nav-links {
                display: none;
            }
            
            .project-grid {
                grid-template-columns: 1fr;
            }
            
            .badges, .skills {
                justify-content: center;
            }
            
            .social-buttons {
                flex-direction: row;
                gap: 1rem;
            }
        }

        /* Scroll Animations */
        .reveal {
            opacity: 0;
            transform: translateY(50px);
            transition: all 0.6s ease;
        }

        .reveal.visible {
            opacity: 1;
            transform: translateY(0);
        }

        /* Mobile Hamburger */
.hamburger {
    display: none;
    font-size: 2rem;
    color: var(--text);
    cursor: pointer;
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 60px;
        right: 20px;
        background: rgba(255, 255, 255, 0.95); /* light background */

        padding: 1rem 2rem;
        border-radius: 10px;
        flex-direction: column;
        gap: 1rem;
        z-index: 999;
    }
    .nav-links a {
  color: var(--text); /* This should now be dark */
}


    .nav-links.active {
        display: flex;
    }
}

/* Footer background */
footer {
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid var(--glass-border);
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    margin-top: 2rem;
}

@media (min-width: 768px) {
    .hero-buttons {
        flex-direction: row;
        justify-content: center; /* ✅ Center horizontally on desktop */
        gap: 2rem;
    }
}
.cv-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 41, 59, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000; /* make sure this is high enough */
}


.cv-content {
    background: white;
    padding: 1rem;
    border-radius: 10px;
    max-width: 90%;
    width: 800px;
    max-height: 90%;
    overflow: auto;
    position: relative;
}

.cv-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    background: white;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 10001;
    transition: transform 0.2s ease;
}

.cv-close:hover {
    transform: scale(1.1);
    background: var(--dark);
}



.hidden {
    display: none;
}

.project-iphone {
    position: absolute;
    left: 50%;
    bottom: -120px; /* Start hidden below the card */
    transform: translateX(-50%) rotate(-8deg) scale(0.95);
    width: 220px;
    opacity: 0;
    transition: bottom 0.6s cubic-bezier(.77,0,.18,1), opacity 0.4s, transform 0.6s cubic-bezier(.77,0,.18,1);
    pointer-events: none;
    z-index: 2;
}

.project-card:hover .project-iphone,
.project-card:focus-within .project-iphone {
    bottom: 65px; /* Slides up into view */
    opacity: 1;
    transform: translateX(-50%) rotate(0deg) scale(1);
}

.project-links {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.demo-btn {
    background: var(--secondary) !important;
}

.demo-btn:hover {
    background: var(--primary) !important;
    transform: translateY(-2px);
}

.experience {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, #fefefe 0%, #f9fafb 100%);
    position: relative;
    overflow: hidden;
    border-radius: 3rem;
    margin-top: 2rem;
}

.experience::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.01) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.01) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(99, 102, 241, 0.01) 0%, transparent 50%);
    pointer-events: none;
}

body.dark-mode .experience {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

body.dark-mode .experience::before {
    background: 
        radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(99, 102, 241, 0.08) 0%, transparent 50%);
}

.experience-grid {
    display: grid;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.experience-card {
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.experience-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.experience-card:hover::before {
    opacity: 1;
}

.experience-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 32px 64px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
}

.experience-header {
    margin-bottom: 1rem;
}

.experience-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.experience-role {
    color: var(--primary);
    font-weight: 500;
    margin-right: 1rem;
}

.experience-date {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.experience-desc {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.experience-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.experience-tag {
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}
