/* ============================================
   HOME PAGE - COMPLETE STYLES (CLEANED)
   ============================================ */

/* ---------- 0. GLOBAL HOME ANIMATIONS ---------- */
.home-page .hm-anim {
    opacity: 1; transform: none;
    transition: opacity .9s cubic-bezier(.4, 0, .2, 1), transform .9s cubic-bezier(.4, 0, .2, 1);
    will-change: opacity, transform;
}
.home-page .hm-anim.will-animate:not(.in-view) { opacity: 0; }
.home-page .hm-anim.will-animate.from-up:not(.in-view) { transform: translateY(50px); }
.home-page .hm-anim.will-animate.from-left:not(.in-view) { transform: translateX(-60px); }
.home-page .hm-anim.will-animate.from-right:not(.in-view) { transform: translateX(60px); }

@media (prefers-reduced-motion: reduce) {
    .home-page .hm-anim { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ---------- 1. VIDEO BANNER ---------- */
.home-page .home-hero { position: relative; height: 100vh; min-height: 640px; overflow: hidden; background: var(--primary); }
.home-hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.home-hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 18, 23, .45) 0%, rgba(6, 18, 23, .15) 45%, rgba(6, 18, 23, .6) 100%); }
.home-hero-content { position: relative; z-index: 2; height: 100%; display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; padding-top: 120px; padding-bottom: 160px; }
.home-hero-content h1 { color: #fff; font-weight: 700; font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1.15; letter-spacing: .5px; }

.home-hero-exp { display: flex; align-items: center; flex-shrink: 0; }
.exp-dot { width: 84px; height: 84px; border-radius: 50%; background: var(--accent); margin-right: -36px; }
.exp-num { position: relative; z-index: 1; color: #fff; font-size: 3.4rem; font-weight: 800; line-height: 1; }
.exp-div { width: 1px; height: 46px; background: rgba(255, 255, 255, .5); margin: 0 18px; }
.exp-text { color: #fff; font-weight: 700; font-size: 1rem; line-height: 1.35; }

/* ---------- 2. INTRO ROUNDED PANEL ---------- */
.home-intro { position: relative; z-index: 3; margin-top: -70px; background: var(--light-bg); border-radius: 36px 36px 0 0; padding: 90px 0; }
.home-intro-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 60px; align-items: start; }
.home-intro-left h2 { color: #2E8C86; font-size: clamp(2rem, 4.2vw, 3.3rem); font-weight: 600; line-height: 1.25; }
.home-intro-right p { color: var(--muted-text); line-height: 1.9; margin-bottom: 36px; }

.know-more { position: relative; display: inline-flex; align-items: center; gap: 16px; background: #F7A600; color: #172126; font-weight: 700; font-size: .95rem; padding: 14px 16px 14px 30px; border-radius: 50px; transition: all .3s ease; }
.know-more::after { content: ""; position: absolute; inset: -6px; border-radius: 50px; border: 2px solid rgba(247, 166, 0, .9); pointer-events: none; transition: inset .3s ease; }
.know-more:hover { color: #172126; transform: translateY(-2px); }
.know-more:hover::after { inset: -9px; }
.km-arrow { width: 44px; height: 44px; border-radius: 50%; background: #fff; color: #F7A600; display: flex; align-items: center; justify-content: center; transition: transform .3s ease; }
.know-more:hover .km-arrow { transform: rotate(45deg); }

/* ---------- 3. PROJECTS (ACCORDION) - MERGED & FIXED ---------- */
.home-verticals { background: var(--accent); padding: 80px 0; }
.hv-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.hv-header h2 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; margin: 0; }

.know-more-sm { padding: 10px 14px 10px 24px; font-size: 0.85rem; }
.know-more-sm .km-arrow { width: 36px; height: 36px; }
.know-more-sm .km-arrow svg { width: 14px; height: 14px; }

.hv-accordion { display: flex; gap: 16px; height: 500px; }

.hv-item {
    position: relative; flex: 1; min-width: 0; 
    border-radius: 40px; overflow: hidden; background-size: cover; background-position: center;
    transition: flex 0.7s cubic-bezier(0.25, 1, 0.5, 1); cursor: pointer; display: flex; align-items: flex-end;
}
.hv-item.active { flex: 4.5; }

.hv-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.4) 100%); z-index: 1; transition: background 0.5s; }
.hv-item:hover .hv-overlay { background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.5) 100%); }

