/* ================= GLOBAL & ROOT VARIABLES ================= */
:root {
    --dark: #0f172a;
    /* Deep Slate */
    --primary: #1e293b;
    /* Corporate Blue-Grey */
    --accent: #2563eb;
    /* Royal Blue */
    --accent-glow: rgba(37, 99, 235, 0.2);
    --light: #f8fafc;
    --white: #ffffff;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ================= REVEAL ANIMATION ================= */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: var(--transition);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.container {
    max-width: 1200px;
    margin: 2em auto;
    padding: 0 20px;
}


/* ================= HERO & BANNER STYLE ================= */
/* =========================================
   BANNER SECTION STYLES ONLY
   ========================================= */

/* 1. Main Banner Container */
.banner-style {
    position: relative;
    background-color: #0f172a;
    /* Dark Background */
    /* Halka Green Radial Gradient */
    background-image: radial-gradient(circle at 90% 50%, rgba(0, 230, 118, 0.08) 0%, transparent 40%);
    padding: 100px 20px;
    min-height: 85vh;
    /* Screen ka 85% height lega */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* Video bahar na nikle */
}

/* 2. Inner Flex Container */
.banner-style .container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

/* 3. Left Side: Text Content */
.banner-style .overview-text {
    flex: 1;
    max-width: 600px;
    z-index: 2;
    /* Text upar dikhe */
}

.banner-style .premium-badge {
    display: inline-block;
    background: rgba(0, 230, 118, 0.1);
    color: #00e676;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 230, 118, 0.2);
}

.banner-style .overview-title {
    font-size: clamp(2.5rem, 5vw, 3.8rem);
    line-height: 1.1;
    font-weight: 800;
    background: linear-gradient(90deg, #0052D4, #7ebd00);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.banner-style .overview-title span {
    color: #19f0e9;
    display: block;
}

.banner-style .overview-lead {
    font-size: 1.15rem;
    color: #94a3b8;
    /* Grey Text */
    line-height: 1.7;
    margin-bottom: 40px;
}

/* 4. Button Styling */
.banner-style .btn-premium {
    display: inline-block;
    padding: 15px 35px;
    background-color: #00e676;
    color: #0b1120;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 230, 118, 0.2);
}

.banner-style .btn-premium:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 230, 118, 0.4);
    background-color: #00c766;
}

/* 5. Right Side: Video Styling */
.banner-style .banner-image {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

/* Video specific styles */
.banner-style video.modern-visual {
    width: 100%;
    max-width: 580px;
    height: auto;
    border-radius: 24px;
    border: 6px solid rgba(255, 255, 255, 0.08);
    /* Glass Border */
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
    object-fit: cover;

    /* Animation: Float Up & Down */
    animation: floatBanner 6s ease-in-out infinite;
}

/* Floating Animation Keyframes */
@keyframes floatBanner {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* 6. Mobile Responsiveness */
@media screen and (max-width: 991px) {
    .banner-style .container {
        flex-direction: column;
        /* Stack text and video */
        text-align: center;
        gap: 40px;
    }

    .banner-style {
        padding-top: 80px;
        height: auto;
        /* Remove fixed height on mobile */
    }

    .banner-style .overview-text {
        padding: 0 15px;
    }

    .banner-style .banner-image {
        width: 100%;
        margin-bottom: 30px;
    }
}

/* ================= TECH GRID & CARDS (3 Per Row) ================= */
.tech-grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.tech-card-img {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    transition: var(--transition);
    height: 100%;
}

.tech-card-img img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.tech-card-img:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--accent);
}

.tech-card-img:hover img {
    transform: scale(1.1);
}

.tech-content {
    padding: 24px;
}

.tech-content h3 {
    font-size: 1.4rem;
    color: var(--dark);
    margin-bottom: 12px;
}

/* ================= FLOW DIAGRAM SVG ================= */
.flow-diagram {
    background: var(--white);
    padding: 40px;
    border-radius: 30px;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.02);
    margin: 40px 0;
}

.flow-diagram rect {
    fill: #fdfdfd;
    stroke: var(--accent);
    stroke-width: 2;
    rx: 10;
    /* Rounded corners for SVG */
}

/* ================= ALTERNATING ROWS (ZIG-ZAG) ================= */
.alt-row {
    display: flex;
    align-items: center;
    gap: 80px;
    margin-bottom: 80px;
}

.alt-row:nth-child(even) {
    flex-direction: row-reverse;
}

.alt-text {
    flex: 1;
}

.alt-img {
    flex: 1;
}

.alt-img img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

/* ================= PILLS & CTA ================= */
.pills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.pills div {
    background: #eff6ff;
    color: var(--accent);
    padding: 8px 18px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 14px;
    border: 1px solid #dbeafe;
}

.cta {
    background: var(--dark);
    color: var(--white);
    padding: 100px 0;
    text-align: center;
    border-radius: 40px 40px 0 0;
}

