/*
 * ==========================================================================
 * STYLES.CSS - Main Stylesheet for Kedar Phadke's Portfolio
 * ==========================================================================
 *
 * This file contains all the styling for the landing page.
 * Organized into sections for easier maintenance:
 *
 * 1. CSS Variables (Design Tokens)
 * 2. Reset & Base Styles
 * 3. Navigation
 * 4. Hero Section
 * 5. Shared Section Styles
 * 6. About Section
 * 7. Skills Section
 * 8. Experience Section (Timeline)
 * 9. Education Section
 * 10. Contact Section
 * 11. Footer
 * 12. Contact Modal
 * 13. Animations
 * 14. Responsive Breakpoints
 */


/* ==========================================================================
   1. CSS VARIABLES (Design Tokens)
   ==========================================================================
   Define colors, fonts, and other design values in one place.
   This makes it easy to update the entire site's look by changing these values.
*/
:root {
    --primary: #1a365d;        /* Dark navy - main brand color */
    --secondary: #2d3748;      /* Dark gray - body text */
    --accent: #3182ce;         /* Blue - links and accents */
    --accent-light: #63b3ed;   /* Light blue - hover states */
    --gold: #d69e2e;           /* Gold - highlights and CTAs */
    --light: #f7fafc;          /* Off-white - backgrounds */
    --white: #ffffff;          /* Pure white */
    --gray: #718096;           /* Medium gray - muted text */
    --dark: #1a202c;           /* Near black - footer */
}


/* ==========================================================================
   2. RESET & BASE STYLES
   ==========================================================================
   Remove default browser styling and set up consistent base styles.
*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;  /* Makes width/height include padding and border */
}

html {
    scroll-behavior: smooth;  /* Smooth scrolling when clicking nav links */
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
    color: var(--secondary);
    background: var(--light);
}


/* ==========================================================================
   3. NAVIGATION
   ==========================================================================
   Fixed top navigation bar with logo and links.
*/
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);  /* Frosted glass effect */
    z-index: 1000;                /* Stay above all other content */
    padding: 1rem 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

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

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--accent);
}

/* Animated underline on hover */
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

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

/* Mobile menu button (hidden on desktop) */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--primary);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/*
    Theme Toggle Button
    ===================
    Button to switch between light and dark mode.
    Contains sun and moon icons that swap based on current theme.
*/
.theme-toggle {
    background: var(--light);
    border: 2px solid var(--primary);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    margin-left: 1rem;
}

.theme-toggle:hover {
    background: var(--primary);
    transform: rotate(15deg);
}

.theme-toggle:hover svg {
    stroke: var(--white);
}

.theme-toggle svg {
    stroke: var(--primary);
    transition: all 0.3s ease;
}

/* Sun icon - hidden by default, shown in dark mode */
.theme-toggle .sun-icon {
    display: none;
}

/* Moon icon - shown by default in light mode */
.theme-toggle .moon-icon {
    display: block;
}


/* ==========================================================================
   4. HERO SECTION
   ==========================================================================
   Full-height intro section with gradient background.
*/
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary) 0%, #2c5282 100%);
    padding: 8rem 2rem 4rem;
    position: relative;
    overflow: hidden;
}

/* Subtle pattern overlay */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* Hero text styles */
.hero-text h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 0.5rem;
    animation: fadeInUp 0.8s ease;
}

.hero-text .title {
    font-size: 1.25rem;
    color: var(--accent-light);
    margin-bottom: 1.5rem;
    font-weight: 500;
    animation: fadeInUp 0.8s ease 0.1s backwards;
}

.hero-text .location {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.hero-text p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease 0.3s backwards;
}

/* CTA buttons */
.hero-buttons {
    display: flex;
    gap: 1rem;
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--gold);
    color: var(--dark);
}

.btn-primary:hover {
    background: #b7791f;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(214, 158, 46, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
}

/* Stats cards grid */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    animation: fadeInRight 0.8s ease 0.5s backwards;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--gold);
    display: block;
}

.stat-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}


