/* ============================================
   DERRAR FAROUK — DATA ENGINEER PORTFOLIO
   Inspired by yassine-sinif.vercel.app
   Dark cosmic theme + red/orange accent
   ============================================ */

/* === SPLASH SCREEN (iPhone-style Hello) === */
.splash-screen {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.splash-screen.splash-exit {
    opacity: 0;
    transform: scale(1.05);
    pointer-events: none;
}

.splash-screen.splash-hidden {
    display: none;
}

.splash-bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    animation: splashGlowPulse 4s ease-in-out infinite alternate;
}

.splash-glow-1 {
    width: 500px;
    height: 500px;
    top: -100px;
    left: -100px;
    background: radial-gradient(circle, rgba(232, 68, 42, 0.15) 0%, transparent 70%);
}

.splash-glow-2 {
    width: 400px;
    height: 400px;
    bottom: -80px;
    right: -80px;
    background: radial-gradient(circle, rgba(255, 120, 80, 0.12) 0%, transparent 70%);
    animation-delay: 1.5s;
}

.splash-glow-3 {
    width: 350px;
    height: 350px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(232, 68, 42, 0.08) 0%, transparent 70%);
    animation-name: splashGlowCenter;
}

@keyframes splashGlowPulse {
    0% {
        opacity: 0.5;
        transform: scale(1);
    }

    100% {
        opacity: 1;
        transform: scale(1.2);
    }
}

@keyframes splashGlowCenter {
    0% {
        opacity: 0.4;
        transform: translate(-50%, -50%) scale(1);
    }

    100% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.3);
    }
}

.splash-hello-wrapper {
    position: relative;
    z-index: 2;
}

.splash-hello {
    font-family: 'Pacifico', cursive;
    font-size: clamp(4rem, 10vw, 8rem);
    background: linear-gradient(135deg, #ffffff 0%, #9ca3af 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    padding: 0 10px;
    letter-spacing: -2px;
    opacity: 0;
    transform: scale(0.9) translateY(20px);
    animation: fadeScaleUp 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.15));
}

@keyframes fadeScaleUp {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(30px);
        filter: blur(10px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
        filter: blur(0px);
    }
}

.splash-subtitle {
    position: relative;
    z-index: 2;
    margin-top: 10px;
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--text-secondary);
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInSlideUp 1s ease forwards 0.8s;
}

@keyframes fadeInSlideUp {
    0% {
        opacity: 0;
        transform: translateY(15px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

body.splash-active {
    overflow: hidden;
}

/* === CSS Variables === */
:root {
    --bg-body: #080B14;
    --bg-section: #0a0d16;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.06);
    --bg-dock: rgba(10, 12, 20, 0.85);

    --text-primary: #f0f0f0;
    --text-secondary: #8a8a8a;
    --text-muted: #555555;

    --accent: #e8442a;
    --accent-rgb: 232, 68, 42;
    --accent-light: #ff6b4a;
    --accent-gradient: linear-gradient(135deg, #e8442a 0%, #ff6b4a 100%);

    --border-color: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);

    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);

    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
}

/* === Light Theme === */
[data-theme="light"] {
    --bg-body: #f5f5f7;
    --bg-section: #ffffff;
    --bg-card: rgba(0, 0, 0, 0.03);
    --bg-card-hover: rgba(0, 0, 0, 0.06);
    --bg-dock: rgba(255, 255, 255, 0.85);

    --text-primary: #1a1a2e;
    --text-secondary: #555566;
    --text-muted: #999aaa;

    --accent: #e8442a;
    --accent-rgb: 232, 68, 42;
    --accent-light: #ff6b4a;
    --accent-gradient: linear-gradient(135deg, #e8442a 0%, #ff6b4a 100%);

    --border-color: rgba(0, 0, 0, 0.08);
    --border-hover: rgba(0, 0, 0, 0.14);

    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(0, 0, 0, 0.08);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

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

html {
    scroll-behavior: smooth;
}

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

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

::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-light);
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    transition: background-color 0.4s ease, color 0.4s ease;
}

/* === Clean Dark Background === */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: transparent;
}

::selection {
    background: rgba(232, 68, 42, 0.3);
    color: #fff;
}

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

/* === Canvas === */
#starfield-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* === Utilities === */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

.section {
    padding: 100px 0;
    position: relative;
    z-index: 1;
}

.highlight {
    color: var(--accent);
}

.accent-text {
    color: var(--accent);
    font-weight: 500;
}

/* === Glass Card === */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 28px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.4s var(--ease-out);
}

.glass-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

/* === Section Headers === */
.section-header {
    margin-bottom: 48px;
}

.section-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.2;
}

.section-subtitle {
    margin-top: 10px;
    font-size: 1rem;
    color: var(--text-secondary);
}

/* === Side Dock Nav === */
.side-dock {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 8px;
    background: var(--bg-dock);
    border: 1px solid var(--glass-border);
    border-radius: 28px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.dock-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--text-muted);
    font-size: 0.9rem;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
}

