/* =============================================
   INDEX COMPONENTS STYLING
   ============================================= */
:root {
    /* PROFESSIONAL PALETTE (Mapped from style_premium.css) */
    --color-primary-dark: #002b5e; /* Deeper blue for dark mode/features */
    --color-primary-main: var(--primary-blue); /* #004080 */
    
    /* ACCENTS */
    --color-accent-blue: var(--secondary-sky); /* #0066cc */
    --color-accent-hover: #0052a3;
    --color-accent-red: var(--accent-red);

    /* NEUTRALS */
    --color-white: var(--white);
    --color-bg-light: var(--light-gray); 
    --color-border: #e2e8f0;
    --color-text-main: var(--dark-gray);
    --color-text-muted: var(--medium-gray);

    /* FONTS */
    --font-main: var(--font-body);
    --font-heading-main: var(--font-heading);

    /* LAYOUT DIMENSIONS */
    --container-width: 1240px; 
    --section-spacing: 80px;

    /* SHAPES */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-pill: 50px;

    /* SHADOWS */
    --shadow-xs: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-sm: 0 4px 6px -1px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 30px -5px rgba(0,0,0,0.08); 
    --shadow-hover: 0 20px 40px -5px rgba(0,0,0,0.12);
}

/* =============================================
   RESET & BASE STYLES
   ============================================= */
*, *::before, *::after { box-sizing: border-box; }

/* UTILITIES */
.section-container { max-width: var(--container-width); margin: 0 auto; padding: 0 24px; }
section { padding: var(--section-spacing) 0; position: relative; }

.section-header { text-align: center; max-width: 700px; margin: 0 auto 3rem; }

.section-tag {
    display: inline-block; 
    font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.15em;
    color: var(--color-white); margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--color-primary-main), var(--color-accent-blue)); 
    padding: 6px 16px;
    border-radius: var(--radius-pill); 
    box-shadow: 0 4px 10px rgba(0,64,128,0.2);
}

.section-title { font-size: 2.5rem; color: var(--color-primary-main); margin-bottom: 1rem; font-family: var(--font-heading-main); font-weight: 700; }
.section-desc { font-size: 1.1rem; color: var(--color-text-muted); line-height: 1.6; font-family: var(--font-main); }

/* =============================================
   HERO SECTION OVERRIDES
   ============================================= */
.hero {
    height: 85vh; min-height: 600px;
    width: 100%; position: relative;
    background-color: var(--color-primary-dark); overflow: hidden;
}
.hero .swiper-slide::before {
    content: ''; position: absolute; inset: 0;
    background-size: cover; background-position: center;
    z-index: 1; transition: transform 8s ease-out;
}
.hero .swiper-slide-active::before { transform: scale(1.08); }
.hero .swiper-slide::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(0, 43, 94, 0.9) 0%, rgba(0, 43, 94, 0.6) 50%, rgba(0, 43, 94, 0.3) 100%);
    z-index: 2;
}

.hero .swiper-slide:nth-child(1)::before { background-image: url('../images/homeherobg1.jpg'); }
.hero .swiper-slide:nth-child(2)::before { background-image: url('../images/homehero2.png'); }
.hero .swiper-slide:nth-child(3)::before { background-image: url('../images/homehero3.jpg'); }

.hero-content {
    position: relative; z-index: 10; height: 100%;
    display: flex; flex-direction: column; justify-content: center;
    align-items: center; text-align: center;
    max-width: var(--container-width); margin: 0 auto; padding: 0 24px;
    color: var(--color-white); 
}

