/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 80px;

    /* ---- BACKGROUND IMAGE (full coverage) ---- */
    background-image: url('../assets/images/hero\ section.png'); /* change to your image path */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #0a0a1a; /* fallback while image loads */
}

/* Dark overlay – improves text contrast, does NOT cover the video */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6); /* adjust opacity as needed */
    z-index: 1;
    pointer-events: none; /* allows clicking buttons through the overlay */
}

/* Subtle pattern (still visible on top of overlay, but very faint) */
.hero-bg-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.05; /* reduced from 0.03 to be softer over the image */
    background-image: 
        radial-gradient(circle at 20% 50%, var(--accent) 1px, transparent 1px),
        radial-gradient(circle at 80% 20%, var(--accent) 1px, transparent 1px),
        radial-gradient(circle at 40% 80%, var(--accent) 1px, transparent 1px);
    background-size: 60px 60px, 80px 80px, 100px 100px;
    z-index: 1;
    pointer-events: none;
}

/* All content sits above the overlay */
.hero .container,
.hero .scroll-indicator {
    position: relative;
    z-index: 2;
}

/* Grid layout – left text, right video */
.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

/* Left side animations and styles (unchanged) */
.hero-content { animation: fadeInUp 1s ease; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.18);
    border: 1px solid rgb(3, 49, 87);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    color: var(--white);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    animation: fadeInUp 0.8s ease 0.3s both;
}

.hero h1 span {
    color: var(--accent);
    position: relative;
}

.hero h1 span::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(63,169,255,0.35);
    z-index: -1;
}

.hero p {
    font-size: 1.15rem;
    color: var(--mid-gray);
    margin-bottom: 2rem;
    max-width: 500px;
    line-height: 1.8;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.5s both;
}

.hero-stats {
    display: flex;
    gap: 2.5rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeInUp 0.8s ease 0.6s both;
}

.hero-stat {
    text-align: left;
}

.hero-stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
    font-family: 'Montserrat', sans-serif;
    line-height: 1;
}

.hero-stat-label {
    font-size: 0.8rem;
    color: var(--mid-gray);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ===== RIGHT SIDE – VIDEO ===== */
.hero-visual {
    position: relative;
    animation: slideInRight 1s ease 0.3s both;
}

.hero-visual-wrapper {
    position: relative;
    padding: 1rem;
}

/* Video styling (replaces the img rules) */
.hero-visual-wrapper video {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.3);
    display: block;
    transition: var(--transition-slow);
}

.hero-visual-wrapper:hover video {
    transform: scale(1.02);
}

/* Decorative animated shape behind video */
.hero-visual-shape {
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    border: 2px solid rgba(15,111,255,0.25);
    border-radius: 30px;
    z-index: -1;
    animation: morphShape 10s ease-in-out infinite;
    padding-left: 20rem;

}
/* Desktop: make video larger and more prominent */
@media (min-width: 1200px) {
    .hero-visual-wrapper video {
        max-width: 650px;   /* was 500px – increase as desired */
    }

    /* Optional: give the video column more space */
    .hero .container {
        grid-template-columns: 1fr 1.2fr;  /* right column gets extra width */
        gap: 5rem;
    }
}

@keyframes morphShape {
    0%, 100% { border-radius: 30px 60px 30px 60px; }
    33% { border-radius: 60px 30px 60px 30px; }
    66% { border-radius: 45px 45px 45px 45px; }
}

/* ===== SCROLL INDICATOR ===== */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--mid-gray);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    animation: fadeIn 1s ease 1s both;
    z-index: 2;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(180deg, var(--accent), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.5); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* ===== RESPONSIVE - TABLET ===== */
@media (max-width: 1024px) {
    .hero .container { 
        grid-template-columns: 1fr; 
        text-align: center; 
        gap: 3rem; 
    }
    .hero-content p { 
        margin-left: auto; 
        margin-right: auto; 
    }
    .hero-buttons { 
        justify-content: center; 
    }
    .hero-stats { 
        justify-content: center; 
    }
    .hero-visual { 
        order: -1; 
        max-width: 400px; 
        margin: 0 auto; 
    }
}

