/* =========================================================
   AZKA PORTOFOLIO - MODERN STYLESHEET
   Theme: Light Blue (#38bdf8), White (#ffffff), Obsidian Dark (#030712)
========================================================= */

/* 1. CSS VARIABLES & DESIGN TOKENS */
:root {
    /* Primary Colors */
    --primary-blue: #38bdf8;
    --primary-blue-light: #7dd3fc;
    --primary-blue-glow: rgba(56, 189, 248, 0.4);
    --primary-cyan: #67e8f9;
    --primary-cyan-glow: rgba(103, 232, 249, 0.35);

    /* Neutral & Background Tones */
    --bg-dark: #030712;
    --bg-surface: #0b1329;
    --bg-card: rgba(15, 23, 42, 0.7);
    --bg-card-hover: rgba(22, 34, 61, 0.85);
    --border-color: rgba(56, 189, 248, 0.18);
    --border-color-hover: rgba(56, 189, 248, 0.5);

    /* Text Colors */
    --text-white: #ffffff;
    --text-slate: #f1f5f9;
    --text-muted: #94a3b8;
    --text-dim: #64748b;

    /* Glows & Shadows */
    --glow-subtle: 0 0 20px rgba(56, 189, 248, 0.15);
    --glow-medium: 0 0 35px rgba(56, 189, 248, 0.3);
    --glow-strong: 0 0 55px rgba(56, 189, 248, 0.5);

    /* Typography & Radius */
    --font-main: 'Plus Jakarta Sans', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-pill: 9999px;
    
    /* Layout */
    --max-width: 1200px;
    --nav-height: 64px;
    --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}


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

html {
    scroll-behavior: smooth;
    color-scheme: dark;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-slate);
    line-height: 1.65;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

::selection {
    background-color: var(--primary-blue);
    color: var(--bg-dark);
}

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

button, input, textarea {
    font-family: inherit;
    border: none;
    outline: none;
}

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

.container {
    width: min(var(--max-width), calc(100% - 40px));
    margin-inline: auto;
}

.section-page {
    padding-block: 100px;
    position: relative;
    z-index: 2;
    scroll-margin-top: 80px;
}


/* 3. BACKGROUND EFFECTS (GRID & AMBIENT GLOW ORBS) */
.grid-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    background-image: 
        linear-gradient(to right, rgba(56, 189, 248, 0.04) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(56, 189, 248, 0.04) 1px, transparent 1px);
    background-size: 44px 44px;
}

.ambient-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.45;
    animation: floatOrb 16s ease-in-out infinite alternate;
}

.orb-1 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.35), transparent 70%);
    top: -80px;
    left: -100px;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(103, 232, 249, 0.25), transparent 70%);
    bottom: 10%;
    right: -120px;
    animation-delay: -6s;
}

.orb-3 {
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.2), transparent 70%);
    top: 45%;
    left: 35%;
    animation-delay: -10s;
}

@keyframes floatOrb {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(35px, 45px) scale(1.1); }
    100% { transform: translate(-25px, -35px) scale(0.95); }
}


/* 4. MOUSE CURSOR GLOW */
.cursor-glow {
    position: fixed;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.12) 0%, rgba(56, 189, 248, 0.04) 40%, transparent 70%);
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 1;
    transition: width 0.3s ease, height 0.3s ease, opacity 0.3s ease;
}


/* 5. FLOATING PILL NAVBAR */
.navbar-wrapper {
    position: fixed;
    top: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    z-index: 100;
    padding-inline: 16px;
    pointer-events: none;
}

.floating-navbar {
    pointer-events: auto;
    width: min(840px, 100%);
    height: var(--nav-height);
    background: rgba(11, 19, 41, 0.82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-pill);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), var(--glow-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 12px 6px 20px;
    transition: var(--transition-smooth);
}

.floating-navbar.scrolled {
    background: rgba(8, 14, 30, 0.94);
    border-color: rgba(56, 189, 248, 0.35);
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.6), var(--glow-medium);
}

/* Brand Logo */
.nav-brand {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 3px;
    color: var(--text-white);
}

.brand-code {
    color: var(--primary-blue);
}

.brand-name {
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 40%, var(--primary-blue-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Nav Menu Links */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-muted);
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-smooth);
}

.nav-link i {
    font-size: 0.85rem;
    opacity: 0.8;
}

.nav-link:hover {
    color: var(--text-white);
    background: rgba(56, 189, 248, 0.1);
}

.nav-link.active {
    color: var(--text-white);
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.25), rgba(14, 165, 233, 0.15));
    border: 1px solid rgba(56, 189, 248, 0.35);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.2);
}

