/* =========================================
   ITRFILLING FINAL LANDING STYLE (v17 - All Images Working)
   ========================================= */

:root {
    --primary: #cb2d3e;
    --primary-glow: rgba(203, 45, 62, 0.6);
    --dark-bg: #0f0f15;
    --header-height: 70px;
    --footer-height: 45px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Segoe UI', sans-serif;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
    background: var(--dark-bg);
}

/* --- 1. ANIMATED BACKGROUND --- */
.slideshow-container { 
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    z-index: -1; background: #000;
}

.slide {
    position: absolute; inset: 0;
    background-size: cover; 
    background-position: center;
    opacity: 0; transform: scale(1);
    
    /* Global Animation Setup */
    animation-name: zoomFade;
    animation-duration: 25s;
    animation-iteration-count: infinite;
    /* Note: No shorthand 'animation' property here to avoid conflicts */
}

/* TIMING (CRITICAL: These delays create the cycle) */
.slide:nth-child(1) { animation-delay: 0s; }
.slide:nth-child(2) { animation-delay: 5s; }
.slide:nth-child(3) { animation-delay: 10s; }
.slide:nth-child(4) { animation-delay: 15s; }
.slide:nth-child(5) { animation-delay: 20s; }

/* Desktop Keyframes */
@keyframes zoomFade {
    0% { opacity: 0; transform: scale(1); }
    4% { opacity: 1; }
    20% { opacity: 1; }
    24% { opacity: 0; transform: scale(1.1); }
    100% { opacity: 0; }
}

.overlay {
    position: absolute; inset: 0;
    /* Glass view ke liye overlay thoda dark */
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.7));
    z-index: 1;
}