/* ===== RESPONSIVE - MOBILE ===== */
@media (max-width: 768px) {
    .hero {
        padding-top: 70px;
        min-height: auto;
        padding-bottom: 4rem;
    }

    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        padding-top: 1.5rem;
        padding-bottom: 1rem;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .hero h1 {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
        margin-bottom: 1rem;
        line-height: 1.15;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        max-width: 100%;
        padding: 0 0.5rem;
        line-height: 1.7;
    }

    .hero-buttons {
        justify-content: center;
        width: 100%;
        gap: 0.75rem;
    }

    .hero-buttons .btn {
        width: auto;
        min-width: 140px;
    }

    .hero-stats {
        justify-content: center;
        gap: 1.5rem;
        margin-top: 2rem;
        padding-top: 1.5rem;
        width: 100%;
    }

    .hero-stat {
        text-align: center;
        flex: 1;
        min-width: 70px;
    }

    .hero-stat-number {
        font-size: 1.6rem;
    }

    .hero-stat-label {
        font-size: 0.7rem;
    }

    .hero-visual {
        order: -1;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }

    .hero-visual-wrapper {
        padding: 0.5rem;
    }

    .hero-visual-wrapper video {
        max-width: 100%;
        border-radius: 16px;
    }

    .hero-visual-shape {
        display: none; /* Hide decorative shape on mobile for cleaner look */
    }

    .scroll-indicator {
        display: none; /* Hide scroll indicator on mobile */
    }
}

/* ===== RESPONSIVE - SMALL MOBILE ===== */
@media (max-width: 480px) {
    .hero {
        padding-top: 65px;
    }

    .hero .container {
        gap: 1.5rem;
        padding: 1rem 1rem 0.5rem;
    }

    .hero h1 {
        font-size: 1.7rem;
    }

    .hero p {
        font-size: 0.95rem;
        padding: 0;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.6rem;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 260px;
        text-align: center;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 1rem 1.5rem;
        margin-top: 1.5rem;
        padding-top: 1rem;
    }

    .hero-stat {
        min-width: 60px;
    }

    .hero-stat-number {
        font-size: 1.4rem;
    }

    .hero-stat-label {
        font-size: 0.65rem;
        letter-spacing: 0.05em;
    }

    .hero-visual {
        max-width: 280px;
    }

    .hero-badge {
        font-size: 0.7rem;
        padding: 0.4rem 0.8rem;
        margin-bottom: 1rem;
    }
}

/* ===== TRUST BADGES ===== */
.trust-badges {
    padding: 3rem 0;
    background: var(--off-white);
    border-bottom: 1px solid var(--light-gray);
}

.trust-badges .container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.trust-badge i { color: var(--accent); font-size: 1.1rem; }

/* ===== FEATURES SECTION ===== */
.features {
    padding: var(--section-padding) 0;
    background: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    padding: 2.5rem 2rem;
    background: var(--white);
    border-radius: 20px;
    border: 1px solid var(--light-gray);
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-accent);
    transform: scaleX(0);
    transition: var(--transition-slow);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.feature-card:hover::before { transform: scaleX(1); }

.feature-icon {
    width: 65px;
    height: 65px;
    border-radius: 16px;
    background: var(--off-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--accent-dark);
    margin-bottom: 1.5rem;
    transition: var(--transition-base);
}

.feature-card:hover .feature-icon {
    background: var(--accent);
    color: var(--primary);
    transform: rotateY(180deg);
}

.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.feature-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-dark);
    transition: var(--transition-base);
}

.feature-link:hover {
    color: var(--primary);
    gap: 0.7rem;
}

/* ===== SERVICES PREVIEW ===== */
.services-preview {
    padding: var(--section-padding) 0;
    background: var(--off-white);
}

.services-grid-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.service-preview-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid var(--light-gray);
    transition: var(--transition-base);
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
}

.service-preview-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.service-preview-icon {
    width: 55px;
    height: 55px;
    min-width: 55px;
    border-radius: 14px;
    background: var(--off-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--accent-dark);
    transition: var(--transition-base);
}

