/* ========================================
   Global Styles
======================================== */

/* Particle Canvas Background */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Behind all content */
    pointer-events: none;
    display: block;
    opacity: 1;
    background: transparent;
}

:root {
    /* Light Mode Variables - Warmer colors */
    --primary-color: #4b5563; /* Warmer slate gray */
    --primary-dark: #374151; /* Warmer darker slate */
    --secondary-color: #9ca3af; /* Warmer medium gray */
    --text-dark: #1f2937; /* Warmer dark blue-gray */
    --text-light: #4b5563; /* Warmer slate gray */
    --background: #f5f3ef; /* Warm off-white */
    --background-rgb: 245, 243, 239;
    --background-alt: #ebe8e1; /* Slightly darker warm off-white */
    --background-alt-rgb: 235, 232, 225;
    --border-color: #d1cdc4; /* Warm gray border */
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.04);

    /* Font Variables */
    --font-primary: 'Outfit', sans-serif;
    --font-mono: 'IBM Plex Mono', monospace;
    --font-size-base: 16px;
    --line-height-base: 1.6;

    /* Spacing */
    --section-padding: 100px 0;
    --container-width: 1200px;

    /* Transitions */
    --transition: all 0.3s ease;
    
    /* Cursor Variables */
    --cursor-size: 20px;
    --cursor-color: rgba(96, 165, 250, 0.7); /* Matching primary color */
}

/* Using default browser cursor */
body {
    cursor: auto;
}

/* Interactive elements use pointer cursor */
a, button, .skill-item, .timeline-item, .modern-skill-item, .nav-link, .social-link, .btn {
    cursor: pointer;
}

/* Dark mode uses same default cursors */
body.dark-mode {
    cursor: auto;
}

body.dark-mode a, body.dark-mode button, body.dark-mode .skill-item, 
body.dark-mode .timeline-item, body.dark-mode .modern-skill-item, 
body.dark-mode .nav-link, body.dark-mode .social-link, body.dark-mode .btn {
    cursor: pointer;
}

/* Dark Mode Variables - Modern, clean and sophisticated palette */
body.dark-mode {
    --primary-color: #6D8AC0; /* Soft blue accent */
    --primary-dark: #5A77AB; /* Deeper blue */
    --secondary-color: #8CA3D3; /* Light periwinkle */
    --text-dark: #E9EDF2; /* Soft white */
    --text-light: #B0B8C4; /* Muted silver */
    --background: #131B2E; /* Deep navy blue */
    --background-rgb: 19, 27, 46;
    --background-alt: #1A2540; /* Slightly lighter navy */
    --background-alt-rgb: 26, 37, 64;
    --border-color: #2C3652; /* Medium navy for borders */
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.2);
}

body.dark-mode .navbar.scrolled {
    background-color: rgba(19, 27, 46, 0.85); /* Navy with opacity */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    border-bottom: 1px solid rgba(44, 54, 82, 0.4);
}

body.dark-mode {
    background: #131B2E; /* Solid deep navy background */
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--text-dark);
    background: linear-gradient(135deg, #f5f3ef 0%, #f2ede5 30%, #eee7db 70%, #e8e1d6 100%); /* Warmer subtle gradient */
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-dark);
    letter-spacing: -0.01em;
}

h1 { font-size: 3.25rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-weight: 400;
    letter-spacing: 0.01em;
}

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

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utility Classes */
.section-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: width 1s ease;
}

.section-title.title-animate {
    animation: bounceIn 0.8s ease;
}

.section-title.title-animate::after {
    width: 60px;
}

.section-subtitle {
    text-align: center;
    font-family: var(--font-mono);
    font-size: 1.05rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-weight: 500;
    opacity: 0.9;
    letter-spacing: -0.01em;
}

.typing-text {
    position: relative;
    display: inline-block;
    width: 100%;
}

.typing-text.typing::after {
    content: '|';
    position: absolute;
    right: 0;
    animation: cursor-blink 0.7s infinite;
}