.dock-icon:hover,
.dock-icon.active {
    color: var(--accent);
    background: rgba(232, 68, 42, 0.1);
}

.dock-divider {
    width: 24px;
    height: 1px;
    background: var(--border-color);
    margin: 4px 0;
}

/* === HERO (Two-Column Layout) === */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
    padding: 100px 80px 80px 60px;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 80px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-left {
    flex: 1;
    max-width: 600px;
}

.hero-name {
    margin-bottom: 6px;
}

.first-name {
    display: inline-block;
    font-size: clamp(2.5rem, 4.5vw, 4rem);
    font-weight: 900;
    letter-spacing: -2px;
    line-height: 1.05;
    color: var(--text-primary);
    margin-right: 12px;
}

.last-name {
    display: inline-block;
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 5vw, 4.5rem);
    font-weight: 700;
    font-style: italic;
    letter-spacing: -1px;
    line-height: 1.05;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-role {
    font-size: 1.15rem;
    font-family: var(--font-primary);
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-top: 0;
    margin-bottom: 24px;
    display: block;
}

.hero-accent-doodle {
    margin: -10px 0 16px 40%;
    width: 120px;
    opacity: 0.5;
}

.doodle-swirl {
    width: 120px;
    height: 20px;
}

.doodle-swirl path {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: drawSwirlLoop 5s ease-in-out infinite;
    animation-delay: 3s;
}

@keyframes drawSwirlLoop {
    0% {
        stroke-dashoffset: 200;
    }

    30%,
    70% {
        stroke-dashoffset: 0;
    }

    100% {
        stroke-dashoffset: -200;
    }
}

.hero-description {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
    max-width: 500px;
}

.drop-cap {
    font-family: var(--font-display);
    font-size: 4.5rem;
    float: left;
    line-height: 0.8;
    margin-right: 12px;
    margin-top: 8px;
    color: var(--accent);
    font-style: normal;
}

.hero-location {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 36px;
}

.doodle-arrow {
    flex-shrink: 0;
    margin-top: 2px;
}

.doodle-arrow path {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: drawArrow 1s ease-out forwards;
    animation-delay: 3.5s;
}

@keyframes drawArrow {
    to {
        stroke-dashoffset: 0;
    }
}

.location-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.location-text em {
    color: #10b981;
    font-style: normal;
    font-weight: 600;
}

.guided-tour-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    margin-bottom: 24px;
    border: 1px solid rgba(232, 68, 42, 0.3);
    border-radius: 8px;
    background: rgba(232, 68, 42, 0.05);
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
    max-width: 460px;
}

.guided-tour-box:hover {
    background: rgba(232, 68, 42, 0.1);
    border-color: rgba(232, 68, 42, 0.6);
    transform: translateY(-2px);
}

.guided-tour-icon {
    color: var(--accent);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.guided-tour-text {
    flex: 1;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.guided-tour-text strong {
    color: var(--text-primary);
    font-weight: 600;
}

.guided-tour-time {
    color: var(--accent);
    font-weight: 700;
    font-size: 0.75rem;
    margin-left: 8px;
    letter-spacing: 0.5px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 32px;
}

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-accent {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 8px 24px rgba(232, 68, 42, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-accent:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 32px rgba(232, 68, 42, 0.4);
    background: #ff5438;
}

.btn-outline {
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
}

.btn-outline:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-3px) scale(1.02);
}

.btn-text {
    background: transparent;
    color: var(--text-secondary);
    padding: 14px 20px;
}

.btn-text:hover {
    color: #ffffff;
    transform: translateY(-2px);
}

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

/* === Hero Social Row === */
.hero-social-row {
    display: flex;
    gap: 16px;
}

.hero-social-row a {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1.5rem;
    transition: all 0.3s var(--ease-out);
}

.hero-social-row a:hover {
    color: var(--accent);
    transform: translateY(-3px);
}

/* === Hero Portrait (Video) === */
.hero-right {
    flex-shrink: 0;
}

.hero-portrait {
    position: relative;
    width: 560px;
    aspect-ratio: 16 / 9;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}


.hero-portrait.playing .portrait-ring {
    display: none;
}

.portrait-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    transition: all 0.5s var(--ease-out);
    cursor: pointer;
}

.hero-portrait.playing .portrait-video {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

/* Play overlay */
.video-play-overlay {
    position: absolute;
    inset: 0;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: transparent;
    cursor: pointer;
    transition: all 0.4s var(--ease-out);
    z-index: 3;
}

.video-play-overlay:hover {
    background: rgba(0, 0, 0, 0.1);
}

.video-play-overlay:hover .play-btn-circle {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(232, 68, 42, 0.5);
}

.play-btn-circle {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--accent-gradient);
    color: #fff;
    font-size: 1.4rem;
    box-shadow: 0 4px 25px rgba(232, 68, 42, 0.4);
    transition: all 0.3s var(--ease-out);
}

.play-btn-circle i {
    margin-left: 3px;
}

