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

:root {
    --primary-color: #3b82f6;
    /* Blue-500 */
    --bg-dark: #0f172a;
    /* Slate-900 */
    --text-light: #f8fafc;
    /* Slate-50 */
}

html {
    scroll-behavior: smooth;
    scrollbar-gutter: stable;
}

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

.wrap-text {
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
}

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

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

::-webkit-scrollbar-track {
    background: #1e293b;
}

::-webkit-scrollbar-thumb {
    background: #475569;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* Hide scrollbar on mobile but reserve space */
@media (max-width: 768px) {
    ::-webkit-scrollbar {
        display: none;
    }
    
    /* Firefox */
    * {
        scrollbar-width: none;
    }
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

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

/* Staggered delays */
.delay-100 {
    transition-delay: 100ms;
}

.delay-200 {
    transition-delay: 200ms;
}

.delay-300 {
    transition-delay: 300ms;
}

/* Timeline Line */
.timeline-line::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, #3b82f6, transparent);
    z-index: 0;
}

/* Mobile Timeline */
.timeline-dot-mobile {
    display: none;
}

@media (max-width: 767px) {
    .timeline-line::before {
        left: 8px;
        transform: none;
    }

    .timeline-line > div {
        padding-left: 32px;
    }

    .timeline-dot-mobile {
        display: flex;
        position: absolute;
        left: 0;
        top: 4px;
        width: 16px;
        height: 16px;
        z-index: 2;
    }

    .timeline-dot-mobile .dot {
        width: 16px;
        height: 16px;
        border-radius: 50%;
        border: 4px solid #0f172a;
    }

    .timeline-dot-mobile .dot-active {
        background-color: #3b82f6;
        box-shadow: 0 0 0 4px rgba(59,130,246,0.2);
    }

    .timeline-dot-mobile .dot-inactive {
        background-color: #334155;
    }
}

/* Glassmorphism */
.glass {
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Gradient Text */
.text-gradient {
    background: linear-gradient(to right, #60a5fa, #a78bfa);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Language Switcher */
.lang-switcher {
    gap: 2px;
}

.lang-btn {
    color: #94a3b8;
    cursor: pointer;
    letter-spacing: 0.05em;
}

.lang-btn:hover {
    color: #e2e8f0;
}

.lang-btn.lang-active {
    background-color: #3b82f6;
    color: #ffffff;
}

/* Mobile Menu Animations */
#mobile-menu {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(-10px);
}

#mobile-menu.menu-open {
    max-height: 500px;
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation for menu items */
#mobile-menu a,
#mobile-menu .flex {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#mobile-menu.menu-open a:nth-child(1),
#mobile-menu.menu-open .flex:nth-child(1) {
    transition-delay: 0.1s;
}

#mobile-menu.menu-open a:nth-child(2),
#mobile-menu.menu-open .flex:nth-child(2) {
    transition-delay: 0.15s;
}

#mobile-menu.menu-open a:nth-child(3),
#mobile-menu.menu-open .flex:nth-child(3) {
    transition-delay: 0.2s;
}

#mobile-menu.menu-open a:nth-child(4),
#mobile-menu.menu-open .flex:nth-child(4) {
    transition-delay: 0.25s;
}

#mobile-menu.menu-open a:nth-child(5),
#mobile-menu.menu-open .flex:nth-child(5) {
    transition-delay: 0.3s;
}

#mobile-menu.menu-open a,
#mobile-menu.menu-open .flex {
    opacity: 1;
    transform: translateX(0);
}

/* Animated menu button icon */
#mobile-menu-btn {
    transition: transform 0.3s ease;
}

#mobile-menu-btn.menu-active {
    transform: rotate(90deg);
}