/* ===== 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;
}

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

/* ===== NAVBAR ===== */
.nav-logo-text {
    transition: color 0.3s ease;
}

.nav-logo-sub {
    transition: color 0.3s ease;
}

#navbar.scrolled .nav-logo-text {
    color: #0f172a;
}

#navbar.scrolled .nav-logo-sub {
    color: #64748b;
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-blur: 20px;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

/* ===== HERO ANIMATIONS ===== */
.hero-badge {
    animation: fadeUp 0.8s ease forwards;
    opacity: 0;
    animation-delay: 0.2s;
}

.hero-title {
    animation: fadeUp 0.8s ease forwards;
    opacity: 0;
    animation-delay: 0.4s;
}

.hero-line {
    animation: expandWidth 0.6s ease forwards;
    opacity: 0;
    animation-delay: 0.6s;
    transform-origin: left;
}

.hero-desc {
    animation: fadeUp 0.8s ease forwards;
    opacity: 0;
    animation-delay: 0.7s;
}

.hero-ctas {
    animation: fadeUp 0.8s ease forwards;
    opacity: 0;
    animation-delay: 0.85s;
}

.hero-image {
    animation: fadeRight 1s ease forwards;
    opacity: 0;
    animation-delay: 0.5s;
}

.scroll-line {
    animation: scrollPulse 2s ease-in-out infinite;
}

/* ===== SECTION ANIMATIONS ===== */
.section-label {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.section-title {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease 0.1s;
}

.about-label,
.about-title,
.about-line,
.about-desc,
.about-values {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.about-label { transition-delay: 0.1s; }
.about-title { transition-delay: 0.2s; }
.about-line { transition-delay: 0.3s; }
.about-desc { transition-delay: 0.4s; }
.about-values { transition-delay: 0.5s; }

.about-images {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.8s ease;
}

.contact-label,
.contact-title,
.contact-line,
.contact-desc,
.contact-info,
.contact-form-wrap {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.contact-label { transition-delay: 0.1s; }
.contact-title { transition-delay: 0.2s; }
.contact-line { transition-delay: 0.3s; }
.contact-desc { transition-delay: 0.4s; }
.contact-info { transition-delay: 0.5s; }
.contact-form-wrap { transition-delay: 0.6s; }

.cta-label,
.cta-title,
.cta-desc,
.cta-buttons {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.cta-label { transition-delay: 0.1s; }
.cta-title { transition-delay: 0.2s; }
.cta-desc { transition-delay: 0.3s; }
.cta-buttons { transition-delay: 0.4s; }

/* ===== SCROLL REVEAL ACTIVE STATE ===== */
.revealed .section-label,
.revealed .section-title {
    opacity: 1;
    transform: translateY(0);
}

.revealed .about-label,
.revealed .about-title,
.revealed .about-line,
.revealed .about-desc,
.revealed .about-values {
    opacity: 1;
    transform: translateY(0);
}

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

.revealed .contact-label,
.revealed .contact-title,
.revealed .contact-line,
.revealed .contact-desc,
.revealed .contact-info,
.revealed .contact-form-wrap {
    opacity: 1;
    transform: translateY(0);
}

.revealed .cta-label,
.revealed .cta-title,
.revealed .cta-desc,
.revealed .cta-buttons {
    opacity: 1;
    transform: translateY(0);
}

/* ===== KEYFRAMES ===== */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes expandWidth {
    from {
        opacity: 0;
        width: 0;
    }
    to {
        opacity: 1;
        width: 4rem;
    }
}

@keyframes scrollPulse {
    0%, 100% {
        opacity: 0.3;
        transform: scaleY(1);
    }
    50% {
        opacity: 1;
        transform: scaleY(1.2);
    }
}

/* ===== SERVICE CARDS ===== */
.service-card {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    transform: translateY(-4px);
}

/* ===== GALLERY ===== */
.gallery-item {
    cursor: pointer;
    position: relative;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(13, 148, 136, 0);
    transition: background 0.4s ease;
    pointer-events: none;
}

.gallery-item:hover::after {
    background: rgba(13, 148, 136, 0.08);
}

/* ===== MOBILE MENU ===== */
.mobile-link {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

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

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

/* ===== MOBILE MENU BUTTON ===== */
#menuBtn.active #line1 {
    transform: rotate(45deg) translate(3px, 3px);
}

#menuBtn.active #line2 {
    opacity: 0;
    width: 0;
}

#menuBtn.active #line3 {
    transform: rotate(-45deg) translate(3px, -3px);
}

/* ===== CUSTOM SELECT ===== */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 9L12 15L18 9' stroke='%2394a3b8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0 center;
}

/* ===== FORM FOCUS STATES ===== */
input:focus,
textarea:focus,
select:focus {
    border-bottom-color: #0d9488 !important;
}

/* ===== TRANSITION HELPERS ===== */
.fade-transition {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 767px) {
    .hero-image {
        margin-top: 2rem;
    }

    #hero {
        padding-top: 6rem;
    }

    .floating-stat {
        position: relative !important;
        bottom: auto !important;
        left: auto !important;
        margin-top: 1rem;
    }
}