.play-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero-portrait.playing .video-play-overlay {
    opacity: 0;
    pointer-events: none;
}

/* Mute button */
.video-mute-btn {
    position: absolute;
    bottom: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 0.85rem;
    cursor: pointer;
    z-index: 4;
    transition: all 0.3s var(--ease-out);
}

.video-mute-btn:hover {
    background: rgba(232, 68, 42, 0.3);
    border-color: rgba(232, 68, 42, 0.4);
}

/* Expand button */
.video-expand-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 0.85rem;
    cursor: pointer;
    z-index: 4;
    transition: all 0.3s var(--ease-out);
    opacity: 0;
}

.hero-portrait:hover .video-expand-btn {
    opacity: 1;
}

.video-expand-btn:hover {
    background: rgba(232, 68, 42, 0.4);
    border-color: rgba(232, 68, 42, 0.5);
    transform: scale(1.1);
}

/* === Fullscreen Video Modal === */
.video-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.video-modal.active {
    opacity: 1;
    pointer-events: all;
}

.video-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
}

.video-modal-content {
    position: relative;
    width: 90vw;
    max-width: 960px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6), 0 0 60px rgba(232, 68, 42, 0.1);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.video-modal.active .video-modal-content {
    transform: scale(1) translateY(0);
}

.video-modal-player {
    width: 100%;
    display: block;
    background: #000;
    border-radius: 16px;
}

.video-modal-close {
    position: absolute;
    top: -48px;
    right: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
    z-index: 2;
}

.video-modal-close:hover {
    background: rgba(232, 68, 42, 0.4);
    border-color: var(--accent);
    transform: rotate(90deg);
}

/* === Scroll Down === */
.scroll-down {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-muted);
    font-size: 1.2rem;
    animation: bounce-down 2s infinite;
    cursor: pointer;
    z-index: 2;
}

@keyframes bounce-down {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(8px);
    }
}

/* === Marquee === */
.marquee-bar {
    overflow: hidden;
    background: rgba(10, 15, 25, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 18px 0;
    position: relative;
    z-index: 10;
}

.marquee-track {
    display: flex;
    white-space: nowrap;
    animation: marquee 7s linear infinite;
}

.marquee-track span {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 0 20px;
}

.marquee-track .dot {
    color: var(--accent);
    margin: 0 8px;
}

@keyframes marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* === Stats Section === */
.stats-section {
    position: relative;
    overflow: hidden;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-item {
    padding: 20px;
}

.stat-number {
    font-size: 3.8rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 5px;
    font-family: var(--font-primary);
    line-height: 1;
    text-shadow: 0 0 20px rgba(232, 68, 42, 0.4);
}

.stat-label {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* === About Cards === */
.about-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.about-card {
    text-align: center;
    padding: 32px 24px;
}

.about-card-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: rgba(232, 68, 42, 0.08);
    color: var(--accent);
    font-size: 1.4rem;
}

.about-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

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

/* Highlighted Experience Card */
.about-card-highlight {
    border: 1px solid rgba(232, 68, 42, 0.3);
    /* Subtle red border */
}

.about-card-highlight .about-card-icon {
    background: rgba(232, 68, 42, 0.15);
    /* Slightly stronger red background for icon */
}

.about-card-highlight .about-card-icon i {
    color: var(--accent);
}

.glowing-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent);
    position: relative;
}

.glowing-dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    border: 1px solid rgba(232, 68, 42, 0.3);
    border-radius: 50%;
}

.about-lang-list,
.about-cert-list {
    list-style: none;
    text-align: left;
}

.about-lang-list li {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.about-lang-list li:last-child {
    border-bottom: none;
}

.lang-level {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.8rem;
}

.about-cert-list li {
    padding: 6px 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.about-cert-list i {
    color: var(--accent);
    margin-right: 8px;
    font-size: 0.8rem;
}

/* === Stats Row === */
.stats-section {
    position: relative;
    padding: 80px 0;
    border-bottom: 1px solid var(--border-color);
    border-top: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.2);
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 60px;
}

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

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent);
    display: inline;
}

.stat-plus {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* === Timeline === */
.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent), rgba(232, 68, 42, 0.1));
}

.timeline-item {
    position: relative;
    margin-bottom: 48px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.timeline-item.revealed {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -36px;
    top: 32px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent);
    border: 3px solid var(--bg-body);
    z-index: 2;
    box-shadow: 0 0 0 4px rgba(232, 68, 42, 0.15);
}

.timeline-dot-ping {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: rgba(232, 68, 42, 0.3);
    animation: dotPing 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes dotPing {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }

    75%,
    100% {
        transform: scale(2.2);
        opacity: 0;
    }
}

.timeline-card {
    padding: 32px;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.timeline-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(232, 68, 42, 0.06);
    border-color: rgba(232, 68, 42, 0.2);
}

.timeline-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 0;
}

