/* ==========================================================================
   CSS VARIABLES & THEME SETUP
   ========================================================================== */
:root {
    /* Light Theme (Default fallback) */
    --primary-color: #3b82f6;
    --primary-hover: #2563eb;
    --secondary-color: #10b981;
    --bg-color: #f8fafc;
    --bg-alt: #f1f5f9;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border-color: rgba(15, 23, 42, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    
    /* Typography */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    /* Spacing & Layout */
    --container-width: 1200px;
    --nav-height: 80px;
    --section-padding: 100px 0;
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

[data-theme="dark"] {
    /* Dark Theme (Default per requirements) */
    --primary-color: #60a5fa;
    --primary-hover: #3b82f6;
    --secondary-color: #34d399;
    --bg-color: #0f172a;
    --bg-alt: #1e293b;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: rgba(248, 250, 252, 0.1);
    --glass-bg: rgba(15, 23, 42, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   RESET & BASE STYLES (MOBILE-FIRST BASE)
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    /* FIX: Prevents horizontal scrolling on all devices */
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    /* FIX: Double protection against horizontal scrolling */
    overflow-x: hidden;
    max-width: 100vw;
    transition: background-color var(--transition-normal), color var(--transition-normal);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Selection */
::selection {
    background-color: var(--primary-color);
    color: white;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 60px 0;
}

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

/* ==========================================================================
   TYPOGRAPHY & UTILITIES
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    font-weight: 700;
}

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

.section-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: inline-block;
    position: relative;
}

.section-line {
    height: 4px;
    width: 60px;
    background: var(--primary-color);
    margin: 0 auto;
    border-radius: 2px;
}

/* Glassmorphism utility */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 16px;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.hover-lift {
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: width var(--transition-normal);
    z-index: -1;
}

.btn:hover::before {
    width: 100%;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-main);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-block {
    width: 100%;
}

/* ==========================================================================
   CUSTOM CURSOR
   ========================================================================== */
@media (pointer: fine) {
    .cursor-dot, .cursor-outline {
        position: fixed;
        top: 0;
        left: 0;
        transform: translate(-50%, -50%);
        border-radius: 50%;
        z-index: 9999;
        pointer-events: none;
    }
    
    .cursor-dot {
        width: 8px;
        height: 8px;
        background-color: var(--primary-color);
    }
    
    .cursor-outline {
        width: 40px;
        height: 40px;
        border: 2px solid var(--primary-color);
        transition: width 0.2s, height 0.2s;
    }
    
    .cursor-hover .cursor-outline {
        width: 60px;
        height: 60px;
        background-color: rgba(59, 130, 246, 0.1);
    }
    
    .cursor-hover .cursor-dot {
        transform: translate(-50%, -50%) scale(0.5);
    }
}

/* ==========================================================================
   PRELOADER
   ========================================================================== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader {
    width: 48px;
    height: 48px;
    border: 5px solid var(--border-color);
    border-bottom-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* ==========================================================================
   SCROLL PROGRESS
   ========================================================================== */
.scroll-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    z-index: 1001;
}

.scroll-progress-bar {
    height: 100%;
    background: var(--primary-color);
    width: 0%;
}

/* ==========================================================================
   NAVBAR (MOBILE FIRST BASE)
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: transparent;
    transition: all var(--transition-normal);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.navbar.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    height: 70px;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    font-family: var(--font-mono);
    display: flex;
    align-items: center;
}

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

.logo-text {
    color: var(--text-main);
    margin: 0 2px;
}

.nav-menu {
    position: fixed;
    top: var(--nav-height);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--nav-height));
    background: var(--bg-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: left 0.3s ease;
}

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

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

.nav-link {
    font-weight: 500;
    font-size: 1.2rem;
    position: relative;
    padding: 0.5rem 0;
    transition: color var(--transition-fast);
}

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

.nav-link:hover, .nav-link.active {
    color: var(--primary-color);
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.theme-toggle {
    font-size: 1.2rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: background-color var(--transition-fast);
}

.theme-toggle:hover {
    background-color: var(--border-color);
}

[data-theme="dark"] .dark-icon { display: none; }
[data-theme="light"] .light-icon { display: none; }

.hamburger {
    display: block;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
}

.hamburger .bar {
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: var(--text-main);
    transition: all 0.3s ease;
    left: 0;
}

.hamburger .bar:nth-child(1) { top: 0; }
.hamburger .bar:nth-child(2) { top: 9px; }
.hamburger .bar:nth-child(3) { top: 18px; }

.hamburger.active .bar:nth-child(1) { top: 9px; transform: rotate(45deg); }
.hamburger.active .bar:nth-child(2) { opacity: 0; }
.hamburger.active .bar:nth-child(3) { top: 9px; transform: rotate(-45deg); }

/* ==========================================================================
   HERO SECTION (MOBILE FIRST BASE)
   ========================================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: var(--nav-height);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.6;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-color) 0%, rgba(15, 23, 42, 0.4) 100%);
    z-index: -1;
}

/* ==========================================================================
   LIGHT MODE OVERRIDES FOR HERO SECTION
   ========================================================================== */
/* 1. Swap Image via CSS */
[data-theme="light"] .hero-bg-img {
    content: url('assets/images/hero-bg2.jpeg');
    opacity: 1; /* Make it fully visible */
}

/* 2. Remove the Fog Effect entirely */
[data-theme="light"] .hero-bg-overlay {
    display: none;
}

/* 3. Text contrast & legibility adjustments for Light Mode */
[data-theme="light"] .hero-title {
    background: none; /* Remove gradient */
    -webkit-text-fill-color: var(--text-main); /* Force solid color */
    color: var(--text-main);
    text-shadow: 0 4px 15px rgba(255, 255, 255, 0.9), 0 0 30px rgba(255, 255, 255, 0.6); /* White glow */
}

[data-theme="light"] .hero-subtitle,
[data-theme="light"] .hero-description {
    color: var(--text-main);
    font-weight: 600; /* Make text bolder to combat background noise */
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.9), 0 0 15px rgba(255, 255, 255, 0.6);
}

[data-theme="light"] .hero-greeting {
    background: rgba(255, 255, 255, 0.85); /* Semi-transparent white pill */
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* ==========================================================================
   RESUME NORMAL HERO STYLES
   ========================================================================== */

.hero-content {
    max-width: 800px;
}

.hero-greeting {
    display: inline-block;
    font-family: var(--font-mono);
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    background: rgba(59, 130, 246, 0.1);
    padding: 0.3rem 1rem;
    border-radius: 20px;
    transition: all var(--transition-normal);
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
    background: linear-gradient(90deg, var(--text-main), var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all var(--transition-normal);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    height: 1.2em;
    transition: all var(--transition-normal);
}

.typing-text {
    color: var(--primary-color);
}

.typing-cursor {
    color: var(--text-main);
    animation: blink 1s step-end infinite;
}

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

.hero-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 2.5rem;
    transition: all var(--transition-normal);
}

.hero-cta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 3rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    font-size: 1.2rem;
    transition: all var(--transition-normal);
}

.social-icon:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-20px) translateX(-50%); }
    60% { transform: translateY(-10px) translateX(-50%); }
}

