/* style.css - FINAL PRODUCTION (FIXED BUTTONS & SIDEBAR) */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&family=Open+Sans:wght@400;600&display=swap');

:root {
    --primary-color: #004d40; /* Deep Teal */
    --primary-light: #00796b;
    --accent-color: #ffca28; /* Gold/Amber */
    --accent-hover: #ff6f00; /* Deep Orange */
    --text-dark: #1a202c;
    --text-gray: #4a5568;
    --bg-light: #f7fafc;
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.98);
    --shadow-lg: 0 20px 40px rgba(0,0,0,0.12);
    --radius-lg: 20px;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* CRITICAL FIX: PREVENT HORIZONTAL SCROLL */
html, body { 
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important; 
    position: relative;
    scroll-behavior: smooth;
    font-family: 'Open Sans', sans-serif; 
    background-color: var(--bg-light); 
    color: var(--text-dark); 
    line-height: 1.6; 
}

h1, h2, h3, h4, .nav-links a { font-family: 'Montserrat', sans-serif; }

/* --- ANIMATIONS --- */
@keyframes kenBurns { 0% { transform: scale(1); } 100% { transform: scale(1.2); } }
@keyframes slideUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }

.reveal { opacity: 0; transform: translateY(40px); transition: all 0.8s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* --- HEADER --- */
header {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    position: sticky; top: 0; z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    padding: 5px 0;
    width: 100%;
}

.navbar { max-width: 1280px; margin: 0 auto; padding: 0 20px; display: flex; justify-content: space-between; align-items: center; }

.logo-container { display: flex; align-items: center; text-decoration: none; }
.logo-img { 
    height: 90px; 
    width: auto; 
    transition: transform 0.3s; 
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

/* NAV LINKS (Desktop) */
.nav-links { list-style: none; display: flex; gap: 30px; align-items: center; }
.nav-links a { text-decoration: none; color: var(--text-dark); font-weight: 700; font-size: 1.05rem; position: relative; padding: 5px 0; }
.nav-links a.active { color: var(--primary-color); }
.nav-links a::after { content: ''; position: absolute; width: 0; height: 3px; bottom: 0; left: 0; background: var(--accent-color); transition: 0.3s; }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-links .btn-contact { 
    background: var(--primary-color); color: white; padding: 12px 30px; border-radius: 50px; 
    box-shadow: 0 4px 10px rgba(0, 77, 64, 0.2); 
}
.hamburger, .close-menu { display: none; cursor: pointer; font-size: 2rem; color: var(--text-dark); }

/* --- HERO SLIDER --- */
.hero-slider-container {
    position: relative; height: 85vh; min-height: 600px; width: 100%; overflow: hidden;
    margin-bottom: 50px; border-bottom-left-radius: 40px; border-bottom-right-radius: 40px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.25); background: #000;
}
.hero-slide {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0; transition: opacity 1.5s ease-in-out;
    display: flex; align-items: center; justify-content: center; text-align: center;
    pointer-events: none; 
}
.hero-slide.active { opacity: 1; z-index: 2; pointer-events: auto; }

.hero-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center;
    animation: kenBurns 20s infinite alternate;
}
.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(0, 50, 40, 0.7), rgba(0, 0, 0, 0.4)); z-index: 1;
}
.hero-content { 
    position: relative; z-index: 3; max-width: 900px; padding: 0 20px; 
    color: white; animation: slideUp 1.2s ease-out;
}

/* BIG HERO TEXT - NO BUTTONS */
.hero-content h1 { 
    font-size: 4rem; 
    font-weight: 900; 
    margin-bottom: 20px; 
    line-height: 1.1; 
    text-shadow: 0 5px 20px rgba(0,0,0,0.6); 
    text-transform: uppercase;
    letter-spacing: -1px;
}
.hero-content p { 
    font-size: 1.5rem; 
    margin-bottom: 0; 
    font-weight: 500; 
    opacity: 0.95; 
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

/* --- COMPACT HERO --- */
.hero-compact {
    position: relative; padding: 100px 20px; text-align: center; color: white;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    margin-bottom: 50px; border-bottom-left-radius: 30px; border-bottom-right-radius: 30px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.hero-compact h1 { font-size: 2.8rem; margin-bottom: 10px; font-weight: 800; }
.hero-compact p { font-size: 1.2rem; opacity: 0.9; }

/* --- SECTIONS & GRID --- */
.container { max-width: 1280px; margin: 0 auto 60px; padding: 0 20px; }
.section-title { text-align: center; margin-bottom: 60px; }
.section-title h2 { color: var(--primary-color); font-size: 2.5rem; font-weight: 800; margin-bottom: 15px; }
.section-title .line { width: 80px; height: 6px; background: var(--accent-color); margin: 0 auto; border-radius: 10px; }

.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }

/* Card Styling */
.service-card, .stat-box, .cert-card {
    background: white; border-radius: 16px; overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0,0,0,0.02); display: flex; flex-direction: column;
}
.service-card:hover, .stat-box:hover, .cert-card:hover { transform: translateY(-12px); box-shadow: 0 20px 40px rgba(0,0,0,0.15); }

.card-image { height: 220px; width: 100%; overflow: hidden; }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: 0.8s; }
.service-card:hover .card-image img { transform: scale(1.1); }

.card-content { padding: 30px; text-align: center; flex-grow: 1; display: flex; flex-direction: column; align-items: center; }
.card-icon {
    width: 70px; height: 70px; background: white; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin-top: -65px; margin-bottom: 20px; position: relative; z-index: 2;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1); color: var(--primary-color); font-size: 1.8rem;
}
.service-card h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: 10px; color: var(--text-dark); }
.service-card p { font-size: 1rem; color: var(--text-gray); }