.timeline-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.timeline-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(232, 68, 42, 0.1);
    border: 1px solid rgba(232, 68, 42, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1.1rem;
    flex-shrink: 0;
    transition: background 0.3s ease, transform 0.3s ease;
}

.timeline-card:hover .timeline-icon-wrap {
    background: rgba(232, 68, 42, 0.18);
    transform: scale(1.08);
}

.timeline-role {
    font-size: 1.15rem;
    font-weight: 700;
}

.timeline-sub {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.timeline-sub i {
    margin-right: 4px;
    font-size: 0.75rem;
    color: var(--accent);
}

.timeline-date-badge {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
    padding: 6px 14px;
    border: 1px solid rgba(232, 68, 42, 0.2);
    border-radius: 100px;
    white-space: nowrap;
    background: rgba(232, 68, 42, 0.05);
    display: flex;
    align-items: center;
    gap: 6px;
}

.timeline-date-badge i {
    font-size: 0.7rem;
}

.timeline-divider {
    height: 1px;
    width: 100%;
    background: linear-gradient(to right, var(--border-color), transparent);
    margin: 20px 0;
}

.timeline-achievements {
    list-style: none;
}

.timeline-achievements li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    transition: color 0.3s ease;
}

.timeline-achievements li:hover {
    color: var(--text-primary);
}

.timeline-achievements li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
    transition: transform 0.3s ease;
}

.timeline-achievements li:hover::before {
    transform: translateX(3px);
}

.timeline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.timeline-tag {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 4px 12px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
}

.timeline-tag:hover {
    color: var(--accent);
    border-color: rgba(232, 68, 42, 0.3);
    background: rgba(232, 68, 42, 0.08);
}

/* === Skills Grid === */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.skill-card {
    padding: 28px;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.skill-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(232, 68, 42, 0.06);
    border-color: rgba(232, 68, 42, 0.2);
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, var(--accent), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.skill-card:hover::before {
    opacity: 1;
}

.skill-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 0;
}

.skill-icon-circle {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(232, 68, 42, 0.08);
    border: 1px solid rgba(232, 68, 42, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1rem;
    flex-shrink: 0;
    transition: background 0.3s ease, transform 0.3s ease;
}

.skill-card:hover .skill-icon-circle {
    background: rgba(232, 68, 42, 0.15);
    transform: scale(1.08);
}

.skill-card-header h3 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}

.skill-card-desc {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.skill-divider {
    height: 1px;
    width: 100%;
    background: linear-gradient(to right, var(--border-color), transparent);
    margin: 18px 0;
}

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

.skill-pill {
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    cursor: default;
}

.skill-pill:hover {
    border-color: rgba(232, 68, 42, 0.4);
    color: var(--accent);
    background: rgba(232, 68, 42, 0.08);
    transform: translateY(-1px);
}

/* === Education === */
.edu-card-full {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 48px;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.edu-card-full:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(232, 68, 42, 0.06);
    border-color: rgba(232, 68, 42, 0.2);
}

.edu-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
    min-width: 140px;
}

.edu-icon-large {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: rgba(232, 68, 42, 0.08);
    border: 1px solid rgba(232, 68, 42, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 2rem;
    box-shadow: 0 0 30px rgba(232, 68, 42, 0.08);
    transition: transform 0.3s ease, background 0.3s ease;
}

.edu-card-full:hover .edu-icon-large {
    transform: scale(1.06);
    background: rgba(232, 68, 42, 0.12);
}

.edu-date-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
    padding: 6px 14px;
    border: 1px solid rgba(232, 68, 42, 0.2);
    border-radius: 100px;
    background: rgba(232, 68, 42, 0.05);
}

.edu-date-badge i {
    font-size: 0.7rem;
}

.edu-divider-v {
    width: 1px;
    align-self: stretch;
    background: linear-gradient(to bottom, transparent, var(--border-color), transparent);
}

.edu-right {
    flex: 1;
}