.hv-label-collapsed {
    position: absolute; bottom: 40px; left: 25px; transform: rotate(-90deg); transform-origin: left bottom;
    color: #fff; font-weight: 700; font-size: 1.2rem; white-space: nowrap; z-index: 2; opacity: 1; transition: opacity 0.3s; letter-spacing: 0.5px;
}
.hv-item.active .hv-label-collapsed { opacity: 0; pointer-events: none; }

.hv-content {
    position: relative; z-index: 2; padding: 40px; color: #fff; width: 100%;
    opacity: 0; transform: translateY(20px); transition: opacity 0.4s ease, transform 0.4s ease; pointer-events: none;
}
.hv-item.active .hv-content { opacity: 1; transform: translateY(0); pointer-events: auto; transition-delay: 0.3s; }

.hv-sub { font-size: 0.95rem; color: rgba(255,255,255,0.9); margin-bottom: 15px; display: flex; align-items: center; gap: 8px; font-weight: 500; }
.hv-sub svg { color: var(--accent-light); flex-shrink: 0; }
.hv-divider { width: 100%; height: 1px; background: rgba(255,255,255,0.3); margin-bottom: 20px; }
.hv-content h3 { font-size: 2.2rem; font-weight: 700; margin-bottom: 25px; line-height: 1.2; }