.nav-link.active i {
    color: var(--primary-blue);
    opacity: 1;
}

/* Nav Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Language Switcher */
.lang-switch-group {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    background: rgba(8, 14, 30, 0.85);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: var(--radius-pill);
    padding: 3px 6px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.3);
}

.lang-btn {
    background: transparent;
    color: var(--text-muted);
    font-size: 0.76rem;
    font-weight: 700;
    font-family: var(--font-mono);
    padding: 3px 8px;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.lang-btn:hover {
    color: var(--text-white);
}

.lang-btn.active {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-cyan));
    color: var(--bg-dark);
    box-shadow: 0 0 10px var(--primary-blue-glow);
}

.lang-sep {
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.72rem;
    font-weight: 600;
}

.mobile-lang-box {
    display: none;
}

.highlight-cyan {
    color: var(--primary-blue);
    text-shadow: 0 0 20px var(--primary-blue-glow);
}

.nav-cta-btn {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--bg-dark);
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-cyan));
    padding: 9px 18px;
    border-radius: var(--radius-pill);
    display: flex;
    align-items: center;
    gap: 7px;
    box-shadow: 0 0 20px var(--primary-blue-glow);
    transition: var(--transition-smooth);
}

.nav-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px var(--primary-blue-glow);
}

/* Mobile Toggle Hamburger */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 32px;
    height: 22px;
    background: transparent;
    cursor: pointer;
    padding: 0;
    z-index: 105;
}

.mobile-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: var(--text-white);
    border-radius: 2px;
    transition: var(--transition-smooth);
}

.mobile-toggle.open span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
    background-color: var(--primary-blue);
}

.mobile-toggle.open span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.open span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
    background-color: var(--primary-blue);
}


/* 6. HERO SECTION */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 130px;
    padding-bottom: 60px;
}

/* Hero container uses space-between as requested */
.hero-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.hero-content {
    flex: 1;
    max-width: 620px;
}

/* Status Pill */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 16px;
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--primary-blue-light);
    margin-bottom: 20px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 10px #10b981;
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.3); }
}

/* Hero Title & Texts */
.hero-greeting {
    font-size: 1.25rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 4px;
}

.hero-title {
    font-size: clamp(3rem, 6vw, 4.8rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -1.5px;
    color: var(--text-white);
    margin-bottom: 14px;
}

.title-dot {
    color: var(--primary-blue);
    text-shadow: 0 0 25px var(--primary-blue);
}

/* Typewriter Box */
.typewriter-box {
    font-size: clamp(1.15rem, 2.5vw, 1.5rem);
    font-weight: 600;
    color: var(--text-slate);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.typewriter-prefix {
    color: var(--text-muted);
}

.typewriter-text {
    color: var(--primary-blue);
    font-family: var(--font-mono);
    text-shadow: 0 0 15px rgba(56, 189, 248, 0.4);
    min-width: 10px;
}

.cursor-blink {
    color: var(--primary-cyan);
    font-weight: 300;
    animation: blinkCursor 0.8s infinite;
}

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

/* Student Tag */
.student-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
}

.student-tag i {
    color: var(--primary-blue);
}

/* Hero Description */
.hero-description {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 32px;
    font-style: italic;
}

/* Hero Buttons */
.hero-cta-group {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

/* Base Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 13px 28px;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-cyan));
    color: var(--bg-dark);
    box-shadow: 0 0 25px var(--primary-blue-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 35px var(--primary-blue-glow);
}

.btn-secondary {
    background: rgba(15, 23, 42, 0.7);
    color: var(--text-white);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(56, 189, 248, 0.12);
    border-color: var(--primary-blue);
    transform: translateY(-3px);
    box-shadow: var(--glow-subtle);
}

.btn-block {
    width: 100%;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-white);
    font-family: var(--font-mono);
}

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

.stat-divider {
    width: 1px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
}


/* 7. HERO VISUAL & PHOTO */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.photo-container {
    position: relative;
    width: 380px;
    height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
}

/* Glowing Neon Rings */
.glow-ring {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.ring-outer {
    width: 390px;
    height: 390px;
    border: 2px dashed rgba(56, 189, 248, 0.25);
    animation: rotateClockwise 30s linear infinite;
}

.ring-inner {
    width: 340px;
    height: 340px;
    border: 1.5px solid rgba(103, 232, 249, 0.35);
    box-shadow: inset 0 0 20px rgba(56, 189, 248, 0.2);
    animation: rotateCounter 20s linear infinite;
}

@keyframes rotateClockwise {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes rotateCounter {
    from { transform: rotate(0deg); }
    to { transform: rotate(-360deg); }
}

.photo-glow-backdrop {
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.3) 0%, transparent 70%);
    filter: blur(35px);
    z-index: 1;
}

/* Photo Frame */
.photo-frame {
    position: relative;
    width: 290px;
    height: 350px;
    border-radius: 28px;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.9), rgba(11, 19, 41, 0.95));
    border: 2px solid rgba(56, 189, 248, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), var(--glow-medium);
    z-index: 2;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.photo-frame:hover .profile-img {
    transform: scale(1.05);
}

.photo-overlay-glass {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(3, 7, 18, 0.7) 0%, transparent 40%);
    pointer-events: none;
}

