/* =========================================
   CSS Reset & Variables
   ========================================= */
:root {
    /* Default Dark Mode */
    --bg-main: #06080D; /* Ultra-modern Deep Slate/Charcoal */
    --bg-darker: #040508;
    --primary-neon: #00F0FF; /* Electric blue */
    --primary-neon-dim: rgba(0, 240, 255, 0.2);
    --secondary-neon: #00FFA3; /* Emerald green */
    --secondary-neon-dim: rgba(0, 255, 163, 0.15);
    --text-primary: #F8FAFC; /* Crisp white */
    --text-secondary: #94A3B8; /* Slate gray accents */
    --glass-bg: rgba(14, 18, 30, 0.5);
    --glass-border: rgba(255, 255, 255, 0.05);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    --hero-title-gradient: linear-gradient(to right, #FFF, #A0AABF);
    --timeline-line: rgba(255,255,255,0.05);
    --glass-card-bg: rgba(6, 8, 13, 0.4);
    --input-bg: rgba(255, 255, 255, 0.02);
    --input-border: rgba(255, 255, 255, 0.1);
}

[data-theme="light"] {
    --bg-main: #F8FAFC;
    --bg-darker: #F1F5F9;
    --primary-neon: #0284C7; 
    --primary-neon-dim: rgba(2, 132, 199, 0.15);
    --secondary-neon: #059669; 
    --secondary-neon-dim: rgba(5, 150, 105, 0.15);
    --text-primary: #0F172A; 
    --text-secondary: #475569; 
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(0, 0, 0, 0.08);
    --glass-shadow: 0 8px 30px 0 rgba(0, 0, 0, 0.05);
    --hero-title-gradient: linear-gradient(to right, #0F172A, #64748B);
    --timeline-line: rgba(0,0,0,0.1);
    --glass-card-bg: rgba(255, 255, 255, 0.6);
    --input-bg: rgba(0, 0, 0, 0.03);
    --input-border: rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* =========================================
   Typography & Utilities
   ========================================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.section-padding {
    padding: 110px 0;
}

.bg-darker {
    background-color: var(--bg-darker);
}

.text-center {
    text-align: center;
}

.section-title {
    text-align: center;
    margin-bottom: 70px;
}

.section-title h2 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.section-title .line {
    width: 70px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-neon), var(--secondary-neon));
    margin: 0 auto;
    border-radius: 2px;
    box-shadow: 0 0 15px var(--primary-neon-dim);
}

.section-subtitle {
    color: var(--text-secondary);
    margin-top: 25px;
    font-size: 1.15rem;
}

/* Glassmorphism Classes */
.glass-card {
    background: var(--bg-darker);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.glass-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 240, 255, 0.3);
    box-shadow: 0 15px 40px var(--primary-neon-dim);
}

.p-lg {
    padding: 50px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 10px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: var(--primary-neon);
    color: #000;
    border: 2px solid var(--primary-neon);
    box-shadow: 0 0 20px var(--primary-neon-dim);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-neon);
    box-shadow: 0 0 30px var(--primary-neon-dim) inset;
}

.btn-outline {
    background-color: transparent;
    color: var(--text-primary);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
    border-color: var(--secondary-neon);
    color: var(--secondary-neon);
    box-shadow: 0 0 20px var(--secondary-neon-dim) inset;
}

/* =========================================
   Navbar (Glassmorphism)
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    padding: 25px 0;
}

.navbar.scrolled {
    padding: 15px 0;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.icon-btn {
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 0.95rem;
    font-family: var(--font-heading);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    transition: var(--transition);
}

.icon-btn:hover {
    background: var(--glass-border);
    color: var(--primary-neon);
}

.logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--text-primary);
}

.logo span {
    color: var(--primary-neon);
}

.nav-links {
    display: flex;
    gap: 35px;
}

.nav-links li a {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--text-primary);
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-neon), var(--secondary-neon));
    transition: var(--transition);
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    margin: 4px 0;
    transition: var(--transition);
    border-radius: 3px;
}

/* =========================================
   Hero Section
   ========================================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 120px;
    padding-bottom: 80px;
}

.glow-bg {
    position: absolute;
    top: 40%;
    right: -5%;
    transform: translateY(-50%);
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(0,240,255,0.08) 0%, rgba(6,8,13,0) 70%);
    z-index: -1;
    border-radius: 50%;
    filter: blur(60px);
}

.glow-bg-green {
    position: absolute;
    bottom: -10%;
    left: -5%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0,255,163,0.05) 0%, rgba(6,8,13,0) 70%);
    z-index: -1;
    border-radius: 50%;
    filter: blur(60px);
}

.hero-content {
    max-width: 1200px;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 70px;
}

.hero-text {
    flex: 1;
}

.profile-photo {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 0;
    border: 3px solid var(--primary-neon);
    box-shadow: 0 0 35px var(--primary-neon-dim);
    transition: var(--transition);
    flex-shrink: 0;
}

.profile-photo:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px var(--primary-neon-dim);
    border-color: var(--secondary-neon);
}

.hero .subtitle {
    color: var(--primary-neon);
    font-size: 1.1rem;
    margin-bottom: 15px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
}

.hero .title {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 30px;
    background: var(--hero-title-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero .tagline {
    font-size: 1.35rem;
    color: var(--text-secondary);
    margin-bottom: 45px;
    max-width: 750px;
    line-height: 1.7;
}

.cta-group {
    display: flex;
    gap: 20px;
}

/* =========================================
   About Section
   ========================================= */
