/* =========================
   HERO SECTION FINAL CSS
========================= */

.hero{
    width:100%;
    min-height:100vh;
    position:relative;
    display:flex;
    align-items:center;
    overflow:hidden;
    padding:120px 8%;
    background:
    linear-gradient(
        to right,
        rgba(2,10,25,0.92) 0%,
        rgba(2,10,25,0.85) 35%,
        rgba(2,10,25,0.65) 60%,
        rgba(2,10,25,0.45) 100%
    ),
    url("/images/home.png");

    background-size:cover;
    background-position:center;
    background-repeat:no-repeat;
}


/* =========================
   HERO CONTENT
========================= */

.hero-content{
    max-width:850px;
    position:relative;
    z-index:2;
}


/* =========================
   TOP TAG
========================= */

.tag{
    display:inline-block;
    padding:12px 26px;
    border-radius:50px;
    background:rgba(124,255,77,0.12);
    border:1px solid rgba(124,255,77,0.4);
    color:#7dff45;
    font-size:15px;
    font-weight:600;
    letter-spacing:1px;
    margin-bottom:28px;
    backdrop-filter:blur(10px);
}


/* =========================
   HEADING
========================= */

.hero h1{
    font-size:88px;
    line-height:1.05;
    font-weight:800;
    color:#ffffff;
    margin-bottom:25px;
    text-shadow:
    0 5px 20px rgba(0,0,0,0.55),
    0 3px 10px rgba(0,0,0,0.35);
}

/* GREEN WORD */

.hero h1 span{
    color:#7dff45;
    text-shadow:
    0 0 25px rgba(125,255,69,0.35),
    0 4px 10px rgba(0,0,0,0.45);
}


/* =========================
   PARAGRAPH
========================= */

.hero p{
    color:rgba(255,255,255,0.9);
    font-size:21px;
    line-height:1.9;
    max-width:760px;
    margin-bottom:45px;
    text-shadow:0 2px 8px rgba(0,0,0,0.45);
}


/* =========================
   BUTTONS
========================= */

.hero-btns{
    display:flex;
    gap:20px;
    flex-wrap:wrap;
}


/* PRIMARY BUTTON */

.btn-primary{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:18px 42px;
    border-radius:60px;
    background:#7dff45;
    color:#08111f;
    text-decoration:none;
    font-size:18px;
    font-weight:700;
    transition:0.4s ease;
    box-shadow:0 12px 35px rgba(125,255,69,0.35);
}

.btn-primary:hover{
    transform:translateY(-6px);
    background:#92ff69;
    box-shadow:0 18px 40px rgba(125,255,69,0.45);
}


/* OUTLINE BUTTON */

.btn-outline{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:18px 42px;
    border-radius:60px;
    border:2px solid rgba(255,255,255,0.2);
    background:rgba(255,255,255,0.06);
    color:#ffffff;
    text-decoration:none;
    font-size:18px;
    font-weight:600;
    transition:0.4s ease;
    backdrop-filter:blur(12px);
}

.btn-outline:hover{
    background:#ffffff;
    color:#08111f;
    transform:translateY(-6px);
}


/* =========================
   RIGHT GLASS CARD
========================= */

.floating-card{
    position:absolute;
    right:7%;
    top:50%;
    transform:translateY(-50%);
    width:370px;
    z-index:3;
}


/* GLASS EFFECT */

.glass{
    background:rgba(15,25,38,0.55);
    border:1px solid rgba(255,255,255,0.08);
    backdrop-filter:blur(18px);
    border-radius:28px;
    padding:35px;
    color:#fff;
    box-shadow:0 10px 45px rgba(0,0,0,0.35);
    transition:0.4s ease;
}

.glass:hover{
    transform:translateY(-10px);
    border-color:rgba(125,255,69,0.3);
}


/* CARD TITLE */

.glass h3{
    font-size:38px;
    font-weight:700;
    margin-bottom:18px;
    color:#ffffff;
}


/* CARD TEXT */

.glass p{
    color:rgba(255,255,255,0.82);
    font-size:17px;
    line-height:1.9;
}


/* =========================
   STATS
========================= */

