/* ===========================
   HERO SECTION - OPTIMIZED
   =========================== */

.hero {
    position: relative;
    padding: 10rem 0 8rem;
    background: url('../images/hero.jpg') center/cover no-repeat;
    color: var(--white);
    text-align: center;
    min-height: 85vh;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(10, 37, 64, 0.95) 0%, 
        rgba(6, 24, 41, 0.92) 50%,
        rgba(10, 37, 64, 0.93) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    color: var(--white);
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    font-weight: 800;
}

/* Override text-gradient in hero for better visibility */
.hero .text-gradient {
    background: linear-gradient(135deg, #00D9FF 0%, #7FFFD4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    text-shadow: none;
    display: inline-block;
    position: relative;
}

/* Add glow effect for better visibility */
.hero .text-gradient::before {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    z-index: -1;
    background: linear-gradient(135deg, #00D9FF 0%, #7FFFD4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: blur(20px);
    opacity: 0.5;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    line-height: 1.8;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* ===========================
   STATS BAR - OPTIMIZED
   =========================== */

.stats-bar {
    background: var(--white);
    padding: 4rem 0;
    margin-top: -4rem;
    position: relative;
    z-index: 2;
    box-shadow: 0 10px 40px rgba(10, 37, 64, 0.15);
    border-radius: var(--radius);
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    border-top: 4px solid var(--secondary);
}

.stat-item {
    text-align: center;
}

.stat-num {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--health-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.2rem;
}

.stat-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ===========================
   HIGHLIGHTS SECTION - OPTIMIZED
   =========================== */

.highlights {
    padding: 8rem 0;
    background: var(--bg-light);
}

.highlight-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.card {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: var(--radius);
    box-shadow: 0 8px 25px rgba(10, 37, 64, 0.08);
    transition: var(--transition);
    text-align: center;
    border: 1px solid rgba(0, 180, 216, 0.1);
    position: relative;
    overflow: hidden;
}

.card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary), var(--health-primary));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 180, 216, 0.2);
    border-color: var(--secondary);
}

.card:hover:before {
    transform: scaleX(1);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    filter: grayscale(0);
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.card p {
    color: var(--text-muted);
    line-height: 1.7;
}

/* ===========================
   ABOUT SECTION - OPTIMIZED
   =========================== */

.about {
    padding: 8rem 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
}

.about-img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: 0 15px 50px rgba(10, 37, 64, 0.15);
    border: 3px solid var(--bg-lighter);
}

.img-accent {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--secondary-light), var(--health-light));
    z-index: -1;
    border-radius: var(--radius);
    opacity: 0.6;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.about-text .btn {
    margin-top: 1rem;
}

/* ===========================
   SERVICES SECTION - OPTIMIZED
   =========================== */

.services {
    padding: 8rem 0;
    background: var(--bg-light);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius);
    border: 2px solid rgba(0, 180, 216, 0.1);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--health-primary) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card.active {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: var(--white);
    border-color: var(--secondary);
}

.service-card.active h3,
.service-card.active p {
    color: var(--white);
    position: relative;
    z-index: 1;
}

.service-card.active .service-icon {
    position: relative;
    z-index: 1;
}

.service-card.active .feature-list li {
    color: var(--white);
}

.service-card.active .feature-list li:before {
    color: var(--secondary-light);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 180, 216, 0.15);
    border-color: var(--secondary);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.service-card p {
    color: var(--text-muted);
    line-height: 1.7;
}

/* ===========================
   CSR / IMPACT SECTION - OPTIMIZED
   =========================== */

.csr {
    padding: 8rem 0;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: var(--white);
    position: relative;
}

.csr:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary), var(--health-primary));
}

.csr-wrapper {
    text-align: center;
}

.csr-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.csr-stat-card {
    background: rgba(0, 180, 216, 0.08);
    padding: 2.5rem 1.5rem;
    border-radius: var(--radius);
    border: 1px solid rgba(0, 180, 216, 0.2);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.csr-stat-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary), var(--health-primary));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.csr-stat-card:hover {
    background: rgba(0, 180, 216, 0.12);
    transform: translateY(-5px);
    border-color: var(--secondary);
}

.csr-stat-card:hover:before {
    transform: scaleX(1);
}

.csr-stat-card h4 {
    background: linear-gradient(135deg, var(--secondary-light) 0%, var(--health-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.csr-stat-card p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
}

/* ===========================
   CONTACT SECTION - OPTIMIZED
   =========================== */

.contact {
    padding: 8rem 0;
}

.contact-card {
    display: grid;
    grid-template-columns: 4fr 6fr;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(10, 37, 64, 0.12);
    border: 1px solid rgba(0, 180, 216, 0.1);
}

.contact-info {
    background: linear-gradient(135deg, var(--bg-lighter) 0%, var(--secondary-light) 100%);
    padding: 4rem;
    position: relative;
}

.contact-info:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--secondary), var(--health-primary));
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.contact-info > p {
    color: var(--text-main);
    margin-bottom: 2rem;
}

.contact-details {
    margin-top: 3rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.detail-item .icon {
    width: 50px;
    height: 50px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 5px 20px rgba(0, 180, 216, 0.2);
    flex-shrink: 0;
    color: var(--secondary);
}

.detail-item p {
    color: var(--text-main);
    font-size: 0.95rem;
}

.contact-form {
    padding: 4rem;
}

/* ===========================
   RESPONSIVE MARKETING SECTIONS
   =========================== */

@media (max-width: 992px) {
    .highlight-cards,
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .csr-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 6rem 0 4rem;
        min-height: 70vh;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-btns {
        flex-direction: column;
        align-items: center;
    }

    .hero-btns .btn {
        min-width: 200px;
    }

    .stats-bar {
        padding: 3rem 0;
        margin-top: -3rem;
    }

    .stat-num {
        font-size: 2rem;
    }

    .highlights,
    .services,
    .about,
    .csr,
    .contact {
        padding: 5rem 0;
    }

    .highlight-cards,
    .service-grid,
    .csr-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contact-info,
    .contact-form {
        padding: 2.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}