/* Floating Skill Badges */
.floating-badge {
    position: absolute;
    background: rgba(11, 19, 41, 0.85);
    backdrop-filter: blur(6px);
    border: 1px solid var(--border-color);
    padding: 8px 14px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), var(--glow-subtle);
    z-index: 3;
    animation: floatBadge 5s ease-in-out infinite alternate;
}

.badge-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(56, 189, 248, 0.15);
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}

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

.badge-text strong {
    font-size: 0.85rem;
    color: var(--text-white);
}

.badge-text span {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.badge-code {
    top: 25px;
    left: -20px;
    animation-delay: 0s;
}

.badge-network {
    bottom: 30px;
    right: -25px;
    animation-delay: -2s;
}

.badge-ai {
    bottom: -15px;
    left: 20px;
    animation-delay: -3.5s;
}

@keyframes floatBadge {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-10px); }
}

/* Scroll Down Indicator */
.scroll-down-btn {
    align-self: center;
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    opacity: 0.7;
    transition: var(--transition-smooth);
}

.scroll-down-btn:hover {
    opacity: 1;
    color: var(--primary-blue);
}

.scroll-down-btn i {
    animation: bounceDown 2s infinite;
}

@keyframes bounceDown {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(6px); }
    60% { transform: translateY(3px); }
}


/* 8. SECTION HEADERS */
.section-header {
    margin-bottom: 55px;
}

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

.badge-subtitle {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary-blue);
    letter-spacing: 1.5px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-white);
    margin-bottom: 12px;
}

.section-title span {
    color: var(--primary-blue);
    text-shadow: 0 0 20px var(--primary-blue-glow);
}

.section-desc {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-inline: auto;
}


/* 9. ABOUT SECTION & DAILY ROTATION SPOTIFY */
.about-intro-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 28px;
    margin-bottom: 60px;
}

.about-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    backdrop-filter: blur(6px);
    transition: var(--transition-smooth);
}

.about-card:hover {
    border-color: var(--border-color-hover);
    box-shadow: var(--glow-subtle);
}

/* Intro Card */
.intro-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.intro-avatar {
    position: relative;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    border: 2px solid var(--primary-blue);
    overflow: hidden;
    flex-shrink: 0;
}

.intro-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.online-indicator {
    position: absolute;
    bottom: 3px;
    right: 3px;
    width: 12px;
    height: 12px;
    background: #10b981;
    border: 2px solid var(--bg-dark);
    border-radius: 50%;
}

.intro-tag {
    font-size: 0.82rem;
    color: var(--primary-cyan);
    font-weight: 600;
}

.intro-name {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-white);
}

.intro-role {
    font-size: 0.88rem;
    color: var(--text-muted);
}

.about-bio-text {
    font-size: 0.95rem;
    color: var(--text-slate);
    line-height: 1.7;
    margin-bottom: 14px;
}

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

.skills-pill-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.skill-pill {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-slate);
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.2);
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    display: flex;
    align-items: center;
    gap: 7px;
    transition: var(--transition-smooth);
}

.skill-pill i {
    color: var(--primary-blue);
}

.skill-pill:hover {
    background: rgba(56, 189, 248, 0.18);
    border-color: var(--primary-blue);
    transform: translateY(-2px);
}

/* Spotify Daily Rotation Card */
.spotify-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.spotify-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

.spotify-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(29, 185, 84, 0.15);
    color: #1ed760;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 0 20px rgba(29, 185, 84, 0.25);
}

.card-heading {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-white);
}

.spotify-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 18px;
}

