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

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

body {
    background-color: #0a0e27;
    color: #ffffff;
    font-family: 'Space Grotesk', sans-serif;
    overflow-x: hidden;
}

/* ===== Geometric Background Shapes ===== */
.geo-shape {
    position: absolute;
    pointer-events: none;
    opacity: 0.4;
}

.shape-circle-1 {
    width: 400px;
    height: 400px;
    border: 2px solid rgba(110, 231, 183, 0.15);
    border-radius: 50%;
    top: 15%;
    right: -100px;
    animation: float 8s ease-in-out infinite;
}

.shape-circle-2 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(52, 211, 153, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    bottom: 20%;
    left: -50px;
    animation: float 6s ease-in-out infinite reverse;
}

.shape-triangle {
    width: 0;
    height: 0;
    border-left: 80px solid transparent;
    border-right: 80px solid transparent;
    border-bottom: 140px solid rgba(110, 231, 183, 0.08);
    top: 45%;
    left: 5%;
    animation: rotate 20s linear infinite;
}

.shape-rect {
    width: 120px;
    height: 120px;
    border: 2px solid rgba(110, 231, 183, 0.1);
    bottom: 30%;
    right: 8%;
    transform: rotate(45deg);
    animation: float 7s ease-in-out infinite;
}

.shape-diamond {
    width: 60px;
    height: 60px;
    background: rgba(52, 211, 153, 0.12);
    transform: rotate(45deg);
    top: 60%;
    right: 15%;
    animation: pulse-glow 4s ease-in-out infinite;
}

/* ===== Hero ===== */
.hero-gradient {
    background: radial-gradient(ellipse at 30% 50%, rgba(13, 19, 51, 0.95) 0%, rgba(10, 14, 39, 0.98) 50%, rgba(10, 14, 39, 1) 100%);
}

.hero-pattern {
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(110, 231, 183, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(52, 211, 153, 0.05) 0%, transparent 50%);
}

/* ===== Animations ===== */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes float-delayed {
    0%, 100% { transform: translateY(0px) rotate(45deg); }
    50% { transform: translateY(-15px) rotate(50deg); }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.4; transform: rotate(45deg) scale(1); }
    50% { opacity: 0.8; transform: rotate(45deg) scale(1.1); }
}

/* ===== Hero Entrance Animations ===== */
.hero-badge {
    animation: fadeSlideUp 0.8s ease-out 0.2s both;
}

.hero-title {
    animation: fadeSlideUp 0.8s ease-out 0.4s both;
}

.hero-subtitle {
    animation: fadeSlideUp 0.8s ease-out 0.6s both;
}

.hero-cta {
    animation: fadeSlideUp 0.8s ease-out 0.8s both;
}

.hero-quick-info {
    animation: fadeSlideUp 0.8s ease-out 1s both;
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Scroll Reveal (below-fold only) ===== */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* Reduced motion */
@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;
    }
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ===== Navigation ===== */
.nav-scrolled {
    background: rgba(10, 14, 39, 0.95);
    backdrop-blur-md;
    border-bottom: 1px solid rgba(110, 231, 183, 0.1);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #34d399;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* ===== Mobile Menu ===== */
.mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

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

.mobile-menu.open .mobile-menu-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.open .mobile-menu-link:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.open .mobile-menu-link:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.open .mobile-menu-link:nth-child(4) { transition-delay: 0.25s; }

/* ===== Menu Cards ===== */
.menu-card {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Button Hover Effects ===== */
a[href="tel:+18398107123"] {
    position: relative;
}

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

::-webkit-scrollbar-track {
    background: #0a0e27;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #34d399;
}

/* ===== Selection ===== */
::selection {
    background: rgba(52, 211, 153, 0.3);
    color: #ffffff;
}
