/* Base styles & custom properties */
:root {
    --color-teal-600: #0d9488;
    --color-teal-700: #0f766e;
    --color-slate-900: #0f172a;
    --color-slate-800: #1e293b;
    --color-slate-500: #64748b;
    --color-slate-400: #94a3b8;
    --color-slate-200: #e2e8f0;
    --color-slate-100: #f1f5f9;
    --font-sans: 'DM Sans', system-ui, sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    overflow-x: hidden;
}

/* Selection color */
::selection {
    background-color: #99f6e4;
    color: #042f2e;
}

/* ===== NAVIGATION ===== */
.nav {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    transition: all 0.4s ease;
}

.nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06);
}

.nav.scrolled .nav-link {
    color: var(--color-slate-600);
}

/* ===== HERO ===== */
.hero {
    position: relative;
}

.hero-badge {
    animation: fadeInDown 0.8s ease forwards;
}

.hero-content {
    animation: fadeInUp 0.8s ease forwards;
}

.hero h1 {
    animation: fadeInUp 0.8s ease 0.15s forwards;
    opacity: 0;
}

.hero p {
    animation: fadeInUp 0.8s ease 0.3s forwards;
    opacity: 0;
}

.hero .flex-wrap {
    animation: fadeInUp 0.8s ease 0.45s forwards;
    opacity: 0;
}

.hero .mt-14 {
    animation: fadeInUp 0.8s ease 0.6s forwards;
    opacity: 0;
}

.hero-images {
    animation: fadeInRight 1s ease 0.3s forwards;
    opacity: 0;
}

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

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

[data-float] {
    animation: floatDot 3s ease-in-out infinite;
}

[data-float="data-float"] {
    animation-duration: 3s;
}

[data-float][data-delay="1s"] {
    animation-delay: 1s;
    animation-duration: 4s;
}

[data-float][data-delay="2s"] {
    animation-delay: 2s;
    animation-duration: 5s;
}

@keyframes floatDot {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.6; }
    50% { transform: translateY(-20px) scale(1.2); opacity: 1; }
}

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

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

/* ===== SERVICE CARDS ===== */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 1.5rem;
    opacity: 0;
    transition: opacity 0.5s ease;
    background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card > * {
    position: relative;
    z-index: 1;
}

/* ===== GALLERY ===== */
.gallery-item {
    position: relative;
    overflow: hidden;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.3) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* ===== TESTIMONIAL CARDS ===== */
.testimonial-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

/* ===== CONTACT FORM ===== */
.contact-form input,
.contact-form select,
.contact-form textarea {
    appearance: none;
    -webkit-appearance: none;
}

.contact-form select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* ===== BACK TO TOP ===== */
.back-to-top {
    transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
}

.back-to-top:hover {
    box-shadow: 0 8px 25px rgba(13, 148, 136, 0.4);
}

/* ===== SCROLL REVEAL ===== */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal[data-delay="100"] { transition-delay: 0.1s; }
.reveal[data-delay="200"] { transition-delay: 0.2s; }
.reveal[data-delay="300"] { transition-delay: 0.3s; }
.reveal[data-delay="400"] { transition-delay: 0.4s; }

.reveal-hidden {
    opacity: 0;
    transform: translateY(40px);
}

/* ===== MOBILE MENU ===== */
.mobile-menu.open {
    opacity: 1;
    pointer-events: auto;
}

.mobile-link {
    transition: color 0.3s ease;
}

/* ===== 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-hidden {
        opacity: 1;
        transform: none;
    }
    [data-float] {
        animation: none;
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 767px) {
    .hero h1 {
        font-size: 2.75rem;
    }
    .hero-images {
        display: none;
    }
    .about-images {
        margin-bottom: 2rem;
    }
    .about-img-2 {
        display: none;
    }
    .about-img-1 {
        aspect-ratio: 16/10;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .hero h1 {
        font-size: 4rem;
    }
}

@media (min-width: 1024px) {
    .hero h1 {
        font-size: 4.5rem;
    }
}