.edu-degree {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.edu-school {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.edu-school i {
    color: var(--accent);
    margin-right: 6px;
    font-size: 0.8rem;
}

.edu-specialization {
    font-size: 0.9rem;
    color: var(--accent);
    font-weight: 600;
}

.edu-specialization i {
    margin-right: 6px;
    font-size: 0.8rem;
}

.edu-desc-divider {
    height: 1px;
    width: 100%;
    background: linear-gradient(to right, var(--border-color), transparent);
    margin: 16px 0;
}

.edu-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.edu-subjects {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.edu-subject-pill {
    padding: 5px 13px;
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.edu-subject-pill:hover {
    color: var(--accent);
    border-color: rgba(232, 68, 42, 0.3);
    background: rgba(232, 68, 42, 0.08);
}

.cert-checklist {
    list-style: none;
    text-align: left;
    margin-top: 12px;
}

.cert-checklist li {
    padding: 6px 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.cert-checklist i {
    color: var(--accent);
    margin-right: 8px;
}

/* === Project Filters === */
.project-filters {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    font-family: var(--font-primary);
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 100px;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(232, 68, 42, 0.08);
}

/* === Projects Grid === */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.project-card {
    padding: 32px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, var(--accent), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4), 0 0 24px rgba(232, 68, 42, 0.06);
    border-color: rgba(232, 68, 42, 0.2);
}

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

.project-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

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

.badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-progress {
    background: rgba(232, 68, 42, 0.1);
    color: var(--accent);
}

.badge-completed {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.badge-type {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
}

.project-arrow {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.85rem;
    transition: all 0.4s ease;
    text-decoration: none;
}

.project-card:hover .project-arrow {
    color: var(--accent);
    border-color: rgba(232, 68, 42, 0.4);
    background: rgba(232, 68, 42, 0.08);
    transform: rotate(0deg) scale(1.08);
}

.project-number {
    font-family: var(--font-mono);
    font-size: 2.5rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.03);
    line-height: 1;
    margin-bottom: 4px;
    transition: color 0.4s ease;
}

.project-card:hover .project-number {
    color: rgba(232, 68, 42, 0.08);
}

.project-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.project-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 0;
    flex: 1;
}

.project-divider {
    height: 1px;
    width: 100%;
    background: linear-gradient(to right, var(--border-color), transparent);
    margin: 20px 0;
}

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

.project-tags span {
    padding: 5px 13px;
    font-size: 0.78rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.project-tags span:hover {
    color: var(--accent);
    border-color: rgba(232, 68, 42, 0.3);
    background: rgba(232, 68, 42, 0.08);
}

.project-card.hidden {
    display: none;
}

/* === Contact === */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-intro {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 40px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

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

.contact-detail-icon {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--accent);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.contact-detail-item:hover .contact-detail-icon {
    background: rgba(232, 68, 42, 0.08);
    transform: scale(1.05);
}

.contact-detail-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 4px;
}

.contact-detail-item a,
.contact-detail-item span:not(.contact-detail-label) {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-detail-item a:hover {
    color: var(--accent);
}

.cv-btn {
    margin-top: 32px;
    display: inline-flex;
}

/* === Contact Form === */
.contact-form {
    padding: 40px;
    background: rgba(20, 20, 25, 0.4);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.02), 0 20px 40px rgba(0, 0, 0, 0.4);
    border-radius: 24px;
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 0.95rem;
    transition: all 0.4s ease;
    outline: none;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
    font-weight: 400;
}

.form-group input:hover,
.form-group textarea:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: rgba(232, 68, 42, 0.5);
    background: rgba(232, 68, 42, 0.03);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2), 0 0 0 4px rgba(232, 68, 42, 0.1);
    transform: translateY(-2px);
}

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

.submit-btn {
    margin-top: 12px;
    border-radius: 14px;
    padding: 18px;
    font-size: 1.05rem;
    font-weight: 600;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 20px rgba(232, 68, 42, 0.2);
    transition: all 0.3s ease;
}

.submit-btn:hover {
    box-shadow: 0 15px 30px rgba(232, 68, 42, 0.3);
    transform: translateY(-2px);
}

/* === Chatbot === */
.chatbot-floating-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 10000;
    background: var(--bg-section);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    height: 56px;
    padding: 8px 8px 8px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s;
    color: var(--text-primary);
    overflow: hidden;
}

.chatbot-ask-me {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--text-primary);
    white-space: nowrap;
}

.chatbot-floating-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    background: var(--bg-body);
}

.chatbot-floating-btn i {
    font-size: 1.3rem;
    color: var(--text-primary);
}

.chatbot-modal {
    position: fixed;
    bottom: 100px;
    right: 90px;
    z-index: 10000;
    width: 440px;
    height: 680px;
    background: rgba(18, 18, 22, 0.98); /* Premium dark background */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.02);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transform-origin: bottom right;
    transition: all 0.3s var(--ease-out);
    overflow: hidden;
    font-family: var(--font-primary);
}

.chatbot-modal.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.chatbot-header {
    padding: 14px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    flex-shrink: 0;
}

.chatbot-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chatbot-header-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--text-primary);
    overflow: hidden;
}

.ai-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.chatbot-header-text h3 {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.chatbot-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.status-dot {
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
}

.chatbot-header-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.chatbot-action-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1rem;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}

.chatbot-action-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.chatbot-body {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

.chatbot-body::-webkit-scrollbar {
    width: 6px;
}

.chatbot-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

#chat-messages-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* === Welcome State === */
.chat-welcome-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px 10px;
    height: 100%;
    animation: fadeIn 0.4s ease;
}

.welcome-icon {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.welcome-ai-img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    border-radius: 50%;
}

.chat-welcome-state h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.chat-welcome-state p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 32px;
    max-width: 90%;
}

.chat-welcome-suggestions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.chat-suggestion-card {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.chat-suggestion-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.2);
}

.chat-suggestion-card i {
    color: var(--text-muted);
    font-size: 0.8rem;
    transition: transform 0.2s;
}

.chat-suggestion-card:hover i {
    color: var(--text-primary);
    transform: translateX(2px);
}