.spotify-player-container {
    margin-bottom: 16px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* Music Equalizer Wave */
.music-wave-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.equalizer {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 20px;
}

.equalizer .bar {
    width: 3px;
    background: var(--primary-blue);
    border-radius: 2px;
    animation: waveBounce 1.2s ease-in-out infinite alternate;
}

.bar-1 { height: 60%; animation-delay: 0.1s; }
.bar-2 { height: 90%; animation-delay: 0.4s; }
.bar-3 { height: 40%; animation-delay: 0.2s; }
.bar-4 { height: 100%; animation-delay: 0.6s; }
.bar-5 { height: 75%; animation-delay: 0.3s; }
.bar-6 { height: 35%; animation-delay: 0.5s; }
.bar-7 { height: 85%; animation-delay: 0.2s; }
.bar-8 { height: 50%; animation-delay: 0.7s; }

@keyframes waveBounce {
    0% { height: 20%; }
    100% { height: 100%; }
}

.sound-tag {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-style: italic;
}


/* 10. EDUCATION & EXPERIENCE (2 COLUMNS, SCROLLABLE EXPERIENCE) */
.journey-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.journey-column {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px;
    backdrop-filter: blur(6px);
    display: flex;
    flex-direction: column;
}

.column-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
}

.header-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(56, 189, 248, 0.12);
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    border: 1px solid rgba(56, 189, 248, 0.25);
}

.column-badge {
    font-size: 0.75rem;
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--primary-blue);
    display: block;
}

.column-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-white);
}

.scroll-hint {
    margin-left: auto;
    font-size: 0.75rem;
    color: var(--primary-blue-light);
    background: rgba(56, 189, 248, 0.1);
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(56, 189, 248, 0.2);
}

/* Timeline Components */
.timeline-wrapper {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: relative;
}

/* Scrollable Container for Experience */
.scrollable-timeline {
    max-height: 480px;
    overflow-y: auto;
    padding-right: 12px;
}

/* Custom Scrollbar for Experience Column */
.scrollable-timeline::-webkit-scrollbar {
    width: 6px;
}

.scrollable-timeline::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.5);
    border-radius: 10px;
}

.scrollable-timeline::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--primary-blue), var(--primary-cyan));
    border-radius: 10px;
    box-shadow: 0 0 10px var(--primary-blue-glow);
}

.scrollable-timeline::-webkit-scrollbar-thumb:hover {
    background: var(--primary-blue-light);
}

.timeline-item {
    position: relative;
    padding-left: 24px;
    border-left: 2px solid rgba(56, 189, 248, 0.2);
}

.timeline-dot {
    position: absolute;
    left: -7px;
    top: 10px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--bg-dark);
    border: 2px solid var(--primary-blue);
    box-shadow: 0 0 10px var(--primary-blue-glow);
}

.dot-active {
    background: var(--primary-blue);
    box-shadow: 0 0 15px var(--primary-blue);
}

.timeline-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    padding: 20px;
    transition: var(--transition-smooth);
}

.timeline-card:hover {
    background: rgba(56, 189, 248, 0.04);
    border-color: rgba(56, 189, 248, 0.3);
    transform: translateX(4px);
}

.card-featured {
    border-color: rgba(56, 189, 248, 0.3);
    background: rgba(56, 189, 248, 0.03);
}

.timeline-period {
    font-size: 0.8rem;
    font-family: var(--font-mono);
    color: var(--primary-blue-light);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.current-pill {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
    font-size: 0.68rem;
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    font-weight: 600;
}

.timeline-place {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 2px;
}

.timeline-major {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 8px;
}

.timeline-details {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 12px;
}

.timeline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.timeline-tags span {
    font-size: 0.72rem;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-slate);
    padding: 3px 9px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.05);
}


/* 11. PORTFOLIO SECTION (FLEX-ROW ON DESKTOP, FLEX-COLUMN ON MOBILE) */
.portofolio-filters {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 45px;
}

.filter-btn {
    background: rgba(15, 23, 42, 0.7);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    padding: 9px 20px;
    border-radius: var(--radius-pill);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-smooth);
}

.filter-btn:hover {
    color: var(--text-white);
    border-color: var(--primary-blue);
    background: rgba(56, 189, 248, 0.1);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-cyan));
    color: var(--bg-dark);
    border-color: transparent;
    box-shadow: 0 0 20px var(--primary-blue-glow);
}

.portofolio-list {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.portfolio-card-hidden {
    opacity: 0;
    transform: translateY(18px);
}

.portfolio-card-visible {
    animation: portfolioCardIn 0.45s ease both;
}

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

.load-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 32px;
}

.btn-load-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 11px 21px;
    color: var(--text-white);
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(56, 189, 248, 0.45);
    border-radius: var(--radius-pill);
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.12);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    cursor: pointer;
    font-weight: 700;
    transition: var(--transition-smooth);
}

.btn-load-more:hover {
    color: var(--bg-dark);
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-cyan));
    border-color: transparent;
    box-shadow: 0 0 25px var(--primary-blue-glow);
    transform: translateY(-2px);
}

/* Card Style with flex-direction: row on desktop */
.porto-card {
    display: flex;
    flex-direction: row;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    backdrop-filter: blur(6px);
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
    min-height: 250px;
}