.stats{
    display:flex;
    gap:18px;
    margin-top:22px;
}

.stat{
    flex:1;
    text-align:center;
    padding:20px;
    border-radius:20px;
    background:rgba(255,255,255,0.08);
    backdrop-filter:blur(10px);
    border:1px solid rgba(255,255,255,0.06);
    transition:0.4s ease;
}

.stat:hover{
    transform:translateY(-8px);
    background:#7dff45;
}

.stat:hover h2,
.stat:hover span{
    color:#08111f;
}

.stat h2{
    font-size:34px;
    font-weight:700;
    color:#7dff45;
    margin-bottom:6px;
}

.stat span{
    color:#ffffff;
    font-size:15px;
}


/* =========================
   RESPONSIVE
========================= */

@media(max-width:1200px){

    .hero{
        flex-direction:column;
        justify-content:center;
        text-align:center;
    }

    .hero-content{
        max-width:100%;
    }

    .hero p{
        margin-left:auto;
        margin-right:auto;
    }

    .hero-btns{
        justify-content:center;
    }

    .floating-card{
        position:relative;
        top:auto;
        right:auto;
        transform:none;
        margin-top:60px;
        width:100%;
        max-width:500px;
    }
}


/* TABLET */

@media(max-width:992px){

    .hero h1{
        font-size:62px;
    }

    .hero p{
        font-size:18px;
    }
}


/* MOBILE */

@media(max-width:768px){

    .hero{
        padding:110px 20px;
    }

    .hero h1{
        font-size:44px;
        line-height:1.15;
    }

    .hero p{
        font-size:16px;
        line-height:1.8;
    }

    .glass{
        padding:25px;
    }

    .glass h3{
        font-size:28px;
    }

    .stats{
        flex-direction:column;
    }

    .btn-primary,
    .btn-outline{
        width:100%;
    }
}



/* --- GLOBAL REUSABLE STRUCTURES --- */
.section-container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-tag {
    display: inline-block;
    color: #0052cc;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 14px;
    background: rgba(0, 82, 204, 0.05);
    padding: 6px 14px;
    border-radius: 6px;
}

.section-title {
    font-size: 2.4rem;
    color: #090d16;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 20px;
}

.section-desc {
    font-size: 1.02rem;
    color: #5e6c84;
    line-height: 1.65;
    margin-bottom: 30px;
}

/* --- 2ND SECTION: BENEFITS IMAGE FRAME --- */
.benefits-section {
    padding: 100px 0;
    background-color: #ffffff;
    border-bottom: 1px solid #f1f5f9;
}

.benefits-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr; /* Matrix balance */
    gap: 65px;
    align-items: center;
}

.benefits-image-left {
    position: relative;
    width: 100%;
    height: 420px;
    border-radius: 24px;
    padding: 12px;
    background: #ffffff;
    border: 1px solid rgba(0, 82, 204, 0.06);
    box-shadow: 0 30px 60px rgba(9, 13, 22, 0.05);
}

.benefits-real-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}

.image-glow-effect {
    position: absolute;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(0, 210, 255, 0.15) 0%, transparent 70%);
    top: 10%;
    left: -10%;
    z-index: -1;
    filter: blur(20px);
}

.floating-img-tag {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background: rgba(9, 13, 22, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.benefits-mini-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.mini-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    font-size: 0.96rem;
    color: #090d16;
}

.mini-list-item i {
    color: #00df89;
    font-size: 1.1rem;
}

/* --- 3RD SECTION: SERVICE IMAGE GRIDS --- */
.services-section {
    padding: 100px 0;
    background-color: #fafbfc;
}

.center-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px auto;
}

.section-desc-center {
    font-size: 1.05rem;
    color: #5e6c84;
    line-height: 1.6;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: #ffffff;
    border: 1px solid rgba(0, 82, 204, 0.04);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(9, 13, 22, 0.03);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Image container sizing mechanics */
.s-card-img-holder {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
    background: #e2e8f0;
}

.s-card-img-holder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Dynamic Glass Labels over Site Images */
.img-badge-type {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #090d16;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.s-card-content {
    padding: 26px 26px 30px 26px;
    position: relative;
}

.s-number {
    position: absolute;
    top: -22px;
    right: 26px;
    font-size: 3.2rem;
    font-weight: 800;
    color: rgba(0, 82, 204, 0.04);
    line-height: 1;
}

.service-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #090d16;
    margin-bottom: 10px;
}