/* ================= RESPONSIVE FIXES ================= */
@media (max-width: 900px) {

    .alt-row,
    .alt-row:nth-child(even) {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .tech-grid-3 {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 600px) {
    .acs-hero-content {
        left: 5%;
        width: 90%;
    }

    .acs-hero-content h1 {
        font-size: 2.2rem;
    }
}

.banner-style {
    background: radial-gradient(circle at top left, #f8fafc, #ffffff, #f1f5f9);
    padding: 120px 0;
    overflow: hidden;
    position: relative;
}

.premium-glass {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 60px 50px;
    border-radius: 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 5;
}

.premium-badge {
    display: inline-block;
    background: rgba(37, 99, 235, 0.08);
    color: #2563eb;
    padding: 8px 20px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 30px;
    border: 1px solid rgba(37, 99, 235, 0.15);
}

.overview-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 900;
    color: #0f172a;
    line-height: 1.1;
    margin-bottom: 25px;
    letter-spacing: -1.5px;
}

.overview-title span {
    display: inline-block;
    color: #2563eb;
    background: linear-gradient(90deg, #0c342c, #155a3f);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: 0.3s ease;
}

.overview-lead {
    font-size: 1.2rem;
    color: #475569;
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 500px;
}

/* --- Premium Image with Perspective --- */
.banner-image {
    position: relative;
    perspective: 1000px;
    /* 3D depth ke liye */
}

.image-overlay-glow {
    position: absolute;
    width: 120%;
    height: 120%;
    top: -10%;
    left: -10%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.1), transparent 70%);
    z-index: -1;
}

.modern-visual {
    width: 100%;
    border-radius: 40px;
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.2);
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 10px solid white;
}

/* Hover Effect: Image rotates like a 3D object */
.banner-image:hover .modern-visual {
    transform: rotateY(-10deg) rotateX(5deg) translateY(-15px);
    box-shadow: 0 45px 80px -20px rgba(37, 99, 235, 0.25);
}

/* --- CTA Button --- */
.btn-premium {
    display: inline-block;
    background: #2563eb;
    color: white;
    padding: 18px 40px;
    border-radius: 16px;
    font-weight: 700;
    text-decoration: none;
    font-size: 1.1rem;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.35);
    transition: all 0.3s ease;
}

.btn-premium:hover {
    background: #1d4ed8;
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(37, 99, 235, 0.5);
}

/* ================= MOBILE VIEW ================= */
@media (max-width: 900px) {
    .two-col.overview-wrapper {
        display: flex;
        flex-direction: column-reverse;
        /* Image upar, text neeche */
        gap: 50px;
    }

    .premium-glass {
        padding: 40px 30px;
        text-align: center;
    }

    .overview-title {
        font-size: 2.2rem;
    }
}

/* ================= FLOW DIAGRAM STYLING ================= */

.flow-section {
    background-color: #050a10;
    /* Dark Theme matching your Services section */
    padding: 100px 0;
    text-align: center;
}

.flow-title {
    color: #fff;
    font-size: 2.2rem;
    margin-bottom: 50px;
    font-weight: 800;
}

.flow-diagram-container {
    background: rgba(255, 255, 255, 0.03);
    padding: 50px 20px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    max-width: 1000px;
    margin: 0 auto 30px;
    overflow-x: auto;
    /* Mobile support */
}

/* SVG Elements Styling */
.flow-box {
    fill: #1e293b;
    stroke: #334155;
    stroke-width: 1.5;
    transition: all 0.3s ease;
}

.accent-box {
    fill: rgba(37, 99, 235, 0.1);
    stroke: #2563eb;
    stroke-width: 2;
}

.flow-text {
    fill: #94a3b8;
    font-size: 13px;
    font-weight: 600;
    text-anchor: middle;
    pointer-events: none;
    /* Mouse effect box par hi rahe */
}

.flow-group:hover .flow-box {
    fill: #2563eb;
    stroke: #60a5fa;
    filter: drop-shadow(0 0 10px rgba(37, 99, 235, 0.5));
}

.flow-group:hover .flow-text {
    fill: #fff;
}

/* --- Arrows & Path Animation --- */
.flow-path-bg {
    fill: none;
    stroke: #334155;
    stroke-width: 2;
}

.flow-path-active {
    fill: none;
    stroke: #2563eb;
    stroke-width: 2;
    stroke-dasharray: 8, 8;
    /* Dashed line */
    animation: flowLine 2s linear infinite;
    /* Line moving effect */
}

.arrow-head {
    fill: #2563eb;
}

/* --- Animation Keyframes --- */
@keyframes flowLine {
    from {
        stroke-dashoffset: 16;
    }

    to {
        stroke-dashoffset: 0;
    }
}