@keyframes cursor-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.typing-text.typing-complete::after {
    display: none;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(-20px);
    }
    50% {
        opacity: 1;
        transform: scale(1.05) translateY(0);
    }
    70% { transform: scale(0.95); }
    100% { transform: scale(1); }
}

.btn {
    display: inline-block;
    padding: 10px 24px;
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    font-size: 0.9rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.btn-primary {
    background: rgba(71, 85, 105, 0.1); /* Slate gray with transparency for light mode */
    color: var(--text-dark);
    border: 1px solid rgba(71, 85, 105, 0.2);
}

.btn-primary:hover {
    background: rgba(71, 85, 105, 0.15);
    border-color: rgba(71, 85, 105, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--text-dark);
    border: 1px solid rgba(71, 85, 105, 0.2);
}

.btn-secondary:hover {
    background: rgba(71, 85, 105, 0.05);
    border-color: rgba(71, 85, 105, 0.3);
}

body.dark-mode .btn-primary {
    background: rgba(108, 138, 192, 0.15); /* Primary color with transparency */
    border: 1px solid rgba(108, 138, 192, 0.25);
    color: var(--text-dark); /* Using light text color for dark mode */
}

body.dark-mode .btn-primary:hover {
    background: rgba(108, 138, 192, 0.25);
    border-color: rgba(108, 138, 192, 0.35);
}

body.dark-mode .btn-secondary {
    background: transparent;
    color: var(--text-dark); /* Using light text color for dark mode */
    border: 1px solid rgba(108, 138, 192, 0.2);
}

body.dark-mode .btn-secondary:hover {
    background: rgba(108, 138, 192, 0.1);
    border-color: rgba(108, 138, 192, 0.3);
}

/* ========================================
     Scroll Progress Bar
======================================= */

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--background);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
    display: none;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ========================================
     Scroll Progress Bar
======================================= */

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    z-index: 1001;
    transition: width 0.3s ease;
}

/* ========================================
     Navigation
======================================= */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 20px;
    z-index: 1000;
    transition: var(--transition);
    background-color: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: none;
    box-shadow: none;
    max-width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar.scrolled {
    background-color: rgba(245, 243, 239, 0.85); /* Warm background with opacity */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    border-bottom: 1px solid rgba(209, 205, 196, 0.3);
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-dark);
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin-right: auto; /* Push to the left */
    padding: 0;
}