.service-preview-card:hover .service-preview-icon {
    background: var(--accent);
    color: var(--primary);
}

.service-preview-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
}

.service-preview-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
}

/* ===== STATS BAR ===== */
.stats-bar {
    padding: 4rem 0;
    background: var(--primary);
    position: relative;
    overflow: hidden;
}

.stats-bar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 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 0L60 30L30 60L0 30Z' fill='rgba(15,111,255,0.05)'/%3E%3C/svg%3E");
}

.stats-bar-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.stat-bar-item { padding: 1rem; }

.stat-bar-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent);
    font-family: 'Montserrat', sans-serif;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-bar-label {
    font-size: 0.9rem;
    color: var(--mid-gray);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ===== WHY CHOOSE US ===== */
.why-choose {
    padding: var(--section-padding) 0;
    background: var(--white);
}

.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.why-image {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
}

.why-image img {
    width: 100%;
    border-radius: 24px;
    transition: var(--transition-slow);
}

.why-image:hover img { transform: scale(1.03); }

.why-image::before {
    content: '';
    position: absolute;
    inset: -10px;
    border: 2px solid var(--accent);
    border-radius: 28px;
    opacity: 0.3;
    z-index: -1;
}

.why-content h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    margin-bottom: 1.5rem;
}

.why-content > p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.why-features {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.why-feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    border-radius: 12px;
    transition: var(--transition-base);
}

.why-feature:hover {
    background: var(--off-white);
}

.why-feature i {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 10px;
    background: rgba(15,111,255,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-dark);
    font-size: 1rem;
}

.why-feature h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.why-feature p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

/* ===== FEATURED PROJECTS ===== */
.featured-projects {
    padding: var(--section-padding) 0;
    background: var(--off-white);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.project-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2.5rem;
    border: 1px solid var(--light-gray);
    transition: var(--transition-base);
    position: relative;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    cursor: default;
}

.project-card[href] {
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.project-card[href]:hover {
    border-color: var(--accent);
}

.project-number {
    font-size: 3.5rem;
    font-weight: 800;
    color:  #0e2f5a;
    opacity: 0.15;
    line-height: 1;
    margin-bottom: 1rem;
    font-family: 'Montserrat', sans-serif;
}

.project-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.project-description {
    font-size: 1.05rem;
    color: var(--text-primary);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.project-footer {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid var(--light-gray);
}

.project-avatar {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--off-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--accent-dark);
    font-weight: 700;
    border: 2px solid var(--light-gray);
    flex-shrink: 0;
}

.project-info {
    flex: 1;
    min-width: 0;
}

.project-info h4 {
    font-size: 1rem;
    margin-bottom: 0.15rem;
    color: var(--primary);
}

.project-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

.project-arrow {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--off-white);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-dark);
    font-size: 0.9rem;
    transition: var(--transition-base);
    flex-shrink: 0;
}

.project-card[href]:hover .project-arrow {
    background: var(--accent);
    color: var(--primary);
    transform: translate(2px, -2px);
}

/* ===== CTA SECTION ===== */
.cta-section {
    padding: var(--section-padding) 0;
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(15,111,255,0.08) 0%, transparent 70%);
}

.cta-section .container { position: relative; z-index: 1; }

.cta-section h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--white);
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.15rem;
    color: var(--mid-gray);
    max-width: 600px;
    margin: 0 auto 2rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero .container { grid-template-columns: 1fr; text-align: center; gap: 3rem; }
    .hero-content p { margin-left: auto; margin-right: auto; }
    .hero-buttons { justify-content: center; }
    .hero-stats { justify-content: center; }
    .hero-visual { order: -1; max-width: 400px; margin: 0 auto; }
    .why-grid { grid-template-columns: 1fr; gap: 3rem; }
    .stats-bar-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .hero-stats { flex-wrap: wrap; gap: 1.5rem; }
    .stats-bar-grid { grid-template-columns: 1fr 1fr; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .services-grid-preview { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 2.2rem; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .stats-bar-number { font-size: 2rem; }
}