:root {
    --primary-blue: #0066cc;
    /* A nice solid blue */
    --bg-white: #ffffff;
    --transition-speed: 0.4s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    background: #1433d6;
    font-family: 'Outfit', sans-serif;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(180deg, rgba(26, 51, 214, 0.8) 0%, rgba(74, 108, 247, 0.6) 50%, rgba(138, 168, 255, 0.4) 100%);
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(255, 255, 255, 0.002) 35px, rgba(255, 255, 255, 0.002) 70px),
        repeating-linear-gradient(-45deg, transparent, transparent 35px, rgba(255, 255, 255, 0.002) 35px, rgba(255, 255, 255, 0.002) 70px);
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(ellipse at 20% 30%, rgba(74, 108, 247, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(138, 168, 255, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(184, 208, 255, 0.15) 0%, transparent 60%);
    animation: waveMove 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

/* Header Styles */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Logo Styling */
.header-logo {
    height: 68px;
    /* Adjust based on your logo's aspect ratio */
    width: auto;
    object-fit: contain;
    margin-right: 2rem;
    /* Space between logo and first link */
}

nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #1433d6;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

nav a:hover {
    color: #1433d6;
    background: rgba(20, 51, 214, 0.05);
}

nav a:hover::after {
    width: 80%;
}

nav a.active {
    color: #1433d6;
    background: rgba(20, 51, 214, 0.1);
    font-weight: 700;
}

nav a.active::after {
    width: 80%;
}


@keyframes waveMove {
    0% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(-50px, -50px);
    }

    100% {
        transform: translate(0, 0);
    }
}

/* Top Bar Styles */
.top-bar {
    background: #0a1f8f;
    /* Darker shade of the main blue */
    color: white;
    padding: 0.8rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
    position: relative;
    z-index: 1001;
    /* Above header */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.rotating-text {
    flex: 1;
    height: 1.2em;
    /* Height of one line of text */
    overflow: hidden;
    position: relative;
}

.text-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease-in-out;
    display: flex;
    align-items: center;
}

.text-item.active {
    opacity: 1;
    transform: translateY(0);
}

.text-item.exit {
    opacity: 0;
    transform: translateY(-20px);
}

.top-bar-right {
    display: flex;
    gap: 2rem;
    font-weight: 500;
}

.top-bar-right span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Home Hero Section */
.home-hero {
    text-align: center;
    padding: 4rem 1rem 2rem;
    position: relative;
    z-index: 1;
}

.home-title {
    color: white;
    font-size: 3.5rem;
    font-weight: 700;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.2;
    animation: slideUp 0.7s ease-out forwards;
    opacity: 0;
    transform: translateY(60px);
}

@keyframes slideUp {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll Animation Class */
.animate-on-scroll {
    opacity: 0; /* Hidden by default for JS to animate */
    /* Removed initial transform here to avoid conflict, relying on keyframes */
}

/* Fallback for when JS fails or is disabled */
@media (prefers-reduced-motion: reduce), (scripting: none) {
    .animate-on-scroll {
        opacity: 1;
        transform: none;
        animation: none !important;
    }
}

.animate-on-scroll.is-visible {
    animation: slideUp 0.8s ease-out backwards; /* Added backwards to prevent flash during delay */
    opacity: 1; /* Keep visible after animation ends */
    transform: translateY(0); /* Keep in place after animation ends */
}

/* Staggered delays for cards */
.cards-container .hover-card:nth-child(1) { animation-delay: 0.1s; }
.cards-container .hover-card:nth-child(2) { animation-delay: 0.2s; }
.cards-container .hover-card:nth-child(3) { animation-delay: 0.3s; }
.cards-container .hover-card:nth-child(4) { animation-delay: 0.4s; }
.cards-container .hover-card:nth-child(5) { animation-delay: 0.5s; }
.cards-container .hover-card:nth-child(6) { animation-delay: 0.2s; }
.cards-container .hover-card:nth-child(7) { animation-delay: 0.3s; }
.cards-container .hover-card:nth-child(8) { animation-delay: 0.4s; }
.cards-container .hover-card:nth-child(9) { animation-delay: 0.5s; }

.choose-cards-container .choose-card:nth-child(1) { animation-delay: 0.2s; }
.choose-cards-container .choose-card:nth-child(2) { animation-delay: 0.4s; }
.choose-cards-container .choose-card:nth-child(3) { animation-delay: 0.6s; }

/* Waves Container */
.waves-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
    animation: waveFloat 10s ease-in-out infinite alternate;
}

.wave1 {
    animation-duration: 15s;
    opacity: 0.4;
}

.wave2 {
    animation-duration: 12s;
    animation-delay: -2s;
    opacity: 0.3;
}

.wave3 {
    animation-duration: 20s;
    animation-delay: -5s;
    opacity: 0.25;
}

@keyframes waveFloat {
    0% {
        transform: translateY(0) scaleY(1);
    }

    100% {
        transform: translateY(20px) scaleY(0.95);
    }
}

/* Cards Container */
.cards-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2.5rem 1.5rem;
    padding: 4rem 1rem;
    max-width: 1700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Card Styles */
.hover-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    width: 280px;
    height: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.5);
    cursor: pointer;
    overflow: hidden;
    position: relative;
}

.hover-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    background: white;
}