.nav-link {
    color: var(--text-dark);
    font-weight: 600;
    padding: 0.5rem 0;
    position: relative;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.theme-toggle {
    font-size: 1.3rem;
    cursor: pointer;
    color: var(--text-dark);
    margin-left: 1rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(var(--background-alt-rgb), 0.7);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(var(--background-rgb), 0.1);
    padding: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.theme-toggle::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    border-radius: 12px;
    top: 0;
    left: 0;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: -1;
}

.theme-toggle:hover {
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.theme-toggle:hover::before {
    opacity: 0.9;
    transform: scale(1);
}

.theme-toggle:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.theme-toggle i {
    transform: rotate(0deg);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.theme-toggle:hover i {
    transform: rotate(180deg);
}

body.dark-mode .theme-toggle i.fa-lightbulb {
    color: #E9EDF2; /* Soft white from our palette */
    text-shadow: 0 0 10px rgba(233, 237, 242, 0.5);
}

.nav-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
    background: transparent;
    border: none;
    padding: 0;
    margin-left: 0.5rem;
}

/* ========================================
    Hero Section
======================================== */

.hero {
    padding: 120px 0 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    opacity: 1;
    transform: none;
    position: relative;
    overflow: hidden;
    perspective: 1000px;
    background-color: transparent !important; /* Force transparent background */
}

/* This duplicate definition has been removed to avoid conflicts */

.hero-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 40px;
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 2rem;
    position: relative;
    z-index: 2;
    background: rgba(245, 243, 239, 0.15); /* Warm white with opacity */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 24px;
    border: 1px solid rgba(209, 205, 196, 0.15);
    box-shadow: 0 8px 32px rgba(114, 100, 80, 0.06);
}

body.dark-mode .hero-container {
    background: rgba(26, 37, 64, 0.25); /* Navy with opacity */
    border: 1px solid rgba(44, 54, 82, 0.2); /* Medium navy border */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.hero-title-container {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
    overflow: hidden;
    min-height: 4rem; /* Ensures consistent height */
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    position: relative;
    display: inline-block;
    margin: 0;
    letter-spacing: -0.02em;
}

/* Typewriter animation */
.typewriter {
    font-family: var(--font-mono);
    overflow: hidden;
    white-space: nowrap;
    margin: 0;
    letter-spacing: 0; /* Adjusted for monospace */
    display: inline-block;
    position: relative;
    color: var(--text-dark);
    width: 0; /* Start with zero width */
    animation: typing 1s steps(14, end) forwards; /* Even faster typing animation */
    border-right: 0; /* Completely remove any border */
}

/* Typing animation */
@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

/* We'll add and remove this class to restart the animation */
.typewriter-reset {
    width: 0;
    animation: none;
}

.highlight {
    color: var(--primary-color);
    position: relative;
}

.hero-subtitle {
    font-family: var(--font-mono);
    font-size: 1.4rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    /* Animation removed */
}

.hero-description {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    /* Animation removed */
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    justify-content: center;
    /* Animation removed */
}

.hero-social {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    /* Animation removed */
}

.social-link {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--background-alt);
    color: var(--text-dark);
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.hero-image {
    text-align: center;
    margin-bottom: 2rem;
    margin-top: 2rem;
    /* Animation removed */
}

.hero-image img {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-color);
    box-shadow: var(--shadow);
    display: block;
    margin: 0 auto;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    filter: saturate(1);
}

.hero-image {
    position: relative;
    width: 250px;
    height: 250px;
    margin: 0 auto;
    border-radius: 50%;
    overflow: visible;
    transition: transform 0.3s ease-out;
    will-change: transform;
    transform-style: preserve-3d;
}

.hero-image::before,
.hero-image::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    pointer-events: none;
}

.hero-image::before {
    border: 2px solid var(--primary-color);
    z-index: -1;
    transform: scale(1.1) translateZ(0);
}

.hero-image::after {
    background: radial-gradient(circle at center, var(--primary-color) 0%, transparent 70%);
    z-index: -2;
    transform: scale(1.2) translateZ(0);
}

.hero-image:hover::before {
    opacity: 0.6;
    transform: scale(1.08) translateZ(0);
    animation: pulse 2s infinite alternate;
}

.hero-image:hover::after {
    opacity: 0.15;
    transform: scale(1.15) translateZ(0);
    animation: glow 2.5s infinite alternate;
}

.hero-image img:hover {
    transform: scale(1.05) translateZ(0);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border-color: var(--secondary-color);
    filter: saturate(1.1) brightness(1.05);
}

@keyframes pulse {
    0% {
        transform: scale(1.08) translateZ(0);
        border-color: var(--primary-color);
    }
    100% {
        transform: scale(1.12) translateZ(0);
        border-color: var(--secondary-color);
    }
}

@keyframes glow {
    0% {
        opacity: 0.1;
        transform: scale(1.15) translateZ(0);
    }
    100% {
        opacity: 0.25;
        transform: scale(1.25) translateZ(0);
    }
}

/* ========================================
   About Section
======================================== */

.about {
    padding: var(--section-padding);
    background: transparent !important; /* Force transparent */
}

body.dark-mode .about {
    background: transparent !important; /* Force transparent */
}

.about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

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

.about-text p {
    font-size: 1.125rem;
    line-height: 1.8;
}

/* Statistics section removed */

/* Modern Timeline */
.modern-timeline-container {
    margin-top: 3rem;
    position: relative;
    padding: 0 1rem;
}

.modern-timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.timeline-section {
    margin-bottom: 2rem;
}

.timeline-section-title {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
    padding-bottom: 8px;
}

.timeline-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.modern-timeline-item {
    display: flex;
    margin-bottom: 2rem;
    position: relative;
    transition: all 0.3s ease;
}

.timeline-year {
    min-width: 100px;
    padding: 6px 0;
    font-family: var(--font-mono);
    font-weight: 600;
    color: var(--primary-color);
    position: relative;
    letter-spacing: -0.01em;
}