.porto-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-color-hover);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), var(--glow-medium);
}

.porto-media {
    flex: 0 0 38%;
    position: relative;
    overflow: hidden;
    min-height: 220px;
    background: rgba(0, 0, 0, 0.2); 
    display: flex;
    align-items: center;
    justify-content: center;  
}

/* Self-contained visual treatment for featured mini-labs. */
.porto-lab-visual {
    isolation: isolate;
    background:
        radial-gradient(circle at 72% 28%, rgba(34, 211, 238, 0.28), transparent 24%),
        radial-gradient(circle at 25% 78%, rgba(59, 130, 246, 0.34), transparent 33%),
        linear-gradient(135deg, #071428 0%, #0b2340 100%);
}

.portfolio-system-visual {
    background:
        radial-gradient(circle at 70% 30%, rgba(168, 85, 247, 0.28), transparent 25%),
        radial-gradient(circle at 30% 75%, rgba(34, 211, 238, 0.22), transparent 38%),
        linear-gradient(135deg, #100d2b 0%, #0b2340 100%);
}

.lab-grid {
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0.38;
    background-image: linear-gradient(rgba(103, 232, 249, 0.22) 1px, transparent 1px), linear-gradient(90deg, rgba(103, 232, 249, 0.22) 1px, transparent 1px);
    background-size: 26px 26px;
    mask-image: linear-gradient(to bottom, transparent, #000 20%, #000 80%, transparent);
}

.lab-icon {
    color: #d9fbff;
    font-size: clamp(3.6rem, 8vw, 6.5rem);
    padding: 26px;
    border: 1px solid rgba(103, 232, 249, 0.45);
    border-radius: 24px;
    background: rgba(7, 20, 40, 0.45);
    box-shadow: 0 0 42px rgba(34, 211, 238, 0.35), inset 0 0 26px rgba(56, 189, 248, 0.14);
}

.lab-orbit {
    position: absolute;
    border: 1px solid rgba(103, 232, 249, 0.32);
    border-radius: 50%;
    pointer-events: none;
}

.lab-orbit-one { width: 210px; height: 210px; transform: rotateX(65deg) rotateZ(15deg); }
.lab-orbit-two { width: 270px; height: 270px; transform: rotateY(58deg) rotateZ(-25deg); }

.porto-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

/* Keep the portrait MTCNA certificate compact in its portfolio card. */
.porto-img-certificate {
    width: auto;
    height: auto;
    max-width: 86%;
    max-height: 210px;
    object-fit: contain;
}

.porto-card:hover .porto-img {
    transform: scale(1.06);
}

.porto-badge-category {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(11, 19, 41, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-color);
    color: var(--primary-blue-light);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: var(--radius-pill);
    display: flex;
    align-items: center;
    gap: 6px;
}

.porto-info {
    flex: 1;
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.porto-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.porto-tag-featured {
    font-size: 0.75rem;
    font-weight: 600;
    color: #fbbf24;
    display: flex;
    align-items: center;
    gap: 5px;
}

.porto-tag-cert {
    font-size: 0.75rem;
    font-weight: 600;
    color: #34d399;
    display: flex;
    align-items: center;
    gap: 5px;
}

.porto-tag-award {
    font-size: 0.75rem;
    font-weight: 600;
    color: #f472b6;
    display: flex;
    align-items: center;
    gap: 5px;
}

.porto-date {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-dim);
}

.porto-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.porto-card:hover .porto-title {
    color: var(--primary-blue);
}

.porto-description {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 18px;
}

.porto-tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
}

.porto-tech-stack span {
    font-size: 0.75rem;
    font-family: var(--font-mono);
    color: var(--primary-cyan);
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.2);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
}

.porto-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: auto;
}

.btn-porto-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-white);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-porto-link:hover {
    background: rgba(56, 189, 248, 0.15);
    border-color: var(--primary-blue);
    color: var(--primary-blue-light);
}

.btn-porto-preview {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--bg-dark);
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-cyan));
    padding: 8px 18px;
    border-radius: var(--radius-pill);
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 0 15px var(--primary-blue-glow);
    transition: var(--transition-smooth);
}

.btn-porto-preview:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px var(--primary-blue-glow);
}


/* 12. CONTACT SECTION (FORM, COMMENTS & SOCIAL MEDIA) */
.contact-layout-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 32px;
}

.glass-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    backdrop-filter: blur(6px);
    transition: var(--transition-smooth);
}

.glass-box:hover {
    border-color: var(--border-color-hover);
}

.contact-box {
    margin-bottom: 28px;
}