.hv-btn { display: inline-flex; align-items: center; gap: 12px; background: #fff; color: var(--primary); padding: 12px 12px 12px 24px; border-radius: 50px; font-weight: 700; font-size: 0.9rem; transition: all 0.3s; }
.hv-btn:hover { background: var(--accent-light); color: #fff; transform: translateY(-2px); }
.hv-btn-arrow { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #fff; transition: background 0.3s; }
.hv-btn:hover .hv-btn-arrow { background: #fff; color: var(--accent-light); }

/* ---------- 4. SERVICES ---------- */
.home-services { padding: 100px 0; background: #fff; }
.hs-title, .he-title, .ht-title { text-align: center; color: var(--accent-dark); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 700; margin-bottom: 50px; }
.hs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 50px; }
.hs-card { position: relative; height: 400px; border-radius: 20px; overflow: hidden; background-size: cover; background-position: center; display: flex; align-items: flex-end; transition: transform 0.4s ease; }
.hs-card:hover { transform: translateY(-8px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); }
.hs-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(11,31,38,0.95) 0%, rgba(11,31,38,0.4) 60%, transparent 100%); }
.hs-text { position: relative; z-index: 2; padding: 35px; color: #fff; }
.hs-text h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 12px; line-height: 1.3; }
.hs-text p { font-size: 0.95rem; color: rgba(255,255,255,0.85); line-height: 1.6; margin: 0; }
.hs-cta, .he-cta, .ht-cta { text-align: center; margin-top: 40px; }

/* ---------- 5. EQUIPMENTS ---------- */
.home-equipments { padding: 100px 0; background: var(--light-bg); }
.he-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.he-card { background: #fff; border-radius: 20px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.05); transition: all 0.4s ease; border: 1px solid var(--border-color); }
.he-card:hover { transform: translateY(-8px); box-shadow: 0 15px 40px rgba(0,0,0,0.1); }
.he-img { height: 240px; background-size: cover; background-position: center; transition: transform 0.5s ease; }
.he-card:hover .he-img { transform: scale(1.05); }
.he-info { padding: 24px; }
.he-tag { display: inline-block; font-size: 0.75rem; font-weight: 700; color: var(--accent-dark); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; background: rgba(22,166,161,0.1); padding: 4px 12px; border-radius: 50px; }
.he-info h3 { font-size: 1.2rem; font-weight: 700; color: var(--primary); margin-bottom: 6px; }
.he-info p { font-size: 0.9rem; color: var(--muted-text); margin: 0; }

/* ---------- 6. TESTIMONIALS ---------- */
.home-testimonials { padding: 100px 0; background: #fff; }
.ht-card { background: transparent; padding: 20px 40px; max-width: 800px; margin: 0 auto; text-align: center; }
.ht-quote-icon { font-size: 6rem; line-height: 0.5; color: var(--accent); font-family: Georgia, serif; font-weight: bold; margin-bottom: 20px; opacity: 0.2; }
.ht-text { font-size: 1.3rem; color: var(--dark-text); line-height: 1.8; font-style: italic; margin-bottom: 30px; font-weight: 500; }
.ht-author { display: flex; align-items: center; justify-content: center; gap: 15px; }
.ht-avatar { width: 50px; height: 50px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.ht-author-info { text-align: left; }
.ht-author-info strong { display: block; color: var(--primary); font-size: 1rem; }
.ht-author-info span { color: var(--muted-text); font-size: 0.85rem; font-weight: 600; }
.ht-indicators { position: relative; margin-top: 30px; margin-bottom: 0; justify-content: center; gap: 10px; }
.ht-indicators button { width: 12px; height: 12px; border-radius: 50%; background-color: var(--border-color); border: none; opacity: 1; transition: all 0.3s; }
.ht-indicators button.active { background-color: var(--accent); width: 30px; border-radius: 6px; }

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 991px) {
    .home-hero-content { flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 26px; padding-bottom: 130px; }
    .home-hero-content h1 { font-size: clamp(2.2rem, 7vw, 3.2rem); }
    .exp-num { font-size: 2.6rem; }
    .exp-dot { width: 66px; height: 66px; margin-right: -28px; }

    .home-intro { margin-top: -50px; padding: 60px 0; border-radius: 26px 26px 0 0; }
    .home-intro-grid { grid-template-columns: 1fr; gap: 34px; }

    /* Accordion Mobile Fix */
    .hv-accordion { flex-direction: column; height: auto; gap: 12px; }
    .hv-item { height: 80px; flex: none !important; width: 100%; border-radius: 20px; }
    .hv-item.active { height: 340px; }
    .hv-label-collapsed { transform: none; bottom: 25px; left: 30px; text-align: left; }
    .hv-content { padding: 30px; }
    .hv-content h3 { font-size: 1.8rem; margin-bottom: 15px; }

    .hs-grid, .he-grid { grid-template-columns: 1fr; }
    .hs-card { height: 300px; }
    .ht-text { font-size: 1.1rem; }
    .ht-card { padding: 10px 0; }
}

@media (max-width: 576px) {
    .home-page .home-hero { min-height: 540px; }
    .home-hero-content { padding-bottom: 110px; }
    .home-intro { padding: 46px 0; }
    .home-intro-left h2 { font-size: 1.8rem; }
}
/* ---------- 0. GLOBAL HOME ANIMATIONS ---------- */
.home-page .hm-anim {
    opacity: 1; 
    transform: none;
    transition: opacity .9s cubic-bezier(.4, 0, .2, 1), transform .9s cubic-bezier(.4, 0, .2, 1);
    will-change: opacity, transform;
}

/* The hidden state (applied by JS) */
.home-page .hm-anim.will-animate:not(.in-view) { opacity: 0; }
.home-page .hm-anim.will-animate.from-up:not(.in-view) { transform: translateY(50px); }
.home-page .hm-anim.will-animate.from-left:not(.in-view) { transform: translateX(-60px); }
.home-page .hm-anim.will-animate.from-right:not(.in-view) { transform: translateX(60px); }

/* The visible state (applied by JS when scrolled into view) */
.home-page .hm-anim.in-view {
    opacity: 1 !important;
    transform: none !important;
}

/* Accessibility: Disable animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    .home-page .hm-anim { opacity: 1 !important; transform: none !important; transition: none !important; }
}