.service-card p {
    font-size: 0.92rem;
    color: #5e6c84;
    line-height: 1.55;
    margin-bottom: 20px;
    height: 65px;
    overflow: hidden;
}

.s-card-link {
    text-decoration: none;
    color: #0052cc;
    font-weight: 600;
    font-size: 0.92rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

/* --- INTERACTION HOVER LOOPS --- */
.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 35px 70px rgba(0, 82, 204, 0.08);
    border-color: rgba(0, 82, 204, 0.1);
}

.service-card:hover .s-card-img-holder img {
    transform: scale(1.06);
}

.service-card:hover .s-card-link {
    gap: 12px;
    color: #00df89;
}

/* --- RESPONSIVE OVERRIDES --- */
@media screen and (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .benefits-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 45px;
    }
    
    .benefits-image-left {
        height: 320px;
    }
    
    .mini-list-item {
        text-align: left;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 26px;
    }
    
    .service-card p {
        height: auto;
    }
}


/* --- 4TH SECTION: TECHNICAL SPECIFICATIONS STYLING --- */
.specs-section {
    padding: 100px 0;
    background-color: #ffffff;
    border-bottom: 1px solid #f1f5f9;
}

.specs-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 60px;
    align-items: center;
}

.specs-highlights {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
}

.spec-badge-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #fafbfc;
    border: 1px solid rgba(0, 82, 204, 0.05);
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 0.92rem;
    font-weight: 600;
    color: #090d16;
    width: fit-content;
}

.spec-badge-item i {
    color: #0052cc;
    font-size: 1.1rem;
}

/* Premium Specifications Table Styling */
.specs-table-wrapper {
    width: 100%;
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid rgba(0, 82, 204, 0.06);
    box-shadow: 0 20px 45px rgba(9, 13, 22, 0.03);
    overflow: hidden;
}

.premium-specs-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.premium-specs-table th {
    background: #090d16;
    color: #ffffff;
    padding: 18px 24px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.premium-specs-table td {
    padding: 16px 24px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.92rem;
}



   /* =========================
           GLOBAL SCROLL ANIMATION
        ========================== */
/* =========================
   ULTRA SMOOTH ANIMATION
========================= */

.hero-content,
.floating-card,
.benefits-image-left,
.benefits-content,
.service-card,
.specs-content-left,
.specs-table-wrapper {
    opacity: 0;

    /* Smooth GPU animation */
    will-change: transform, opacity;

    transition:
        transform 1.4s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 1.4s ease;

    backface-visibility: hidden;
    transform-style: preserve-3d;
}

/* LEFT */
.hero-content,
.benefits-content,
.specs-content-left {
    transform: translate3d(-120px, 0, 0);
}

/* RIGHT */
.floating-card,
.specs-table-wrapper {
    transform: translate3d(120px, 0, 0);
}

/* BOTTOM */
.benefits-image-left,
.service-card {
    transform: translate3d(0, 120px, 0);
}

/* SHOW */
.show-animation {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

/* CARD DELAYS */
.service-card:nth-child(1) {
    transition-delay: 0.1s;
}

.service-card:nth-child(2) {
    transition-delay: 0.2s;
}

.service-card:nth-child(3) {
    transition-delay: 0.3s;
}

.service-card:nth-child(4) {
    transition-delay: 0.4s;
}

.service-card:nth-child(5) {
    transition-delay: 0.5s;
}

.service-card:nth-child(6) {
    transition-delay: 0.6s;
}

        /* Responsive Styles */

/* Container ko padding dena taki mobile me edges se touch na ho */
.section-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Grid Layout for Desktop */
.specs-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr; /* Desktop par side-by-side */
    gap: 40px;
    align-items: center;
}

/* Mobile & Tablet view (Max-width: 992px) */
@media (max-width: 992px) {
    .specs-grid {
        grid-template-columns: 1fr; /* Stack content vertically */
        gap: 30px;
    }

    .specs-content-left {
        text-align: center; /* Mobile par text center achha dikhta hai */
    }

    .specs-table-wrapper {
        overflow-x: auto; /* Agar table jyada wide ho to scroll aa jaye */
        -webkit-overflow-scrolling: touch;
    }

    .premium-specs-table {
        width: 100%;
        min-width: 500px; /* Table ko sikadne se bachane ke liye */
    }
}

/* Small Mobile view (Max-width: 480px) */
@media (max-width: 480px) {
    .section-title {
        font-size: 1.8rem; /* Mobile ke liye font thoda chota */
    }

    .premium-specs-table th, 
    .premium-specs-table td {
        padding: 12px 10px; /* Mobile par padding thodi kam */
        font-size: 14px;
    }
}



/* Hero Main Container Setup */
.hero {
    position: relative;
    overflow: hidden;
    background: #000;
}

/* Foreground Content Depth Setup */
.hero-content, 
.floating-card {
    position: relative !important;
    z-index: 2 !important;
}

/* Background Slider Wrapper */
.hero-slider-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Common Slide Properties */
.hero-slider-bg .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 0;
    animation: heroSliderAnim 15s infinite;
}