.mouse {
    width: 25px;
    height: 40px;
    border: 2px solid var(--text-muted);
    border-radius: 15px;
    position: relative;
}

.wheel {
    width: 3px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% { top: 6px; opacity: 1; }
    100% { top: 20px; opacity: 0; }
}

/* ==========================================================================
   ABOUT SECTION (MOBILE FIRST BASE)
   ========================================================================== */
.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
    max-width: 400px;
    margin: 0 auto;
}

.about-image-frame {
    position: relative;
    border-radius: 20px;
    z-index: 1;
}

.about-image {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    position: relative;
    z-index: 2;
    aspect-ratio: 4/5;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.about-image:hover {
    transform: scale(1.02);
}

.about-image-backdrop {
    position: absolute;
    top: 20px;
    right: -20px;
    bottom: -20px;
    left: 20px;
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    z-index: 0;
    transition: all var(--transition-normal);
}

.about-image-frame:hover .about-image-backdrop {
    top: 10px;
    right: -10px;
    bottom: -10px;
    left: 10px;
}

.about-heading {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.about-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 3rem;
}

.stat-card {
    padding: 1.5rem;
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-family: var(--font-mono);
}

.stat-number::after {
    content: '+';
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ==========================================================================
   SKILLS SECTION (MOBILE FIRST BASE)
   ========================================================================== */
.skills-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.skill-category {
    padding: 2rem;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.category-icon {
    font-size: 1.8rem;
    color: var(--primary-color);
    background: rgba(59, 130, 246, 0.1);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.category-title {
    font-size: 1.5rem;
}

.skill-item {
    margin-bottom: 1.5rem;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.skill-name {
    font-weight: 500;
}

.skill-percentage {
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.progress-bar-bg {
    width: 100%;
    height: 8px;
    background-color: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 4px;
    width: 0;
    transition: width 1.5s cubic-bezier(0.1, 0.5, 0.1, 1);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.skill-tag {
    background: var(--bg-alt);
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

.skill-tag:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* ==========================================================================
   PROJECTS SECTION (MOBILE FIRST BASE)
   ========================================================================== */
.project-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-color);
    font-weight: 500;
    transition: all var(--transition-fast);
}

.filter-btn:hover, .filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

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

.project-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.project-img-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
}

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

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

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

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

.project-links {
    display: flex;
    gap: 1rem;
    transform: translateY(20px);
    transition: transform var(--transition-normal);
}

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

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

.project-link:hover {
    background: var(--primary-hover);
    transform: scale(1.1);
}

.project-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.project-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-tag {
    font-size: 0.8rem;
    color: var(--primary-color);
    background: rgba(59, 130, 246, 0.1);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-family: var(--font-mono);
}

/* ==========================================================================
   SERVICES SECTION (MOBILE FIRST BASE)
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.service-card {
    padding: 2.5rem 2rem;
    text-align: center;
}

.service-icon-wrapper {
    width: 70px;
    height: 70px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: transform var(--transition-normal);
}

.service-icon {
    font-size: 2rem;
    color: var(--primary-color);
}

.service-card:hover .service-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
    background: var(--primary-color);
}

.service-card:hover .service-icon {
    color: white;
}

.service-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.service-desc {
    color: var(--text-muted);
    font-size: 1rem;
}

/* ==========================================================================
   CONTACT SECTION (MOBILE FIRST BASE)
   ========================================================================== */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.contact-heading {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact-desc {
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

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

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.contact-icon {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.contact-text {
    display: flex;
    flex-direction: column;
}

.contact-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}

.contact-value {
    font-weight: 600;
    font-size: 1.1rem;
}

.contact-form-wrapper {
    padding: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-main);
}

.form-input, .form-textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    background: var(--bg-alt);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

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

.error-message {
    color: #ef4444;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    display: none;
}

.form-group.error .form-input,
.form-group.error .form-textarea {
    border-color: #ef4444;
}

.form-group.error .error-message {
    display: block;
}

.form-success {
    display: none;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 8px;
    margin-top: 1.5rem;
}

.form-success.show {
    display: flex;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    background: var(--bg-alt);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border-color);
    position: relative;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 800;
    font-family: var(--font-mono);
    margin-bottom: 1rem;
}

.footer-text {
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 400px;
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid var(--border-color);
    width: 100%;
    padding-top: 2rem;
}

.back-to-top {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3);
    transition: all var(--transition-bounce);
}

.back-to-top:hover {
    transform: translate(-50%, -10px);
    background: var(--primary-hover);
}

/* ==========================================================================
   ANIMATIONS & REVEAL EFFECTS
   ========================================================================== */
.reveal-up {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-up.active,
.reveal-left.active,
.reveal-right.active {
    opacity: 1;
    transform: translate(0);
}

/* ==========================================================================
   MEDIA QUERIES (RESPONSIVENESS - MOBILE FIRST)
   ========================================================================== */

/* Small Tablets */
@media screen and (min-width: 576px) {
    .skills-grid, .projects-grid, .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Tablets and Small Desktops */
@media screen and (min-width: 768px) {
    .container {
        padding: 0 2rem;
    }
    
    .section {
        padding: 80px 0;
    }

    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-cta {
        flex-direction: row;
    }
    
    /* Display Desktop Nav */
    .hamburger {
        display: none;
    }
    
    .nav-menu {
        position: static;
        width: auto;
        height: auto;
        background: transparent;
        display: flex;
        flex-direction: row;
    }
    
    .nav-list {
        flex-direction: row;
        gap: 2.5rem;
    }
    
    .nav-link {
        font-size: 0.95rem;
    }
}

/* Large Desktops */
@media screen and (min-width: 992px) {
    .section {
        padding: var(--section-padding);
    }
    
    .hero-title {
        font-size: clamp(3rem, 8vw, 5.5rem);
    }
    
    .hero-subtitle {
        font-size: clamp(1.5rem, 4vw, 3rem);
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .about-content {
        grid-template-columns: 1fr 1.2fr;
        gap: 4rem;
    }
    
    .about-image-wrapper {
        max-width: none;
        margin: 0;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr 1.5fr;
        gap: 4rem;
    }
    
    .contact-form-wrapper {
        padding: 3rem;
    }
}