.box-title-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.box-icon-glow {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(56, 189, 248, 0.12);
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    border: 1px solid rgba(56, 189, 248, 0.25);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.2);
}

.box-heading {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-white);
}

/* Contact Form Elements */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

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

.form-group label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group label i {
    color: var(--primary-blue);
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: rgba(8, 14, 30, 0.7);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-size: 0.92rem;
    color: var(--text-white);
    transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-blue);
    background: rgba(8, 14, 30, 0.95);
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.25);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-dim);
}

.form-alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    text-align: center;
    margin-top: 10px;
}

.form-alert.success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #34d399;
}

/* Comment Box & Live Guestbook */
.comment-box {
    margin-top: 28px;
}

.comment-input-area {
    margin-bottom: 20px;
}

.comment-input-row {
    display: grid;
    grid-template-columns: 140px 1fr auto;
    gap: 10px;
}

.comment-input-row input {
    background: rgba(8, 14, 30, 0.7);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-size: 0.85rem;
    color: var(--text-white);
}

.comment-input-row input:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.2);
}

.btn-comment-send {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-cyan));
    color: var(--bg-dark);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0 16px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-smooth);
}

.btn-comment-send:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 15px var(--primary-blue-glow);
}

.comments-scroll-list {
    max-height: 240px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-right: 6px;
}

.comments-scroll-list::-webkit-scrollbar {
    width: 4px;
}

.comments-scroll-list::-webkit-scrollbar-thumb {
    background: var(--primary-blue);
    border-radius: 4px;
}

.comment-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    transition: var(--transition-smooth);
}

.comment-item:hover {
    background: rgba(56, 189, 248, 0.04);
    border-color: rgba(56, 189, 248, 0.2);
}

.comment-avatar-bubble {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-cyan));
    color: var(--bg-dark);
    font-weight: 700;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.comment-content {
    flex: 1;
}

.comment-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 3px;
}

.comment-author {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-white);
}

.comment-time {
    font-size: 0.72rem;
    color: var(--text-dim);
}

