:root {
    --bg-dark: #05060a;
    --bg-darker: #02030a;
    --accent: #f97316;
    --accent-gold: #fbbf24;
    --text-light: #e8eef3;
    --text-muted: #9eb7ce;
}

* {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    overflow-x: hidden;
}

.font-display {
    font-family: 'Space Grotesk', sans-serif;
}

/* Animated Background */
.hero-bg {
    background: linear-gradient(135deg, #061a36 0%, #0a2a56 50%, #084d61 100%);
    position: relative;
    overflow: hidden;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(249, 115, 22, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(249, 115, 22, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

/* Water Pattern Overlay */
.water-pattern {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0C30 0 15 15 15 30C15 45 30 60 30 60C30 60 45 45 45 30C45 15 30 0 30 0Z' fill='none' stroke='rgba(31,181,212,0.08)' stroke-width='1'/%3E%3C/svg%3E");
    background-size: 60px 60px;
}

/* Particles */
.particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(249, 115, 22, 0.4);
    animation: float-particle linear infinite;
    pointer-events: none;
}

@keyframes float-particle {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) scale(1);
        opacity: 0;
    }
}

/* Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .particle {
        animation: none;
        display: none;
    }
}

/* Button Styles */
.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, #d97706 100%);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.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(249, 115, 22, 0.3);
}

.btn-gold {
    background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
    color: #030f1f;
    transition: all 0.3s ease;
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.3);
}

/* Service Card */
.service-card {
    background: linear-gradient(135deg, rgba(10, 42, 86, 0.6) 0%, rgba(6, 26, 54, 0.8) 100%);
    border: 1px solid rgba(249, 115, 22, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
}

.service-card:hover {
    border-color: rgba(249, 115, 22, 0.5);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 40px rgba(249, 115, 22, 0.1);
}

.service-card .icon-wrapper {
    transition: all 0.4s ease;
}

.service-card:hover .icon-wrapper {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(249, 115, 22, 0.4);
}

/* Gallery Grid */
.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(6, 26, 54, 0.9) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .overlay {
    opacity: 1;
}

/* Stats Counter */
.stat-item {
    position: relative;
}

.stat-item::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 60%;
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(249, 115, 22, 0.3), transparent);
}

.stat-item:last-child::after {
    display: none;
}

@media (max-width: 1024px) {
    .stat-item::after {
        display: none;
    }
}

/* Navigation */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Form Inputs */
.form-input {
    background: rgba(10, 42, 86, 0.5);
    border: 1px solid rgba(31, 181, 212, 0.2);
    transition: all 0.3s ease;
}

.form-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(249, 115, 22, 0.1);
    outline: none;
}

/* WhatsApp Button */
.whatsapp-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    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-whatsapp 2s infinite;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}

@keyframes pulse-whatsapp {
    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); }
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(3, 15, 31, 0.95);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

/* Drilling Animation */
.drill-animation {
    animation: drill 1s ease-in-out infinite;
}

@keyframes drill {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

/* Water Flow Animation */
.water-flow {
    background: linear-gradient(90deg, var(--accent), rgba(249, 115, 22, 0.85), var(--accent));
    background-size: 200% 100%;
    animation: flow 3s linear infinite;
}

@keyframes flow {
    0% { background-position: 0% 0%; }
    100% { background-position: 200% 0%; }
}

/* Mobile Menu */
.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.mobile-menu.active {
    transform: translateX(0);
}

/* Section Backgrounds */
.section-light {
    background: linear-gradient(135deg, #0a2a56 0%, #061a36 100%);
}

.section-dark {
    background: var(--bg-darker);
}

/* Focus States */
*:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-darker);
}

::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #14829c;
}

/* Team carousel */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.team-card {
    min-width: 260px;
    max-width: 320px;
    background: rgba(10, 42, 86, 0.65);
    border: 1px solid rgba(249, 115, 22, 0.2);
    border-radius: 1.5rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.team-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.team-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 1.25rem;
}

.team-controls button {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(249, 115, 22, 0.3);
    background: rgba(3, 15, 31, 0.75);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.team-controls button:hover {
    background: rgba(249, 115, 22, 0.15);
}

.team-controls button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}