.hero-title {
    font-size: 4rem; font-weight: 800; line-height: 1.1; margin-bottom: 1.5rem;
    opacity: 0; animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.2s;
    max-width: 900px; letter-spacing: -0.02em; color: var(--color-white);
}
.hero-title span { color: #4dabf7; /* Lighter blue for better contrast on dark bg */ }

.hero-text {
    font-size: 1.2rem; font-weight: 400; max-width: 650px; margin-bottom: 2.5rem;
    opacity: 0; animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.4s;
    color: rgba(255,255,255,0.9); border-left: none; padding-left: 0;
}

.btn-group { display: flex; gap: 1.5rem; opacity: 0; animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.6s; justify-content: center; }

.btn {
    padding: 1rem 2.5rem; border-radius: var(--radius-pill);
    font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
    font-size: 0.9rem; border: none; cursor: pointer; display: inline-flex;
    align-items: center; justify-content: center; gap: 0.5rem;
    transition: all 0.3s ease; font-family: var(--font-heading-main);
}
.btn-primary { background: var(--color-accent-blue); color: var(--color-white); box-shadow: 0 4px 15px rgba(0, 102, 204, 0.4); }
.btn-primary:hover { background: var(--color-accent-hover); color: var(--color-white) !important; transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0, 102, 204, 0.6); }
.btn-white-outline { background: transparent; color: var(--color-white); border: 2px solid rgba(255,255,255,0.6); }
.btn-white-outline:hover { border-color: var(--color-white); background: var(--color-white); color: var(--color-primary-dark); transform: translateY(-3px); box-shadow: 0 8px 25px rgba(255,255,255,0.3); }

/* =============================================
   PRODUCTS
   ============================================= */
.products-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2.5rem; }

.product-card {
    background: var(--color-white); border: 1px solid var(--color-border);
    border-radius: var(--radius-lg); overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); display: flex; flex-direction: column;
    box-shadow: var(--shadow-sm);
}
.product-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); border-color: rgba(0,102,204,0.3); }
.card-img-wrap {
    height: 300px; background: #f8f9fa;
    display: flex; align-items: center; justify-content: center;
    padding: 2.5rem; position: relative; overflow: hidden;
    border-bottom: 1px solid var(--color-border);
}
.card-img-wrap img {
    max-width: 80%; max-height: 240px; transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    filter: drop-shadow(0 15px 25px rgba(0,0,0,0.1)); 
}
.product-card:hover .card-img-wrap img { transform: scale(1.1); }
.card-content { padding: 2rem; text-align: left; }
.card-title { font-size: 1.4rem; font-weight: 700; margin-bottom: 0.75rem; color: var(--color-primary-main); }
.card-desc {
    color: var(--color-text-muted); font-size: 1rem; margin-bottom: 1.5rem;
    line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-link {
    display: inline-flex; align-items: center; gap: 0.5rem;
    color: var(--color-primary-main); font-weight: 700; text-transform: uppercase; 
    font-size: 0.85rem; letter-spacing: 0.1em; padding-bottom: 3px; position: relative;
    border-bottom: 2px solid transparent;
}
.card-link:hover { color: var(--color-accent-blue); border-bottom-color: var(--color-accent-blue); }

/* =============================================
   INFRASTRUCTURE & ABOUT
   ============================================= */
.about-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.about-image img { border-radius: var(--radius-lg); box-shadow: var(--shadow-hover); width: 100%; }

.infra-container {
    display: grid; grid-template-columns: 1fr 1fr; 
    background: var(--color-white); border-radius: var(--radius-lg); 
    box-shadow: var(--shadow-md); border: 1px solid var(--color-border); overflow: hidden;
}
.infra-visual img { width: 100%; height: 100%; object-fit: cover; min-height: 450px; }
.infra-text { padding: 4rem; display: flex; flex-direction: column; justify-content: center; }
.stat-row { display: flex; gap: 2rem; margin-top: 1.5rem; }
.stat-box { 
    flex: 1; padding: 2rem; background: var(--color-bg-light); 
    border-radius: var(--radius-md); text-align: center; border-bottom: 4px solid var(--color-accent-blue);
    transition: all 0.3s ease;
}
.stat-box:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.stat-num { font-size: 3rem; font-weight: 800; color: var(--color-primary-main); display: block; line-height: 1; margin-bottom: 0.5rem; font-family: var(--font-heading-main); }
.stat-label { font-size: 0.85rem; text-transform: uppercase; color: var(--color-text-muted); letter-spacing: 1px; font-weight: 700; }

/* =============================================
   OFFERS
   ============================================= */
.section-light { background: var(--color-bg-light); border-top: 1px solid var(--color-border); }
.offer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.offer-card {
    background: var(--color-white); padding: 3rem 2rem; border-radius: var(--radius-lg);
    text-align: center; transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1); position: relative; overflow: hidden;
    border: 1px solid var(--color-border); border-top: 4px solid var(--color-accent-blue);
    box-shadow: var(--shadow-sm);
}
.offer-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); border-color: rgba(0,102,204,0.3); border-top-color: var(--color-accent-hover); }
.offer-icon-circle { 
    font-size: 2.5rem; color: var(--color-white); margin-bottom: 1.5rem; 
    width: 80px; height: 80px; display: inline-flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--color-primary-main), var(--color-accent-blue));
    border-radius: 50%; box-shadow: 0 8px 20px rgba(0,102,204,0.3);
}
.offer-card h3 { font-size: 1.3rem; margin-bottom: 1rem; color: var(--color-primary-main); font-weight: 700; }
.offer-card .section-desc { font-size: 1rem; margin: 0; line-height: 1.6; color: var(--color-text-muted) !important; }