.flow-caption {
    color: #64748b;
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Scroll Reveal Integration */
.flow-section.active .flow-path-active {
    opacity: 1;
}

/* Mobile Fix */
@media (max-width: 768px) {
    .main-flow-svg {
        min-width: 800px;
        /* Force scroll on small screens for clarity */
    }
}

/* ================= TECH TECHNOLOGY SECTION ================= */

.tech-section {
    background: #ffffff;
    padding: 100px 0;
}

/* --- Section Header --- */
.badge-tech {
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tech-main-title {
    font-size: 2.8rem;
    color: #0f172a;
    margin: 15px 0;
    font-weight: 800;
}

.section-intro {
    max-width: 700px;
    margin: 0 auto 60px;
    color: #64748b;
    font-size: 1.1rem;
}

/* --- Grid Fix --- */
.tech-grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

/* --- Premium Card Design --- */
.tech-card-premium {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    display: flex;
    flex-direction: column;
}

.tech-card-premium:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
    border-color: #2563eb;
}

/* --- Image Container & Hover Zoom --- */
.tech-img-box {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
}

.tech-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.tech-card-premium:hover .tech-img-box img {
    transform: scale(1.1);
}

.img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.3), transparent);
    opacity: 0.6;
}

/* --- Card Content --- */
.tech-card-content {
    padding: 25px;
    position: relative;
    flex-grow: 1;
}

.tech-title-flex {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.tech-title-flex i {
    font-size: 1.6rem;
    color: #2563eb;
}

.tech-card-content h3 {
    font-size: 1.4rem;
    color: #1e293b;
    font-weight: 700;
    margin: 0;
}

.tech-card-content p {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* --- The Animated Bottom Accent --- */
.card-accent-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: #2563eb;
    transition: width 0.4s ease;
}

.tech-card-premium:hover .card-accent-line {
    width: 100%;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .tech-main-title {
        font-size: 2.2rem;
    }
}

/* ================= COMPONENTS SECTION STYLING ================= */

.components-section {
    background-color: #050a10;
    /* Dark premium background */
    padding: 100px 0;
    overflow: hidden;
}

.tech-title {
    color: #ffffff;
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 80px;
    letter-spacing: -1px;
}

/* --- Zig-Zag Flex Layout --- */
.alt-row {
    display: flex;
    align-items: center;
    gap: 80px;
    margin-bottom: 120px;
    position: relative;
}

/* AUTOMATIC REVERSE: Har 2nd row ko ulta kar do */
.alt-row:nth-child(even) {
    flex-direction: row-reverse;
}

/* --- Image Frame & Shadow --- */
.alt-img {
    flex: 1;
}

.img-frame {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transition: transform 0.5s ease;
}

.img-frame img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.alt-row:hover .img-frame img {
    transform: scale(1.08);
    /* Hover zoom */
}

/* --- Text & Watermark --- */
.alt-text {
    flex: 1;
    position: relative;
    z-index: 2;
}

.watermark {
    position: absolute;
    top: -60px;
    left: -20px;
    font-size: 10rem;
    font-weight: 900;
    color: rgba(37, 99, 235, 0.05);
    /* Faint blue number */
    z-index: -1;
    line-height: 1;
    user-select: none;
}

.alt-text h3 {
    font-size: 2.2rem;
    color: #2563eb;
    /* Theme blue */
    margin-bottom: 20px;
    font-weight: 700;
}

.alt-text p {
    font-size: 1.15rem;
    color: #94a3b8;
    line-height: 1.8;
    margin-bottom: 25px;
}

/* --- Feature List Styling --- */
.comp-features {
    list-style: none;
    padding: 0;
}

.comp-features li {
    color: #cbd5e1;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.comp-features li i {
    color: #2563eb;
    font-weight: bold;
}

/* --- Mobile Fix --- */
@media (max-width: 900px) {

    .alt-row,
    .alt-row:nth-child(even) {
        flex-direction: column !important;
        text-align: center;
        gap: 40px;
    }

    .watermark {
        left: 50%;
        transform: translateX(-50%);
        font-size: 7rem;
    }

    .comp-features {
        display: inline-block;
        text-align: left;
    }

    .img-frame img {
        height: 250px;
    }
}

/* ================= APPLICATIONS PILLS ================= */
.app-pills-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    max-width: 900px;
    margin: 0 auto;
}

.pill-tag {
    background: #f1f5f9;
    color: #334155;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    cursor: default;
}

.pill-tag i {
    color: #2563eb;
    font-size: 1.2rem;
}

.pill-tag:hover {
    background: #2563eb;
    color: #fff;
    transform: scale(1.05);
}

.pill-tag:hover i {
    color: #fff;
}

/* ================= SERVICES (DARK NEON) ================= */
.section-dark-services {
    background-color: #050a10;
    padding: 100px 0;
}

.text-white {
    color: #fff !important;
}

.text-grey {
    color: #94a3b8 !important;
}

.services-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 50px;
}

.svc-mini-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 35px 25px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s ease;
}

.svc-mini-card i {
    font-size: 2.5rem;
    color: #60a5fa;
    margin-bottom: 20px;
    display: block;
}

.svc-mini-card h3 {
    color: #fff;
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.svc-mini-card p {
    color: #94a3b8;
    font-size: 0.9rem;
    line-height: 1.5;
}

.svc-mini-card:hover {
    background: rgba(37, 99, 235, 0.1);
    border-color: #2563eb;
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}
