/* ===================================
   VARIABLES & RESETS
   =================================== */
:root {
    --bg-color: #050505;
    --surface-color: rgba(20, 20, 20, 0.6);
    --surface-border: rgba(255, 255, 255, 0.08);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --accent-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
    --accent-color: #a855f7;
    --accent-learning: #22d3ee;
    --glass-blur: blur(12px);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow-x: hidden;
}

/* Native cursor hidden only when the custom cursor is actually running (JS adds the class) */
body.custom-cursor-active {
    cursor: none;
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-family: 'Outfit', sans-serif;
}

/* Anchored sections shouldn't hide under the fixed navbar */
section {
    scroll-margin-top: 90px;
}

/* ===================================
   ACCESSIBILITY
   =================================== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
.btn-custom:focus-visible,
.btn-outline-custom:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Reduced motion: stop only continuous/ambient loops (ring spin, floating badges,
   caret blink, particle drift via JS). One-shot fades become fade-only (no slide)
   so the page still feels alive without vestibular-triggering movement. */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .fade-in-up {
        transform: none;
        transition: opacity 0.4s ease-out;
    }

    .hero-img-container::before {
        animation: none;
    }

    .float-badge-top,
    .float-badge-bottom {
        animation: none;
    }

    .typewriter-text {
        animation: none;
        border-right-color: var(--accent-color);
    }
}

/* ===================================
   CUSTOM SCROLLBAR
   =================================== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-color); }
::-webkit-scrollbar-thumb { background: #333; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-color); }

/* ===================================
   GRADIENT TEXT UTILITY
   =================================== */
.text-gradient {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===================================
   GLASSMORPHISM CARDS
   =================================== */
.glass-card {
    background: var(--surface-color);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--surface-border);
    border-radius: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px -10px rgba(168, 85, 247, 0.3);
}

/* ===================================
   SCROLL-TRIGGERED ANIMATIONS
   =================================== */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* ===================================
   SCROLL PROGRESS BAR
   =================================== */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: var(--accent-gradient);
    z-index: 9999;
    transition: width 0.05s linear;
    border-radius: 0 2px 2px 0;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
}

/* ===================================
   CUSTOM CURSOR
   =================================== */
.cursor-dot {
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 99999;
    transition: transform 0.1s ease;
    mix-blend-mode: difference;
}

.cursor-glow {
    width: 35px;
    height: 35px;
    border: 2px solid rgba(168, 85, 247, 0.5);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 99998;
    transition: transform 0.15s ease, width 0.3s ease, height 0.3s ease, border-color 0.3s ease;
}

.cursor-dot.hover {
    transform: scale(2.5);
}

.cursor-glow.hover {
    width: 55px;
    height: 55px;
    border-color: rgba(236, 72, 153, 0.6);
}

@media (max-width: 991px) {
    .cursor-dot, .cursor-glow { display: none !important; }
    body, body.custom-cursor-active { cursor: auto; }
}

/* ===================================
   NAVBAR
   =================================== */
.navbar {
    background: rgba(5, 5, 5, 0.6) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--surface-border);
    padding: 15px 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

.nav-link {
    font-weight: 500;
    color: var(--text-muted) !important;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-main) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background: var(--accent-gradient);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 80%;
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 2px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 3px;
    border: 1px solid var(--surface-border);
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 5px 12px;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.lang-btn.active {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 2px 10px rgba(168, 85, 247, 0.3);
}

.lang-btn:hover:not(.active) {
    color: var(--text-main);
}

/* ===================================
   BUTTONS
   =================================== */
.btn-custom {
    background: var(--accent-gradient);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    overflow: hidden;
    display: inline-block;
}

.btn-custom::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, #ec4899 0%, #a855f7 50%, #6366f1 100%);
    z-index: -1;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.btn-custom:hover::before { opacity: 1; }

.btn-custom:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -10px rgba(168, 85, 247, 0.5);
}

.btn-outline-custom {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--surface-border);
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-outline-custom:hover {
    border-color: var(--accent-color);
    color: white;
    background: rgba(168, 85, 247, 0.1);
}