.timeline-connector {
    position: relative;
    width: 20px;
    margin: 0 1rem;
}

.timeline-connector::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 50%;
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 2;
    transition: all 0.3s ease;
}

.timeline-connector::after {
    content: '';
    position: absolute;
    top: 20px;
    bottom: -30px;
    left: 50%;
    width: 2px;
    background: var(--border-color);
    transform: translateX(-50%);
}

.modern-timeline-item:last-child .timeline-connector::after {
    display: none;
}

.modern-timeline-content {
    flex: 1;
    background: var(--background);
    border-radius: 8px;
    padding: 1.5rem;
    border-left: 3px solid var(--primary-color);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.modern-timeline-content h4 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.timeline-details {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.timeline-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: rgba(128, 128, 128, 0.1);
    color: var(--primary-color);
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: -0.01em;
}

.timeline-institution {
    display: block;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.timeline-duration {
    display: block;
    color: var(--text-light);
    font-size: 0.85rem;
    margin-top: 0.5rem;
    font-style: italic;
}

/* Hover effects */
.modern-timeline-item:hover .modern-timeline-content {
    transform: translateX(5px);
    box-shadow: var(--shadow);
}

.modern-timeline-item:hover .timeline-connector::before {
    transform: translateX(-50%) scale(1.3);
    box-shadow: 0 0 0 4px rgba(128, 128, 128, 0.2);
}

/* Dark mode adjustments */
body.dark-mode .modern-timeline-content {
    background: #1A2540; /* Slightly lighter navy */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .modern-timeline-item {
        flex-direction: column;
    }
    
    .timeline-year {
        min-width: auto;
        margin-bottom: 1rem;
    }
    
    .timeline-connector {
        display: none;
    }
    
    .modern-timeline-content {
        width: 100%;
    }
}

.timeline-heading {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
    width: 100%;
}

.timeline-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    width: 4px;
    background: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
    opacity: 0.3;
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 10px 40px;
    box-sizing: border-box;
    transition: all 0.5s ease;
    opacity: 1; /* Changed from 0 to ensure visibility */
    transform: translateY(0); /* Changed from 50px to ensure visibility */
}

.timeline-item.animate {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
}

.timeline-item::before {
    content: attr(data-year);
    position: absolute;
    width: 60px;
    height: 30px;
    background: var(--primary-color);
    color: white;
    top: 15px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.4s ease;
}

.timeline-item:hover::before {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(128, 128, 128, 0.5);
}

.timeline-item:nth-child(odd)::before {
    right: -20px;
}

.timeline-item:nth-child(even)::before {
    left: -20px;
}

.timeline-content {
    padding: 20px;
    background: var(--background);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s ease;
    border: 1px solid transparent;
    position: relative;
    max-width: 100%;
}

.timeline-item:hover .timeline-content {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
    border-color: var(--primary-color);
}

.timeline-content h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.25rem;
    font-weight: 600;
}

.timeline-content p {
    color: var(--text-light);
    margin-bottom: 15px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.timeline-date {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 2px 8px;
    background-color: rgba(128, 128, 128, 0.1);
    border-radius: 4px;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    top: 20px;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(128, 128, 128, 0.2);
    transition: all 0.4s ease;
}

.timeline-item:hover::after {
    transform: scale(1.2);
    box-shadow: 0 0 0 6px rgba(128, 128, 128, 0.3);
}

.timeline-item:nth-child(odd)::after {
    right: -10px;
}

.timeline-item:nth-child(even)::after {
    left: -10px;
}

body.dark-mode .timeline-content {
    background: #1A2540; /* Slightly lighter navy */
}

@media (max-width: 768px) {
    .timeline::before {
        left: 40px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 80px;
        padding-right: 0;
        left: 0 !important;
        text-align: left !important;
    }
    
    .timeline-item::before {
        left: 10px !important;
        right: auto !important;
    }
    
    .timeline-item::after {
        left: 30px !important;
        right: auto !important;
    }
}

.about-info {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-light);
}