/* ==========================================================================
   5. SHARED SECTION STYLES
   ==========================================================================
   Reusable styles for all content sections.
*/
section {
    padding: 6rem 2rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--gray);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.underline {
    width: 60px;
    height: 4px;
    background: var(--gold);
    margin: 1rem auto 0;
    border-radius: 2px;
}


/* ==========================================================================
   6. ABOUT SECTION
   ==========================================================================
*/
#about {
    background: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--secondary);
    font-size: 1.05rem;
}

/* Certifications sidebar */
.certifications {
    background: var(--light);
    padding: 2rem;
    border-radius: 16px;
}

.certifications h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.cert-item {
    padding: 1rem 0;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.cert-item:last-child {
    border-bottom: none;
}

.cert-icon {
    color: var(--gold);
    font-size: 1.2rem;
}

.cert-item span {
    font-size: 0.95rem;
    color: var(--secondary);
}


/* ==========================================================================
   7. SKILLS SECTION
   ==========================================================================
*/
#skills {
    background: var(--light);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.skill-category {
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.skill-category h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.skill-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
}

.skill-list {
    list-style: none;
}

.skill-list li {
    padding: 0.75rem 0;
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid #f0f0f0;
}

.skill-list li:last-child {
    border-bottom: none;
}

/* Gold bullet points */
.skill-list li::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--gold);
    border-radius: 50%;
}


/* ==========================================================================
   7b. FEATURED PROJECTS SECTION
   ==========================================================================
   Visually impressive project showcase with gradient cards and hover effects.
*/
#projects {
    background: var(--white);
}

/* Projects Grid - 3 columns on desktop, stacks on mobile */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
}

/* Individual Project Card */
.project-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
}

/* Card hover effect - lift up with enhanced shadow */
.project-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
}

/* Project Image/Gradient Area */
.project-image {
    height: 200px;
    position: relative;
    overflow: hidden;
}

/* Overlay with icon */
.project-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.1);
    transition: background 0.3s ease;
}

.project-card:hover .project-image-overlay {
    background: rgba(0, 0, 0, 0.2);
}

/* Project Icon */
.project-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.project-card:hover .project-icon {
    transform: scale(1.1) rotate(5deg);
    background: rgba(255, 255, 255, 0.3);
}

/* Project Badge (Featured, New, etc.) */
.project-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--gold);
    color: var(--dark);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(214, 158, 46, 0.4);
}

.project-badge.badge-new {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(72, 187, 120, 0.4);
}

/* Project Content Area */
.project-content {
    padding: 1.75rem;
}

.project-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
}

.project-card:hover .project-title {
    color: var(--accent);
}

.project-description {
    color: var(--secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

/* Technology Tags */
.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tag {
    background: linear-gradient(135deg, var(--light) 0%, #e2e8f0 100%);
    color: var(--secondary);
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.tag:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-2px);
}

/* Project Action Buttons */
.project-buttons {
    display: flex;
    gap: 0.75rem;
}

.btn-project {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-view {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(49, 130, 206, 0.3);
}

.btn-view:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(49, 130, 206, 0.4);
}

.btn-source {
    background: var(--light);
    color: var(--secondary);
    border: 2px solid #e2e8f0;
}

.btn-source:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* Animated gradient border on hover (using pseudo-element) */
.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--accent), var(--gold));
    background-size: 200% 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover::before {
    opacity: 1;
    animation: gradientSlide 2s linear infinite;
}

@keyframes gradientSlide {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}


/* ==========================================================================
   8. EXPERIENCE SECTION - Modern Side-by-Side Timeline
   ==========================================================================

   LAYOUT OVERVIEW:
   ================
   Desktop (>768px):
   - CSS Grid: 40% sticky timeline | 60% scrollable cards
   - Timeline uses position: sticky to stay visible
   - Intersection Observer highlights active position

   Mobile (<=768px):
   - Single column layout
   - Timeline nav hidden, replaced by inline dots
   - Cards stack vertically with left-aligned dots

   STICKY POSITIONING EXPLAINED:
   =============================
   position: sticky creates an element that:
   1. Scrolls normally until it reaches 'top' offset
   2. Then "sticks" to that position
   3. Unsticks when parent element scrolls out of view

   For sticky to work, the parent must have:
   - Defined height (or content that creates height)
   - No overflow: hidden
*/
#experience {
    background: var(--light);
}