.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.lead-text {
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 25px;
    line-height: 1.7;
}

.about-content p {
    color: var(--text-secondary);
    font-size: 1.15rem;
    line-height: 1.8;
}

/* =========================================
   Expertise Section
   ========================================= */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
}

.expertise-card {
    padding: 45px;
    height: 100%;
}

.icon-wrap {
    width: 65px;
    height: 65px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.blue-glow {
    background: rgba(0, 240, 255, 0.08);
    border: 1px solid rgba(0, 240, 255, 0.2);
}

.green-glow {
    background: rgba(0, 255, 163, 0.08);
    border: 1px solid rgba(0, 255, 163, 0.2);
}

.neon-icon-blue {
    color: var(--primary-neon);
    filter: drop-shadow(0 0 6px var(--primary-neon));
}

.neon-icon-green {
    color: var(--secondary-neon);
    filter: drop-shadow(0 0 6px var(--secondary-neon));
}

.expertise-card h3 {
    font-size: 1.6rem;
    margin-bottom: 25px;
    color: var(--text-primary);
}

.skill-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.skill-list li {
    position: relative;
    padding-left: 28px;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 1.05rem;
}

.skill-list li::before {
    content: '▹';
    position: absolute;
    left: 0;
    top: -2px;
    color: var(--primary-neon);
    font-size: 1.4rem;
    line-height: 1.2;
}

.skill-list.green-bullets li::before {
    color: var(--secondary-neon);
}

/* =========================================
   Projects Section
   ========================================= */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

/* Make Project 1 span full width on large screens */
@media (min-width: 1024px) {
    .projects-grid > div:nth-child(1) {
        grid-column: span 2;
    }
}

.project-box {
    padding: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-image {
    width: 100%;
    height: 220px;
    border-bottom: 1px solid var(--glass-border);
    border-radius: 20px 20px 0 0;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.33, 1, 0.68, 1);
}

.project-box:hover .project-image img {
    transform: scale(1.08);
}

.project-content {
    padding: 35px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-box:hover {
    border-color: rgba(0, 255, 163, 0.3); /* Subtle green hover */
}

.project-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 20px;
}

.project-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: rgba(255,255,255,0.05);
    line-height: 1;
    -webkit-text-stroke: 1px rgba(255,255,255,0.15);
    transition: var(--transition);
}

.project-box:hover .project-number {
    color: var(--secondary-neon-dim);
    -webkit-text-stroke: 1px var(--secondary-neon);
}

.project-header h4 {
    font-size: 1.4rem;
    color: var(--text-primary);
    line-height: 1.3;
    padding-top: 5px;
}

.tech-stack {
    display: inline-block;
    color: var(--primary-neon);
    font-size: 0.85rem;
    font-family: var(--font-heading);
    font-weight: 600;
    margin-bottom: 20px;
    padding: 6px 14px;
    background: rgba(0, 240, 255, 0.08);
    border-radius: 20px;
    border: 1px solid rgba(0, 240, 255, 0.15);
    letter-spacing: 0.5px;
}

.tech-stack.green-stack {
    color: var(--secondary-neon);
    background: rgba(0, 255, 163, 0.08);
    border: 1px solid rgba(0, 255, 163, 0.15);
}

.project-box p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    flex-grow: 1;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-neon);
    font-family: var(--font-heading);
    font-weight: 600;
    margin-top: 20px;
    font-size: 0.95rem;
    transition: var(--transition);
}

