/* ============================================
   AARAV B - PERSONAL WEBSITE STYLES
   Theme System: Blue, Red, Green, Teal
   Modes: Dark & Light
   ============================================ */

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

/* ---- COLOR THEMES ---- */

/* Blue Theme */
[data-theme="blue"] {
    --primary: #3b82f6;
    --primary-light: #60a5fa;
    --primary-dark: #2563eb;
    --primary-glow: rgba(59, 130, 246, 0.3);
    --primary-subtle: rgba(59, 130, 246, 0.1);
}

/* Red Theme */
[data-theme="red"] {
    --primary: #ef4444;
    --primary-light: #f87171;
    --primary-dark: #dc2626;
    --primary-glow: rgba(239, 68, 68, 0.3);
    --primary-subtle: rgba(239, 68, 68, 0.1);
}

/* Green Theme */
[data-theme="green"] {
    --primary: #22c55e;
    --primary-light: #4ade80;
    --primary-dark: #16a34a;
    --primary-glow: rgba(34, 197, 94, 0.3);
    --primary-subtle: rgba(34, 197, 94, 0.1);
}

/* Teal Theme */
[data-theme="teal"] {
    --primary: #14b8a6;
    --primary-light: #2dd4bf;
    --primary-dark: #0d9488;
    --primary-glow: rgba(20, 184, 166, 0.3);
    --primary-subtle: rgba(20, 184, 166, 0.1);
}

/* ---- DARK MODE (default) ---- */
[data-mode="dark"] {
    --bg-primary: #0a0a0f;
    --bg-secondary: #111118;
    --bg-card: #16161f;
    --bg-card-hover: #1c1c28;
    --bg-nav: rgba(10, 10, 15, 0.85);
    --text-primary: #f0f0f5;
    --text-secondary: #a0a0b5;
    --text-muted: #6b6b80;
    --border: #2a2a3a;
    --border-light: #1f1f2f;
    --shadow: rgba(0, 0, 0, 0.4);
    --shadow-lg: rgba(0, 0, 0, 0.6);
    --input-bg: #1a1a25;
    --code-bg: #1e1e2e;
}

/* ---- LIGHT MODE ---- */
[data-mode="light"] {
    --bg-primary: #fafafa;
    --bg-secondary: #f0f0f5;
    --bg-card: #ffffff;
    --bg-card-hover: #f5f5fa;
    --bg-nav: rgba(250, 250, 250, 0.85);
    --text-primary: #1a1a2e;
    --text-secondary: #555570;
    --text-muted: #888898;
    --border: #e0e0ea;
    --border-light: #eaeaf0;
    --shadow: rgba(0, 0, 0, 0.08);
    --shadow-lg: rgba(0, 0, 0, 0.15);
    --input-bg: #ffffff;
    --code-bg: #f5f5fa;
}

/* ---- BASE STYLES ---- */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

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

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

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

/* ---- NAVBAR ---- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--bg-nav);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 4px 20px var(--shadow);
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav-logo {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo-svg {
    width: 140px;
    height: 36px;
}

.logo-img {
    height: 44px;
    width: 44px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.9;
    transition: all 0.3s ease;
    margin-right: 8px;
}

.logo-img:hover {
    opacity: 1;
    filter: brightness(0) invert(1) drop-shadow(0 0 6px var(--primary));
}

[data-mode="light"] .logo-img {
    filter: brightness(0);
    opacity: 0.8;
}

[data-mode="light"] .logo-img:hover {
    filter: brightness(0) drop-shadow(0 0 6px var(--primary));
    opacity: 1;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-logo-img {
    height: 36px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.footer-logo-img:hover {
    opacity: 1;
}

[data-mode="light"] .footer-logo-img {
    filter: brightness(0);
    opacity: 0.6;
}

[data-mode="light"] .footer-logo-img:hover {
    filter: brightness(0);
    opacity: 0.8;
}

/* Blinking cursor in logo */
.logo-cursor {
    animation: logoBlink 1s step-end infinite;
}

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

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.02em;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 8px;
    transition: all 0.2s ease;
    text-decoration: none;
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Theme Picker */
.theme-picker {
    position: relative;
}