/* === Chat Messages === */
.chat-message {
    font-size: 0.95rem;
    line-height: 1.6;
    animation: slideIn 0.3s ease;
    display: flex;
    width: 100%;
}

/* Bot messages: No background bubble, ChatGPT style */
.bot-message {
    gap: 14px;
    padding: 0;
    align-items: flex-start;
}

.message-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: var(--text-primary);
    flex-shrink: 0;
    margin-top: 2px;
    overflow: hidden;
}

.message-content {
    flex: 1;
    color: var(--text-primary);
}

.message-content p {
    margin-bottom: 12px;
}

.message-content p:last-child {
    margin-bottom: 0;
}

.message-content strong {
    color: #fff;
    font-weight: 600;
}

.message-content ul, .message-content ol {
    margin: 12px 0;
    padding-left: 20px;
}

.message-content li {
    margin-bottom: 8px;
}

/* User messages: Subtle compact bubble aligned right */
.user-message {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    border-radius: 14px 14px 2px 14px;
    padding: 10px 16px;
    max-width: 85%;
    align-self: flex-end;
    margin-left: auto;
}

/* === Follow-up Suggestions (Chips) === */
.chat-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: -10px; /* Offset from previous gap */
    margin-left: 38px; /* Align with bot text (24px avatar + 14px gap) */
}

.chat-suggestion-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-secondary);
    padding: 8px 14px;
    border-radius: 100px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-primary);
}

.chat-suggestion-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--text-primary);
}

/* === Typing Indicator === */
.typing-msg {
    margin-bottom: 0;
}

.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 6px 0;
    align-items: center;
}

