:root {
    --primary-color: #003366; /* Deep Navy from logo */
    --secondary-color: #008fa1; /* Teal arrow color from logo */
    --accent-color: #00c2cb;
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-light: #f4f7f6;
    --transition: all 0.3s ease-in-out;
}

html, body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    transition: var(--transition);
    border-bottom: 2px solid #f0f0f0;
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    overflow: hidden;
}

/* Diagonal Corner Stripes: 4 Distinct Bands (Dark -> Mid -> Light -> White) */
.navbar::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    background: linear-gradient(
        135deg,
        #001a33 0% 30%,      /* Stripe 1: Dark Blue */
        #008fa1 31% 36%,     /* Stripe 2: Mid Blue */
        #00c2cb 37% 42%,     /* Stripe 3: Light Blue */
        #ffffff 43% 48%,     /* Stripe 4: White */
        transparent 49%
    );
    z-index: 0;
    opacity: 1;
    pointer-events: none;
}

@media (max-width: 991px) {
    .navbar::before {
        display: none; /* Hide complex decoration on mobile header to save space and prevent overflow */
    }
}

.container {
    position: relative;
    z-index: 10;
}

.navbar-brand img {
    height: 70px; /* Adjusted: better balance between 80px and 60px */
    transition: var(--transition);
}

/* Shrink logo on scroll */
.navbar.shadow-sm .navbar-brand img {
    height: 50px; /* Proportionally adjusted from 45px */
}

.nav-link {
    color: var(--primary-color) !important;
    font-weight: 600;
    margin: 0 10px;
}

.nav-link:hover {
    color: var(--secondary-color) !important;
}

/* Hero Section with Animated Gradient */
.hero {
    min-height: 100vh;
    background: linear-gradient(-45deg, #001a33, #003366, #001a33, #002d5b);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    color: var(--text-light);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--secondary-color);
    filter: blur(150px);
    top: -50px;
    right: -50px;
    opacity: 0.3;
    animation: pulse 8s ease-in-out infinite alternate;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.2; }
    100% { transform: scale(1.2); opacity: 0.4; }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

/* Services */
.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: var(--transition);
    border: 1px solid transparent;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--secondary-color);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.service-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    display: inline-block;
    animation: floatIcon 4s ease-in-out infinite;
}

@keyframes floatIcon {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.service-card:nth-child(2) .service-icon {
    animation-delay: 0.5s;
}

.service-card:nth-child(3) .service-icon {
    animation-delay: 1s;
}

/* Contact */
.contact-section {
    background: white;
    padding: 100px 0;
}

.contact-info-box {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    display: block;
}

.contact-info-box:hover {
    background: var(--secondary-color);
    color: white;
    transform: scale(1.05);
}

.contact-info-box i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: white;
}

footer {
    background: var(--primary-color);
    color: white;
    padding: 30px 0; /* Reduced from 60px 0 30px for a more compact look */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    height: 34px; /* Increased from 28px for better visibility */
    filter: brightness(0) invert(1);
    opacity: 0.8;
    transition: var(--transition);
}

.footer-logo:hover {
    opacity: 1;
    transform: scale(1.05);
}

footer p {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-top: 5px; /* Reduced from 10px */
}

@media (max-width: 768px) {
    .navbar {
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
    }
    
    .navbar-brand img {
        height: 50px;
    }

    .hero {
        padding-top: 100px; /* Account for fixed navbar */
        text-align: center;
    }

    .hero-title {
        font-size: 2.2rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    .contact-info-box {
        padding: 20px;
    }
}

/* Ensure images don't cause overflow */
img {
    max-width: 100%;
    height: auto;
}