.theme-picker-btn {
    background: none;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px;
    cursor: pointer;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

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

.theme-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 8px;
    display: none;
    flex-direction: column;
    gap: 4px;
    min-width: 140px;
    box-shadow: 0 8px 30px var(--shadow-lg);
    z-index: 100;
}

.theme-dropdown.show {
    display: flex;
}

.theme-option {
    background: none;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    color: var(--text-primary);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s ease;
    font-family: inherit;
}

.theme-option:hover {
    background: var(--primary-subtle);
}

.theme-swatch {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: inline-block;
}

.theme-swatch.blue { background: #3b82f6; }
.theme-swatch.red { background: #ef4444; }
.theme-swatch.green { background: #22c55e; }
.theme-swatch.teal { background: #14b8a6; }

/* Mode Toggle */
.mode-toggle {
    background: none;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px;
    cursor: pointer;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.mode-toggle:hover {
    color: var(--primary);
    border-color: var(--primary);
}

[data-mode="dark"] .icon-sun { display: block; }
[data-mode="dark"] .icon-moon { display: none; }
[data-mode="light"] .icon-sun { display: none; }
[data-mode="light"] .icon-moon { display: block; }

/* Hamburger */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    flex-direction: column;
    gap: 5px;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ---- HERO ---- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
}

#particles-js {
    position: absolute;
    inset: 0;
    z-index: 0;
}

#particles-js canvas {
    display: block;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
    align-items: center;
    justify-items: center;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-greeting {
    font-size: 1.25rem;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 8px;
}

.hero-name {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 16px;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    width: 100%;
}

.hero-surname {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Rotating text line */
.hero-rotating-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 1.3rem;
    margin-bottom: 20px;
    min-height: 1.8em;
    overflow: hidden;
    max-width: 100%;
}

.hero-rotating-label {
    color: var(--text-secondary);
    font-weight: 400;
    white-space: nowrap;
}

.hero-rotating {
    color: var(--primary);
    font-weight: 700;
    position: relative;
    white-space: nowrap;
}

.rotating-cursor {
    color: var(--primary);
    font-weight: 300;
    animation: blink 0.7s step-end infinite;
}

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

/* Hero quote */
.hero-quote {
    font-size: 1rem;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 28px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
    padding: 0;
    border-left: none;
}

.quote-attr {
    display: block;
    font-style: normal;
    font-weight: 500;
    font-size: 0.85rem;
    color: var(--primary);
    margin-top: 6px;
    opacity: 0.8;
}

/* (hero-tagline and hero-description removed — replaced by rotating text + quote) */

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

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-image-wrapper {
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-subtle) 0%, var(--bg-card) 100%);
    border: 3px solid var(--primary-glow);
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 40px var(--primary-glow), 0 0 80px rgba(0,0,0,0.2);
}

.profile-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-muted);
    animation: bounce 2s ease-in-out infinite;
    z-index: 1;
}

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

/* ---- BUTTONS ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--primary-glow);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--primary-glow);
}

/* ---- SECTIONS ---- */
.section {
    padding: 100px 0;
}

.section:nth-child(even) {
    background: var(--bg-secondary);
}

