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

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

body {
    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
}

::selection {
    background: rgba(13, 148, 136, 0.2);
    color: #0f172a;
}

/* ===== NAVBAR ===== */
.nav-logo-text {
    color: #1e293b;
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background: #0d9488;
    transition: width 0.3s ease;
}

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

/* Scrolled navbar state */
.navbar-scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.navbar-scrolled .nav-logo-text {
    color: #1e293b;
}

/* ===== MOBILE MENU ===== */
#menu-btn {
    z-index: 60;
}

#menu-btn .menu-line-top {
    top: 33%;
}

#menu-btn .menu-line-mid {
    top: 50%;
    transform: translateY(-50%);
}

#menu-btn .menu-line-bot {
    bottom: 33%;
}

#menu-btn.active .menu-line-top {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

#menu-btn .menu-line-mid {
    opacity: 0;
}

#menu-btn.active .menu-line-bot {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

body.menu-open {
    overflow: hidden;
}

/* ===== MENU TABS ===== */
.menu-tab {
    background: transparent;
    border: none;
    cursor: pointer;
}

.menu-tab.active {
    background: #0d9488;
    color: white !important;
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3);
}

.menu-tab:not(.active):hover {
    color: #0d9488 !important;
}

/* ===== MENU ITEMS ===== */
.menu-item {
    border-bottom: 1px solid transparent;
    padding-bottom: 0;
    transition: padding-bottom 0.3s ease, border-color 0.3s ease;
}

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

/* ===== SCROLL REVEAL ===== */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 1;
    transform: none;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reduced motion: keep everything visible */
@media (prefers-reduced-motion: reduce) {
    .reveal-up,
    .reveal-left,
    .reveal-right {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ===== FORM ===== */
#contact-form input:focus,
#contact-form textarea:focus {
    outline: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    #hero h1 {
        font-size: 2.5rem;
    }

    .floating-card {
        position: relative;
        bottom: auto;
        left: auto;
        margin-top: 1rem;
        max-width: 100%;
    }
}

@media (max-width: 640px) {
    #hero {
        padding-top: 6rem;
    }

    #hero .grid {
        gap: 3rem;
    }

    #hero .relative {
        order: -1;
    }
}
