:root {
    --bg: #f0f9ff;
    --fg: #072a45;
    --muted: #527a9e;
    --accent: #00a8e6;
    --accent-dark: #0079b3;
    --primary: #1792d6;
    --primary-dark: #0b4a6f;
    --card: #ffffff;
    --border: #bfd8ef;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

body {
    font-family: 'DM Sans', sans-serif;
    background-color: var(--bg);
    color: var(--fg);
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

/* Geometric Pattern Background */
.geo-pattern {
    background-image:
        linear-gradient(30deg, transparent 24%, rgba(0, 201, 167, 0.03) 25%, rgba(0, 201, 167, 0.03) 26%, transparent 27%, transparent 74%, rgba(0, 201, 167, 0.03) 75%, rgba(0, 201, 167, 0.03) 76%, transparent 77%, transparent),
        linear-gradient(90deg, transparent 24%, rgba(0, 201, 167, 0.03) 25%, rgba(0, 201, 167, 0.03) 26%, transparent 27%, transparent 74%, rgba(0, 201, 167, 0.03) 75%, rgba(0, 201, 167, 0.03) 76%, transparent 77%, transparent);
    background-size: 50px 50px;
}

/* Water ripple animation */
@keyframes ripple {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -50%) scale(4);
        opacity: 0;
    }
}

.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(0, 201, 167, 0.3);
    animation: ripple 1s ease-out forwards;
    pointer-events: none;
}

/* Hero Background */
.hero-bg {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    background-color: #0f3d4d;
    background-image: url("../images/1.png");
    animation: hero-bg-slider 20s infinite;
}

@keyframes hero-bg-slider {
    0% {
        background-image: url("../images/1.png");
    }
    33% {
        background-image: url("../images/2.jpg");
    }
    66% {
        background-image: url("../images/3.jpg");
    }
    100% {
        background-image: url("../images/4.jpg");
    }
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(180deg, rgba(0,0,0,0.45), rgba(0,0,0,0.65)),
        radial-gradient(ellipse at 20% 80%, rgba(0, 201, 167, 0.16) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(35, 122, 154, 0.25) 0%, transparent 50%);
    pointer-events: none;
}

.hero-bg h1,
.hero-bg p,
.hero-bg .btn-primary,
.hero-bg .btn-secondary {
    text-shadow: 0px 2px 14px rgba(0, 0, 0, 0.55);
}

.hero-bg h1 {
    color: #fff;
}

.hero-bg p {
    color: rgba(255, 255, 255, 0.92);
}

.hero-bg a.btn-primary,
.hero-bg a.btn-secondary {
    position: relative;
    z-index: 2;
}

/* Animated Grid */
.animated-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridMove 20s linear infinite;
    pointer-events: none;
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(60px, 60px);
    }
}

/* Floating particles */
.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(0, 201, 167, 0.5);
    border-radius: 50%;
    animation: float 15s infinite ease-in-out;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-100vh) translateX(100px);
        opacity: 0;
    }
}

/* Water wave SVG animation */
.wave-container {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    overflow: hidden;
}

.wave {
    position: absolute;
    bottom: 0;
    left: -100%;
    width: 300%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z' fill='%23fafbfc' opacity='0.3'/%3E%3C/svg%3E") repeat-x;
    background-size: 1200px 100%;
    animation: wave 25s linear infinite;
}

.wave:nth-child(2) {
    bottom: 10px;
    animation: wave 20s linear reverse infinite;
    opacity: 0.5;
}

@keyframes wave {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(33.33%);
    }
}

/* Slider */
.slider {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(7, 22, 36, 0.75);
}

.slider-track {
    display: flex;
    transition: transform 0.65s ease;
    will-change: transform;
}

.slider-item {
    min-width: 100%;
    position: relative;
    color: #fff;
}

.slider-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(10, 22, 40, 0.65);
}

.slider-item-content {
    position: relative;
    z-index: 2;
    padding: 3rem 2rem;
    max-width: 58rem;
}

.slider-item h3 {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    line-height: 1.1;
    margin-bottom: 0.75rem;
}

.slider-item p {
    color: rgba(255,255,255,0.9);
    margin-bottom: 1.1rem;
}

.slider-nav,
.slider-dot-wrap {
    position: absolute;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.slider-nav {
    top: 50%;
    transform: translateY(-50%);
    width: calc(100% - 2rem);
    justify-content: space-between;
    padding: 0 1rem;
    pointer-events: none;
}

.slider-button {
    pointer-events: all;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.4);
    background: rgba(15, 46, 63, 0.55);
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease;
}