/*
    Experience Layout Container
    ============================
    Desktop: Two-column grid (40% / 60%)
    Mobile: Single column (handled in media queries)
*/
.experience-layout {
    display: grid;
    grid-template-columns: minmax(280px, 40%) 1fr;
    gap: 3rem;
    align-items: start;
}

/*
    LEFT SIDE: Sticky Timeline Navigation
    ======================================
    - Sticks to viewport while scrolling through cards
    - Contains clickable nav items with dots and labels
*/
.timeline-nav {
    /*
        STICKY POSITIONING
        ==================
        - position: sticky makes element stick when scrolling
        - top: 120px = distance from top of viewport when stuck
          (accounts for fixed navbar + some padding)
        - Only works when parent (.experience-layout) has scrollable content
    */
    position: sticky;
    top: 120px;
    height: fit-content;
    padding: 1rem 0;
}

.timeline-nav-inner {
    position: relative;
    padding-left: 2rem;
}

/*
    Vertical Connecting Line
    =========================
    Creates the line that connects all timeline dots
*/
.timeline-line {
    position: absolute;
    left: 8px;
    top: 12px;
    bottom: 12px;
    width: 2px;
    background: linear-gradient(
        to bottom,
        var(--gold) 0%,
        var(--accent) 50%,
        var(--gray) 100%
    );
    border-radius: 1px;
}

/*
    Timeline Navigation Item
    =========================
    Each position in the timeline (dot + date + company)
*/
.timeline-nav-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.timeline-nav-item:hover .nav-info {
    transform: translateX(5px);
}

/*
    Timeline Dot
    =============
    Outer ring with inner dot that scales on active state
*/
.nav-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--gray);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.dot-inner {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: transparent;
    transition: all 0.3s ease;
}

/*
    Active State for Timeline Item
    ================================
    Applied by JavaScript when corresponding card is in view
*/
.timeline-nav-item.active .nav-dot {
    width: 24px;
    height: 24px;
    border-color: var(--gold);
    background: var(--gold);
    box-shadow: 0 0 0 4px rgba(214, 158, 46, 0.2);
}

.timeline-nav-item.active .dot-inner {
    width: 10px;
    height: 10px;
    background: var(--white);
}

.timeline-nav-item.active .nav-info .nav-date {
    color: var(--gold);
}

.timeline-nav-item.active .nav-info .nav-company {
    color: var(--primary);
}

/*
    Navigation Info (Date & Company)
*/
.nav-info {
    transition: transform 0.3s ease;
}

.nav-date {
    display: block;
    font-size: 0.8rem;
    color: var(--gray);
    font-weight: 500;
    margin-bottom: 0.2rem;
    transition: color 0.3s ease;
}

.nav-company {
    display: block;
    font-size: 0.95rem;
    color: var(--secondary);
    font-weight: 600;
    transition: color 0.3s ease;
}

/*
    RIGHT SIDE: Experience Cards Container
*/
.experience-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/*
    Individual Experience Card
    ===========================
    Card-style design with shadow, rounded corners, and hover effects
*/
.exp-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
}

.exp-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

/* Accent border on left side of card */
.exp-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, var(--accent), var(--gold));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.exp-card:hover::before {
    opacity: 1;
}

/* First card (current role) has permanent accent */
.exp-card[data-index="0"]::before {
    opacity: 1;
    background: var(--gold);
}

.exp-card-content {
    padding: 2rem;
}

/*
    Mobile Timeline Dot
    ====================
    Hidden on desktop, shown on mobile
*/
.mobile-dot {
    display: none;
}

/*
    Card Header (Date + Current Badge)
*/
.exp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.exp-date {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
}