.project-link:hover {
    color: var(--secondary-neon);
    gap: 12px;
}

/* =========================================
   Experience Section
   ========================================= */
.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 2px;
    height: 100%;
    background: var(--timeline-line);
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -37px;
    top: 20px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 3px solid var(--bg-main);
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.timeline-dot.blue-dot {
    background: var(--primary-neon);
    box-shadow: 0 0 12px var(--primary-neon);
}

.timeline-dot.green-dot {
    background: var(--secondary-neon);
    box-shadow: 0 0 12px var(--secondary-neon);
}

.timeline-content {
    padding: 30px;
    transform-style: preserve-3d;
}

.timeline-content h4 {
    color: var(--text-primary);
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.company {
    display: block;
    color: var(--secondary-neon);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 15px;
}

.timeline-content p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

/* =========================================
   Certifications Section
   ========================================= */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.cert-card {
    display: flex;
    align-items: center;
    gap: 25px;
    padding: 30px;
}

.cert-card:hover {
    border-color: rgba(0, 240, 255, 0.3);
}

.cert-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cert-details h4 {
    font-size: 1.15rem;
    margin-bottom: 8px;
    line-height: 1.3;
}

.cert-details p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
}

/* =========================================
   Contact Section & Footer
   ========================================= */
.contact-wrapper {
    max-width: 700px;
    margin: 0 auto;
}

.contact-form-container {
    padding: 50px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: 1.05rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 18px;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1.05rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-neon);
    background: rgba(0, 240, 255, 0.03);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.1);
}

.submit-btn {
    width: 100%;
    border: none;
    margin-top: 15px;
    padding: 18px;
    font-size: 1.15rem;
}

footer {
    border-top: 1px solid var(--glass-border);
    padding: 60px 0;
    background: var(--bg-main);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
}

.footer-logo span {
    color: var(--secondary-neon);
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.social-icon {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    transition: var(--transition);
    font-family: var(--font-heading);
    font-weight: 500;
}

.social-icon svg {
    color: var(--primary-neon);
}

.social-icon:hover {
    color: var(--text-primary);
    transform: translateY(-3px);
}

.social-icon:hover svg {
    color: var(--secondary-neon);
    filter: drop-shadow(0 0 5px var(--secondary-neon));
}

.copyright {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-top: 10px;
    text-align: center;
    line-height: 1.5;
}

/* =========================================
   Animations (Simplified)
   ========================================= */
.fade-in {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.appear {
    opacity: 1;
}

.slide-up {
    transform: translateY(40px);
}

.slide-up.appear {
    transform: translateY(0);
}

/* =========================================
   Music Player
   ========================================= */
.music-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--primary-neon);
    color: var(--primary-neon);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 1000;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 15px var(--primary-neon-dim);
    transition: var(--transition);
}

.music-btn:hover {
    transform: scale(1.1);
    background: var(--primary-neon);
    color: var(--bg-main);
    box-shadow: 0 0 25px var(--primary-neon);
}

.music-btn svg {
    width: 24px;
    height: 24px;
}

.music-btn.playing {
    animation: pulse-music 2s infinite;
}

@keyframes pulse-music {
    0% { box-shadow: 0 0 0 0 var(--primary-neon-dim); }
    70% { box-shadow: 0 0 0 15px rgba(0, 240, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 240, 255, 0); }
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; }

/* =========================================
   Responsive Design
   ========================================= */
@media screen and (max-width: 992px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    
    .cta-group {
        justify-content: center;
    }

    .profile-photo {
        width: 180px;
        height: 180px;
        margin-bottom: 15px;
    }

    .hero .title {
        font-size: 3.5rem;
    }
}

@media screen and (max-width: 768px) {
    .navbar {
        padding: 15px 0;
    }

    .navbar.scrolled {
        padding: 15px 0;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-darker);
        flex-direction: column;
        text-align: center;
        padding: 20px 0;
        gap: 30px;
        border-top: 1px solid var(--glass-border);
        box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: flex;
    }

    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .hero .title {
        font-size: 2.8rem;
    }
    
    .cta-group {
        flex-direction: column;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .timeline {
        padding-left: 20px;
    }
    .timeline-dot {
        left: -27px;
    }
}

@media screen and (max-width: 480px) {
    .social-links {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .social-icon {
        width: 100%;
        justify-content: center;
    }
}
