/* ========================================
   DESIGN SYSTEM & VARIABLES
   ======================================== */
:root {
    /* Colors — Charcoal & Steel Blue (Dark) */
    --navy-900: #0a0a0f;
    --navy-800: #111117;
    --navy-700: #1a1a22;
    --navy-600: #24242e;
    --navy-500: #30303c;
    --navy-400: #48485a;
    --navy-300: #62627a;
    --navy-200: #8888a0;
    --navy-100: #b0b0c4;

    --gold-500: #7b8fad;
    --gold-400: #8da1bd;
    --gold-300: #a0b3cc;
    --gold-200: #bcc8da;
    --gold-100: #d6dfe8;
    --gold-glow: rgba(123, 143, 173, 0.18);

    --white: #ededf0;
    --gray-100: #d8d8de;
    --gray-200: #b8b8c4;
    --gray-300: #8a8a9a;
    --gray-400: #606070;
    --gray-500: #444452;

    /* Hardcoded overrideable */
    --bg-glass: rgba(10, 10, 15, 0.92);
    --bg-card: rgba(14, 14, 20, 0.5);
    --bg-input: rgba(10, 10, 15, 0.6);
    --bg-overlay: rgba(10, 10, 15, 0.85);
    --border-subtle: rgba(255, 255, 255, 0.05);
    --border-accent: rgba(123, 143, 173, 0.12);
    --accent-bg: rgba(123, 143, 173, 0.1);
    --accent-hover: rgba(123, 143, 173, 0.08);
    --btn-primary-text: var(--navy-900);

    /* Typography */
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Playfair Display', Georgia, serif;

    /* Spacing */
    --section-padding: 100px 0;
    --container-width: 1200px;
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --border-radius-lg: 20px;

    /* Transitions */
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   LIGHT THEME
   ======================================== */
[data-theme="light"] {
    --navy-900: #f5f5f7;
    --navy-800: #eeeef2;
    --navy-700: #e4e4ea;
    --navy-600: #d8d8e0;
    --navy-500: #c8c8d2;
    --navy-400: #a0a0b0;
    --navy-300: #808092;
    --navy-200: #606070;
    --navy-100: #404050;

    --gold-500: #4a6080;
    --gold-400: #5a7090;
    --gold-300: #3a506a;
    --gold-200: #2a4058;
    --gold-100: #1a3048;
    --gold-glow: rgba(74, 96, 128, 0.15);

    --white: #1a1a24;
    --gray-100: #2a2a38;
    --gray-200: #3a3a4a;
    --gray-300: #5a5a6a;
    --gray-400: #8a8a98;
    --gray-500: #a0a0b0;

    --bg-glass: rgba(245, 245, 247, 0.92);
    --bg-card: rgba(230, 230, 238, 0.6);
    --bg-input: rgba(255, 255, 255, 0.8);
    --bg-overlay: rgba(245, 245, 247, 0.9);
    --border-subtle: rgba(0, 0, 0, 0.06);
    --border-accent: rgba(74, 96, 128, 0.15);
    --accent-bg: rgba(74, 96, 128, 0.08);
    --accent-hover: rgba(74, 96, 128, 0.06);
    --btn-primary-text: #ffffff;
}

/* ========================================
   THEME TOGGLE
   ======================================== */
.theme-toggle {
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-200);
    font-size: 1rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    margin-left: 8px;
}

.theme-toggle:hover {
    background: var(--accent-bg);
    color: var(--gold-500);
    transform: scale(1.1);
}