.exp-current {
    background: linear-gradient(135deg, var(--gold) 0%, #e6a020 100%);
    color: var(--dark);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/*
    Job Title
*/
.exp-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

/*
    Company & Location with Icons
*/
.exp-company,
.exp-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.exp-company {
    color: var(--gold);
    font-weight: 600;
}

.exp-company svg,
.exp-location svg {
    flex-shrink: 0;
    opacity: 0.7;
}

.exp-location {
    color: var(--gray);
    margin-bottom: 1rem;
}

/*
    Job Description
*/
.exp-description {
    color: var(--secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

/*
    Highlight Tags
    ===============
    Key achievements/skills as badges
*/
.exp-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.highlight {
    background: linear-gradient(135deg, rgba(49, 130, 206, 0.1) 0%, rgba(99, 179, 237, 0.1) 100%);
    color: var(--accent);
    padding: 0.4rem 0.9rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(49, 130, 206, 0.2);
    transition: all 0.3s ease;
}

.highlight:hover {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}


/* ==========================================================================
   9. EDUCATION SECTION
   ==========================================================================
*/
#education {
    background: linear-gradient(135deg, var(--primary) 0%, #2c5282 100%);
    color: var(--white);
}

#education .section-header h2 {
    color: var(--white);
}

#education .section-header p {
    color: rgba(255, 255, 255, 0.8);
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.education-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.education-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.education-card .degree {
    color: var(--gold);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.education-card .school {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.education-card .field {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}


/* ==========================================================================
   10. CONTACT SECTION
   ==========================================================================
*/
#contact {
    background: var(--white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.contact-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.contact-info p {
    color: var(--secondary);
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: var(--light);
    border-radius: 12px;
    text-decoration: none;
    color: var(--secondary);
    transition: all 0.3s ease;
}

.contact-link:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateX(10px);
}

.contact-link .icon {
    width: 45px;
    height: 45px;
    background: var(--accent);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.contact-link:hover .icon {
    background: var(--gold);
}

/* Contact CTA card */
.contact-card {
    background: linear-gradient(135deg, var(--primary) 0%, #2c5282 100%);
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    color: var(--white);
}

.contact-card h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.contact-card p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
}


/* ==========================================================================
   11. FOOTER
   ==========================================================================
*/
footer {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.6);
    padding: 2rem;
    text-align: center;
}

footer p {
    font-size: 0.9rem;
}


/* ==========================================================================
   12. CONTACT MODAL
   ==========================================================================
   Popup form for sending messages.
*/

/* Overlay - darkens the background */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 54, 93, 0.9);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Modal container */
.modal {
    background: linear-gradient(135deg, var(--primary) 0%, #2c5282 100%);
    border-radius: 20px;
    padding: 2.5rem;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-overlay.active .modal {
    transform: scale(1) translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-header h3 {
    font-family: 'Playfair Display', serif;
    color: var(--white);
    font-size: 1.5rem;
}

/* Close button */
.modal-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: var(--white);
    font-size: 1.5rem;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.modal-body p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

/* Form styles */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    color: var(--white);
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.15);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

/* Submit button */
.modal-submit {
    width: 100%;
    padding: 1rem;
    background: var(--gold);
    color: var(--dark);
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.modal-submit:hover {
    background: #b7791f;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(214, 158, 46, 0.3);
}

.modal-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Form status messages */
.form-status {
    text-align: center;
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 8px;
    display: none;
}

.form-status.success {
    display: block;
    background: rgba(72, 187, 120, 0.2);
    color: #48bb78;
}

.form-status.error {
    display: block;
    background: rgba(245, 101, 101, 0.2);
    color: #fc8181;
}


/* ==========================================================================
   12b. FORM VALIDATION STYLES
   ==========================================================================
   Visual feedback for form validation errors.
*/

/* Required field asterisk */
.required {
    color: #fc8181;
    font-weight: 600;
}

/* Error message below each field */
.error-message {
    display: block;
    color: #fc8181;
    font-size: 0.8rem;
    margin-top: 0.4rem;
    min-height: 1.2rem;  /* Reserve space to prevent layout shift */
    opacity: 0;
    transform: translateY(-5px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

/* Show error message when it has content */
.error-message.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Input field error state - red border */
.form-group input.error,
.form-group textarea.error {
    border-color: #fc8181;
    background: rgba(245, 101, 101, 0.1);
}

/* Input field success state - green border */
.form-group input.valid,
.form-group textarea.valid {
    border-color: #48bb78;
}

/* Shake animation for invalid fields */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.form-group input.shake,
.form-group textarea.shake {
    animation: shake 0.5s ease;
}


/* ==========================================================================
   12c. VIEW MESSAGES MODAL
   ==========================================================================
   Styles for the messages viewer modal.
*/

/* Wider modal for messages list */
.modal-wide {
    max-width: 650px;
}

.messages-intro {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Toolbar with count and clear button */
.messages-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.message-count {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.btn-clear {
    background: rgba(245, 101, 101, 0.2);
    color: #fc8181;
    border: 1px solid rgba(245, 101, 101, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.btn-clear:hover {
    background: rgba(245, 101, 101, 0.3);
    border-color: #fc8181;
}

.btn-clear:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Messages list container */
.messages-list {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

/* Custom scrollbar for messages list */
.messages-list::-webkit-scrollbar {
    width: 6px;
}

.messages-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.messages-list::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 3px;
}

/* Individual message card */
.message-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.message-card:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}

.message-card:last-child {
    margin-bottom: 0;
}

/* Message header with name, email, date */
.message-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    gap: 1rem;
}

.message-sender {
    flex: 1;
}

.message-name {
    color: var(--white);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.message-email {
    color: var(--gold);
    font-size: 0.85rem;
}

.message-date {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    white-space: nowrap;
}

/* Message subject */
.message-subject {
    color: var(--accent-light);
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

/* Message body */
.message-body {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    line-height: 1.6;
    white-space: pre-wrap;  /* Preserve line breaks */
    word-break: break-word;
}

/* Delete button for individual message */
.message-delete {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    padding: 0.25rem;
    font-size: 1.2rem;
    line-height: 1;
    transition: color 0.2s ease;
}

.message-delete:hover {
    color: #fc8181;
}

/* Empty state when no messages */
.messages-empty {
    text-align: center;
    padding: 3rem 1rem;
    display: none;  /* Hidden by default, shown via JS */
}

.messages-empty.visible {
    display: block;
}

.empty-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.messages-empty p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.empty-hint {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
}

/* Contact card buttons layout */
.contact-card-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-view-messages {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-view-messages svg {
    opacity: 0.8;
}


/* ==========================================================================
   13. ANIMATIONS
   ==========================================================================

   Animations are triggered using the Intersection Observer API in JavaScript.
   This is more performant than listening to scroll events because:
   - It doesn't fire on every pixel scrolled
   - The browser optimizes when and how often callbacks run
   - It works asynchronously, not blocking the main thread
*/

/* Initial page load animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/*
    Scroll-triggered animations
    ============================
    Elements with 'animate-on-scroll' start invisible and below their final position.
    When JavaScript adds the 'visible' class, they fade in and slide up smoothly.

    The transition property controls how the animation looks:
    - opacity: fades the element in
    - transform: moves the element from below to its final position
    - The cubic-bezier timing function creates a smooth, slightly bouncy feel
*/
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/*
    Staggered animation delays
    ===========================
    These classes create a cascading effect when multiple elements
    animate at once. Each subsequent element starts slightly later,
    creating a "wave" effect that looks more polished.

    Apply these in addition to 'animate-on-scroll':
    <div class="animate-on-scroll delay-1">First</div>
    <div class="animate-on-scroll delay-2">Second</div>
*/
.animate-on-scroll.delay-1 { transition-delay: 0.1s; }
.animate-on-scroll.delay-2 { transition-delay: 0.2s; }
.animate-on-scroll.delay-3 { transition-delay: 0.3s; }
.animate-on-scroll.delay-4 { transition-delay: 0.4s; }


/* ==========================================================================
   13b. SCROLL TO TOP BUTTON
   ==========================================================================

   A floating button that appears when the user scrolls down the page.
   Clicking it smoothly scrolls back to the top.

   Features:
   - Hidden by default (opacity: 0, visibility: hidden)
   - Appears when 'visible' class is added by JavaScript
   - Smooth hover effects with scale and shadow
   - Fixed position in bottom-right corner
*/
.scroll-to-top {
    /* Positioning - fixed to viewport, bottom-right corner */
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;

    /* Sizing and shape - circular button */
    width: 50px;
    height: 50px;
    border-radius: 50%;

    /* Appearance */
    background: var(--gold);
    border: none;
    cursor: pointer;

    /* Center the arrow icon */
    display: flex;
    align-items: center;
    justify-content: center;

    /* Shadow for depth */
    box-shadow: 0 4px 20px rgba(214, 158, 46, 0.4);

    /* Hidden by default - JavaScript adds 'visible' class to show */
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);

    /* Smooth transitions for appearing/disappearing and hover effects */
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Icon styling */
.scroll-to-top svg {
    stroke: var(--dark);
    transition: transform 0.3s ease;
}

/* Visible state - shown when user scrolls down */
.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Hover effects - grows slightly with deeper shadow */
.scroll-to-top:hover {
    background: #b7791f;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(214, 158, 46, 0.5);
}

/* Arrow bounces up slightly on hover */
.scroll-to-top:hover svg {
    transform: translateY(-2px);
}

/* Active/click state - pressed effect */
.scroll-to-top:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(214, 158, 46, 0.4);
}

/* Focus state for keyboard accessibility */
.scroll-to-top:focus {
    outline: none;
    box-shadow: 0 0 0 3px var(--accent-light), 0 4px 20px rgba(214, 158, 46, 0.4);
}


/* ==========================================================================
   14. RESPONSIVE BREAKPOINTS
   ==========================================================================
   Adapt layout for different screen sizes.
*/

/* Tablet and smaller desktops */
@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        max-width: 400px;
        margin: 0 auto;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    /* Projects grid - 2 columns on tablet */
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    /* Experience section - reduce gap on tablet */
    .experience-layout {
        gap: 2rem;
    }
}

/* Mobile phones */
@media (max-width: 768px) {
    /* Show mobile menu, hide desktop nav */
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

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

    .mobile-menu-btn {
        display: block;
    }

    /* Hero section mobile fixes */
    .hero {
        padding: 6rem 1.5rem 3rem;
        min-height: auto;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-text .title {
        font-size: 1.1rem;
    }

    .hero-text .location {
        justify-content: center;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        max-width: 100%;
    }

    .stat-card {
        padding: 1.25rem 1rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    section {
        padding: 4rem 1.5rem;
    }

    /* Projects grid - single column on mobile */
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .project-image {
        height: 180px;
    }

    .project-content {
        padding: 1.5rem;
    }

    .project-buttons {
        flex-direction: column;
    }

    .btn-project {
        width: 100%;
    }

    /*
        MOBILE EXPERIENCE SECTION
        ==========================
        RESPONSIVE BREAKPOINT EXPLANATION:
        At 768px and below, we switch from side-by-side to stacked layout.

        Changes:
        1. Grid becomes single column
        2. Sticky timeline nav is hidden
        3. Mobile dots appear inline with each card
        4. Cards get left border instead of dot
    */
    .experience-layout {
        grid-template-columns: 1fr;
        gap: 0;
    }

    /* Hide the sticky timeline navigation on mobile */
    .timeline-nav {
        display: none;
    }

    /* Show mobile timeline dots */
    .mobile-dot {
        display: flex;
        align-items: center;
        gap: 1rem;
        padding: 1rem 1.5rem;
        background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
        position: relative;
    }

    /* Mobile dot circle */
    .mobile-dot::before {
        content: '';
        width: 12px;
        height: 12px;
        background: var(--white);
        border-radius: 50%;
        flex-shrink: 0;
        box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
    }

    /* Connecting line between mobile dots */
    .mobile-dot::after {
        content: '';
        position: absolute;
        left: 2.05rem;
        bottom: -1.5rem;
        width: 2px;
        height: 1.5rem;
        background: var(--accent);
        opacity: 0.3;
    }

    /* Hide line on last card */
    .exp-card:last-child .mobile-dot::after {
        display: none;
    }

    /* Current role badge on mobile */
    .current-badge {
        background: var(--gold);
        color: var(--dark);
        padding: 0.25rem 0.75rem;
        border-radius: 50px;
        font-size: 0.7rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    /* Adjust card styling for mobile */
    .exp-card {
        border-radius: 0;
        margin-bottom: 1.5rem;
    }

    .exp-card:first-child {
        border-radius: 16px 16px 0 0;
    }

    .exp-card:last-child {
        border-radius: 0 0 16px 16px;
        margin-bottom: 0;
    }

    /* Hide the left accent border on mobile (we have top gradient instead) */
    .exp-card::before {
        display: none;
    }

    .exp-card-content {
        padding: 1.5rem;
    }

    .exp-title {
        font-size: 1.2rem;
    }

    /* Hide "Current Role" badge on mobile (we have the banner) */
    .exp-current {
        display: none;
    }
}


/* ==========================================================================
   15. DARK MODE
   ==========================================================================
   Dark color scheme applied when 'dark-mode' class is on the body.

   How it works:
   - JavaScript adds/removes 'dark-mode' class on the <body> element
   - These styles override the light mode defaults
   - CSS transitions create smooth color changes
   - User preference is saved to localStorage
*/

/*
    Global transition for smooth theme switching
    =============================================
    This adds a transition to all elements so colors change smoothly
    when toggling between light and dark mode.
*/
body.dark-mode,
body.dark-mode * {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/*
    Dark Mode Theme Toggle Button
    ==============================
    Swap which icon is visible in dark mode.
*/
body.dark-mode .theme-toggle {
    background: var(--dark);
    border-color: var(--gold);
}

body.dark-mode .theme-toggle svg {
    stroke: var(--gold);
}

body.dark-mode .theme-toggle:hover {
    background: var(--gold);
}

body.dark-mode .theme-toggle:hover svg {
    stroke: var(--dark);
}

/* In dark mode: show sun, hide moon */
body.dark-mode .theme-toggle .sun-icon {
    display: block;
}

body.dark-mode .theme-toggle .moon-icon {
    display: none;
}

/*
    Dark Mode - Navigation
    =======================
*/
body.dark-mode nav {
    background: rgba(26, 32, 44, 0.95);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

body.dark-mode .logo {
    color: var(--white);
}

body.dark-mode .nav-links a {
    color: rgba(255, 255, 255, 0.8);
}

body.dark-mode .nav-links a:hover {
    color: var(--gold);
}

body.dark-mode .nav-links a::after {
    background: var(--gold);
}

body.dark-mode .mobile-menu-btn span {
    background: var(--white);
}

/* Mobile menu in dark mode */
body.dark-mode .nav-links {
    background: var(--dark);
}

/*
    Dark Mode - Body & General
    ===========================
*/
body.dark-mode {
    background: #0d1117;
    color: #e6edf3;
}

/*
    Dark Mode - About Section
    ==========================
*/
body.dark-mode #about {
    background: #161b22;
}

body.dark-mode .section-header h2 {
    color: var(--white);
}

body.dark-mode .section-header p {
    color: rgba(255, 255, 255, 0.6);
}

body.dark-mode .about-text p {
    color: rgba(255, 255, 255, 0.8);
}

body.dark-mode .certifications {
    background: #21262d;
}

body.dark-mode .certifications h3 {
    color: var(--white);
}

body.dark-mode .cert-item {
    border-bottom-color: #30363d;
}

body.dark-mode .cert-item span {
    color: rgba(255, 255, 255, 0.8);
}

/*
    Dark Mode - Skills Section
    ===========================
*/
body.dark-mode #skills {
    background: #0d1117;
}

body.dark-mode .skill-category {
    background: #161b22;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

body.dark-mode .skill-category:hover {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

body.dark-mode .skill-category h3 {
    color: var(--white);
}

body.dark-mode .skill-list li {
    color: rgba(255, 255, 255, 0.8);
    border-bottom-color: #30363d;
}

/*
    Dark Mode - Experience Section (Modern Timeline)
    =================================================
*/
body.dark-mode #experience {
    background: #0d1117;
}

/* Timeline Navigation */
body.dark-mode .timeline-line {
    background: linear-gradient(
        to bottom,
        var(--gold) 0%,
        var(--accent) 50%,
        #30363d 100%
    );
}

body.dark-mode .nav-dot {
    background: #161b22;
    border-color: #30363d;
}

body.dark-mode .timeline-nav-item.active .nav-dot {
    background: var(--gold);
    border-color: var(--gold);
}

body.dark-mode .nav-date {
    color: rgba(255, 255, 255, 0.5);
}

body.dark-mode .nav-company {
    color: rgba(255, 255, 255, 0.8);
}

body.dark-mode .timeline-nav-item.active .nav-company {
    color: var(--white);
}

/* Experience Cards */
body.dark-mode .exp-card {
    background: #161b22;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

body.dark-mode .exp-card:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

body.dark-mode .exp-title {
    color: var(--white);
}

body.dark-mode .exp-company {
    color: var(--gold);
}

body.dark-mode .exp-location {
    color: rgba(255, 255, 255, 0.5);
}

body.dark-mode .exp-description {
    color: rgba(255, 255, 255, 0.7);
}

body.dark-mode .highlight {
    background: rgba(214, 158, 46, 0.1);
    color: var(--gold);
    border-color: rgba(214, 158, 46, 0.3);
}

body.dark-mode .highlight:hover {
    background: var(--gold);
    color: var(--dark);
    border-color: var(--gold);
}

/* Mobile dark mode */
body.dark-mode .mobile-dot {
    background: linear-gradient(135deg, #21262d 0%, #161b22 100%);
}

body.dark-mode .mobile-dot::after {
    background: #30363d;
}

/*
    Dark Mode - Contact Section
    ============================
*/
body.dark-mode #contact {
    background: #161b22;
}

body.dark-mode .contact-info h3 {
    color: var(--white);
}

body.dark-mode .contact-info p {
    color: rgba(255, 255, 255, 0.8);
}

body.dark-mode .contact-link {
    background: #21262d;
    color: rgba(255, 255, 255, 0.8);
}

body.dark-mode .contact-link:hover {
    background: var(--primary);
    color: var(--white);
}

/*
    Dark Mode - Footer
    ===================
*/
body.dark-mode footer {
    background: #010409;
    color: rgba(255, 255, 255, 0.5);
}

/*
    Dark Mode - Modal
    ==================
*/
body.dark-mode .modal-overlay {
    background: rgba(1, 4, 9, 0.9);
}

body.dark-mode .modal {
    background: linear-gradient(135deg, #161b22 0%, #21262d 100%);
    border-color: #30363d;
}

/*
    Dark Mode - Scroll to Top Button
    ==================================
*/
body.dark-mode .scroll-to-top {
    background: var(--gold);
    box-shadow: 0 4px 20px rgba(214, 158, 46, 0.3);
}

body.dark-mode .scroll-to-top:hover {
    background: #e6a020;
    box-shadow: 0 8px 30px rgba(214, 158, 46, 0.4);
}

/*
    Dark Mode - Messages Modal
    ===========================
*/
body.dark-mode .message-card {
    background: rgba(255, 255, 255, 0.05);
    border-color: #30363d;
}

body.dark-mode .message-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: #484f58;
}

/*
    Dark Mode - Projects Section
    =============================
*/
body.dark-mode #projects {
    background: #0d1117;
}

body.dark-mode .project-card {
    background: #161b22;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

body.dark-mode .project-card:hover {
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
}

body.dark-mode .project-title {
    color: var(--white);
}

body.dark-mode .project-card:hover .project-title {
    color: var(--gold);
}

body.dark-mode .project-description {
    color: rgba(255, 255, 255, 0.7);
}

body.dark-mode .tag {
    background: #21262d;
    color: rgba(255, 255, 255, 0.8);
    border-color: #30363d;
}

body.dark-mode .tag:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

body.dark-mode .btn-source {
    background: #21262d;
    color: rgba(255, 255, 255, 0.8);
    border-color: #30363d;
}

body.dark-mode .btn-source:hover {
    background: var(--gold);
    color: var(--dark);
    border-color: var(--gold);
}