.btn-disabled {
    opacity: 0.5;
    border-color: rgba(255, 255, 255, 0.1);
    cursor: not-allowed;
}

/* ===================================
   SECTIONS GLOBAL
   =================================== */
section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

/* Soft background glows to break section monotony */
#specialization::before,
#certifications::before {
    content: '';
    position: absolute;
    top: 10%;
    right: -15%;
    width: 45%;
    height: 60%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

#stack::before,
#contact::before {
    content: '';
    position: absolute;
    bottom: 5%;
    left: -15%;
    width: 45%;
    height: 60%;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.07) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

section > .container {
    position: relative;
    z-index: 1;
}

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

.hero::before {
    content: '';
    position: absolute;
    top: -20%; left: -10%;
    width: 50%; height: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    z-index: 0;
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -20%; right: -10%;
    width: 50%; height: 50%;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.15) 0%, transparent 70%);
    z-index: 0;
    border-radius: 50%;
}

.hero .container {
    position: relative;
    z-index: 2;
}

#particles-canvas {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1;
}

.hero-name {
    font-size: 3.4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.hero-role {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.3;
}

.hero-subtitle {
    color: var(--text-main);
    font-size: 1.15rem;
    font-weight: 500;
    margin-bottom: 14px;
    opacity: 0.9;
}

.hero-typewriter {
    display: inline-flex;
    align-items: center;
    color: var(--accent-color);
    font-size: 1rem;
    font-weight: 500;
    background: rgba(168, 85, 247, 0.08);
    border: 1px solid rgba(168, 85, 247, 0.25);
    border-radius: 10px;
    padding: 8px 16px;
    margin-bottom: 20px;
    min-height: 42px;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 28px;
    max-width: 600px;
    line-height: 1.7;
}

/* Typewriter */
.typewriter-text {
    border-right: 2px solid var(--accent-color);
    animation: blink-caret 0.8s step-end infinite;
    white-space: nowrap;
    overflow: hidden;
    min-width: 2px;
}

@keyframes blink-caret {
    0%, 100% { border-color: var(--accent-color); }
    50% { border-color: transparent; }
}

/* Hero tech chips */
.hero-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 0;
}

.tech-chip {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--surface-border);
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.tech-chip:hover {
    border-color: var(--accent-color);
    color: var(--text-main);
    transform: translateY(-2px);
}

/* Hero Image */
.hero-img-container {
    position: relative;
    width: 320px;
    height: 320px;
    margin: 0 auto;
}

.hero-img-container::before {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    background: var(--accent-gradient);
    z-index: 0;
    animation: spin 8s linear infinite;
}

.hero-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    position: relative;
    z-index: 1;
    border: 4px solid var(--bg-color);
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

/* Floating badges around the photo */
.float-badge {
    position: absolute;
    display: inline-flex;
    align-items: center;
    background: var(--surface-color);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--surface-border);
    border-radius: 30px;
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    z-index: 2;
    white-space: nowrap;
}

.float-badge .bi {
    color: var(--accent-color);
}

.float-badge-top {
    top: 8%;
    right: -8%;
    animation: floaty 5s ease-in-out infinite;
}

.float-badge-bottom {
    bottom: 8%;
    left: -10%;
    animation: floaty 5s ease-in-out 2.5s infinite;
}

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

/* ===================================
   STATS / COUNTERS SECTION
   =================================== */
.stats-section {
    padding: 60px 0;
    position: relative;
}

.stat-card {
    text-align: center;
    padding: 30px 20px;
}

.stat-number {
    font-family: 'Outfit', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 8px;
}

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

.stat-icon {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 12px;
    opacity: 0.7;
}

/* ===================================
   ABOUT: VALUE ITEMS
   =================================== */
.value-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.value-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--accent-color);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.value-item:hover .value-icon {
    background: var(--accent-gradient);
    color: white;
    transform: scale(1.08);
}

.value-item h5 {
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.value-item p {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin-bottom: 0;
    line-height: 1.6;
}

/* ===================================
   SPECIALIZATION CARDS
   =================================== */
.skill-icon-box {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--accent-color);
    margin: 0 auto 20px;
    transition: all 0.3s ease;
}