/* Section label — tiny subtle tag */
.section-label {
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 20px;
    padding: 8px 24px;
    border-radius: 50px;
    background: var(--primary-subtle);
    border: none;
    text-align: center;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.section-label.visible {
    opacity: 0.8;
    transform: translateY(0);
}

/* Section title — big display heading */
.section-title {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 3.6rem;
    font-weight: 700;
    margin-bottom: 0;
    letter-spacing: -0.04em;
    position: relative;
    line-height: 1.05;
    text-align: center;
    background: linear-gradient(160deg, var(--text-primary) 30%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease 0.1s, transform 0.7s ease 0.1s;
}

.section-title.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-title::after {
    content: '';
    display: block;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    margin: 20px auto 0;
    border-radius: 2px;
    transition: width 0.6s ease 0.4s;
}

.section-title.visible::after {
    width: 80px;
}

/* Section subtitle */
.section-subtitle {
    font-family: 'Inter', sans-serif;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 400;
    margin-bottom: 56px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 16px;
    opacity: 0;
    line-height: 1.7;
    font-style: normal;
    text-align: center;
    transform: translateY(12px);
    transition: opacity 0.5s ease 0.3s, transform 0.5s ease 0.3s;
}

.section-subtitle.visible {
    opacity: 0.45;
    transform: translateY(0);
}

.subsection-title {
    font-size: 1.4rem;
    font-weight: 700;
    text-align: center;
    margin: 60px 0 32px;
    color: var(--text-primary);
}

/* ---- ABOUT ---- */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
    margin-top: 48px;
}

.about-text p {
    margin-bottom: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
}

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

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px var(--primary-glow);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 8px;
}

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

/* ---- ACHIEVEMENTS ---- */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
    margin-top: 48px;
}

.achievement-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    transition: all 0.3s ease;
}

.achievement-card:hover {
    border-color: var(--primary);
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px var(--shadow);
}

.achievement-logo {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: var(--primary-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.achievement-logo img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.achievement-info h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
    line-height: 1.4;
}

.achievement-info p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ---- EDUCATION ---- */
.education-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px;
    display: flex;
    gap: 32px;
    align-items: center;
    margin-top: 48px;
    transition: all 0.3s ease;
}

.education-card:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 30px var(--shadow);
}

.education-logo {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 16px;
    background: var(--primary-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.education-logo img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.education-info h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.education-role {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.education-info p:last-child {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ---- EXTRACURRICULAR ---- */
.extra-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 48px;
}

.extra-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    transition: all 0.3s ease;
}

.extra-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px var(--shadow);
}

.extra-icon {
    color: var(--primary);
    margin-bottom: 20px;
}

.extra-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.extra-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* ---- HOBBIES ---- */
.hobbies-grid {
    display: flex;
    gap: 16px;
    margin-top: 48px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 12px;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) transparent;
}

.hobbies-grid::-webkit-scrollbar {
    height: 6px;
}

.hobbies-grid::-webkit-scrollbar-track {
    background: transparent;
}

.hobbies-grid::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

.hobby-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px 16px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: default;
    min-width: 130px;
    flex-shrink: 0;
    scroll-snap-align: start;
}

.hobby-item:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px var(--shadow);
}

.hobby-icon {
    width: 44px;
    height: 44px;
    margin: 0 auto 12px;
    color: var(--primary);
}

.hobby-icon svg {
    width: 100%;
    height: 100%;
}

.hobby-item span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

/* Gaming */
.gaming-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.gaming-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    transition: all 0.3s ease;
}

.gaming-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px var(--shadow);
}

.gaming-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gaming-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.gaming-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
}

/* ---- TRAVEL ---- */
/* Travel story */
.travel-story {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 36px;
    margin-top: 48px;
    margin-bottom: 40px;
}

.travel-story p {
    color: var(--text-secondary);
    line-height: 1.85;
    font-size: 1rem;
    margin-bottom: 16px;
}

.travel-story p:last-child {
    margin-bottom: 0;
}

/* Adventure heading */
.adventure-heading {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
}

/* Adventure card strip — horizontal scroll */
.adventure-strip {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 16px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) transparent;
}

.adventure-strip::-webkit-scrollbar {
    height: 6px;
}

.adventure-strip::-webkit-scrollbar-track {
    background: transparent;
}

.adventure-strip::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

.adventure-card {
    flex-shrink: 0;
    width: 220px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    scroll-snap-align: start;
    transition: all 0.3s ease;
    cursor: default;
}

.adventure-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px var(--shadow);
}