/* =============================================
   BRAND MARQUEE
   ============================================= */
.brands-strip { background: var(--color-white); padding: 4rem 0; border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.marquee-wrapper {
    overflow: hidden; white-space: nowrap; position: relative;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}
.marquee-track { display: flex; align-items: center; width: fit-content; animation: scroll 40s linear infinite; }
.brand-logo-item { flex: 0 0 auto; margin: 0 4rem; opacity: 0.8; transition: all 0.3s ease; }
.brand-logo-item img { height: 50px; width: auto; filter: grayscale(100%); transition: all 0.3s ease; }
.brand-logo-item:hover { opacity: 1; }
.brand-logo-item:hover img { transform: scale(1.1); filter: grayscale(0%); }
@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* =============================================
   CONTACT
   ============================================= */
.contact-split {
    display: grid; grid-template-columns: 450px 1fr;
    background: var(--color-white); border-radius: var(--radius-lg); 
    box-shadow: var(--shadow-hover); border: 1px solid var(--color-border); overflow: hidden;
}
.contact-info { 
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary-main)); padding: 4rem; color: var(--color-white);
    display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden;
}
.contact-info::before {
    content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 60%);
}
.contact-form { padding: 4rem; }
.form-control {
    width: 100%; padding: 1rem 1.2rem; border: 2px solid var(--color-border);
    background: var(--color-bg-light); border-radius: var(--radius-sm); font-size: 1rem;
    font-family: var(--font-main); transition: all 0.3s ease;
}
.form-control:focus { outline: none; border-color: var(--color-accent-blue); background: var(--color-white); box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.1); }
.btn-block { width: 100%; font-size: 1.1rem; padding: 1.2rem; margin-top: 1rem; }

/* =============================================
   RESPONSIVE MEDIA QUERIES
   ============================================= */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes marquee { 0% { transform: translateX(100%); } 100% { transform: translateX(-100%); } }

@media (max-width: 991px) {
    :root { --section-spacing: 60px; }
    
    .hero { height: auto; min-height: 600px; padding-bottom: 4rem; }
    .hero-title { font-size: 2.8rem; }
    .section-title { font-size: 2rem; }
    
    .products-grid, .infra-container, .contact-split, .offer-grid, .about-wrapper { grid-template-columns: 1fr; gap: 2.5rem; }
    .infra-visual { height: 320px; order: -1; }
    .infra-text, .contact-info, .contact-form { padding: 2.5rem; }
}

@media (max-width: 480px) {
    
    .hero-content { padding-left: 20px; padding-right: 20px; }
    .hero-title { font-size: 2.2rem; }
    .btn-group { flex-direction: column; width: 100%; gap: 1rem; }
    .btn { width: 100%; }
    .brand-logo-item { margin: 0 2rem; }
    .stat-row { flex-direction: column; gap: 1rem; }
}