/* --- 2. HEADER --- */
@keyframes borderFlow {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

.glass-effect { background: #0f0f15; z-index: 1000; position: relative; }

.fixed-header {
    height: var(--header-height);
    position: fixed; top: 0; width: 100%; border-bottom: none; 
}
.fixed-header::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 3px;
    background: linear-gradient(90deg, var(--primary), #ff0055, #ffeb3b, var(--primary));
    background-size: 300% 100%; animation: borderFlow 3s linear infinite;
}

.brand-container { display: flex; align-items: center; gap: 10px; }
.brand-icon {
    font-size: 1.8rem; color: var(--primary);
    filter: drop-shadow(0 0 10px var(--primary-glow));
}
.brand-text h1 { font-size: 1.2rem; font-weight: 800; color: #fff; margin: 0; letter-spacing: 1px; }
.brand-text small { font-size: 0.7rem; color: #ddd; letter-spacing: 2px; display: block; font-weight: 500; }

.btn-header-login {
    background: linear-gradient(135deg, var(--primary) 0%, #900e1e 100%);
    color: #fff; padding: 6px 20px; border-radius: 30px;
    font-weight: 700; font-size: 0.85rem; border: none;
    box-shadow: 0 0 15px var(--primary-glow); transition: all 0.3s; white-space: nowrap;
}
.hover-glow:hover { transform: scale(1.05); box-shadow: 0 0 25px var(--primary-glow); color: #fff; }

/* --- 3. HERO SECTION --- */
.hero-section {
    flex: 1; display: flex; align-items: center; justify-content: center;
    padding-top: var(--header-height); padding-bottom: var(--footer-height);
    position: relative; z-index: 2; height: 100%;
}
.hero-container {
    display: flex; flex-direction: column; justify-content: center; height: 100%;
    padding-bottom: 20px;
}

.display-title { 
    font-size: 2.8rem; letter-spacing: 1px; line-height: 1.2; 
    text-shadow: 0 4px 15px rgba(0,0,0,0.9);
}
.sub-text { 
    font-size: 1.1rem; text-shadow: 0 2px 8px rgba(0,0,0,0.9);
}

/* TYPING TEXT */
.typing-text {
    font-weight: 800; color: #ffeb3b; display: inline-block; min-height: 1.2em;
    text-shadow: 2px 2px 0px #000000, -1px -1px 0px #000000, 0 0 10px rgba(0, 0, 0, 0.9);
    border-right: 3px solid #ffeb3b; animation: blink 0.7s infinite;
    padding-right: 5px; vertical-align: bottom;
}
@keyframes blink { 50% { border-color: transparent; } }

/* --- 4. FLIP CARD SERVICE GRID --- */
.service-row { width: 100%; max-width: 1000px; margin: 0 auto; }

.flip-card {
    background-color: transparent; perspective: 1000px;
    height: 100%; min-height: 100px; cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.flip-card-inner {
    position: relative; width: 100%; height: 100%;
    text-align: center; transition: transform 0.6s;
    transform-style: preserve-3d;
}

/* Desktop Hover */
@media (min-width: 769px) {
    .flip-card:hover .flip-card-inner { transform: rotateY(180deg); }
}

/* Mobile Class Flip */
.flip-card.flipped-mobile .flip-card-inner { transform: rotateY(180deg); }

/* --- 3D ICONS --- */
.icon-circle { 
    font-size: 1.8rem;
    width: 55px; height: 55px; 
    display: flex; justify-content: center; align-items: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    backdrop-filter: blur(8px);
    box-shadow: inset 0 0 15px rgba(255, 255, 255, 0.1), 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.glass-card-front, .glass-card-back {
    position: absolute; width: 100%; height: 100%;
    -webkit-backface-visibility: hidden; backface-visibility: hidden;
    border-radius: 12px; display: flex;
    justify-content: center; align-items: center;
    padding: 10px; 
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.glass-card-front {
    /* CRYSTAL GLASS EFFECT */
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-left: 4px solid var(--primary);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-direction: row; justify-content: flex-start; gap: 20px; padding-left: 20px;
}

@media (min-width: 769px) {
    .glass-card-front:hover { 
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05));
        border-color: rgba(255, 255, 255, 0.5);
    }
    .glass-card-front:hover .icon-circle {
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
        transform: scale(1.15) rotate(5deg);
        box-shadow: 0 0 20px var(--primary-glow);
        border-color: #fff;
    }
}

.glass-card-back {
    background: linear-gradient(135deg, var(--primary) 0%, #900e1e 100%);
    color: white; transform: rotateY(180deg);
    flex-direction: column; border: 1px solid var(--primary);
}
.glass-card-back p {
    margin: 0; font-size: 1rem; font-weight: 700; line-height: 1.3;
}

.glass-card-front h5 { 
    color: #fff; margin: 0; font-weight: 700; font-size: 1.1rem; text-align: left;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

/* --- 5. FOOTER --- */
.fixed-footer {
    position: fixed; bottom: 0; width: 100%; height: var(--footer-height);
    display: flex; align-items: center; justify-content: center;
    z-index: 1000; border-top: none;
}
.fixed-footer::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 2px;
    background: linear-gradient(90deg, var(--primary), #ff0055, #ffeb3b, var(--primary));
    background-size: 300% 100%; animation: borderFlow 3s linear infinite reverse;
}
.footer-text {
    font-size: 0.95rem; font-weight: 500;
    color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,0.8);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 10px;
}
.fixed-footer a { color: var(--primary); text-decoration: none; font-weight: 700; }

/* =========================================
   MOBILE / TABLET OPTIMIZATION (IMAGES FIXED)
   ========================================= */
@media (max-width: 768px) {
    :root { --header-height: 60px; --footer-height: 45px; }
    .fixed-header { height: var(--header-height); }
    .fixed-footer { height: var(--footer-height); }

    .brand-icon { font-size: 1.4rem; }
    .brand-text h1 { font-size: 0.9rem; }
    .brand-text small { font-size: 0.6rem; }
    .btn-header-login { padding: 5px 15px; font-size: 0.75rem; }

    .hero-section { padding-top: var(--header-height); padding-bottom: var(--footer-height); }
    .display-title { font-size: 1.6rem; margin-bottom: 5px !important; }
    .sub-text { font-size: 0.85rem; margin-bottom: 10px !important; }

    /* --- MOBILE IMAGE FIX (Keep Delays Intact) --- */
    .slide { 
        /* Only override Name and Size, DO NOT use 'animation:' shorthand */
        animation-name: mobileZoomFade !important; 
        background-size: cover !important; 
        background-position: center center !important; 
    }
    
    @keyframes mobileZoomFade {
        0% { opacity: 0; transform: scale(1); }
        4% { opacity: 1; }
        20% { opacity: 1; }
        24% { opacity: 0; transform: scale(1.1); }
        100% { opacity: 0; }
    }

    /* SERVICES FIX */
    .service-row { margin-top: 5px !important; --bs-gutter-x: 8px; --bs-gutter-y: 8px; }
    .flip-card { min-height: 80px; }

    .glass-card-front {
        flex-direction: row !important; 
        justify-content: flex-start !important;
        align-items: center !important;
        padding: 5px 12px !important;
        gap: 15px !important;
        border-left: 3px solid var(--primary);
    }
    
    .icon-circle { 
        font-size: 1.8rem !important; 
        width: 50px !important; height: 50px !important;
    }
    
    .glass-card-front h5 { 
        font-size: 0.95rem !important; 
        text-align: left; line-height: 1.2; font-weight: 700;
    }
    
    .glass-card-back p { font-size: 0.8rem; }
    .footer-text { font-size: 0.85rem !important; } 
}

@media (max-height: 600px) {
    .hero-section { align-items: flex-start; padding-top: 70px; overflow-y: auto; }
}
/* --- UPDATES TICKER STYLES --- */
.updates-wrapper {
    background: #fff3cd; /* हल्का पीला बैकग्राउंड */
    border-top: 1px solid #ffeeba;
    display: flex;
    height: 40px;
    align-items: center;
    position: relative;
    z-index: 20;
    width: 100%;
}

.updates-label {
    background: #ffc107; /* गहरा पीला लेबल */
    color: #333;
    font-weight: 800;
    padding: 0 15px;
    height: 100%;
    display: flex;
    align-items: center;
    font-size: 0.8rem;
    white-space: nowrap;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
}

.updates-ticker {
    flex: 1;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.updates-ticker marquee {
    width: 100%;
    font-size: 0.9rem;
    color: #444;
    line-height: 40px;
    margin: 0;
}

.tick-item {
    margin-right: 60px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.tick-item i {
    color: #d35400;
}

/* RESPONSIVE (MOBILE FIX) */
@media (max-width: 768px) {
    .updates-wrapper {
        display: flex !important; /* मोबाइल पर छिपाना नहीं है */
    }
    
    .updates-label {
        display: flex !important;
        font-size: 0.7rem; /* टेक्स्ट थोड़ा छोटा */
        padding: 0 8px;
    }
    
    .updates-ticker marquee {
        font-size: 0.8rem;
    }
}/* Footer Fix: Ticker aur Text ko upar-niche dikhane ke liye */
.fixed-footer {
    display: flex !important;
    flex-direction: column !important; /* Row ki jagah Column karein */
    height: auto !important;           /* Height ko content ke hisab se badhne dein */
    padding: 0 !important;             /* Extra padding hatayein */
    align-items: center;               /* Center alignment */
}

/* Updates Ticker ki width full karein */
.updates-wrapper {
    width: 100%;
    position: relative; /* Fixed hatakar relative karein kyunki ye ab footer ke andar hai */
    bottom: auto;
    border-bottom: 1px solid rgba(0,0,0,0.1); /* Text aur Ticker ke beech line */
}

/* Copyright text wale hisse ko thoda space dein */
.fixed-footer .container-fluid {
    width: 100%;
    padding: 8px 0; /* Text ke upar-niche thoda space */
}
/* Label Icon Spacing */
.updates-label i {
    margin-right: 8px; /* Icon aur Text ke beech gap */
    font-size: 1.1em;  /* Icon thoda bada dikhane ke liye */
}
/* Font Awesome FORCE FIX */
.fas, .fa-solid {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important; /* Solid icons ke liye weight jaruri hai */
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
}

/* Brands (Facebook, Google etc) ke liye */
.fab, .fa-brands {
    font-family: "Font Awesome 6 Brands" !important;
    font-weight: 400 !important;
}

/* Regular icons ke liye */
.far, .fa-regular {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 400 !important;
}