.info-item i {
    color: var(--primary-color);
    font-size: 1.25rem;
}

.about-image {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.about-image::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--primary-color);
    border-radius: 8px;
    z-index: -1;
}

/* ========================================
   Skills Section
======================================== */

.skills {
    padding: var(--section-padding);
    background-color: transparent !important; /* Force transparent */
}

body.dark-mode .skills {
    background: transparent !important; /* Force transparent */
}

.skills-container {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.skills-category {
    margin-bottom: 1rem;
}

.category-title {
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    padding-bottom: 0.5rem;
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.category-title i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.skill-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: var(--background-alt);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--text-dark);
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.skill-tag i {
    margin-right: 0.5rem;
    color: var(--primary-color);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.skill-tag:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    background: rgba(var(--background-rgb), 0.8);
}

.skill-tag:hover i {
    transform: scale(1.1);
}

/* Tooltip for skill details */
.skill-tag::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-5px);
    background: var(--text-dark);
    color: var(--background);
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
    pointer-events: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.skill-tag::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(3px);
    border: 6px solid transparent;
    border-top-color: var(--text-dark);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
    pointer-events: none;
}

.skill-tag:hover::before,
.skill-tag:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Dark mode adjustments */
body.dark-mode .skill-tag {
    background: #1A2540; /* Slightly lighter navy */
    border: 1px solid rgba(108, 138, 192, 0.15); /* Subtle primary color border */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

body.dark-mode .skill-tag:hover {
    background: #1F2A48; /* Even lighter navy on hover */
    box-shadow: 0 4px 10px rgba(9, 17, 36, 0.3);
}

body.dark-mode .skill-tag::before {
    background: var(--background);
    color: var(--text-dark);
}

body.dark-mode .skill-tag::after {
    border-top-color: var(--background);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .skills-tags {
        justify-content: center;
    }
    
    .category-title {
        display: block;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
    
    .category-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

/* ========================================
    Projects Section
======================================== */

.projects {
    padding: var(--section-padding);
    background-color: transparent !important; /* Force transparent */
}

body.dark-mode .projects {
    background: transparent !important; /* Force transparent */
}

/* Project Spotlight Layout */
.project-spotlight {
    margin-bottom: 6rem;
    position: relative;
}

.project-spotlight:last-child {
    margin-bottom: 2rem;
}

.project-spotlight-header {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.project-spotlight-title {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.project-number {
    font-family: var(--font-mono);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    opacity: 0.2;
    line-height: 1;
}

.project-spotlight-title h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
    position: relative;
}

.project-spotlight-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding-top: 0.5rem;
}

.project-tag {
    display: inline-block;
    padding: 0.4rem 1rem;
    background-color: rgba(71, 85, 105, 0.08);
    color: var(--primary-color);
    border-radius: 50px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: var(--transition);
}

.project-tag:hover {
    background-color: rgba(71, 85, 105, 0.15);
    transform: translateY(-2px);
}

body.dark-mode .project-tag {
    background-color: rgba(108, 138, 192, 0.15);
    color: var(--text-dark);
}

body.dark-mode .project-tag:hover {
    background-color: rgba(108, 138, 192, 0.25);
}

.project-spotlight-content {
    position: relative;
}

.project-spotlight-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

/* Project Overview Section */
.project-overview {
    background: var(--background-alt);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    position: relative;
    transition: var(--transition);
}

.project-overview:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.project-overview p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* Project Metrics */
.project-metrics {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.metric {
    background-color: var(--background);
    border-radius: 12px;
    padding: 1rem;
    flex: 1;
    min-width: 100px;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.metric:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.metric-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-family: var(--font-mono);
}

.metric-label {
    font-size: 0.75rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

body.dark-mode .metric {
    background-color: #1A2540;
}

/* Project Impact Box */
.project-impact-box {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: rgba(71, 85, 105, 0.05);
    padding: 1.25rem;
    border-radius: 12px;
    border-left: 3px solid var(--primary-color);
}

.project-impact-box .impact-icon {
    background: var(--primary-color);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.project-impact-box .impact-icon i {
    font-size: 0.9rem;
}

.project-impact-box h4 {
    color: var(--text-dark);
    font-size: 1.1rem;
    margin: 0 0 0.5rem 0;
    font-weight: 600;
}

.project-impact-box p {
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
    color: var(--text-light);
}

body.dark-mode .project-impact-box {
    background: rgba(108, 138, 192, 0.1);
}

/* Project Details Section */
.project-details {
    position: relative;
}

/* Accordion Style */
.project-accordion {
    background: var(--background-alt);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.accordion-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

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

.accordion-header {
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
    color: var(--text-dark);
    font-size: 1.1rem;
}

.accordion-header i:first-child {
    margin-right: 0.5rem;
    color: var(--primary-color);
    font-size: 0.9rem;
}

.accordion-icon {
    transition: transform 0.3s ease;
    font-size: 0.8rem;
    color: var(--text-light);
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out, padding 0.3s ease-in-out;
    background: var(--background);
    padding: 0 1.5rem;
    opacity: 0;
}

.accordion-item.active .accordion-content {
    max-height: 1000px; /* Ensure it's large enough for all content */
    padding: 1rem 1.5rem 1.5rem;
    opacity: 1;
    transition: max-height 0.5s ease-in-out, padding 0.3s ease-in-out, opacity 0.3s ease;
}

body.dark-mode .accordion-header {
    border-bottom: 1px solid rgba(108, 138, 192, 0.1);
}

body.dark-mode .accordion-content {
    background: #1A2540;
}

/* Project List */
.project-list {
    margin: 0;
    padding-left: 1.5rem;
}

.project-list li {
    margin-bottom: 0.75rem;
    position: relative;
    line-height: 1.6;
    color: var(--text-light);
    font-size: 0.9rem;
}

.project-list li:last-child {
    margin-bottom: 0;
}

.project-list li::before {
    content: '▹';
    position: absolute;
    left: -1.5rem;
    color: var(--primary-color);
    font-size: 1rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .project-spotlight-main {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .project-spotlight-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .project-number {
        font-size: 2rem;
    }
    
    .project-spotlight-title h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .project-spotlight {
        margin-bottom: 4rem;
    }
    
    .project-spotlight-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .project-metrics {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .metric {
        min-width: calc(33.333% - 0.75rem);
    }
    
    .project-impact-box {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
}

.project-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(71, 85, 105, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    opacity: 0;
    transition: var(--transition);
}

body.dark-mode .project-overlay {
    background: rgba(19, 27, 46, 0.85); /* Deep navy with opacity */
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-link {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    color: var(--primary-color);
    border-radius: 50%;
    transform: translateY(20px);
    transition: var(--transition);
    font-size: 1.2rem;
}

.project-card:hover .project-link {
    transform: translateY(0);
}

.project-link:hover {
    background: var(--primary-color);
    color: white;
}

/* Responsive adjustments for projects section */
@media (max-width: 768px) {
    .project-card {
        border-left: none;
        border-top: 5px solid transparent;
    }
    
    .project-card:hover {
        border-left: none;
        border-top: 5px solid var(--primary-color);
    }
    
    .project-header {
        padding: 1.2rem 1.5rem;
    }
    
    .project-title {
        font-size: 1.4rem;
    }
    
    .project-content {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .project-badge {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }
}

/* ========================================
   Sections
======================================== */

section {
    padding: var(--section-padding);
    position: relative;
    background-color: transparent !important; /* Force transparent */
    z-index: 0; /* Same level as other content */
    margin: 0; /* Remove any margin */
    border: none; /* Ensure no borders */
}

body.dark-mode .contact {
    background: transparent !important; /* Force transparent */
}

.contact-subtitle {
    text-align: center;
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 3rem;
}

.contact-content-centered {
    display: flex;
    justify-content: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    background: var(--background-alt);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    min-width: 380px;
    border: 1px solid transparent;
}

.contact-info:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--primary-color);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 0.5rem 0;
    transition: var(--transition);
    border-radius: 8px;
}

.contact-item:hover {
    transform: translateX(10px);
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(6, 182, 212, 0.05);
    border-radius: 50%;
    transition: var(--transition);
}

.contact-item:hover i {
    transform: scale(1.05);
    background-color: var(--primary-color);
    color: white;
}

.contact-item h4 {
    margin-bottom: 0.25rem;
    font-size: 1.2rem;
    color: var(--text-dark);
}

.contact-item p {
    margin: 0;
    color: var(--text-light);
    font-size: 0.95rem;
    font-family: var(--font-mono);
    letter-spacing: -0.01em;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group {
    position: relative;
}

.form-feedback {
    color: #ef4444;
    font-size: 0.8rem;
    margin-top: 5px;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

input.invalid,
textarea.invalid {
    border-color: #ef4444 !important;
    background-color: rgba(239, 68, 68, 0.05);
}

input.invalid + .form-feedback,
textarea.invalid + .form-feedback {
    opacity: 1;
    transform: translateY(0);
}

input.valid,
textarea.valid {
    border-color: #10b981 !important;
    background-color: rgba(16, 185, 129, 0.05);
}

.form-success-message {
    background-color: rgba(16, 185, 129, 0.1);
    border: 1px solid #10b981;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    animation: fadeIn 0.5s ease;
}

.form-success-message i {
    font-size: 3rem;
    color: #10b981;
    margin-bottom: 1rem;
}

.form-success-message h3 {
    margin-bottom: 0.5rem;
}

.contact-form {
    transition: opacity 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========================================
   Footer
======================================== */

.footer {
    background: transparent !important; /* Force transparent */
    padding: 2rem 0;
    text-align: center;
    position: relative;
    z-index: 0;
}

.footer-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.footer p {
    margin-bottom: 1rem;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* Custom Cursor Effects */
a, button, .skill-item, .nav-item, .theme-toggle, .nav-toggle {
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

a::after, button::after, .skill-item::after, .nav-item::after, .theme-toggle::after, .nav-toggle::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: radial-gradient(circle at center, var(--primary-color) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: -1;
}

a:hover::after, button:hover::after, .skill-item:hover::after, 
.nav-item:hover::after, .theme-toggle:hover::after, .nav-toggle:hover::after {
    opacity: 0.1;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.8); opacity: 0.1; }
    50% { transform: scale(1.2); opacity: 0.2; }
    100% { transform: scale(0.8); opacity: 0.1; }
}

/* ========================================
    Scroll to Top Button
======================================= */

.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: var(--transition);
    z-index: 999;
}

.scroll-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

.scroll-to-top.show {
    display: flex;
}

/* ========================================
    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 Animations */
section {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.skill-category,
.project-card,
.about-content,
.contact-content {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Typing Effect */
.hero-title {
    border-right: 0;
    animation: none; /* Remove CSS animation to let JS handle typing */
}

.hero-title.typing {
    animation: none;
}
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* ========================================
   Responsive Design
======================================== */

@media (max-width: 1024px) {
    .hero-container {
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-social {
        justify-content: center;
    }
    
    .about-content {
        align-items: center;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 80px 0;
    }

    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.4rem; }

    .nav-list {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--background);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
        padding: 2rem 0;
        margin: 0;
    }

    .nav-list.active {
        left: 0;
    }

    .nav-list {
        flex-direction: column;
    }

    .nav-toggle {
        display: block;
    }

    .hero {
        padding: 100px 0 60px;
    }

    .hero-title {
        font-size: 2.2rem;
        margin-bottom: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    .hero-description {
        font-size: 1rem;
        margin-bottom: 2.5rem;
    }

    .hero-image img {
        width: 200px;
        height: 200px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 1.5rem;
        margin-bottom: 2rem;
    }

    .btn {
        width: 100%;
        text-align: center;
        padding: 14px 30px;
    }

    .hero-social {
        gap: 1rem;
    }

    .social-link {
        width: 45px;
        height: 45px;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .skill-category {
        padding: 1.5rem;
    }

    .skill-list {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .skill-item {
        padding: 1rem;
    }

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

    .contact-info {
        gap: 1.5rem;
    }

    .contact-form {
        gap: 1.25rem;
    }

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

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
}