:root {
    --primary-blue: #0077be;
    --secondary-blue: #005c91;
    --accent-blue: #00a6ed;
    --earth-brown: #8b4513;
    --light-brown: #d2691e;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: #333;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    width: 100%;
    background-color: #0a4c82; /* Fallback color */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}



#terrain-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
}

#terrain-container canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    color: white;
    text-align: center;
    padding: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
}

.hero-content * {
    pointer-events: auto;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

.hero-content p {
    font-size: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.hero-buttons {
    margin-top: 2rem;
}

.btn-outline-light {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border: 2px solid rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    position: relative;
    z-index: 100;
    pointer-events: auto !important;
}

.btn-outline-light:hover {
    background: rgba(10, 76, 130, 0.6);
    border-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-3px);
    color: white;
}

/* Navigation */
.navbar {
    background: var(--primary-blue) !important;
}

.navbar-brand {
    font-weight: 600;
}

/* Services Section */
.services-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
    padding: 6rem 0;
}

.services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 119, 190, 0.2), transparent);
}

.services-section h2 {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 3.5rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.services-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-blue), transparent);
}

.service-card {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.98) 0%,
        rgba(249, 250, 251, 0.95) 100%
    );
    border-radius: 20px;
    padding: 2.5rem;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 119, 190, 0.08);
    box-shadow: 
        0 10px 30px -5px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(0, 119, 190, 0.03);
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.4) 0%,
        rgba(255, 255, 255, 0.1) 100%
    );
    opacity: 0;
    transition: opacity 0.5s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 
        0 20px 40px -5px rgba(0, 119, 190, 0.12),
        0 0 0 1px rgba(0, 119, 190, 0.1);
}

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

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

.service-card:hover .service-icon i {
    transform: scale(1.1);
}

.service-icon-wrapper {
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
}

.service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    position: relative;
    margin: 0 auto;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 119, 190, 0.08) 0%, rgba(0, 166, 237, 0.05) 100%);
}

.service-icon::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    padding: 2px;
    background: linear-gradient(135deg, var(--accent-blue), var(--primary-blue));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

.service-icon i {
    font-size: 2.8rem;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.4s ease;
}

.service-icon::after {
    content: '';
    position: absolute;
    width: 140%;
    height: 140%;
    background: radial-gradient(circle, rgba(0, 166, 237, 0.15) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    opacity: 0;
    transition: all 0.5s ease;
}

.service-card:hover .service-icon i {
    transform: translateY(-5px);
    filter: brightness(1.1);
}

.service-card:hover .service-icon::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.service-icon i::after {
    content: '';
    position: absolute;
    width: 140%;
    height: 140%;
    background: radial-gradient(circle, rgba(0, 166, 237, 0.1) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover .service-icon i {
    transform: translateY(-8px);
    filter: brightness(1.2);
}

.service-card:hover .service-icon i::after {
    opacity: 1;
}

.service-content {
    text-align: center;
    padding: 0 1rem;
}

.service-card h3 {
    font-size: 1.6rem;
    margin: 0.5rem 0 1rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #1a202c;
    position: relative;
    padding-bottom: 1rem;
}

.service-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-blue), var(--primary-blue));
    border-radius: 2px;
}

.service-card p {
    color: #4a5568;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    opacity: 0.85;
    max-width: 85%;
    margin-left: auto;
    margin-right: auto;
}

.service-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.feature-tag {
    background: rgba(0, 119, 190, 0.04);
    color: #2d3748;
    padding: 0.5rem 1.2rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 119, 190, 0.08);
}

.feature-tag:hover {
    background: rgba(0, 119, 190, 0.08);
    color: var(--primary-blue);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 119, 190, 0.08);
    border-color: rgba(0, 119, 190, 0.15);
}

@media (max-width: 768px) {
    .service-card {
        padding: 2rem;
    }
    
    .service-icon-wrapper {
        margin: -2rem -2rem 1.5rem -2rem;
        padding: 2rem;
    }
    
    .service-icon i {
        font-size: 5rem;
    }
    
    .service-card h3 {
        font-size: 1.5rem;
    }
    
    .service-card p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .feature-tag {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }
}

@media (max-width: 768px) {
    .service-card {
        padding: 3rem 2rem;
    }
    
    .service-icon i {
        font-size: 4rem;
    }
    
    .service-card h3 {
        font-size: 1.5rem;
    }
    
    .service-card p {
        font-size: 1rem;
    }
    
    .service-features li {
        font-size: 0.95rem;
    }
}

@media (max-width: 768px) {
    .services-section h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .service-card {
        padding: 2rem 1.5rem;
    }
    
    .service-card h3 {
        font-size: 1.2rem;
    }
}

/* Project Cards */
.project-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.project-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.project-card h4, .project-card p {
    padding: 1rem;
    margin: 0;
}

/* Contact Form */
.contact-form form {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.contact-info {
    padding: 2rem;
}

.social-links a {
    color: var(--primary-blue);
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--secondary-blue);
}

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

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    animation: ripple 1s linear;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        height: 100vh;
        min-height: -webkit-fill-available;
    }
    
    .hero-content {
        padding: 1rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.2rem;
        padding: 0 1rem;
    }
    
    .contact-form {
        padding: 2rem 1rem;
    }
    
    .main-container {
        overflow-x: hidden;
    }
}

html {
    scroll-behavior: smooth;
}

/* Services Overview */
.services-overview {
    background-color: white;
    min-height: 100vh;
    display: flex;
    align-items: center;
}
.main-container {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
}

.contact-section {
    background: linear-gradient(135deg, rgba(10, 76, 130, 0.95) 0%, rgba(0, 46, 89, 0.98) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 20;
    color: white;
}

.contact-form-wrapper {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    transform: translateZ(0);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-form-wrapper:hover {
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px) translateZ(0);
    border-color: rgba(255, 255, 255, 0.2);
}

.contact-form {
    padding: 3rem;
    color: white;
}

.contact-form h2 {
    color: white;
    font-weight: 700;
    margin-bottom: 2.5rem;
    font-size: 2.2rem;
    letter-spacing: -0.5px;
    text-align: center;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.contact-form h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-blue), transparent);
}

.contact-form .form-group {
    position: relative;
    margin-bottom: 1.8rem;
}

.contact-form .form-label {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    display: inline-block;
}

.contact-form .form-control {
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 1.2rem 1.4rem;
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1rem;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.contact-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.contact-form .form-control:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.contact-form .form-control:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--accent-blue);
    outline: none;
    box-shadow: 0 0 0 4px rgba(0, 166, 237, 0.15), 0 8px 24px rgba(0, 0, 0, 0.1);
}

.contact-form .form-control:focus::placeholder {
    opacity: 0;
    transform: translateX(10px);
}

.contact-form .btn-primary {
    background: var(--accent-blue);
    border: none;
    padding: 1.4rem 3rem;
    font-weight: 600;
    letter-spacing: 1px;
    border-radius: 16px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 166, 237, 0.2);
    width: 100%;
    margin-top: 1rem;
}

.contact-form .btn-primary:hover {
    background: var(--secondary-blue);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 166, 237, 0.3);
}

.contact-form .btn-primary:active {
    transform: translateY(1px);
    box-shadow: 0 5px 15px rgba(0, 166, 237, 0.2);
}

@media (max-width: 768px) {
    .contact-form {
        padding: 2rem;
    }
    
    .contact-form h2 {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
    
    .contact-form .form-control {
        padding: 1rem 1.2rem;
        font-size: 0.95rem;
    }
    
    .contact-form .btn-primary {
        padding: 1.2rem 2rem;
        font-size: 0.85rem;
    }
}