.theme-icon-dark,
.theme-icon-light {
    position: absolute;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.theme-icon-light {
    opacity: 0;
    transform: rotate(180deg) scale(0);
}

[data-theme="light"] .theme-icon-dark {
    opacity: 0;
    transform: rotate(-180deg) scale(0);
}

[data-theme="light"] .theme-icon-light {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

/* Light theme — gradient overrides */
[data-theme="light"] .hero {
    background: radial-gradient(ellipse at 50% 50%, var(--navy-700) 0%, var(--navy-900) 70%);
}

[data-theme="light"] .shape-1 { background: var(--gold-500); }
[data-theme="light"] .shape-2 { background: var(--navy-400); }
[data-theme="light"] .shape-3 { background: var(--gold-400); }

[data-theme="light"] .project-gradient-1 { background: linear-gradient(135deg, #d0d4e8, #bcc2da, #c8cce0); }
[data-theme="light"] .project-gradient-2 { background: linear-gradient(135deg, #d4d0e8, #c2bcd8, #ccc8e0); }
[data-theme="light"] .project-gradient-3 { background: linear-gradient(135deg, #ccd4e4, #b8c4d8, #c0c8dc); }
[data-theme="light"] .project-gradient-4 { background: linear-gradient(135deg, #d8d0e8, #c8bcda, #d0c8e0); }
[data-theme="light"] .project-gradient-5 { background: linear-gradient(135deg, #ccd8dc, #b8c8d0, #c0ccd4); }
[data-theme="light"] .project-gradient-6 { background: linear-gradient(135deg, #d8d8cc, #ccccc0, #d4d4c8); }

[data-theme="light"] .hamburger,
[data-theme="light"] .hamburger::before,
[data-theme="light"] .hamburger::after {
    background: var(--white);
}

[data-theme="light"] .social-link:hover {
    background: var(--gold-500);
    color: #ffffff;
    border-color: var(--gold-500);
}

/* ========================================
   RESET & BASE
   ======================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    background-color: var(--navy-900);
    color: var(--gray-100);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.4s ease, color 0.4s ease;
}

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

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

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

.text-gold {
    color: var(--gold-500);
}

/* ========================================
   SECTION STYLES
   ======================================== */
.section {
    padding: var(--section-padding);
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-subtitle {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gold-500);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
    color: var(--btn-primary-text);
    box-shadow: 0 4px 20px var(--gold-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(123, 143, 173, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--gold-500);
    border: 2px solid var(--gold-500);
}

.btn-outline:hover {
    background: var(--gold-500);
    color: var(--navy-900);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* ========================================
   NAVBAR
   ======================================== */
.navbar {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: calc(100% - 48px);
    max-width: 900px;
    padding: 10px 24px;
    border-radius: 50px;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.navbar.scrolled {
    top: 10px;
    padding: 8px 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

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

.nav-logo {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 1px;
}

.logo-accent {
    color: var(--gold-500);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.nav-link {
    padding: 8px 18px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-200);
    border-radius: 50px;
    transition: var(--transition);
}

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

.nav-link.active {
    background: var(--accent-bg);
}

/* Hamburger */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    position: relative;
    transition: var(--transition);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: var(--transition);
}

.hamburger::before { top: -7px; }
.hamburger::after { bottom: -7px; }

.nav-toggle.active .hamburger {
    background: transparent;
}

.nav-toggle.active .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.nav-toggle.active .hamburger::after {
    transform: rotate(-45deg);
    bottom: 0;
}

/* ========================================
   HERO
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: radial-gradient(ellipse at 50% 50%, var(--navy-700) 0%, var(--navy-900) 70%);
}

.hero-bg-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
}

.shape-1 {
    width: 500px;
    height: 500px;
    background: var(--gold-500);
    top: -100px;
    right: -100px;
    animation: float 15s ease-in-out infinite;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: var(--navy-400);
    bottom: -50px;
    left: -100px;
    animation: float 20s ease-in-out infinite reverse;
}

.shape-3 {
    width: 300px;
    height: 300px;
    background: var(--gold-400);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: float 18s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(20px, 10px) scale(1.02); }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 24px;
}

.hero-greeting {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--gold-500);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.hero-name {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 8vw, 5.5rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 16px;
}

.hero-tagline {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-weight: 300;
    color: var(--gray-200);
    margin-bottom: 20px;
}

.separator {
    color: var(--gold-500);
    margin: 0 4px;
}

.hero-description {
    font-size: 1.0625rem;
    color: var(--gray-300);
    max-width: 560px;
    margin: 0 auto 36px;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.hero-social {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.social-link {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--gray-200);
    transition: var(--transition);
}

.social-link:hover {
    background: var(--gold-500);
    color: var(--navy-900);
    border-color: var(--gold-500);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px var(--gold-glow);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--gray-300);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
    opacity: 0.6;
    transition: var(--transition);
}

.mouse:hover {
    border-color: var(--gold-500);
    opacity: 1;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--gold-500);
    border-radius: 4px;
    animation: scrollWheel 1.8s ease-in-out infinite;
}

@keyframes scrollWheel {
    0% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(12px); }
}

/* ========================================
   ABOUT
   ======================================== */
.about {
    background: var(--navy-800);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 60px;
    align-items: center;
}

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

.about-img-placeholder {
    width: 100%;
    aspect-ratio: 4/5;
    background: linear-gradient(135deg, var(--navy-600), var(--navy-700));
    border-radius: var(--border-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: var(--navy-400);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.about-img-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 40%, var(--accent-hover));
    border-radius: var(--border-radius-lg);
}

.about-img-border {
    position: absolute;
    bottom: -15px;
    right: -15px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--gold-500);
    border-radius: var(--border-radius-lg);
    z-index: 0;
    opacity: 0.4;
}

.about-heading {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.3;
}

.about-text {
    color: var(--gray-300);
    margin-bottom: 16px;
    font-size: 1rem;
    line-height: 1.8;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 36px 0;
    padding: 28px;
    background: var(--bg-card);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-accent);
}

.stat {
    text-align: center;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--gold-500);
    display: inline;
}

.stat-plus {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--gold-500);
}

.stat-label {
    display: block;
    font-size: 0.8125rem;
    color: var(--gray-300);
    margin-top: 4px;
    font-weight: 500;
}

/* ========================================
   PROJECTS
   ======================================== */
.projects {
    background: var(--navy-900);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.project-card {
    border-radius: var(--border-radius);
    overflow: hidden;
    background: var(--navy-800);
    border: 1px solid var(--border-subtle);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-accent);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.project-image {
    height: 220px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.project-icon {
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.3);
    z-index: 1;
    transition: var(--transition);
}

.project-card:hover .project-icon {
    transform: scale(1.1);
    color: rgba(255, 255, 255, 0.5);
}

/* Project gradient backgrounds */
.project-gradient-1 { background: linear-gradient(135deg, #141420, #1e2030, #181828); }
.project-gradient-2 { background: linear-gradient(135deg, #18181e, #222230, #14141c); }
.project-gradient-3 { background: linear-gradient(135deg, #121218, #1c2028, #101018); }
.project-gradient-4 { background: linear-gradient(135deg, #1a161e, #262030, #161220); }
.project-gradient-5 { background: linear-gradient(135deg, #14181a, #1e2628, #101618); }
.project-gradient-6 { background: linear-gradient(135deg, #181814, #262620, #1a1a14); }

.project-overlay {
    position: absolute;
    inset: 0;
    background: var(--bg-overlay);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

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

.project-links {
    display: flex;
    gap: 16px;
}

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

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

.project-link:hover {
    background: var(--gold-300);
    transform: translateY(-3px) !important;
}

.project-info {
    padding: 24px;
}

.project-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 10px;
}

.project-description {
    font-size: 0.875rem;
    color: var(--gray-300);
    line-height: 1.7;
    margin-bottom: 16px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    padding: 4px 14px;
    font-size: 0.75rem;
    font-weight: 500;
    background: var(--accent-bg);
    color: var(--gold-400);
    border-radius: 50px;
    border: 1px solid var(--border-accent);
}

/* ========================================
   SKILLS
   ======================================== */
.skills {
    background: var(--navy-800);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.skill-category {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--border-radius);
    padding: 32px;
    transition: var(--transition);
}

.skill-category:hover {
    border-color: var(--border-accent);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.skill-category-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-accent);
}

.skill-category-icon {
    font-size: 1.5rem;
    color: var(--gold-500);
}

.skill-category-header h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--white);
    font-weight: 600;
}

.skill-items {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
    cursor: default;
}

.skill-item:hover {
    background: var(--accent-hover);
}

.skill-item i {
    font-size: 1.3rem;
    color: var(--gold-400);
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.skill-item span {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-200);
}

/* ========================================
   CONTACT
   ======================================== */
.contact {
    background: var(--navy-900);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: start;
}

.contact-heading {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 16px;
    line-height: 1.3;
}

.contact-text {
    color: var(--gray-300);
    margin-bottom: 32px;
    line-height: 1.8;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 32px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.contact-item-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent-bg);
    border: 1px solid var(--border-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-500);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.contact-item-label {
    font-size: 0.8125rem;
    color: var(--gray-400);
    margin-bottom: 2px;
}

.contact-item-value {
    font-weight: 500;
    color: var(--gray-100);
}

.contact-socials {
    display: flex;
    gap: 12px;
}

/* Form */
.contact-form {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--border-radius);
    padding: 36px;
}

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

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-200);
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: var(--border-radius-sm);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    transition: var(--transition);
    outline: none;
}

.form-input::placeholder {
    color: var(--gray-400);
}

.form-input:focus {
    border-color: var(--gold-500);
    box-shadow: 0 0 0 3px var(--gold-glow);
}

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

.form-status {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: var(--border-radius-sm);
    font-size: 0.875rem;
    display: none;
}

.form-status.success {
    display: block;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #4ade80;
}

.form-status.error {
    display: block;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    padding: 36px 0;
    border-top: 1px solid var(--border-subtle);
    background: var(--navy-900);
}

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

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
}

.footer-text {
    color: var(--gray-400);
    font-size: 0.875rem;
}

.footer-socials {
    display: flex;
    gap: 10px;
}

.footer-socials .social-link {
    width: 36px;
    height: 36px;
    font-size: 0.95rem;
}

/* ========================================
   REVEAL ANIMATION
   ======================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delays for children */
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }
.reveal:nth-child(5) { transition-delay: 0.4s; }
.reveal:nth-child(6) { transition-delay: 0.5s; }

/* ========================================
   RESPONSIVE — TABLET (≤ 1024px)
   ======================================== */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image {
        order: -1;
    }

    .about-img-wrapper {
        max-width: 300px;
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* ========================================
   RESPONSIVE — MOBILE (≤ 768px)
   ======================================== */
@media (max-width: 768px) {
    :root {
        --section-padding: 70px 0;
    }

    /* Mobile Nav */
    .nav-toggle {
        display: block;
    }

    .navbar {
        width: calc(100% - 32px);
        padding: 8px 16px;
        border-radius: 20px;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--bg-glass);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 100px 32px 32px;
        gap: 4px;
        transition: var(--transition-slow);
        border-radius: 0;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-link {
        font-size: 1.0625rem;
        padding: 12px 20px;
        border-radius: var(--border-radius-sm);
        width: 100%;
    }

    /* Hero */
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    /* About */
    .about-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
        padding: 20px;
    }

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

    /* Projects */
    .projects-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto;
    }

    /* Skills */
    .skills-grid {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .footer-content {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

/* ========================================
   RESPONSIVE — SMALL MOBILE (≤ 480px)
   ======================================== */
@media (max-width: 480px) {
    .about-stats {
        grid-template-columns: 1fr;
    }

    .skill-items {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 24px;
    }
}