/* Icon Styles */
.icon-wrapper {
    position: relative;
    width: 60px;
    height: 60px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-icon {
    font-size: 3rem;
    color: #1433d6;
    transition: all 0.3s ease;
    position: absolute;
    opacity: 1;
    transform: scale(1);
}

.hover-icon {
    font-size: 3rem;
    color: #1433d6; /* Changed from lighter blue to main blue to match request */
    transition: all 0.3s ease;
    position: absolute;
    opacity: 0;
    transform: scale(0.5);
}

.hover-card:hover .main-icon {
    opacity: 0;
    transform: scale(0.5);
}

.hover-card:hover .hover-icon {
    opacity: 1;
    transform: scale(1);
}

/* Text Styles */
.card-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.hover-card:hover .card-text {
    color: #1433d6;
}

.card-description {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
    opacity: 1; /* Removed opacity for full visibility */
}

/* CTA Section */
.cta-section {
    text-align: center;
    padding: 4rem 1rem;
    margin: 2rem auto;
    max-width: 800px;
    position: relative;
    z-index: 1;
}

.cta-title {
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.cta-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background: white;
    color: #1433d6;
}

.btn-primary:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: transparent;
    color: white;
    border-color: white;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Why Choose Us Section */
.why-choose-us {
    padding: 6rem 2rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.section-title {
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.choose-cards-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.choose-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 3rem 2rem;
    width: 320px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.choose-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.choose-icon {
    font-size: 3.5rem;
    color: #1433d6;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.choose-card:hover .choose-icon {
    transform: scale(1.1);
}

.choose-card h3 {
    color: #333;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.choose-card p {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.5;
}

/* Trusted Clients Section */
.trusted-clients {
    padding: 4rem 0;
    overflow: hidden;
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.05); /* Slight separation background */
}

.clients-slider {
    height: 100px;
    margin: auto;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.clients-slider::before,
.clients-slider::after {
    background: linear-gradient(to right, rgba(20, 51, 214, 1) 0%, rgba(255, 255, 255, 0) 100%);
    content: "";
    height: 100px;
    position: absolute;
    width: 200px;
    z-index: 2;
}

.clients-slider::after {
    right: 0;
    top: 0;
    transform: rotateZ(180deg);
}

.clients-slider::before {
    left: 0;
    top: 0;
}

.slide-track {
    animation: scroll 40s linear infinite;
    display: flex;
    width: calc(250px * 14); /* Width of slide * number of slides (including duplicates) */
}

.client-logo {
    height: 100px;
    width: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-size: 1.5rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.1);
    margin: 0 1rem;
    border-radius: 10px;
    backdrop-filter: blur(5px);
}

.client-logo i {
    font-size: 2.5rem;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-250px * 7)); } /* Move by half the total width */
}

/* Footer Styles */
.main-footer {
    background: #0a1f8f;
    color: white;
    padding: 4rem 2rem 1rem;
    position: relative;
    z-index: 10;
    margin-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    gap: 2rem;
}

.footer-section {
    flex: 1;
    min-width: 250px;
}

.footer-section.about p {
    color: #e0e0e0;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.footer-logo {
    height: 50px;
    width: auto;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1); /* Make logo white */
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: white;
    color: #0a1f8f;
    transform: translateY(-3px);
}

.footer-section h3 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: #4a6cf7;
}

.footer-section ul {
    list-style: none;
}

.footer-section.links li {
    margin-bottom: 0.8rem;
}

.footer-section.links a {
    color: #e0e0e0;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-section.links a:hover {
    color: white;
    transform: translateX(5px);
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    color: #e0e0e0;
}

.contact-list i {
    color: #4a6cf7;
    margin-top: 5px;
}

.footer-bottom {
    text-align: center;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #aaa;
    font-size: 0.9rem;
}


/* Dropdown Container */
.dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

/* Dropdown Content (Hidden by default) */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #ffffff;
    min-width: 260px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    border-radius: 12px;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 0;
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    margin-top: 10px;
}

/* Invisible bridge to prevent menu closing */
.dropdown-content::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 20px;
    background: transparent;
}

/* Links inside the dropdown */
.dropdown-content a {
    color: #333;
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    text-align: left;
    font-size: 1rem;
    transition: all 0.2s ease;
    border-radius: 0;
    white-space: nowrap;
}

/* Hover effects for dropdown links */
.dropdown-content a:hover {
    background-color: #f0f4ff;
    color: #0066cc;
    transform: translateX(5px);
}

/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {
    display: block;
    animation: fadeIn 0.3s ease forwards;
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, 10px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

@media (max-width: 768px) {
    .home-title {
        font-size: 2.5rem;
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }

    /* Why Choose Us Responsive */
    .choose-cards-container {
        flex-direction: column;
        align-items: center;
    }

    .choose-card {
        width: 100%;
        max-width: 350px;
    }

    /* Footer Responsive */
    .footer-content {
        flex-direction: column;
        gap: 3rem;
    }
    
    .footer-section {
        width: 100%;
        text-align: center;
    }

    .footer-logo {
        margin: 0 auto 1rem;
    }
    
    .social-icons {
        justify-content: center;
    }

    .footer-section h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .contact-list li {
        justify-content: center;
    }
}

/* Page Header/Hero Styles (About, etc) */
.page-content {
    padding: 8rem 2rem 4rem;
    text-align: center;
    background: linear-gradient(135deg, #0a1f8f 0%, #1433d6 100%);
    margin-bottom: 4rem;
    position: relative;
    z-index: 1;
}

.page-title {
    font-size: 3.5rem;
    color: #ffffff;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.page-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Feature Grid & Cards (Global) */
.service-details {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 6rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 4rem;
}

@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

.feature-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    font-size: 2.5rem;
    color: #1433d6;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 1rem;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