.typing-dot {
    width: 5px;
    height: 5px;
    background: var(--text-muted);
    border-radius: 50%;
    animation: typingBounce 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typingBounce {
    0%, 80%, 100% {
        transform: scale(0.6);
        opacity: 0.4;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* === Input Area === */
.chatbot-footer {
    padding: 16px 20px 20px 20px;
    background: transparent;
    border-top: none;
    flex-shrink: 0;
}

.chatbot-form {
    display: flex;
    gap: 10px;
    align-items: flex-end;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 8px 8px 8px 16px;
    transition: border-color 0.2s, background 0.2s;
}

.chatbot-form:focus-within {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

.chatbot-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    padding: 6px 0;
    font-size: 0.95rem;
    outline: none;
    font-family: var(--font-primary);
    resize: none;
    max-height: 120px;
    min-height: 24px;
    line-height: 1.5;
    overflow-y: auto;
}

.chatbot-input::placeholder {
    color: var(--text-muted);
}

.chatbot-send-btn {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: var(--text-primary);
    border: none;
    color: var(--bg-body);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.chatbot-send-btn i {
    font-size: 0.9rem;
}

.chatbot-send-btn:disabled {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.3);
    cursor: not-allowed;
}

.chatbot-send-btn:not(:disabled):hover {
    background: #fff;
    transform: translateY(-1px);
}

/* === Footer === */
.footer {
    padding: 32px 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: var(--text-muted);
    position: relative;
    z-index: 1;
}

/* === Certification Items === */
.cert-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 24px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.cert-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* === Light Theme Overrides === */
[data-theme="light"] ::-webkit-scrollbar-track {
    background: var(--bg-body);
}

[data-theme="light"] ::selection {
    background: rgba(232, 68, 42, 0.2);
    color: #1a1a2e;
}

[data-theme="light"] .splash-screen {
    background: #fff;
}

[data-theme="light"] .splash-hello {
    background: linear-gradient(135deg, #1a1a2e 0%, #555 100%);
    -webkit-background-clip: text;
}

[data-theme="light"] .hero-description {
    color: var(--text-secondary);
}

[data-theme="light"] .hero-portrait {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .hero-portrait::before {
    opacity: 0.3;
}

[data-theme="light"] .first-name {
    color: var(--text-primary);
}

[data-theme="light"] .glass-card {
    background: var(--glass-bg);
    border-color: var(--glass-border);
    box-shadow: var(--glass-shadow);
}

[data-theme="light"] .glass-card:hover {
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .side-dock {
    background: var(--bg-dock);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .about-detail-value {
    color: var(--text-primary);
}

[data-theme="light"] .stat-number {
    color: var(--accent);
    text-shadow: 0 0 15px rgba(232, 68, 42, 0.25);
}

[data-theme="light"] .stat-label {
    color: #555;
    font-weight: 600;
}

[data-theme="light"] .stats-section {
    background: linear-gradient(135deg, rgba(232, 68, 42, 0.04), rgba(232, 68, 42, 0.01));
    border-top: 1px solid rgba(232, 68, 42, 0.1);
    border-bottom: 1px solid rgba(232, 68, 42, 0.1);
}

[data-theme="light"] .stat-item {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 16px;
    border: 1px solid rgba(232, 68, 42, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .marquee-bar {
    background: rgba(0, 0, 0, 0.03);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .marquee-track span {
    color: #555;
}

[data-theme="light"] .marquee-track .dot {
    color: var(--accent);
}

[data-theme="light"] #particles-js {
    display: none;
}

[data-theme="light"] .skill-icon-circle {
    background: rgba(232, 68, 42, 0.06);
    border-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .project-card {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .project-card:hover {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .project-number {
    color: rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .project-card:hover .project-number {
    color: rgba(232, 68, 42, 0.08);
}

[data-theme="light"] .project-tags span {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.08);
    color: var(--text-secondary);
}

[data-theme="light"] .contact-detail-icon {
    background: rgba(232, 68, 42, 0.06);
}

[data-theme="light"] .contact-form {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .form-group input,
[data-theme="light"] .form-group textarea {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.1);
    color: var(--text-primary);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .form-group input::placeholder,
[data-theme="light"] .form-group textarea::placeholder {
    color: rgba(0, 0, 0, 0.35);
}

[data-theme="light"] .form-group input:focus,
[data-theme="light"] .form-group textarea:focus {
    background: #fff;
    border-color: rgba(232, 68, 42, 0.4);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.04), 0 0 0 4px rgba(232, 68, 42, 0.08);
}

[data-theme="light"] .footer {
    border-top-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .email-modal-overlay {
    background: rgba(255, 255, 255, 0.7);
}

[data-theme="light"] .email-modal-content {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .email-copy-box {
    background: var(--bg-body);
    border-color: var(--border-color);
}

[data-theme="light"] .chatbot-floating-btn {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    color: var(--text-primary);
}

[data-theme="light"] .chatbot-floating-btn i {
    color: var(--text-primary);
}

[data-theme="light"] .chatbot-floating-btn:hover {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(232, 68, 42, 0.3);
}

[data-theme="light"] .chatbot-modal {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .chatbot-header {
    background: transparent;
    border-bottom-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .chatbot-action-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .chat-welcome-state h2,
[data-theme="light"] .welcome-icon {
    color: var(--text-primary);
}

[data-theme="light"] .chat-suggestion-card {
    border-color: rgba(0, 0, 0, 0.08);
    color: var(--text-primary);
}

[data-theme="light"] .chat-suggestion-card:hover {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .bot-message {
    background: transparent;
    color: var(--text-primary);
}

[data-theme="light"] .message-avatar {
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .message-content strong {
    color: #000;
}

[data-theme="light"] .message-content code {
    background: rgba(0, 0, 0, 0.05);
    color: var(--accent);
}

[data-theme="light"] .user-message {
    background: rgba(0, 0, 0, 0.04);
    color: var(--text-primary);
    border-color: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .chat-suggestion-btn {
    border-color: rgba(0, 0, 0, 0.15);
    color: var(--text-secondary);
}

[data-theme="light"] .chat-suggestion-btn:hover {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.25);
    color: var(--text-primary);
}

[data-theme="light"] .typing-indicator {
    background: transparent;
    border-color: transparent;
}

[data-theme="light"] .typing-dot {
    background: var(--text-muted);
}

[data-theme="light"] .chatbot-form {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .chatbot-form:focus-within {
    border-color: rgba(0, 0, 0, 0.2);
    background: rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .chatbot-input {
    color: var(--text-primary);
}

[data-theme="light"] .chatbot-send-btn {
    background: var(--text-primary);
    color: #fff;
}

[data-theme="light"] .chatbot-send-btn:disabled {
    background: rgba(0, 0, 0, 0.05);
    color: rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .chatbot-send-btn:not(:disabled):hover {
    background: #000;
}

/* Hide particles and starfield in light mode */
[data-theme="light"] #particles-js {
    display: none;
}

[data-theme="light"] #starfield-canvas {
    display: none;
}

[data-theme="light"] .cert-item {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .cert-item:hover {
    background: rgba(0, 0, 0, 0.04);
}

/* Theme toggle icon transition */
.theme-toggle i {
    transition: all 0.4s ease;
}


/* === Reveal Animations === */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s var(--ease-out);
}

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

/* === Responsive === */
@media (max-width: 1024px) {
    .hero {
        padding: 0 40px;
    }

    .hero-container {
        gap: 40px;
    }

    .hero-portrait {
        width: 400px;
        height: 260px;
    }

    .side-dock {
        right: 12px;
        padding: 10px 6px;
    }

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

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

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

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

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

    .edu-divider-v {
        width: 100%;
        height: 1px;
        align-self: auto;
    }

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

@media (max-width: 768px) {
    .hero {
        padding: 0 16px;
    }

    .hero-container {
        flex-direction: column;
        text-align: center;
        gap: 30px;
        padding-top: 60px;
    }

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

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-social-row {
        justify-content: center;
    }

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

    .marquee-track {
        animation-duration: 3s;
    }

    .hero-portrait {
        width: 100%;
        max-width: 320px;
        height: auto;
        aspect-ratio: 16 / 9;
        margin: 0 auto 40px auto;
    }

    .scroll-down {
        display: none;
    }

    .first-name,
    .last-name {
        font-size: 3.5rem;
    }

    .drop-cap {
        float: none;
        font-size: 2.2rem;
        line-height: 1;
        margin: 0 4px 0 0;
        vertical-align: middle;
    }

    .side-dock {
        position: fixed;
        bottom: 12px;
        left: 50%;
        top: auto;
        right: auto;
        transform: translateX(-50%);
        flex-direction: row;
        gap: 4px;
        padding: 8px 12px;
        border-radius: 24px;
        z-index: 9999;
    }

    .dock-divider {
        width: 1px;
        height: 24px;
        margin: 0 4px;
    }

    .dock-icon {
        width: 40px;
        height: 40px;
    }

    .about-cards-grid,
    .stats-grid,
    .skills-grid,
    .contact-layout,
    .form-row,
    .projects-grid {
        grid-template-columns: 1fr;
    }

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

    .stat-item {
        padding: 24px;
    }

    .section {
        padding: 60px 16px;
    }

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

    .timeline {
        padding-left: 20px;
    }

    .timeline::before {
        left: 0;
    }

    .timeline-dot {
        left: -6px;
        width: 14px;
        height: 14px;
    }

    .timeline-card {
        padding: 20px;
    }

    .timeline-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .timeline-date-badge {
        align-self: flex-start;
    }

    .project-card {
        padding: 24px;
    }

    .edu-card-full {
        padding: 24px;
    }

    .cert-item {
        padding: 20px;
    }

    .chatbot-floating-btn {
        bottom: 80px;
        right: 16px;
    }

    .chatbot-modal {
        bottom: 0;
        right: 0;
        width: 100%;
        height: 100dvh; /* Uses full viewport height, even with Safari UI */
        border-radius: 0;
        max-height: none;
        z-index: 10000;
        border: none;
        background: var(--bg-body) !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    .chatbot-header {
        border-radius: 0;
        padding-top: max(18px, env(safe-area-inset-top));
        background: var(--bg-body) !important;
    }

    .chatbot-footer {
        padding-bottom: max(16px, env(safe-area-inset-bottom));
        background: var(--bg-body) !important;
        border-top: 1px solid var(--border-color);
    }
}

@media (max-width: 480px) {

    .first-name,
    .last-name {
        font-size: 2.5rem;
    }

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

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

    .hero-portrait {
        height: 200px;
    }

    .timeline-role {
        font-size: 1rem;
    }

    .timeline-achievements li {
        font-size: 0.9rem;
    }

    .email-modal-content {
        padding: 24px;
    }

    .diploma-modal-content {
        padding: 16px;
        width: 95%;
    }
}

/* === Email Modal === */
.email-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--ease-out);
}

.email-modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.email-modal-content {
    background: var(--bg-section);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 40px;
    width: 90%;
    max-width: 440px;
    text-align: center;
    position: relative;
    transform: translateY(20px) scale(0.95);
    transition: transform 0.4s var(--ease-out);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.email-modal-overlay.active .email-modal-content {
    transform: translateY(0) scale(1);
}

.email-modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s;
}

.email-modal-close:hover {
    color: var(--accent);
}

.email-modal-icon {
    color: var(--accent);
    margin-bottom: 20px;
    display: inline-flex;
    padding: 16px;
    background: rgba(232, 68, 42, 0.08);
    border-radius: 50%;
}

.email-modal-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.email-modal-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.email-copy-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 32px;
}

#email-text-to-copy {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    margin-right: 12px;
}

#copy-email-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.3s;
    flex-shrink: 0;
}

#copy-email-btn:hover {
    color: var(--accent);
}

#copy-email-btn.copied {
    color: #10b981;
}

.email-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* === Verify Diploma Button === */
.verify-diploma-btn {
    margin-top: 20px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: var(--font-primary);
    color: var(--accent);
    background: rgba(232, 68, 42, 0.08);
    border: 1px solid rgba(232, 68, 42, 0.2);
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
}

.verify-diploma-btn:hover {
    background: rgba(232, 68, 42, 0.15);
    border-color: rgba(232, 68, 42, 0.4);
    box-shadow: 0 4px 20px rgba(232, 68, 42, 0.15);
}

.verify-diploma-btn .verify-arrow {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
    opacity: 0.6;
}

.verify-diploma-btn:hover .verify-arrow {
    transform: translateX(4px);
    opacity: 1;
}

/* === Diploma Modal === */
.diploma-modal-content {
    background: var(--bg-section);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 32px;
    width: 92%;
    max-width: 900px;
    position: relative;
    transform: translateY(20px) scale(0.95);
    transition: transform 0.4s var(--ease-out);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.email-modal-overlay.active .diploma-modal-content {
    transform: translateY(0) scale(1);
}

.diploma-image-wrapper {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.1);
}

.diploma-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
    cursor: zoom-in;
}

.diploma-image:hover {
    transform: scale(1.03);
}

[data-theme="light"] .diploma-modal-content {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .diploma-image-wrapper {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.08);
}