.comment-text {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Social Hub ("Find Me") Box */
.social-hub-box {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.social-hub-desc {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.social-cards-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.social-pill-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

.social-pill-card:hover {
    background: rgba(56, 189, 248, 0.08);
    border-color: var(--primary-blue);
    transform: translateX(6px);
    box-shadow: var(--glow-subtle);
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(56, 189, 248, 0.12);
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    transition: var(--transition-smooth);
}

.social-pill-card:hover .social-icon {
    background: var(--primary-blue);
    color: var(--bg-dark);
    box-shadow: 0 0 15px var(--primary-blue-glow);
}

/* Brand specific icon tints on hover */
.card-instagram:hover .social-icon { background: #e1306c; color: #fff; box-shadow: 0 0 15px rgba(225, 48, 108, 0.5); }
.card-linkedin:hover .social-icon { background: #0a66c2; color: #fff; box-shadow: 0 0 15px rgba(10, 102, 194, 0.5); }
.card-github:hover .social-icon { background: #ffffff; color: #000; box-shadow: 0 0 15px rgba(255, 255, 255, 0.4); }
.card-discord:hover .social-icon { background: #5865f2; color: #fff; box-shadow: 0 0 15px rgba(88, 101, 242, 0.5); }
.card-youtube:hover .social-icon { background: #ff0000; color: #fff; box-shadow: 0 0 15px rgba(255, 0, 0, 0.5); }

.social-details {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.social-details strong {
    font-size: 0.95rem;
    color: var(--text-white);
}

.social-details span {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.social-arrow {
    font-size: 0.85rem;
    color: var(--text-dim);
    transition: var(--transition-smooth);
}

.social-pill-card:hover .social-arrow {
    color: var(--primary-blue);
    transform: translate(2px, -2px);
}

/* Direct Email Card */
.direct-contact-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    border-radius: var(--radius-md);
    background: rgba(56, 189, 248, 0.05);
    border: 1px dashed rgba(56, 189, 248, 0.3);
    margin-top: 10px;
}

.direct-icon {
    font-size: 1.4rem;
    color: var(--primary-blue);
}

.direct-contact-card span {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.direct-email-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-cyan);
}

.direct-email-link:hover {
    text-decoration: underline;
    color: var(--text-white);
}


/* 13. MODAL / LIGHTBOX WINDOW */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(3, 7, 18, 0.85);
    backdrop-filter: blur(6px);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.modal-window {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: min(650px, 100%);
    max-height: 88vh;
    overflow-y: auto;
    position: relative;
    padding: 30px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), var(--glow-medium);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.active .modal-window {
    transform: scale(1);
}

.modal-close-btn {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-slate);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--transition-smooth);
}

.modal-close-btn:hover {
    background: var(--primary-blue);
    color: var(--bg-dark);
}

.modal-img-preview {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

/* The certificate can use the modal's full available width when viewed. */
.modal-img-preview.certificate-preview {
    max-height: none;
    object-fit: contain;
}

.modal-tabs {
    display: flex;
    gap: 9px;
    overflow-x: auto;
    margin: -8px 0 20px;
    padding: 8px 3px;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-blue) transparent;
}

.modal-tabs:empty {
    display: none;
}

.modal-tab-btn {
    flex: 0 0 auto;
    border: 1px solid rgba(125, 211, 252, 0.2);
    border-radius: var(--radius-pill);
    padding: 8px 14px;
    background: rgba(15, 23, 42, 0.6);
    color: var(--text-muted);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.modal-tab-btn:hover {
    color: var(--text-white);
    border-color: var(--primary-cyan);
    background: rgba(34, 211, 238, 0.12);
    transform: translateY(-1px);
}

.modal-tab-btn.active {
    color: var(--bg-dark);
    border-color: transparent;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-cyan));
    box-shadow: 0 0 18px var(--primary-blue-glow);
}

.modal-header-tag {
    font-size: 0.8rem;
    font-family: var(--font-mono);
    color: var(--primary-blue);
    font-weight: 700;
    display: block;
    margin-bottom: 6px;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 12px;
}

.credential-id {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: -4px 0 13px;
    padding: 7px 10px;
    color: var(--primary-cyan);
    background: rgba(34, 211, 238, 0.08);
    border: 1px solid rgba(34, 211, 238, 0.24);
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.75rem;
}

.credential-id span {
    color: var(--text-slate);
}

.modal-text {
    font-size: 0.95rem;
    color: var(--text-slate);
    line-height: 1.7;
    margin-bottom: 20px;
}


/* 14. BACK TO TOP BUTTON */
.back-to-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(11, 19, 41, 0.85);
    border: 1px solid var(--border-color);
    color: var(--primary-blue);
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5), var(--glow-subtle);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    z-index: 90;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: var(--transition-smooth);
}

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

.back-to-top:hover {
    background: var(--primary-blue);
    color: var(--bg-dark);
    transform: translateY(-4px);
    box-shadow: 0 0 25px var(--primary-blue-glow);
}


/* 15. FOOTER */
.main-footer {
    background: rgba(5, 11, 23, 0.9);
    border-top: 1px solid rgba(56, 189, 248, 0.15);
    padding-block: 50px 30px;
    position: relative;
    z-index: 2;
}

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

.footer-logo {
    font-family: var(--font-mono);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-white);
}

.footer-logo span {
    color: var(--primary-blue);
}

.footer-tagline {
    font-size: 0.9rem;
    color: var(--text-muted);
    max-width: 450px;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--text-muted);
}

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

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.82rem;
    color: var(--text-dim);
    flex-wrap: wrap;
    gap: 12px;
}

.footer-status {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-blue-light);
}

.live-dot {
    width: 7px;
    height: 7px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 8px #10b981;
}