/* Image area */
.adventure-card-img {
    position: relative;
    width: 100%;
    height: 160px;
    background: var(--bg-secondary);
    overflow: hidden;
}

/* Placeholder when no photo is added yet */
.adventure-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-card) 100%);
    border-bottom: 1px solid var(--border);
}

.adventure-placeholder span {
    font-size: 2.8rem;
    line-height: 1;
}

.adventure-placeholder small {
    font-size: 0.7rem;
    color: var(--text-muted);
    opacity: 0.5;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* When real image is used instead of placeholder */
.adventure-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

/* Info area below image */
.adventure-card-info {
    padding: 16px;
}

.adventure-card-info h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.adventure-card-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* ---- PASSPORT SECTION ---- */
.passport-section {
    margin-top: 56px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.passport-section::before {
    content: '✈';
    position: absolute;
    top: -20px;
    right: -10px;
    font-size: 8rem;
    opacity: 0.03;
    transform: rotate(-15deg);
    pointer-events: none;
}

.passport-header {
    margin-bottom: 32px;
}

.passport-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-style: italic;
}

/* Continent groups */
.continent-group {
    margin-bottom: 24px;
}

.continent-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
}

/* Countries grid */
.countries-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.country-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 8px 18px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
    transition: all 0.3s ease;
    cursor: default;
}

.country-chip:hover {
    border-color: var(--primary);
    background: var(--primary-subtle);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px var(--shadow);
}

.country-flag {
    font-size: 1.15rem;
    line-height: 1;
}

/* Passport stats footer */
.passport-footer {
    display: flex;
    gap: 40px;
    justify-content: center;
    margin-top: 32px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
}

.passport-stat {
    text-align: center;
}

.passport-stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
}

.passport-stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ---- CERTIFICATES ---- */
.certificates-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 48px;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.certificate-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    aspect-ratio: 4/3;
}

.certificate-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px var(--shadow);
}

.certificate-placeholder {
    width: 100%;
    padding: 32px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    gap: 8px;
}

.certificate-placeholder p {
    font-size: 0.85rem;
}

.certificate-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---- BLOG ---- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 48px;
}

.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.blog-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px var(--shadow);
}