.glass-card:hover .skill-icon-box {
    background: var(--accent-gradient);
    color: white;
    transform: scale(1.1) rotate(5deg);
}

/* ===================================
   TECH STACK SECTION
   =================================== */
.stack-legend {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 2.5rem;
}

.legend-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.legend-dot.core {
    background: var(--accent-gradient);
}

.legend-dot.learning {
    background: transparent;
    border: 2px solid var(--accent-learning);
}

.stack-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.stack-card-header .bi {
    font-size: 1.4rem;
    color: var(--accent-color);
}

.stack-card-header h4 {
    font-size: 1.15rem;
    margin-bottom: 0;
}

.stack-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip {
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.25);
    color: var(--text-main);
    font-size: 0.83rem;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.chip:hover {
    background: rgba(168, 85, 247, 0.2);
    transform: translateY(-2px);
}

.chip.learning {
    background: transparent;
    border: 1px dashed rgba(34, 211, 238, 0.5);
    color: var(--accent-learning);
}

.chip.learning:hover {
    background: rgba(34, 211, 238, 0.08);
}

/* ===================================
   EDUCATION TIMELINE
   =================================== */
.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--accent-gradient);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 20px 40px;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 30px;
    width: 16px;
    height: 16px;
    background: var(--accent-gradient);
    border-radius: 50%;
    border: 3px solid var(--bg-color);
    z-index: 2;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.5);
}

.timeline-item:nth-child(odd)::before {
    right: -8px;
}

.timeline-item:nth-child(even)::before {
    left: -8px;
}

.timeline-content {
    padding: 24px;
}

.timeline-date {
    display: inline-block;
    padding: 4px 14px;
    background: rgba(168, 85, 247, 0.15);
    border-radius: 20px;
    color: var(--accent-color);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.timeline-content h4 {
    margin-bottom: 8px;
}

.timeline-content p {
    color: var(--text-muted);
    margin-bottom: 0;
    font-size: 0.95rem;
}

.timeline-content .cert-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent-color);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: 10px;
    transition: color 0.3s;
}

.timeline-content .cert-link:hover {
    color: #ec4899;
}

@media (max-width: 767px) {
    .timeline::before {
        left: 20px;
    }
    .timeline-item {
        width: 100%;
        padding-left: 60px;
        padding-right: 20px;
        text-align: left !important;
    }
    .timeline-item:nth-child(even) {
        left: 0;
    }
    .timeline-item::before {
        left: 12px !important;
        right: auto !important;
    }
}

/* ===================================
   CERTIFICATION CARDS
   =================================== */
.cert-card {
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
}

.cert-card-icon {
    font-size: 2.5rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.cert-card .timeline-date {
    font-size: 0.8rem;
    align-self: center;
}

.cert-issuer {
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.92rem;
    margin-bottom: 10px;
}

.cert-issuer .bi {
    color: var(--accent-color);
}

.cert-card .text-muted {
    font-size: 0.92rem;
    line-height: 1.6;
    flex-grow: 1;
}

.cert-meta {
    color: var(--text-muted);
    font-size: 0.78rem;
    letter-spacing: 0.5px;
    opacity: 0.8;
    margin-bottom: 10px;
}

.cert-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin-top: auto;
}

.cert-card .cert-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent-color);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.3s;
}

.cert-card .cert-link:hover {
    color: #ec4899;
}

/* ===================================
   PROJECTS SECTION
   =================================== */
.filter-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 2.5rem;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--surface-border);
    color: var(--text-muted);
    padding: 8px 22px;
    border-radius: 25px;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.filter-btn:hover {
    border-color: var(--accent-color);
    color: var(--text-main);
}

.filter-btn.active {
    background: var(--accent-gradient);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3);
}

.project-card {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card.hidden {
    opacity: 0;
    transform: scale(0.8);
    position: absolute;
    pointer-events: none;
}

.project-card.visible {
    opacity: 1;
    transform: scale(1);
    position: relative;
    pointer-events: auto;
}

.project-img-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 15px 15px 0 0;
    height: 220px;
}

.project-img-wrapper .bi {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.5);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.project-img-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    transition: transform 0.5s ease;
}