/* 16. SCROLL REVEAL ANIMATIONS */
.js .reveal-up,
.js .reveal-left,
.js .reveal-right {
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.js .reveal-up {
    transform: translate3d(0, 35px, 0);
}

.js .reveal-left {
    transform: translate3d(-35px, 0, 0);
}

.js .reveal-right {
    transform: translate3d(35px, 0, 0);
}

.js .reveal-active {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}


/* =========================================================
   17. RESPONSIVE BREAKPOINTS
========================================================= */

/* Tablet (Max 1024px) */
@media (max-width: 1024px) {
    .hero-container {
        gap: 30px;
    }
    
    .about-intro-grid {
        grid-template-columns: 1fr;
    }

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

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

/* Mobile & Small Tablets (Max 768px) */
@media (max-width: 768px) {
    .section-page {
        padding-block: 70px;
    }

    /* Floating Navbar Mobile Dropdown */
    .floating-navbar {
        height: 56px;
        padding-inline: 16px;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: 20px;
        right: 20px;
        background: rgba(11, 19, 41, 0.95);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border: 1px solid var(--border-color);
        border-radius: var(--radius-lg);
        padding: 24px;
        flex-direction: column;
        gap: 12px;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7), var(--glow-medium);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-15px);
        transition: var(--transition-smooth);
        pointer-events: auto;
    }

    .nav-menu.open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-link {
        width: 100%;
        justify-content: flex-start;
        padding: 12px 18px;
        font-size: 1rem;
    }

    .desktop-lang-switch {
        display: none;
    }

    .mobile-lang-box {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding-top: 14px;
        margin-top: 6px;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        width: 100%;
    }

    .mobile-lang-label {
        font-size: 0.85rem;
        color: var(--text-muted);
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .mobile-lang-label i {
        color: var(--primary-blue);
    }

    .nav-cta-btn {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    /* Hero Section Responsive */
    .hero-section {
        padding-top: 100px;
    }

    .hero-container {
        flex-direction: column-reverse;
        text-align: center;
        gap: 40px;
    }

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

    .typewriter-box {
        justify-content: center;
    }

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

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

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

    .photo-container {
        width: 300px;
        height: 340px;
    }

    .ring-outer {
        width: 310px;
        height: 310px;
    }

    .ring-inner {
        width: 270px;
        height: 270px;
    }

    .photo-frame {
        width: 230px;
        height: 280px;
    }

    .floating-badge {
        padding: 6px 10px;
    }

    .badge-code {
        top: 10px;
        left: -15px;
    }

    .badge-network {
        bottom: 15px;
        right: -15px;
    }

    .badge-ai {
        bottom: -15px;
        left: 10px;
    }

    /* PORTFOLIO CARD FLEX-DIRECTION COLUMN ON MOBILE */
    .porto-card {
        flex-direction: column !important;
    }

    .porto-media {
        flex: 0 0 200px;
        min-height: 200px;
    }

    .porto-info {
        padding: 22px;
    }

    .modal-backdrop {
        padding: 12px;
    }

    .modal-window {
        max-height: 92vh;
        padding: 22px;
    }

    .modal-tabs {
        margin-bottom: 16px;
    }

    /* Forms */
    .form-row {
        grid-template-columns: 1fr;
    }

    .comment-input-row {
        grid-template-columns: 1fr;
    }

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

/* Small Phones (Max 480px) */
@media (max-width: 480px) {
    .container {
        width: calc(100% - 24px);
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .photo-container {
        width: 260px;
        height: 300px;
    }

    .photo-frame {
        width: 200px;
        height: 250px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 12px;
    }

    .stat-divider {
        display: none;
    }
}

/* 18. PERFORMANCE SAFEGUARDS ------------------------------------------------
   Keep expensive compositing isolated and animate only compositor-friendly
   properties. These rules intentionally follow component styles. */
.cursor-glow,
.photo-container,
.photo-frame,
.glow-ring,
.photo-glow-backdrop,
.floating-badge,
.modal-backdrop,
.porto-card,
.about-card,
.glass-box {
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
}

.photo-container,
.glow-ring,
.floating-badge,
.modal-window,
.modal-backdrop,
.js .reveal-up,
.js .reveal-left,
.js .reveal-right {
    will-change: transform, opacity;
}

/* The cursor is moved exclusively with transform by JavaScript. */
.cursor-glow {
    left: 0;
    top: 0;
    will-change: transform, width, height;
}

/* Desktop glass stays subtle: no surface blur exceeds 8px. */
.floating-navbar { backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.floating-badge,
.about-card,
.glass-box,
.btn-load-more,
.porto-card,
.modal-backdrop { backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.porto-badge-category,
.copy-tooltip,
.back-to-top { backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }

/* Spotlights use CSS variables, avoiding a new full background string per frame. */
.has-spotlight {
    background-image: radial-gradient(220px circle at var(--spot-x, 50%) var(--spot-y, 50%), rgba(56, 189, 248, 0.12), transparent 68%);
}

@keyframes floatOrb {
    0% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(35px, 45px, 0) scale(1.1); }
    100% { transform: translate3d(-25px, -35px, 0) scale(0.95); }
}

@keyframes floatBadge {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(0, -10px, 0); }
}

@media (max-width: 768px), (hover: none), (pointer: coarse) {
    .ambient-orb,
    .cursor-glow { display: none !important; }

    .floating-navbar,
    .nav-menu,
    .floating-badge,
    .about-card,
    .glass-box,
    .btn-load-more,
    .porto-card,
    .modal-backdrop,
    .porto-badge-category,
    .copy-tooltip,
    .back-to-top {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    .floating-navbar,
    .nav-menu { background: rgba(11, 19, 41, 0.95); }
    .floating-badge,
    .about-card,
    .glass-box,
    .porto-card,
    .btn-load-more { background-color: rgba(11, 19, 41, 0.95); }

    .photo-glow-backdrop { filter: blur(20px); opacity: 0.7; }
    .photo-container { will-change: auto; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
    .js .reveal-up,
    .js .reveal-left,
    .js .reveal-right { opacity: 1; transform: translate3d(0, 0, 0); }
}
