/* Custom Tailwind-compatible styles */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Playfair+Display:wght@600;700&display=swap');

:root {
    --color-ocean: #0077B6;
    --color-ocean-dark: #023E8A;
    --color-ocean-light: #00B4D8;
    --color-aqua: #48CAE4;
    --color-foam: #CAF0F8;
    --color-sand: #F5E6D3;
    --color-coral: #FF6B6B;
    --color-sunset: #FF8E53;
    --color-gold: #FFD93D;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    color: #1a1a2e;
    line-height: 1.6;
    overflow-x: hidden;
}

.font-display {
    font-family: 'Playfair Display', serif;
}

/* Gradient backgrounds */
.bg-ocean-gradient {
    background: linear-gradient(135deg, var(--color-ocean-dark) 0%, var(--color-ocean) 50%, var(--color-ocean-light) 100%);
}

.bg-hero-pattern {
    background: 
        radial-gradient(ellipse at 20% 80%, rgba(72, 202, 228, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(0, 180, 216, 0.25) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(2, 62, 138, 0.1) 0%, transparent 70%),
        linear-gradient(180deg, #023E8A 0%, #0077B6 100%);
}

.bg-wave-pattern {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23ffffff' fill-opacity='0.1' d='M0,96L48,112C96,128,192,160,288,165.3C384,171,480,149,576,149.3C672,149,768,171,864,165.3C960,160,1056,128,1152,117.3C1248,107,1344,117,1392,122.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E");
    background-position: bottom;
    background-repeat: no-repeat;
    background-size: 100% 150px;
}

/* Water ripple effect */
.water-ripple {
    position: relative;
    overflow: hidden;
}

.water-ripple::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at center, transparent 0%, rgba(255,255,255,0.03) 50%, transparent 70%);
    animation: ripple 8s ease-in-out infinite;
}

@keyframes ripple {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.2); opacity: 0.5; }
}

/* Floating animation */
.float-animation {
    animation: float 6s ease-in-out infinite;
}

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

/* Shimmer effect */
.shimmer {
    position: relative;
    overflow: hidden;
}

.shimmer::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Card hover effects */
.service-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 60px rgba(0, 119, 182, 0.2);
}

/* Button styles */
.btn-primary {
    background: linear-gradient(135deg, var(--color-ocean) 0%, var(--color-ocean-light) 100%);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 119, 182, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 119, 182, 0.5);
}

.btn-secondary {
    background: white;
    color: var(--color-ocean);
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: transparent;
    color: white;
}

/* Testimonial card */
.testimonial-card {
    background: white;
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    font-family: 'Playfair Display', serif;
    font-size: 6rem;
    color: var(--color-foam);
    position: absolute;
    top: -20px;
    left: 20px;
    line-height: 1;
}

/* Star rating */
.stars {
    color: var(--color-gold);
}

/* Dropdown menu */
.dropdown-menu {
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Mobile menu */
.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-menu.active {
    transform: translateX(0);
}

/* Mobile menu services section */
.mobile-menu .space-y-2 a {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.mobile-menu .space-y-2 a:last-child {
    border-bottom: none;
}

/* Section decorations */
.section-wave-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.section-wave-top svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
}

/* Trust badges */
.trust-badge {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Checklist style */
.checklist li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.75rem;
}

.checklist li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-ocean-light);
    font-weight: bold;
}

/* Scroll indicator */
.scroll-indicator {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* Counter animation */
.counter {
    font-feature-settings: "tnum";
    font-variant-numeric: tabular-nums;
}

/* Form styles */
.form-input {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid transparent;
    border-radius: 12px;
    background: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--color-ocean);
    box-shadow: 0 0 0 4px rgba(0, 119, 182, 0.1);
}

/* Loading spinner */
.spinner {
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
}

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

/* Responsive helpers */
@media (max-width: 1024px) {
    .service-card {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-padding {
        padding: 3rem 1rem;
    }
    
    /* Better mobile form inputs */
    .form-input {
        padding: 0.875rem 1rem;
        font-size: 16px; /* Prevents iOS zoom on focus */
    }
    
    /* Trust badges mobile optimization */
    .trust-badge {
        padding: 0.75rem;
        font-size: 0.875rem;
    }
    
    .trust-badge svg {
        width: 1.5rem;
        height: 1.5rem;
        flex-shrink: 0;
    }
    
    /* Service cards touch-friendly */
    .service-card {
        padding: 1.25rem;
    }
    
    .service-card:active {
        transform: scale(0.98);
    }
    
    /* Testimonial cards */
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .testimonial-card::before {
        font-size: 4rem;
        top: -10px;
    }
    
    /* Better button sizing for mobile */
    a[class*="rounded-full"],
    button[class*="rounded-full"] {
        min-height: 48px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    /* Extra small screens */
    .trust-badge {
        padding: 0.5rem;
    }
    
    .trust-badge span {
        font-size: 0.75rem;
    }
    
    .trust-badge svg {
        width: 1.25rem;
        height: 1.25rem;
        margin-right: 0.5rem;
    }
    
    /* Stats section mobile */
    .counter {
        font-size: 2rem;
    }
    
    /* Improve mobile form UX */
    select.form-input {
        appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 1rem center;
        background-size: 1.25rem;
        padding-right: 3rem;
    }
}

/* Smooth scrolling on touch devices */
@media (hover: none) and (pointer: coarse) {
    html {
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Disable hover effects on touch */
    .service-card:hover {
        transform: none;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    }
    
    .service-card:active {
        transform: scale(0.98);
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    }
    
    /* Better tap targets */
    .dropdown-menu a,
    .mobile-menu a {
        min-height: 48px;
        display: flex;
        align-items: center;
    }
}

/* Fix iOS safe areas */
@supports (padding: max(0px)) {
    body {
        padding-left: max(0px, env(safe-area-inset-left));
        padding-right: max(0px, env(safe-area-inset-right));
    }
    
    footer {
        padding-bottom: max(2rem, env(safe-area-inset-bottom));
    }
}

/* Landscape mobile optimization */
@media (max-height: 500px) and (orientation: landscape) {
    .min-h-screen {
        min-height: auto;
        padding-top: 6rem;
        padding-bottom: 4rem;
    }
}

/* Smooth page transitions */
.page-enter {
    opacity: 0;
    transform: translateY(20px);
}

.page-enter-active {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.5s ease;
}