.glass-card:hover .project-img-bg {
    transform: scale(1.05);
}

.project-content { padding: 24px; }

.project-value {
    display: flex;
    align-items: flex-start;
    color: var(--text-main);
    font-size: 0.88rem;
    font-weight: 500;
    background: rgba(168, 85, 247, 0.07);
    border-left: 3px solid var(--accent-color);
    border-radius: 0 10px 10px 0;
    padding: 10px 14px;
    margin-bottom: 18px;
    line-height: 1.5;
}

.project-value .bi {
    color: var(--accent-color);
    flex-shrink: 0;
    margin-top: 1px;
}

.badge-custom {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--surface-border);
    color: var(--text-muted);
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 20px;
    margin-right: 6px;
    margin-bottom: 10px;
    display: inline-block;
    font-size: 0.8rem;
}

/* ===================================
   CONTACT SECTION
   =================================== */
.contact-icon {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--accent-color);
    margin-right: 15px;
    flex-shrink: 0;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
}

.contact-link {
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.3s ease;
    word-break: break-word;
}

.contact-link:hover {
    color: var(--accent-color);
}

.contact-availability {
    display: flex;
    align-items: flex-start;
    color: var(--text-main);
    font-size: 0.95rem;
    font-weight: 500;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 12px;
    padding: 12px 16px;
    line-height: 1.5;
}

.contact-availability .bi {
    color: #10b981;
    font-size: 0.6rem;
    flex-shrink: 0;
    margin-top: 6px;
}

.form-control {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--surface-border);
    color: white;
    padding: 12px 20px;
    border-radius: 12px;
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.1);
    color: white;
}

/* Form status messages */
.form-status {
    text-align: center;
    padding: 12px;
    border-radius: 12px;
    font-weight: 500;
    display: none;
    margin-top: 15px;
}

.form-status.success {
    display: block;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
}

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

/* ===================================
   FOOTER
   =================================== */
footer {
    border-top: 1px solid var(--surface-border);
    padding: 40px 0;
    text-align: center;
    color: var(--text-muted);
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    margin: 0 10px;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.social-link:hover {
    background: var(--accent-gradient);
    transform: translateY(-3px);
    color: white;
}

/* ===================================
   BACK TO TOP BUTTON
   =================================== */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--accent-gradient);
    color: white;
    border: none;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s ease;
    box-shadow: 0 5px 20px rgba(168, 85, 247, 0.4);
}

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

#back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(168, 85, 247, 0.6);
}

/* ===================================
   KONAMI EASTER EGG OVERLAY
   =================================== */
#easter-egg-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 100000;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

#easter-egg-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

#easter-egg-overlay canvas {
    width: 100%;
    height: 100%;
}

.easter-egg-msg {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
    opacity: 0;
    animation: easterFadeIn 1s 0.5s forwards;
}

.easter-egg-msg h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    margin-bottom: 10px;
}

.easter-egg-msg p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

@keyframes easterFadeIn {
    to { opacity: 1; }
}

/* ===================================
   RESPONSIVE
   =================================== */
@media (max-width: 991px) {
    .hero-name { font-size: 2.7rem; }
    .hero-role { font-size: 1.45rem; }
    .hero-img-container {
        width: 250px;
        height: 250px;
        margin-top: 50px;
    }
    .hero { text-align: center; }
    .hero .row { flex-direction: column-reverse; }
    .hero-description { margin-left: auto; margin-right: auto; }
    .hero .d-flex { justify-content: center !important; }
    .hero-chips { justify-content: center; }
    .float-badge-top { right: 0; }
    .float-badge-bottom { left: 0; }
    .stat-number { font-size: 2.2rem; }
}

@media (max-width: 575px) {
    .hero-name { font-size: 2.1rem; }
    .hero-role { font-size: 1.2rem; }
    .hero-subtitle { font-size: 1rem; }
    .hero-typewriter { font-size: 0.9rem; }
    .hero-description { font-size: 1rem; }
    .section-title { font-size: 2rem; }
    .stat-card { padding: 20px 10px; }
    .stat-number { font-size: 1.8rem; }
    .float-badge { font-size: 0.75rem; padding: 6px 12px; }
}
