:root {
    --bg: #fafaf9;
    --fg: #102a43;
    --accent: #0ea5e9;
    --navy: #102a43;
}

* {
    scroll-behavior: smooth;
}

html,
body {
    overflow-x: hidden;
    max-width: 100%;
}

body {
    font-family: 'Inter', sans-serif;
}

.font-display {
    font-family: 'Playfair Display', serif;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }

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

@keyframes pulseGlow {
    0%,
    100% {
        box-shadow: 0 0 15px rgba(14, 165, 233, 0.4);
    }

    50% {
        box-shadow: 0 0 30px rgba(14, 165, 233, 0.7);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

.pulse-glow {
    animation: pulseGlow 3s infinite;
}

.animation-delay-100 {
    animation-delay: 0.1s;
}

.animation-delay-200 {
    animation-delay: 0.2s;
}

.animation-delay-300 {
    animation-delay: 0.3s;
}

.animation-delay-400 {
    animation-delay: 0.4s;
}

.hero-gradient {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #eef2ff 100%);
}

.sky-gradient {
    background: linear-gradient(135deg, #0ea5e9 0%, #4f46e5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-effect {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.card-hover {
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-hover:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 60px -12px rgba(14, 165, 233, 0.25);
}

.btn-primary {
    background: linear-gradient(135deg, #0ea5e9 0%, #4f46e5 100%);
    color: #ffffff;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    background-size: 200% auto;
}

.btn-primary:hover {
    background-position: right center;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px -5px rgba(79, 70, 229, 0.4);
    color: #ffffff;
}

.btn-secondary {
    border: 2px solid #0ea5e9;
    color: #0ea5e9;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    background: transparent;
}

.btn-secondary:hover {
    background: #0ea5e9;
    color: #ffffff;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px -5px rgba(14, 165, 233, 0.3);
    border-color: #0ea5e9;
}

.reveal {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.focus-ring:focus-visible {
    outline: 2px solid #0ea5e9;
    outline-offset: 2px;
}

.nav-blur {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.pattern-overlay {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%230ea5e9' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.gallery-item {
    overflow: hidden;
    border-radius: 0.75rem;
}

.gallery-item img {
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Fullscreen Mobile Menu Animations */
.mobile-menu-enter {
    opacity: 0;
    transform: translateY(-100%);
    pointer-events: none;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mobile-menu-enter.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.mobile-link {
    display: block;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mobile-menu-enter.active .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

.social-icon {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mobile-menu-enter.active .social-icon {
    opacity: 1;
    transform: scale(1);
}

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

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

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

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

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

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

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* Tab System Logic */
.tab-btn {
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.tab-btn.active {
    background-color: #0ea5e9;
    color: #102a43;
    border-color: #0ea5e9;
}

.tab-btn:not(.active):hover {
    border-color: #0ea5e9;
    color: #0ea5e9;
}

.tab-content {
    display: none;
    animation: fadeInUp 0.5s ease forwards;
}

.tab-content.active {
    display: block;
}

.sub-tab-btn.active {
    background-color: #334e68;
    color: #fff;
}

.sub-tab-btn:not(.active) {
    background-color: #f1f1f1;
    color: #333;
}

.sub-tab-btn:not(.active):hover {
    background-color: #ddd;
}

/* Blog Slider Utilities */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

#blogContainer {
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

#blogContainer > div {
    scroll-snap-align: start;
}