/* Individual Slides Background with Dark Overlay */
.hero-slider-bg .slide-1 {
    background-image: linear-gradient(180deg, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.7) 100%), url('/images/home1.png');
    animation-delay: 0s;
}

.hero-slider-bg .slide-2 {
    background-image: linear-gradient(180deg, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.7) 100%), url('/images/home\ 2.png');
    animation-delay: 5s;
}

.hero-slider-bg .slide-3 {
    background-image: linear-gradient(180deg, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.7) 100%), url('/images/home3.png');
    animation-delay: 10s;
}

/* Keyframes for Smooth Fade & Scale Effect */
@keyframes heroSliderAnim {
    0% {
        opacity: 0;
        transform: scale(1);
    }
    8% {
        opacity: 1;
    }
    33.33% {
        opacity: 1;
    }
    41.33% {
        opacity: 0;
        transform: scale(1.05);
    }
    100% {
        opacity: 0;
    }
}




/* ==========================================================================
   PREMIUM BENTO GRID ENGINE (100% WIDTH BALANCE - NO SHRINKING)
   ========================================================================== */

.services-grid {
    display: grid;
    /* Clean 3-Column Base Grid Grid */
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 100%;
}

/* FIX: Jab Large Screens (Desktop) ho, toh last row ke dono cards stretched layout lenge */
@media (min-width: 993px) {
    
    /* Card 7 (PEB Structure) - Pehla aur doosra column poora cover karega */
    .service-card:nth-child(7) {
        grid-column: span 1.5; /* Takes 1.5 columns width precisely */
        width: 100% !important;
        margin: 0 !important;
        transform: none !important;
    }
    
    /* Card 8 (Fabrication Work) - Doosra aur teesra column poora cover karega */
    .service-card:nth-child(8) {
        grid-column: span 1.5; /* Takes 1.5 columns width precisely */
        width: 100% !important;
        margin: 0 !important;
        transform: none !important;
    }
    
    /* Flexbox stretch hack inside the last row container */
    .services-grid {
        display: flex;
        flex-wrap: wrap;
    }
    
    /* Pehle 6 cards ko waapas 3-column width par lock kiya */
    .service-card {
        flex: 0 0 calc(33.333% - 20px);
        width: calc(33.333% - 20px);
    }
    
    /* Last row ke dono cards ko 50%-50% ki barabar full width di */
    .service-card:nth-child(7),
    .service-card:nth-child(8) {
        flex: 0 0 calc(50% - 15px);
        width: calc(50% - 15px);
    }
}

/* Tablet Screens (Auto 2 columns equal stack) */
@media (max-width: 992px) {
    .services-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
    .service-card {
        width: 100% !important;
    }
}

/* Pure Mobile Screens (Clean 1 column standard grid) */
@media (max-width: 600px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

html {
    scroll-behavior: smooth;
}