.blog-card-image {
    height: 180px;
    background: linear-gradient(135deg, var(--primary-subtle) 0%, var(--bg-secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.coming-soon-badge {
    background: var(--primary);
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.blog-card-content {
    padding: 24px;
}

.blog-date {
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 500;
}

.blog-card-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 8px 0;
    line-height: 1.4;
}

.blog-card-content p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.blog-cta {
    text-align: center;
    margin-top: 40px;
}

/* ---- CONTACT ---- */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-top: 48px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
    background: var(--input-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 0.9rem;
    color: var(--text-primary);
    font-family: inherit;
    transition: all 0.2s ease;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.contact-links {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-links h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    font-weight: 500;
    transition: all 0.2s ease;
    text-decoration: none;
}

.social-link:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateX(4px);
}

.social-link svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

/* ---- FOOTER QUOTE ---- */
.footer-quote-section {
    padding: 100px 0;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.footer-quote {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.footer-quote p {
    font-size: 2.4rem;
    font-weight: 300;
    font-style: italic;
    line-height: 1.5;
    color: var(--text-primary);
    letter-spacing: -0.01em;
    margin-bottom: 24px;
}

.quote-highlight {
    color: var(--primary);
    font-weight: 600;
}

.footer-quote cite {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.95rem;
    font-style: normal;
    color: var(--text-muted);
    opacity: 0.7;
}

/* ---- FOOTER ---- */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 48px 0 32px;
}

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

.footer-logo {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-logo:hover {
    opacity: 0.8;
}

.footer-cursor {
    animation: logoBlink 1s step-end infinite;
}

.footer-tagline {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
    max-width: 420px;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    letter-spacing: 0.03em;
}

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

.footer-bottom {
    display: flex;
    align-items: center;
    gap: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
}

.footer-copy {
    font-size: 0.8rem;
    color: var(--text-muted);
    opacity: 0.6;
}

.footer-made {
    font-size: 0.8rem;
    color: var(--text-muted);
    opacity: 0.6;
}

.footer-heart {
    display: inline-block;
    color: #ef4444;
    animation: heartbeat 1.5s ease infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    15% { transform: scale(1.3); }
    30% { transform: scale(1); }
    45% { transform: scale(1.2); }
}

/* ---- BACK TO TOP ---- */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px var(--primary-glow);
}

/* ---- ANIMATIONS ---- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Stagger animations for grid items */
.achievements-grid .animate-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.achievements-grid .animate-on-scroll:nth-child(3) { transition-delay: 0.15s; }
.achievements-grid .animate-on-scroll:nth-child(4) { transition-delay: 0.2s; }
.hobbies-grid .animate-on-scroll:nth-child(2) { transition-delay: 0.05s; }
.hobbies-grid .animate-on-scroll:nth-child(3) { transition-delay: 0.1s; }
.hobbies-grid .animate-on-scroll:nth-child(4) { transition-delay: 0.15s; }
.hobbies-grid .animate-on-scroll:nth-child(5) { transition-delay: 0.2s; }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--bg-nav);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 20px 24px;
        border-bottom: 1px solid var(--border);
        gap: 4px;
    }

    .nav-menu.show {
        display: flex;
    }

    .nav-link {
        padding: 12px 16px;
        font-size: 1rem;
    }

    .hamburger {
        display: flex;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-rotating-wrapper {
        justify-content: center;
    }

    .hero-quote {
        margin-left: auto;
        margin-right: auto;
        text-align: left;
    }

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

    .hero-image {
        order: -1;
    }

    .profile-image-wrapper {
        width: 220px;
        height: 220px;
    }

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

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

    .education-card {
        flex-direction: column;
        text-align: center;
        padding: 32px 24px;
    }

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

    .section {
        padding: 70px 0;
    }

    .section-title {
        font-size: 2.8rem;
    }

    .section-label {
        font-size: 0.7rem;
    }

    .footer-quote p {
        font-size: 1.6rem;
    }

    .footer-quote-section {
        padding: 60px 0;
    }

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

    .certificates-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}

@media (max-width: 480px) {
    /* Container & section spacing */
    .container {
        padding: 0 16px;
    }

    .section {
        padding: 50px 0;
    }

    /* Nav */
    .nav-container {
        padding: 0 16px;
    }

    .logo-svg {
        width: 110px;
        height: 30px;
    }

    .logo-img {
        height: 36px;
        width: 36px;
    }

    .nav-menu {
        padding: 12px 16px;
    }

    .nav-link {
        padding: 10px 12px;
        font-size: 0.95rem;
    }

    /* Section headers */
    .section-label {
        font-size: 0.65rem;
        padding: 5px 14px;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 0.85rem;
        margin-bottom: 36px;
    }

    /* Hero */
    .hero-name {
        font-size: 2.2rem;
    }

    .hero-surname {
        font-size: inherit;
    }

    .hero-greeting {
        font-size: 1rem;
    }

    .hero-rotating-wrapper {
        font-size: 0.9rem;
    }

    .hero-quote {
        font-size: 0.85rem;
        padding-left: 12px;
        max-width: 300px;
    }

    .quote-attr {
        font-size: 0.75rem;
    }

    .hero-cta {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }

    .hero-cta .btn {
        width: 100%;
        text-align: center;
    }

    .profile-image-wrapper {
        width: 160px;
        height: 160px;
    }

    .scroll-indicator {
        bottom: 16px;
    }

    /* About stats */
    .about-stats {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .stat-card {
        padding: 16px 12px;
    }

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

    /* Achievement cards */
    .achievement-logo {
        width: 44px;
        height: 44px;
    }

    .achievement-logo img {
        width: 28px;
        height: 28px;
    }

    /* Education */
    .education-card {
        padding: 24px 16px;
    }

    /* Extra / Extracurricular */
    .extra-grid {
        gap: 16px;
    }

    .extra-card {
        padding: 24px 16px;
    }

    .subsection-title {
        margin: 40px 0 20px;
        font-size: 1.2rem;
    }

    /* Gaming grid */
    .gaming-grid {
        grid-template-columns: 1fr;
    }

    /* Hobbies / Interests */
    .hobby-item {
        min-width: 110px;
        padding: 18px 12px;
    }

    /* Travel story */
    .travel-story {
        padding: 24px 16px;
    }

    .travel-story p {
        font-size: 0.9rem;
    }

    /* Adventure cards */
    .adventure-card {
        width: 180px;
    }

    .adventure-card-img {
        height: 130px;
    }

    .adventure-placeholder span {
        font-size: 2.2rem;
    }

    .adventure-heading {
        font-size: 1.1rem;
    }

    /* Passport section */
    .passport-section {
        padding: 24px 16px;
    }

    .passport-subtitle {
        font-size: 0.85rem;
    }

    .continent-label {
        font-size: 0.75rem;
    }

    .country-chip {
        padding: 6px 14px;
        font-size: 0.8rem;
    }

    .country-flag {
        font-size: 1rem;
    }

    .passport-footer {
        gap: 24px;
    }

    .passport-stat-number {
        font-size: 1.6rem;
    }

    .passport-stat-label {
        font-size: 0.7rem;
    }

    /* Certificates */
    .certificates-grid {
        grid-template-columns: 1fr;
    }

    /* Blog */
    .blog-card {
        padding: 20px;
    }

    /* Contact form */
    .contact-info {
        padding: 24px 16px;
    }

    .form-group input,
    .form-group textarea {
        font-size: 0.9rem;
    }

    /* Buttons */
    .btn {
        padding: 10px 20px;
        font-size: 0.85rem;
    }

    /* Footer quote */
    .footer-quote p {
        font-size: 1.3rem;
    }

    .footer-quote-section {
        padding: 48px 0;
    }

    .footer-quote cite {
        font-size: 0.8rem;
    }

    /* Footer */
    .footer-logo {
        font-size: 1.3rem;
    }

    .footer-tagline {
        font-size: 0.8rem;
    }

    .footer-links {
        gap: 16px;
    }

    .footer-links a {
        font-size: 0.8rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
    }

    /* Back to top */
    .back-to-top {
        bottom: 16px;
        right: 16px;
        width: 40px;
        height: 40px;
    }
}

/* Tiny screens */
@media (max-width: 360px) {
    .section-title {
        font-size: 1.7rem;
    }

    .hero-name {
        font-size: 1.8rem;
    }

    .profile-image-wrapper {
        width: 140px;
        height: 140px;
    }

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

    .passport-footer {
        flex-direction: column;
        gap: 16px;
    }

    .footer-quote p {
        font-size: 1.1rem;
    }
}

/* Disable hover effects on touch devices */
@media (hover: none) {
    .achievement-card:hover,
    .hobby-item:hover,
    .gaming-card:hover,
    .extra-card:hover,
    .certificate-card:hover,
    .blog-card:hover,
    .adventure-card:hover,
    .country-chip:hover,
    .stat-card:hover {
        transform: none;
        box-shadow: none;
    }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

    .animate-on-scroll {
        opacity: 1;
        transform: none;
    }
}

/* ---- THEME TRANSITION SMOOTHING ---- */
*,
*::before,
*::after {
    transition-property: background-color, border-color, color, fill, stroke, box-shadow;
    transition-duration: 0.2s;
    transition-timing-function: ease;
}

/* Override for elements that need their own transitions */
.btn,
.achievement-card,
.hobby-item,
.gaming-card,
.extra-card,
.certificate-card,
.blog-card,
.stat-card,
.social-link,
.back-to-top {
    transition: all 0.3s ease;
}
