/* ===================================
   NIKHILA SRIGIRI PORTFOLIO
   Handcrafted Pastel Design System
   =================================== */

/* ===================================
   IMAGE PROTECTION
   =================================== */
img {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    pointer-events: none;
}

.hero-image-container,
.gallery-item {
    pointer-events: auto;
}

.hero-image-container img,
.gallery-item img {
    pointer-events: none;
}

/* ===================================
   THEME VARIATIONS
   =================================== */

/* Theme 1: Lavender Dream - Soft purples & warm peach */
:root,
[data-theme="lavender"] {
    --bg-primary: #f8f5ff;
    --bg-secondary: #fff9f5;
    --bg-card: #ffffff;
    --bg-dark: #2d2640;
    --bg-accent: #e8dff5;

    --text-primary: #2d2640;
    --text-secondary: #5c5470;
    --text-muted: #8b7fa8;

    --accent-1: #b8a9c9;
    --accent-2: #d4a5a5;
    --accent-3: #f5cac3;
    --accent-4: #84a59d;

    --gradient-hero: linear-gradient(135deg, #e0c3fc 0%, #8ec5fc 50%, #f5cac3 100%);
    --gradient-accent: linear-gradient(135deg, #b8a9c9 0%, #d4a5a5 100%);
    --gradient-card: linear-gradient(145deg, #f8f5ff 0%, #fff9f5 100%);
    --gradient-dark: linear-gradient(135deg, #2d2640 0%, #3d3557 100%);

    --shadow-soft: 0 4px 20px rgba(184, 169, 201, 0.15);
    --shadow-card: 0 8px 32px rgba(45, 38, 64, 0.08);
    --shadow-hover: 0 12px 40px rgba(184, 169, 201, 0.25);

    --border-subtle: rgba(184, 169, 201, 0.2);
}

/* Theme 2: Sage Garden - Earthy greens & warm terracotta */
[data-theme="sage"] {
    --bg-primary: #f4f7f5;
    --bg-secondary: #faf6f2;
    --bg-card: #ffffff;
    --bg-dark: #2c3e36;
    --bg-accent: #e3ebe6;

    --text-primary: #2c3e36;
    --text-secondary: #4a5f54;
    --text-muted: #7a8f83;

    --accent-1: #84a98c;
    --accent-2: #cad2c5;
    --accent-3: #d4a373;
    --accent-4: #52796f;

    --gradient-hero: linear-gradient(135deg, #e3ebe6 0%, #a8dadc 100%);
    --gradient-accent: linear-gradient(135deg, #84a98c 0%, #52796f 100%);
    --gradient-card: linear-gradient(145deg, #f4f7f5 0%, #faf6f2 100%);
    --gradient-dark: linear-gradient(135deg, #2c3e36 0%, #354f52 100%);

    --shadow-soft: 0 4px 20px rgba(44, 62, 54, 0.1);
    --shadow-card: 0 8px 32px rgba(44, 62, 54, 0.08);
    --shadow-hover: 0 12px 40px rgba(44, 62, 54, 0.15);

    --border-subtle: rgba(132, 165, 157, 0.2);
}

/* Theme 3: Rose Quartz - Warm pinks & soft blues */
[data-theme="rose"] {
    --bg-primary: #fff5f5;
    --bg-secondary: #fff0f3;
    --bg-card: #ffffff;
    --bg-dark: #590d22;
    --bg-accent: #ffe5ec;

    --text-primary: #590d22;
    --text-secondary: #800f2f;
    --text-muted: #c9184a;

    --accent-1: #ffb3c1;
    --accent-2: #a2d2ff;
    --accent-3: #ffccd5;
    --accent-4: #ff8fa3;

    --gradient-hero: linear-gradient(135deg, #ffe5ec 0%, #daeaf6 100%);
    --gradient-accent: linear-gradient(135deg, #ff8fa3 0%, #ff4d6d 100%);
    --gradient-card: linear-gradient(145deg, #fff5f5 0%, #fff0f3 100%);
    --gradient-dark: linear-gradient(135deg, #590d22 0%, #800f2f 100%);

    --shadow-soft: 0 4px 20px rgba(89, 13, 34, 0.1);
    --shadow-card: 0 8px 32px rgba(89, 13, 34, 0.08);
    --shadow-hover: 0 12px 40px rgba(89, 13, 34, 0.15);

    --border-subtle: rgba(255, 179, 193, 0.2);
}

/* Theme 4: Midnight (Dark Mode) - Elegant & Professional */
[data-theme="midnight"] {
    --bg-primary: #0f0f13;
    --bg-secondary: #1a1a24;
    --bg-card: #23232f;
    --bg-dark: #000000;
    --bg-accent: #2d2d3d;

    --text-primary: #ffffff;
    --text-secondary: #b0b0c0;
    --text-muted: #6e6e80;

    --accent-1: #9d8ec4;
    /* Muted Purple */
    --accent-2: #6c809a;
    /* Steel Blue */
    --accent-3: #c0a0a0;
    /* Muted Rose */
    --accent-4: #608070;
    /* Muted Green */

    --gradient-hero: linear-gradient(135deg, #1a1a24 0%, #2d2640 100%);
    --gradient-accent: linear-gradient(135deg, #2d2640 0%, #4a4a6a 100%);
    --gradient-card: linear-gradient(145deg, #23232f 0%, #1a1a24 100%);
    --gradient-dark: linear-gradient(135deg, #000000 0%, #1a1a24 100%);

    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.5);

    --border-subtle: rgba(255, 255, 255, 0.1);
}

/* ===================================
   RESET & BASE

    --accent-1: #84a98c;
    --accent-2: #cad2c5;
    --accent-3: #d4a373;
    --accent-4: #e9c46a;

    --gradient-hero: linear-gradient(135deg, #cad2c5 0%, #84a98c 50%, #faedcd 100%);
    --gradient-accent: linear-gradient(135deg, #84a98c 0%, #d4a373 100%);
    --gradient-card: linear-gradient(145deg, #f4f7f5 0%, #faf6f2 100%);
    --gradient-dark: linear-gradient(135deg, #2c3e36 0%, #3d524a 100%);

    --shadow-soft: 0 4px 20px rgba(132, 169, 140, 0.12);
    --shadow-card: 0 8px 32px rgba(44, 62, 54, 0.06);
    --shadow-hover: 0 12px 40px rgba(132, 169, 140, 0.2);

    --border-subtle: rgba(132, 169, 140, 0.2);
}

/* Theme 3: Rose Quartz - Dusty pinks & soft blues */
[data-theme="rose"] {
    --bg-primary: #fef6f6;
    --bg-secondary: #f5f9fc;
    --bg-card: #ffffff;
    --bg-dark: #3d3346;
    --bg-accent: #fce4e4;

    --text-primary: #3d3346;
    --text-secondary: #5e5168;
    --text-muted: #9089a0;

    --accent-1: #d4a5a5;
    --accent-2: #f5cac3;
    --accent-3: #a2d2ff;
    --accent-4: #bde0fe;

    --gradient-hero: linear-gradient(135deg, #f5cac3 0%, #d4a5a5 40%, #a2d2ff 100%);
    --gradient-accent: linear-gradient(135deg, #d4a5a5 0%, #a2d2ff 100%);
    --gradient-card: linear-gradient(145deg, #fef6f6 0%, #f5f9fc 100%);
    --gradient-dark: linear-gradient(135deg, #3d3346 0%, #52445e 100%);

    --shadow-soft: 0 4px 20px rgba(212, 165, 165, 0.15);
    --shadow-card: 0 8px 32px rgba(61, 51, 70, 0.06);
    --shadow-hover: 0 12px 40px rgba(212, 165, 165, 0.25);

    --border-subtle: rgba(212, 165, 165, 0.25);
}

/* Typography */
:root {
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Space Grotesk', 'Inter', sans-serif;

    /* Responsive Font Sizes */
    --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
    --text-sm: clamp(0.875rem, 0.8rem + 0.375vw, 1rem);
    --text-base: clamp(1rem, 0.9rem + 0.5vw, 1.125rem);
    --text-lg: clamp(1.125rem, 1rem + 0.625vw, 1.25rem);
    --text-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
    --text-2xl: clamp(1.5rem, 1.25rem + 1.25vw, 2rem);
    --text-3xl: clamp(1.875rem, 1.5rem + 1.875vw, 2.5rem);
    --text-4xl: clamp(2.25rem, 1.75rem + 2.5vw, 3.25rem);
    --text-5xl: clamp(3rem, 2rem + 5vw, 5rem);

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

    /* Border Radius - More organic shapes */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
    --radius-blob: 60% 40% 30% 70% / 60% 30% 70% 40%;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);

    /* Layout */
    --container-max: 1140px;
    --section-padding: clamp(5rem, 10vw, 8rem);
}

/* ===================================
   RESET & BASE
   =================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: var(--text-base);
    line-height: 1.7;
    color: var(--text-primary);
    background: var(--bg-primary);
    overflow-x: hidden;
    width: 100%;
    transition: background var(--transition-slow), color var(--transition-slow);
}

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

ul,
ol {
    list-style: none;
}

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

/* ===================================
   FLOATING TRANSLATE FAB
   =================================== */

.translate-fab {
    position: fixed;
    bottom: var(--space-xl);
    right: 30px;
    z-index: 1000;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--bg-dark);
    color: white;
    font-size: 24px;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
}

.translate-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.translate-fab:active {
    transform: scale(0.95);
}

/* Language indicator badge */
.translate-fab[data-lang="de"]::after {
    content: "DE";
    position: absolute;
    bottom: -4px;
    right: -4px;
    background: var(--accent-1);
    color: var(--bg-dark);
    font-size: 9px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: var(--radius-sm);
}

.translate-fab[data-lang="en"]::after {
    content: "EN";
    position: absolute;
    bottom: -4px;
    right: -4px;
    background: var(--accent-1);
    color: var(--bg-dark);
    font-size: 9px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: var(--radius-sm);
}

/* Theme Switcher in Nav Menu */
/* Theme Switcher in Nav Menu */
.nav-themes {
    display: flex;
    align-items: center;
    margin-left: var(--space-md);
}

.nav-themes-label {
    display: none;
    font-size: var(--text-xs);
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-sm);
}

.nav-theme-options {
    display: flex;
    gap: var(--space-sm);
}

.nav-theme-options .theme-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid transparent;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.nav-theme-options .theme-btn.active {
    border-color: var(--text-primary);
    transform: scale(1.1);
}

.nav-theme-options .theme-btn:hover {
    transform: scale(1.15);
}

/* Swatches */
.theme-swatch {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.theme-swatch.lavender {
    background: linear-gradient(135deg, #b8a9c9, #d4a5a5);
}

.theme-swatch.sage {
    background: linear-gradient(135deg, #84a59d, #d4a373);
}

.theme-swatch.rose {
    background: linear-gradient(135deg, #d4a5a5, #a2d2ff);
}

.theme-swatch.midnight {
    background: linear-gradient(135deg, #2d2640, #000000);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Language Toggle - In Navbar */
.nav-language {
    display: flex;
    gap: 4px;
    background: var(--bg-accent);
    padding: 4px;
    border-radius: var(--radius-lg);
    margin-left: var(--space-md);
}

.nav-language .lang-btn {
    padding: 6px 10px;
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-secondary);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.nav-language .lang-btn.active {
    background: var(--bg-dark);
    color: white;
}

.nav-language .lang-btn:hover:not(.active) {
    background: var(--bg-secondary);
}


.lang-btn .flag {
    font-size: 1.1em;
}

/* ===================================
   NAVBAR
   =================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--space-md) 0;
    transition: all var(--transition-normal);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-soft);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-xl);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 700;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: var(--space-xl);
}

.nav-links a {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
    position: relative;
    padding: var(--space-xs) 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-accent);
    border-radius: 2px;
    transition: width var(--transition-normal);
}

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

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

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: var(--space-sm);
}

.nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--bg-card);
        flex-direction: column;
        padding: var(--space-4xl) var(--space-xl);
        gap: var(--space-md);
        box-shadow: var(--shadow-hover);
        transition: right var(--transition-normal);
    }

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

    .nav-toggle {
        display: flex;
    }

    .language-toggle {
        top: auto;
        bottom: var(--space-lg);
    }

    .theme-switcher {
        left: auto;
        right: var(--space-lg);
        bottom: 80px;
    }

    .nav-themes {
        flex-direction: column;
        padding-top: var(--space-md);
        margin-top: var(--space-md);
        margin-left: 0;
        border-top: 1px solid var(--border-subtle);
        width: 100%;
    }

    .nav-themes-label {
        display: block;
    }
}

/* ===================================
   BUTTONS
   =================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    font-size: var(--text-sm);
    font-weight: 600;
    border-radius: var(--radius-xl);
    transition: all var(--transition-normal);
    cursor: pointer;
}

.btn-primary {
    background: var(--bg-dark);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(45, 38, 64, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(45, 38, 64, 0.4);
    background: #3d3557;
}

.btn-secondary {
    background: #ffffff;
    color: #2d2640;
    border: 2px solid #2d2640;
}

.btn-secondary:hover {
    background: #2d2640;
    color: #ffffff;
    border-color: #2d2640;
}

.btn-large {
    padding: var(--space-lg) var(--space-2xl);
    font-size: var(--text-base);
    border-radius: var(--radius-2xl);
}

/* ===================================
   LAYOUT
   =================================== */

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

.section {
    padding: var(--section-padding) 0;
    position: relative;
}

/* ===================================
   HERO SECTION
   =================================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 100px;
    background: var(--bg-primary);
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 80%;
    height: 150%;
    background: var(--gradient-hero);
    opacity: 0.3;
    border-radius: var(--radius-blob);
    filter: blur(80px);
    animation: morphBlob 15s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -20%;
    width: 60%;
    height: 100%;
    background: var(--gradient-accent);
    opacity: 0.15;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    filter: blur(60px);
    animation: morphBlob 12s ease-in-out infinite reverse;
}

@keyframes morphBlob {

    0%,
    100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
        transform: rotate(0deg) scale(1);
    }

    33% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
        transform: rotate(5deg) scale(1.02);
    }

    66% {
        border-radius: 50% 60% 30% 60% / 30% 40% 70% 50%;
        transform: rotate(-3deg) scale(0.98);
    }
}

.hero-content {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: var(--space-4xl);
    align-items: center;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-xl);
    position: relative;
    z-index: 1;
}

.hero-text {
    max-width: 580px;
}

.hero-greeting {
    font-size: var(--text-lg);
    color: var(--text-muted);
    margin-bottom: var(--space-sm);
    font-weight: 500;
}

.hero-name {
    font-family: var(--font-display);
    font-size: var(--text-5xl);
    font-weight: 700;
    line-height: 1.05;
    margin-bottom: var(--space-lg);
    letter-spacing: -0.03em;
}

.name-line {
    display: block;
}

.name-line.gradient-text {
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title {
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--accent-1);
    margin-bottom: var(--space-md);
}

.hero-subtitle {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    margin-bottom: var(--space-2xl);
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-3xl);
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: var(--space-2xl);
}

.stat-item {
    text-align: left;
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: var(--text-4xl);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: var(--space-xs);
}

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

/* Hero Visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 380px;
}

.hero-image-container {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border: 6px solid #ffffff;
    position: relative;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

/* Keep placeholder styles for fallback */
.hero-image-placeholder {
    aspect-ratio: 1;
    background: var(--gradient-hero);
    border-radius: var(--radius-blob);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: morphShape 10s ease-in-out infinite;
    box-shadow: var(--shadow-hover);
    position: relative;
    overflow: hidden;
}

.hero-image-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.2) 50%, transparent 70%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.hero-image-placeholder .initials {
    font-family: var(--font-display);
    font-size: 5rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

@keyframes morphShape {

    0%,
    100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }

    25% {
        border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%;
    }

    50% {
        border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
    }

    75% {
        border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%;
    }
}

/* Floating Badges */
.floating-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    background: var(--bg-card);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
    animation: floatBadge 4s ease-in-out infinite;
}

.badge-icon {
    font-size: 1.1em;
}

.badge-1 {
    top: 5%;
    left: -15%;
    animation-delay: 0s;
}

.badge-2 {
    top: 45%;
    right: -20%;
    animation-delay: 1.3s;
}

.badge-3 {
    bottom: 10%;
    left: -10%;
    animation-delay: 2.6s;
}

@keyframes floatBadge {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-12px) rotate(2deg);
    }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: var(--space-2xl);
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--text-muted);
    font-size: var(--text-sm);
}

.mouse {
    width: 24px;
    height: 38px;
    border: 2px solid var(--accent-1);
    border-radius: 12px;
    margin: 0 auto var(--space-sm);
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--accent-1);
    border-radius: 4px;
    animation: scrollMouse 1.8s infinite;
}

@keyframes scrollMouse {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(14px);
    }
}

/* Hero Responsive */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-xl);
        padding-bottom: 80px;
        /* Make space for scroll indicator */
    }

    .hero {
        padding-top: 120px;
        height: auto;
        min-height: 100vh;
    }

    .hero-text {
        max-width: 100%;
    }

    .hero-cta {
        justify-content: center;
        margin-bottom: var(--space-xl);
    }

    .hero-stats {
        justify-content: center;
        flex-wrap: wrap;
        gap: var(--space-lg);
        margin-bottom: var(--space-2xl);
    }

    .stat-item {
        text-align: center;
        min-width: 100px;
    }

    .hero-visual {
        display: block;
        /* Show image on mobile */
        margin-bottom: var(--space-xl);
        max-width: 250px;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-image-container {
        width: 100%;
        max-width: 250px;
        margin: 0 auto;
    }

    .scroll-indicator {
        bottom: var(--space-lg);
    }
}

/* Mobile Floating Controls Container */
@media (max-width: 768px) {

    .language-toggle,
    .theme-switcher {
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    /* Hide when scrolling down */
    body.controls-hidden .language-toggle,
    body.controls-hidden .theme-switcher {
        transform: translateY(100px);
        /* Move theme switcher down */
        opacity: 0.5;
        pointer-events: none;
    }

    body.controls-hidden .language-toggle {
        transform: translateY(-100px);
        /* Move lang toggle up */
    }
}

/* ===================================
   SECTION HEADERS
   =================================== */

.section-header {
    text-align: center;
    margin-bottom: var(--space-4xl);
}

.section-tag {
    display: inline-block;
    font-size: var(--text-xs);
    font-weight: 700;
    color: var(--text-secondary);
    background: var(--bg-accent);
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-md);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.section-title {
    font-family: var(--font-display);
    font-size: var(--text-4xl);
    font-weight: 700;
    margin-bottom: var(--space-md);
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto;
}

/* ===================================
   ABOUT SECTION
   =================================== */

.about {
    background: var(--bg-secondary);
}

.about-content {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: var(--space-4xl);
    align-items: start;
}

.about-text {
    max-width: 650px;
}

.about-lead {
    font-size: var(--text-xl);
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: var(--space-lg);
    line-height: 1.7;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
    line-height: 1.85;
}

.about-cards {
    display: grid;
    gap: var(--space-md);
}

.info-card {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    background: var(--bg-card);
    padding: var(--space-lg);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-subtle);
    transition: all var(--transition-normal);
}

.info-card:hover {
    transform: translateX(6px);
    box-shadow: var(--shadow-card);
    border-color: var(--accent-1);
}

.card-icon {
    font-size: 1.4rem;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-accent);
    border-radius: var(--radius-lg);
}

.card-content h4 {
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.card-content p {
    font-size: var(--text-base);
    font-weight: 500;
    color: var(--text-primary);
}

@media (max-width: 900px) {
    .about-content {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   EDUCATION SECTION
   =================================== */

.education {
    background: var(--bg-secondary);
}

.education-timeline {
    position: relative;
    max-width: 750px;
    margin: 0 auto var(--space-4xl);
    padding-left: var(--space-3xl);
}

.education-timeline::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-1), var(--accent-3));
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: var(--space-2xl);
}

.timeline-marker {
    position: absolute;
    left: calc(-1 * var(--space-3xl) - 12px);
    top: var(--space-lg);
    width: 48px;
    height: 48px;
    background: var(--bg-card);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-card);
    border: 3px solid var(--accent-1);
    z-index: 1;
}

.marker-icon {
    font-size: 1.3rem;
}

.timeline-content {
    background: var(--bg-card);
    padding: var(--space-xl) var(--space-2xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-subtle);
    transition: all var(--transition-normal);
}

.timeline-content:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.timeline-date {
    display: inline-block;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--accent-1);
    margin-bottom: var(--space-sm);
}

.timeline-content h3 {
    font-size: var(--text-xl);
    margin-bottom: var(--space-xs);
    line-height: 1.3;
}

.institution {
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
    font-weight: 500;
}

.timeline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.tag {
    font-size: var(--text-xs);
    padding: 6px var(--space-md);
    background: var(--bg-accent);
    color: var(--text-primary);
    border-radius: var(--radius-xl);
    font-weight: 500;
}

/* Certifications */
.certifications {
    max-width: 550px;
    margin: 0 auto;
}

.cert-title {
    text-align: center;
    font-size: var(--text-2xl);
    margin-bottom: var(--space-xl);
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

.cert-card {
    background: var(--bg-card);
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
    text-align: center;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-subtle);
    transition: all var(--transition-normal);
}

.cert-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.cert-icon {
    font-size: 2rem;
    margin-bottom: var(--space-md);
    display: block;
}

.cert-card h4 {
    font-size: var(--text-lg);
    margin-bottom: var(--space-xs);
}

.cert-card p {
    font-size: var(--text-sm);
    color: var(--text-muted);
}

@media (max-width: 640px) {
    .education-timeline {
        padding-left: var(--space-2xl);
    }

    .timeline-marker {
        width: 40px;
        height: 40px;
        left: calc(-1 * var(--space-2xl) - 8px);
    }

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

/* ===================================
   EXPERIENCE / PROJECTS SECTION
   =================================== */

.experience {
    background: var(--bg-secondary);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: var(--space-xl);
}

.project-card {
    background: var(--bg-card);
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-subtle);
    transition: all var(--transition-normal);
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-1);
}

.project-card.featured {
    grid-column: span 2;
    background: var(--gradient-dark);
    color: white;
    border: none;
}

.project-card.featured .project-year,
.project-card.featured .project-type {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.project-card.featured .project-title {
    color: white;
}

.project-card.featured .project-org {
    color: var(--accent-3);
}

.project-card.featured .project-desc {
    color: rgba(255, 255, 255, 0.85);
}

.project-card.featured .tag {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.project-header {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.project-year,
.project-type {
    font-size: var(--text-xs);
    font-weight: 600;
    padding: 5px var(--space-md);
    border-radius: var(--radius-xl);
    background: var(--bg-accent);
    color: var(--text-secondary);
}

.project-title {
    font-size: var(--text-xl);
    margin-bottom: var(--space-sm);
    line-height: 1.35;
}

.project-org {
    font-size: var(--text-sm);
    color: var(--accent-1);
    margin-bottom: var(--space-md);
    font-weight: 600;
}

.project-desc {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: var(--space-lg);
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

@media (max-width: 800px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-card.featured {
        grid-column: span 1;
    }
}

/* ===================================
   SKILLS SECTION
   =================================== */

.skills {
    background: var(--bg-dark);
    color: white;
}

.skills .section-tag {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-3);
}

.skills .section-title {
    color: white;
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--space-xl);
}

.skill-category {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
    transition: all var(--transition-normal);
}

.skill-category:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
}

.skill-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.skill-icon {
    font-size: 1.4rem;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
}

.skill-header h3 {
    font-size: var(--text-lg);
    color: white;
    font-weight: 600;
}

.skill-items {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.skill-item {
    font-size: var(--text-sm);
    padding: 6px var(--space-md);
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-xl);
    color: rgba(255, 255, 255, 0.8);
    transition: all var(--transition-fast);
}

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

/* ===================================
   INTERESTS SECTION
   =================================== */

.interests {
    background: var(--bg-primary);
    padding-top: var(--space-4xl);
}

.interests-content {
    max-width: 950px;
    margin: 0 auto;
}

.interest-card {
    background: var(--bg-card);
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-subtle);
    transition: all var(--transition-normal);
}

.interest-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.interest-card.highlight-card {
    text-align: center;
    margin-bottom: var(--space-2xl);
    background: var(--gradient-accent);
    color: white;
    border: none;
    padding: var(--space-3xl) var(--space-2xl);
}

.interest-icon-large {
    font-size: 3rem;
    margin-bottom: var(--space-md);
}

.highlight-card h3 {
    font-size: var(--text-2xl);
    color: white;
    margin-bottom: var(--space-md);
}

.highlight-card p {
    font-size: var(--text-base);
    opacity: 0.95;
    line-height: 1.85;
    margin-bottom: var(--space-xl);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.destinations {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-sm);
}

.destination {
    background: rgba(255, 255, 255, 0.2);
    padding: 6px var(--space-md);
    border-radius: var(--radius-xl);
    font-size: var(--text-sm);
    font-weight: 500;
    backdrop-filter: blur(4px);
}

/* Travel Photo Gallery */
.travel-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
    margin: var(--space-xl) 0;
    padding: 0 var(--space-md);
}

.gallery-item {
    aspect-ratio: 1;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

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

.gallery-item:hover img {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .travel-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .travel-gallery {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-sm);
    }
}

.interests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: var(--space-lg);
}

.interest-icon {
    font-size: 2rem;
    margin-bottom: var(--space-md);
}

.interest-card h4 {
    font-size: var(--text-lg);
    margin-bottom: var(--space-sm);
}

.interest-card p {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===================================
   OPPORTUNITIES SECTION
   =================================== */

.opportunities {
    background: var(--bg-secondary);
}

.opportunities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: var(--space-xl);
}

.opportunity-card {
    background: var(--bg-card);
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
    text-align: center;
    border: 1px solid var(--border-subtle);
    transition: all var(--transition-normal);
}

.opportunity-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-1);
}

.opportunity-card.highlight {
    background: var(--gradient-accent);
    color: white;
    border: none;
}

.opportunity-card.highlight h3 {
    color: white;
}

.opportunity-card.highlight p {
    color: rgba(255, 255, 255, 0.9);
}

.opp-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
}

.opportunity-card h3 {
    font-size: var(--text-xl);
    margin-bottom: var(--space-md);
}

.opportunity-card p {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.75;
}

/* ===================================
   CONTACT SECTION
   =================================== */

.contact {
    background: var(--bg-primary);
}

.contact-content {
    max-width: 680px;
    margin: 0 auto;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
}

.contact-card {
    background: var(--bg-card);
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
    text-align: center;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-subtle);
    transition: all var(--transition-normal);
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.contact-icon {
    font-size: 1.8rem;
    margin-bottom: var(--space-md);
    display: block;
}

.contact-card h4 {
    font-size: var(--text-xs);
    color: var(--text-muted);
    margin-bottom: var(--space-xs);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contact-card p {
    font-size: var(--text-base);
    font-weight: 500;
    color: var(--text-primary);
}

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

@media (max-width: 640px) {
    .contact-cards {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   FOOTER
   =================================== */

.footer {
    background: var(--bg-dark);
    color: white;
    padding: var(--space-2xl) 0;
    text-align: center;
}

.footer-text {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: var(--space-sm);
}

.footer-tagline {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.4);
}

/* ===================================
   PRINT STYLES (ATS Friendly)
   =================================== */

@media print {
    * {
        background: transparent !important;
        color: black !important;
        box-shadow: none !important;
    }

    .navbar,
    .language-toggle,
    .theme-switcher,
    .hero-visual,
    .scroll-indicator,
    .btn {
        display: none !important;
    }

    .hero {
        min-height: auto;
        padding: 20pt 0;
    }

    .section {
        padding: 15pt 0;
        page-break-inside: avoid;
    }

    h1 {
        font-size: 22pt;
    }

    h2 {
        font-size: 16pt;
    }

    h3 {
        font-size: 13pt;
    }
}

/* ===================================
   COURSE LIST
   =================================== */
.course-list {
    margin: 1rem 0;
    padding-left: 1.5rem;
    list-style-type: disc;
    color: var(--text-secondary);
}

.course-list li {
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Fix for mobile scroll/visibility issues */
@media (max-width: 768px) {
    :root {
        --space-xl: 1.25rem;
        --space-2xl: 2rem;
        --space-3xl: 2.5rem;
        --space-4xl: 3.5rem;
        --section-padding: 3rem;
    }

    .section {
        /* Restore animations but make them fast */
        transition: opacity 0.4s ease-out, transform 0.4s ease-out !important;
        /* Ensure initial state allows JS to animate, but defaults to visible if JS fails? 
           Actually, rely on JS for initial opacity=0. 
           So we simply remove the forced opacity: 1 !important. 
           But we keep padding fix. */
        padding: var(--space-xl) 0;
    }

    .hero {
        min-height: auto;
        padding-top: 6rem;
    }

    .project-desc.clamped {
        display: -webkit-box;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .read-more-btn {
        display: inline-block;
        background: none;
        border: none;
        color: var(--accent-1);
        font-size: var(--text-sm);
        font-weight: 600;
        padding: 0;
        margin-top: var(--space-xs);
        margin-bottom: var(--space-md);
        cursor: pointer;
        text-decoration: underline;
    }

    .timeline-tags {
        gap: 0.75rem;
        /* Increase gap for mobile */
    }

    .tag.hidden {
        display: none;
    }
}

/* Hide read more button on desktop */
@media (min-width: 769px) {
    .read-more-btn {
        display: none;
    }
}