/* --- NEW BUTTON STYLE FOR WHITE BACKGROUNDS (Fixes Dissing Issue) --- */
.btn-solid {
    background: var(--primary-color);
    color: var(--white);
    padding: 16px 45px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.1rem;
    display: inline-block;
    box-shadow: 0 8px 20px rgba(0, 77, 64, 0.3);
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
    margin-top: 30px;
}
.btn-solid:hover {
    background: var(--accent-color);
    color: var(--text-dark);
    border-color: var(--accent-color);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(255, 193, 7, 0.4);
}

/* ABOUT & CERTIFICATION */
.about-centered { text-align: center; max-width: 800px; margin: 0 auto 60px; }
.about-text h3 { font-size: 2rem; color: var(--primary-color); margin-bottom: 20px; font-weight: 700; }
.stats-container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; }
.stat-box { padding: 40px 20px; border-bottom: 5px solid var(--accent-color); align-items: center; }
.stat-box i { font-size: 2.5rem; color: var(--primary-light); margin-bottom: 15px; }
.stat-box h2 { font-size: 2.5rem; font-weight: 800; }

.cert-section { background: #f0fdf4; padding: 60px 30px; border-radius: 20px; margin-top: 80px; text-align: center; border: 1px solid rgba(0, 77, 64, 0.1); }
.cert-grid { display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; margin-top: 30px; }
.cert-card { width: 320px; padding: 40px 30px; align-items: center; }
.cert-icon-wrapper { width: 80px; height: 80px; background: #e0f2f1; color: var(--primary-color); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; margin-bottom: 20px; }
.btn-cert { display: inline-block; padding: 12px 30px; background: white; color: var(--primary-color); border: 2px solid var(--primary-color); border-radius: 50px; text-decoration: none; font-weight: 700; transition: 0.3s; margin-top: 10px; }
.btn-cert:hover { background: var(--primary-color); color: white; }

/* CONTACT PAGE */
.contact-wrapper { display: grid; grid-template-columns: 1fr 1.5fr; background: white; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-lg); }
.contact-info { background: var(--primary-color); color: white; padding: 50px; }
.contact-detail { display: flex; gap: 20px; margin-bottom: 30px; align-items: center; }
.contact-detail i { font-size: 1.5rem; color: var(--accent-color); }
.contact-form-container { padding: 50px; }
.form-control { width: 100%; padding: 15px; margin-bottom: 20px; border: 1px solid #ddd; border-radius: 8px; font-size: 1rem; }
.btn-submit { width: 100%; padding: 15px; background: var(--accent-color); border: none; font-weight: bold; border-radius: 50px; cursor: pointer; color: var(--text-dark); transition: 0.3s; font-size: 1.1rem; }
.btn-submit:hover { background: var(--accent-hover); color: white; }

/* EXPAND GRID */
.service-card.hidden { display: none; }
.service-card.expanded { display: flex; animation: slideUp 0.6s ease-out forwards; }
.view-more-container { text-align: center; margin-top: 30px; width: 100%; }
.btn-view-more {
    background: var(--primary-color); color: white; padding: 15px 40px; border-radius: 50px; 
    text-decoration: none; font-weight: 700; display: inline-block; border: none; cursor: pointer;
    font-size: 1.1rem; transition: 0.3s;
}
.btn-view-more:hover { background: var(--primary-light); transform: translateY(-3px); }

/* --- FOOTER --- */
footer { background: #111; color: #aaa; padding: 60px 0 20px; margin-top: auto; }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.footer-col h4 { color: white; margin-bottom: 20px; border-left: 3px solid var(--accent-color); padding-left: 10px; }
.footer-col ul li { list-style: none; margin-bottom: 10px; }
.footer-col a { color: #aaa; text-decoration: none; }
.footer-bottom { text-align: center; margin-top: 50px; border-top: 1px solid #333; padding-top: 20px; }

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 992px) {
    .hamburger { display: block; }
    .close-menu { display: block; position: absolute; top: 25px; right: 25px; }
    
    /* SIDEBAR TEXT FIX */
    .nav-links {
        position: fixed; top: 0; right: -100%; height: 100vh; width: 300px; max-width: 80vw;
        background: white; flex-direction: column; align-items: flex-start; padding: 100px 40px;
        box-shadow: -5px 0 30px rgba(0,0,0,0.2); 
        transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 2000; visibility: hidden;
    }
    
    .nav-links.active { right: 0; visibility: visible; }
    
    /* Force Dark Text for Mobile Sidebar to prevent "submerge" */
    .nav-links a { 
        width: 100%; border-bottom: 1px solid #eee; padding-bottom: 15px; 
        font-size: 1.1rem; margin-bottom: 10px; color: #000 !important; 
    }
    .nav-links .btn-contact { margin-top: 20px; width: 100%; text-align: center; color: white !important; }

    .logo-img { height: 75px; }
    
    /* Mobile Hero Text */
    .hero-content h1 { font-size: 2.2rem; line-height: 1.3; } 
    .hero-content p { font-size: 1.1rem; }
    
    .stats-container { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .navbar { padding: 10px 20px; }
    .logo-img { height: 65px; } 
    
    .hero-slider-container { height: 75vh; border-radius: 0 0 30px 30px; }
    .hero-content h1 { font-size: 2rem; } 
    
    .contact-wrapper { grid-template-columns: 1fr; }
    .contact-info, .contact-form-container { padding: 30px; }
    
    .services-grid { grid-template-columns: 1fr; gap: 20px; }
    .stats-container { grid-template-columns: 1fr; }
    .cert-card { width: 100%; }
}