.slider-button:hover {
    background: rgba(0, 201, 167, 0.65);
    transform: scale(1.1);
}

.slider-dot-wrap {
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem 0.8rem;
    background: rgba(9, 17, 33, 0.65);
    border-radius: 999px;
    box-shadow: 0 8px 20px rgba(15, 24, 44, 0.35);
}

.slider-dot {
    width: 0.85rem;
    height: 0.85rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.55);
    border: 1px solid rgba(255,255,255,0.95);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.slider-dot:hover {
    background: rgba(255,255,255,0.9);
    transform: scale(1.2);
}

.slider-dot.active {
    width: 1rem;
    height: 1rem;
    background: rgba(0, 201, 167, 0.95);
    border-color: rgba(255,255,255,1);
    transform: scale(1.3);
}

.slider-line {
    position: absolute;
    bottom: 1.2rem;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(255,255,255,0.2);
    z-index: 5;
}

.slider-dot.active {
    background: #00c9a7;
    transform: scale(1.25);
}

/* Reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-scale.active {
    opacity: 1;
    transform: scale(1);
}

/* Stagger children */
.stagger-children>*:nth-child(1) {
    transition-delay: 0.1s;
}

.stagger-children>*:nth-child(2) {
    transition-delay: 0.2s;
}

.stagger-children>*:nth-child(3) {
    transition-delay: 0.3s;
}

.stagger-children>*:nth-child(4) {
    transition-delay: 0.4s;
}

.stagger-children>*:nth-child(5) {
    transition-delay: 0.5s;
}

.stagger-children>*:nth-child(6) {
    transition-delay: 0.6s;
}

/* Navbar */
.navbar {
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.nav-link {
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Buttons */
.btn-primary {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-family: 'Space Grotesk', sans-serif;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(6, 42, 69, 0.28);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 201, 167, 0.4);
}

.btn-primary:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

.btn-secondary {
    position: relative;
    overflow: hidden;
    background: transparent;
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-family: 'Space Grotesk', sans-serif;
    border: 2px solid rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary-dark);
    border-color: white;
    box-shadow: 0 8px 16px rgba(6, 42, 69, 0.16);
}

.btn-secondary:focus-visible {
    outline: 3px solid white;
    outline-offset: 2px;
}

/* Service Cards */
.service-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(15, 61, 77, 0.15);
}

.service-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(35, 122, 154, 0.1) 0%, rgba(0, 201, 167, 0.1) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
}

.service-card:hover .service-icon svg {
    stroke: white;
}

/* Stats Counter */
.stat-item {
    text-align: center;
    padding: 2rem;
    position: relative;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 1rem;
}

.stat-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

/* Gallery */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 61, 77, 0.9) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* Testimonial Cards */
.testimonial-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.testimonial-card::before {
    content: '"';
    font-family: 'Space Grotesk', sans-serif;
    font-size: 6rem;
    position: absolute;
    top: -10px;
    left: 20px;
    color: rgba(0, 201, 167, 0.15);
    line-height: 1;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(15, 61, 77, 0.1);
}

/* Contact Form */
.form-input {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(0, 201, 167, 0.1);
}

.form-input::placeholder {
    color: var(--muted);
}

/* WhatsApp Button */
.whatsapp-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }

    50% {
        box-shadow: 0 4px 30px rgba(37, 211, 102, 0.6);
    }
}

/* Why Choose Us Items */
.why-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.why-item:hover {
    background: rgba(0, 201, 167, 0.05);
}

.why-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 61, 77, 0.98);
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu a {
    color: white;
    font-size: 1.5rem;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    padding: 1rem;
    transition: color 0.3s ease;
}

.mobile-menu a:hover {
    color: var(--accent);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: var(--fg);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
    background: white;
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
    background: white;
}

/* CTA Section Background */
.cta-section {
    background:
        linear-gradient(135deg, rgba(15, 61, 77, 0.97) 0%, rgba(35, 122, 154, 0.95) 100%),
        url('https://images.unsplash.com/photo-1581092160607-ee22621dd758?w=1920&q=80') center/cover no-repeat;
    position: relative;
    overflow: hidden;
}

/* Water drop decoration */
.water-drop {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 201, 167, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
    }

    .stat-number {
        font-size: 2.5rem;
    }
}
