﻿/* ===== RESET / BASE ===== */
*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    width: 100%;
    overflow-x: clip; /* clip instead of hidden to allow position: sticky to work natively */
}

/* ===== GRADIENT TEXT ===== */
.grad-text {
    background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 50%, #38bdf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== UI COMPONENTS ===== */
.glass-card {
            background: rgba(14, 29, 50, 0.7);
            border: 1px solid rgba(2, 132, 199, 0.15);
            backdrop-filter: blur(12px);
            transition: border-color .3s, transform .3s, box-shadow .3s;
        }

        .glass-card:hover {
            border-color: rgba(2, 132, 199, 0.4);
            transform: translateY(-5px);
            box-shadow: 0 20px 60px rgba(2, 132, 199, 0.12);
        }

.skill-badge {
    background: rgba(2, 132, 199, 0.1);
    border: 1px solid rgba(2, 132, 199, 0.2);
    color: #7dd3fc;
    border-radius: 999px;
    padding: 3px 12px;
    font-size: .78rem;
    font-weight: 500;
}

.btn-primary {
    background: linear-gradient(135deg, #0284c7, #0ea5e9);
    color: #fff;
    font-weight: 600;
    border-radius: 12px;
    padding: .7rem 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform .2s, box-shadow .2s;
    box-shadow: 0 8px 24px rgba(2, 132, 199, 0.3);
}

.btn-primary:hover {
    transform: scale(1.04);
    box-shadow: 0 12px 32px rgba(2, 132, 199, 0.45);
}

.btn-ghost {
    background: rgba(11, 22, 38, 0.6);
    border: 1px solid rgba(2, 132, 199, 0.25);
    color: #7dd3fc;
    font-weight: 500;
    border-radius: 12px;
    padding: .7rem 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background .2s, border-color .2s;
}

.btn-ghost:hover {
    background: rgba(2, 132, 199, 0.15);
    border-color: #0284c7;
    color: #fff;
}

.section-label {
    font-size: .7rem;
    letter-spacing: .18em;
    font-weight: 600;
    text-transform: uppercase;
    color: #0284c7;
    margin-bottom: 8px;
}

/* ===== ANIMATED HERO BLOBS ===== */
.blob-wrap {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.35;
    animation: blob-drift 18s ease-in-out infinite alternate;
}

.blob-1 { width: 520px; height: 520px; background: #0284c7; top: -120px; left: -100px; animation-delay: 0s; }
.blob-2 { width: 400px; height: 400px; background: #0ea5e9; top: 50%; right: -120px; animation-delay: -6s; opacity: 0.25; }
.blob-3 { width: 300px; height: 300px; background: #0369a1; bottom: -80px; left: 35%; animation-delay: -12s; opacity: 0.2; }

@keyframes blob-drift {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -40px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.97); }
    100% { transform: translate(15px, -15px) scale(1.03); }
}

/* ===== NOISE GRAIN OVERLAY ===== */
.noise::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
}

/* ===== HERO ENTRANCE ANIMS ===== */
@keyframes slide-up { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slide-down { from { opacity: 0; transform: translateY(-24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slide-right { from { opacity: 0; transform: translateX(48px); } to { opacity: 1; transform: translateX(0); } }
@keyframes float-y { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-14px) } }

.anim-up { animation: slide-up 0.7s cubic-bezier(.22, 1, .36, 1) both; }
.anim-down { animation: slide-down 0.7s cubic-bezier(.22, 1, .36, 1) both; }
.anim-right { animation: slide-right 0.7s cubic-bezier(.22, 1, .36, 1) both; }
.anim-float { animation: float-y 4s ease-in-out infinite; }

.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }

.form-input {
    width: 100%;
    background: rgba(11, 22, 38, 0.6);
    border: 1px solid rgba(2, 132, 199, 0.2);
    border-radius: 12px;
    padding: .8rem 1rem;
    color: #f0fdf4;
    font-size: .95rem;
    transition: all .2s;
}

.form-input:focus {
    outline: none;
    border-color: #0ea5e9;
    background: rgba(11, 22, 38, 0.8);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.form-label {
    display: block;
    margin-bottom: 6px;
    font-size: .85rem;
    color: #94a3b8;
    font-weight: 500;
}

/* Swiper overrides */
.swiper { border-radius: 16px; overflow: hidden; }
.swiper-button-next, .swiper-button-prev { color: #fff; background: rgba(2, 132, 199, 0.4); border-radius: 50%; width: 40px; height: 40px; backdrop-filter: blur(6px); }
.swiper-button-next::after, .swiper-button-prev::after { font-size: 16px; font-weight: 700; }
.swiper-pagination-bullet-active { background: #0284c7 !important; }
.swiper-pagination-bullet { background: #94a3b8; }

/* Timeline */
.timeline-item { position: relative; padding-left: 28px; }
.timeline-item::before { content: ''; position: absolute; left: 7px; top: 28px; bottom: -20px; width: 2px; background: rgba(2, 132, 199, 0.25); }
.timeline-item:last-child::before { display: none; }
.timeline-dot { position: absolute; left: 0; top: 6px; width: 16px; height: 16px; background: linear-gradient(135deg, #0284c7, #0ea5e9); border-radius: 50%; border: 2px solid #050b14; }

/* Lightbox */
.img-lightbox { cursor: zoom-in; transition: transform .3s; }
.img-lightbox:hover { transform: scale(1.01); }

/* Language Switcher Modal */
#lang-modal-overlay { transition: opacity 0.3s ease; }
#lang-modal { transition: transform 0.3s ease, opacity 0.3s ease; }

.skill-badge:hover {
            background: rgba(2, 132, 199, 0.25);
            border-color: rgba(2, 132, 199, 0.5);
        }

.nav-link::after {
            content: '';
            position: absolute;
            bottom: -3px;
            left: 0;
            width: 0;
            height: 2px;
            background: linear-gradient(90deg, #0284c7, #0ea5e9);
            transition: width .3s ease;
            border-radius: 2px;
        }
.nav-link:hover {
            color: #f0fdf4;
        }
.nav-link:hover::after {
            width: 100%;
        }

.proj-img {
            transition: transform .5s ease;
        }
.proj-card:hover .proj-img {
            transform: scale(1.04);
        }
.proj-overlay {
            opacity: 0;
            background: linear-gradient(to top, rgba(5, 11, 20, 0.92) 0%, transparent 60%);
            transition: opacity .3s;
        }
.proj-card:hover .proj-overlay {
            opacity: 1;
        }
