/* ========== BASE & RESET ========== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: #102a43;
    color: #d9e2ec;
    overflow-x: hidden;
}

::selection {
    background: #fbbf24;
    color: #102a43;
}

/* ========== NAVBAR ========== */
.nav-scrolled {
    background: rgba(10, 27, 46, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(98, 125, 152, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-scrolled .menu-line {
    background: #d9e2ec;
}

/* Mobile Menu */
.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.active {
    max-height: 320px;
}

.mobile-menu-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(98, 125, 152, 0.2);
}

.mobile-menu-link:last-child {
    border-bottom: none;
}

/* Active menu state */
.menu-line.active:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-line.active:nth-child(2) {
    opacity: 0;
}

.menu-line.active:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 24px;
}

/* ========== HERO SHAPES ========== */
.hero-shape {
    position: absolute;
    opacity: 0.6;
    pointer-events: none;
}

.shape-circle-1 {
    width: 500px;
    height: 500px;
    border: 2px solid rgba(251, 191, 36, 0.15);
    border-radius: 50%;
    top: -100px;
    right: -100px;
    animation: float-slow 20s ease-in-out infinite;
}

.shape-circle-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    bottom: 10%;
    left: 5%;
    animation: float-slow 15s ease-in-out infinite reverse;
}

.shape-rect-1 {
    width: 120px;
    height: 120px;
    background: rgba(251, 191, 36, 0.06);
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-radius: 24px;
    top: 25%;
    right: 5%;
    transform: rotate(45deg);
    animation: float-slow 12s ease-in-out infinite;
}

.shape-triangle-1 {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid rgba(251, 191, 36, 0.05);
    top: 40%;
    left: 3%;
    animation: float-slow 18s ease-in-out infinite reverse;
}

@keyframes float-slow {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(2deg); }
    50% { transform: translateY(10px) rotate(-1deg); }
    75% { transform: translateY(-15px) rotate(1deg); }
}

/* ========== FLOATING CARDS ========== */
.floating-card {
    animation: float-card 6s ease-in-out infinite;
}

.card-1 {
    animation-delay: 0s;
}

.card-2 {
    animation-delay: -2s;
}

.card-3 {
    animation-delay: -4s;
}

@keyframes float-card {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* ========== HERO CONTENT ========== */
.hero-content {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s forwards;
}

.hero-images {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.4s forwards;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== MENU CARDS ========== */
.menu-card {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.3s ease,
                box-shadow 0.3s ease;
}

.menu-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.menu-card:nth-child(1) { transition-delay: 0.05s; }
.menu-card:nth-child(2) { transition-delay: 0.1s; }
.menu-card:nth-child(3) { transition-delay: 0.15s; }
.menu-card:nth-child(4) { transition-delay: 0.2s; }
.menu-card:nth-child(5) { transition-delay: 0.25s; }
.menu-card:nth-child(6) { transition-delay: 0.3s; }

/* ========== ABOUT ========== */
.about-images {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-images.visible {
    opacity: 1;
    transform: translateX(0);
}

.about-content {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-content.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ========== INFO CARDS ========== */
.info-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.3s ease;
}

.info-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.info-card:nth-child(1) { transition-delay: 0.05s; }
.info-card:nth-child(2) { transition-delay: 0.15s; }
.info-card:nth-child(3) { transition-delay: 0.25s; }

/* ========== FORM ========== */
#contact {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

#contact.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========== SCROLL REVEAL ========== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ========== BUTTON HOVER EFFECTS ========== */
a {
    text-decoration: none;
}

button, [type="submit"] {
    cursor: pointer;
    border: none;
    font-family: inherit;
}

/* ========== FOCUS STYLES ========== */
:focus-visible {
    outline: 2px solid #fbbf24;
    outline-offset: 2px;
}

input:focus, textarea:focus {
    outline: none;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .hero-shape {
        display: none;
    }
    
    .shape-circle-1,
    .shape-circle-2,
    .shape-rect-1,
    .shape-triangle-1 {
        display: none;
    }
}

/* ========== IMAGE HOVER ========== */
.menu-card img {
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========== LOADING STATE ========== */
.page-loaded .hero-content,
.page-loaded .hero-images {
    animation: none;
    opacity: 1;
    transform: none;
}

/* ========== ACCESSIBILITY ========== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .menu-card,
    .info-card,
    .reveal,
    .about-images,
    .about-content,
    #contact {
        opacity: 1;
        transform: none;
    }
}
