@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;700;900&display=swap');

:root {
    --bs-body-font-family: 'Outfit', sans-serif;
    --primary: #0ea5e9; /* Sky 500 */
    --primary-dark: #0284c7;
    --bs-body-bg: #09090b; /* Zinc 950 */
    --bs-dark: #18181b; /* Zinc 900 */
}

body {
    font-family: var(--bs-body-font-family);
    background-color: var(--bs-body-bg);
    overflow-x: hidden;
    color: #f4f4f5;
}

/* Typography Utilities */
.text-accent { color: var(--primary) !important; }
.bg-accent { background-color: var(--primary) !important; }
.fw-black { font-weight: 900 !important; }
.max-w-700 { max-width: 700px; }
.tracking-wide { letter-spacing: 0.1em; }
.transition { transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); }

/* Gradient Text Effect */
.text-gradient {
    background: linear-gradient(135deg, #0ea5e9 0%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Animated Background (Aurora Effect) */
.aurora-bg {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    background: var(--bs-body-bg);
}
.aurora-blob {
    position: absolute;
    filter: blur(120px);
    border-radius: 50%;
    opacity: 0.15;
    animation: blob-float 20s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}
.blob-1 {
    top: -10%; left: -10%;
    width: 600px; height: 600px;
    background: #0ea5e9;
}
.blob-2 {
    bottom: -20%; right: -10%;
    width: 800px; height: 800px;
    background: #a855f7;
    animation-delay: -5s;
}
@keyframes blob-float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(100px, 50px) scale(1.2); }
}

/* Navbar */
.logo { font-weight: 900; color: #fff !important; font-size: 1.5rem; }
.logo i { color: var(--primary); }
.logo span { color: var(--primary); }
.custom-navbar {
    background: rgba(9, 9, 11, 0.6);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.navbar-nav .nav-link {
    color: #a1a1aa !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
}
.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active {
    color: #fff !important;
    text-shadow: 0 0 15px rgba(14, 165, 233, 0.6);
}
.navbar-toggler:focus { box-shadow: none; }
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: rgba(24, 24, 27, 0.95);
        backdrop-filter: blur(20px);
        padding: 1.5rem;
        border-radius: 16px;
        margin-top: 1rem;
        border: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    }
}

/* Availability Dot */
.status-dot {
    width: 8px; height: 8px;
    background-color: #10b981;
    border-radius: 50%;
    display: inline-block;
}
.blink { animation: blinker 2s cubic-bezier(0.4, 0, 0.2, 1) infinite; }
@keyframes blinker { 50% { opacity: 0.3; transform: scale(0.8); } }

/* Buttons */
.btn { border-radius: 100px !important; }
.btn-primary { background-color: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background-color: var(--primary-dark); border-color: var(--primary-dark); }
.shadow-glow { box-shadow: 0 4px 20px rgba(14, 165, 233, 0.3); transition: all 0.3s ease; }
.shadow-glow:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(14, 165, 233, 0.5); }
.glass-btn {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
}
.glass-btn:hover { background: rgba(255,255,255,0.1); transform: translateY(-3px); }

/* Hero Section */
.hero { min-height: 100vh; }
.badge-custom {
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(14, 165, 233, 0.2);
    color: #e0f2fe;
    backdrop-filter: blur(10px);
}
.hero-image-wrapper { position: relative; max-width: 450px; z-index: 2; }
.hero-img { border: 1px solid rgba(255, 255, 255, 0.1); }
.glass-card {
    position: absolute;
    background: rgba(24, 24, 27, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 1rem 1.2rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    animation: float 5s ease-in-out infinite;
}
.top-left { top: -20px; left: -30px; animation-delay: 0s; }
.bottom-right { bottom: -20px; right: -30px; animation-delay: 2.5s; }
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Infinite Marquee */
.marquee-wrapper { overflow: hidden; width: 100%; white-space: nowrap; padding: 2rem 0; position: relative; }
/* Fade edges */
.marquee-wrapper::before, .marquee-wrapper::after {
    content: ""; position: absolute; top: 0; width: 150px; height: 100%; z-index: 2; pointer-events: none;
}
.marquee-wrapper::before { left: 0; background: linear-gradient(to right, var(--bs-body-bg), transparent); }
.marquee-wrapper::after { right: 0; background: linear-gradient(to left, var(--bs-body-bg), transparent); }
.marquee-container { display: flex; width: 200%; }
.marquee-content {
    animation: scroll-marquee 25s linear infinite;
    display: flex; justify-content: space-around; width: 100%;
}
@keyframes scroll-marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* Bento UI Cards (Extremely Modern Look) */
.bento-card {
    background: rgba(24, 24, 27, 0.5);
    border: 1px solid rgba(255,255,255,0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    transition: var(--transition);
}
.bento-card:hover {
    border-color: rgba(14, 165, 233, 0.3);
    background: rgba(24, 24, 27, 0.7);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}
.icon-box-large { width: 60px; height: 60px; }
.icon-box-small {
    width: 45px; height: 45px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 12px;
}

/* Section Spacing */
.section { padding: 6rem 0; }

/* Timeline (CV) */
.timeline { border-left: 2px solid rgba(255,255,255,0.05); margin-left: 20px; padding-left: 20px; }
.timeline-item::before {
    content: ''; position: absolute; left: -25px; top: 35px; width: 12px; height: 12px;
    border-radius: 50%; background: var(--primary);
    box-shadow: 0 0 15px var(--primary);
}

/* Project Cards */
.project-card img { transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.project-card:hover img { transform: scale(1.08); }

/* Forms & Accordions */
.form-control, .form-select { border-radius: 12px; transition: var(--transition); }
.form-control:focus, .form-select:focus {
    background-color: rgba(0,0,0,0.8) !important;
    color: white; border-color: var(--primary) !important;
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.15) !important;
}
.custom-accordion .accordion-button:not(.collapsed) {
    color: var(--primary) !important;
    background-color: transparent !important;
    box-shadow: none;
}
.custom-accordion .accordion-button::after { filter: invert(1); }

/* Interactivity Hover Effects */
.group-hover:hover .group-icon {
    background-color: var(--primary) !important; color: #fff !important;
    box-shadow: 0 0 15px rgba(14, 165, 233, 0.5); transform: scale(1.1);
}
.text-hover-accent:hover { color: var(--primary) !important; transform: translateY(-3px); }

/* --- SNAKE GAME CSS --- */
.canvas-container {
    position: relative;
    display: inline-block;
    max-width: 100%;
}
#snakeCanvas {
    background-color: var(--bs-dark);
    border: 1px solid rgba(14, 165, 233, 0.3);
    border-radius: 16px;
    max-width: 100%;
    height: auto;
    aspect-ratio: 1;
}
.game-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(9, 9, 11, 0.85);
    backdrop-filter: blur(5px);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
}
.d-pad .btn {
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.d-pad .btn:active {
    background: rgba(14, 165, 233, 0.3);
    border-color: var(--primary);
}