/* =========================================
   1. CSS Variables & Reset
   ========================================= */
:root {
    /* Corporate Palette */
    --primary-color: #2980b9;
    --secondary-color: #3498db;
    --accent-color: #00d2ff;
    
    /* Text Colors */
    --text-dark: #1a252f;
    --text-body: #444;
    --text-light: #666;
    
    /* Glass Variables */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    --glass-blur: blur(12px);
    
    /* Layout */
    --container-width: 1200px;
    --header-height: 80px;
    --border-radius: 16px;
    
    --transition-speed: 0.3s;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-body);
    background-color: #f0f4f8;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* =========================================
   2. Glassmorphism Utilities
   ========================================= */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: var(--border-radius);
}

.glass-panel-dark {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
}

/* =========================================
   3. Standard Typography & Layout
   ========================================= */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 15px;
    position: relative;
    z-index: 2;
}

section {
    padding: 100px 0;
    position: relative;
}

h1, h2, h3, h4 {
    color: var(--text-dark);
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

h1 { font-size: 3.5em; text-align: center; color: #fff; text-shadow: 0 4px 15px rgba(0,0,0,0.2); }
h2 { font-size: 2.8em; text-align: center; margin-bottom: 60px; color: var(--primary-color); position: relative; }
h3 { font-size: 1.8em; margin-bottom: 15px; }


h2::after {
    content: '';
    display: block;
    width: 180px;
    height: 3.5px;
    background: var(--secondary-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

p { margin-bottom: 15px; }
a { text-decoration: none; color: inherit; transition: all var(--transition-speed); }
ul { list-style: none; }

.btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: white;
    padding: 14px 30px;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.6);
}

.mb-16 { margin-bottom: 4rem; }
.mt-20 { margin-top: 5rem; }

/* =========================================
   4. Header (Floating Liquid Glass)
   ========================================= */
.corporate-header {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
    
    width: 92%;
    max-width: var(--container-width);
    height: 70px;
    
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    
    border-radius: 50px;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    
    display: flex;
    align-items: center;
    padding: 0 20px;
}

.corporate-header.scrolled {
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 10px 40px 0 rgba(31, 38, 135, 0.15);
    top: 10px;
}

.corporate-header .container {
    width: 100%;
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo-img {
    height: 45px;
    width: auto;
    object-fit: contain;
    display: block;
}

.main-nav ul {
    display: flex;
    gap: 35px;
}

.main-nav a {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1rem;
    position: relative;
    padding: 5px 0;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.main-nav a:hover {
    color: var(--secondary-color);
}

/* =========================================
   UPDATED MOBILE SIDEBAR
   ========================================= */
.mobile-menu-button { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--text-dark); }

/* Sidebar Logic: Fixed right, sliding in */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    right: 0;         /* Align to right side */
    left: auto;       /* Disable default left alignment */
    width: 60%;       /* Take up 60% of screen */
    max-width: 320px; /* Don't get too wide on tablets */
    height: 100%;     /* Full height */
    
    background: rgba(255, 255, 255, 0.98); 
    z-index: 2000;
    
    display: flex;
    flex-direction: column; 
    justify-content: center; 
    align-items: center;
    
    /* Animation: Slide from right */
    transform: translateX(100%); 
    transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.4s ease;
    opacity: 0;
    pointer-events: none; /* Can't click when hidden */
    
    /* Decoration */
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    border-left: 1px solid rgba(255,255,255,0.8);
}

.mobile-menu-overlay.active { 
    transform: translateX(0); /* Slide in */
    opacity: 1; 
    pointer-events: auto; /* Enable clicks */
}

.mobile-menu-overlay .close-button { 
    position: absolute; 
    top: 30px; 
    right: 30px; 
    font-size: 2rem; 
    background: none; 
    border: none; 
    cursor: pointer;
    color: var(--primary-color);
}

.mobile-menu-overlay ul { 
    display: flex; 
    flex-direction: column; 
    gap: 30px; 
    text-align: center; 
}

.mobile-menu-overlay a { 
    font-size: 1.5rem; /* Slightly smaller text for sidebar */
    font-weight: 700; 
    color: var(--text-dark); 
}

/* =========================================
   5. Hero Section (Liquid Animation)
   ========================================= */
.hero {
    position: relative;
    height: 95vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-height);
    background: url('https://images.unsplash.com/photo-1504917595217-d4dc5ebe6122?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') no-repeat center center/cover;
}

.liquid-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    z-index: 0;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.8;
    animation: float 10s infinite alternate;
}

.blob-1 {
    width: 600px; height: 600px;
    background: linear-gradient(180deg, rgba(52, 152, 219, 0.3) 0%, rgba(41, 128, 185, 0.4) 100%);
    top: -100px; left: -100px;
    animation-duration: 15s;
}

.blob-2 {
    width: 500px; height: 500px;
    background: linear-gradient(180deg, rgba(26, 188, 156, 0.3) 0%, rgba(52, 152, 219, 0.3) 100%);
    bottom: -50px; right: -100px;
    animation-duration: 12s;
    animation-delay: -2s;
}

.blob-3 {
    width: 300px; height: 300px;
    background: rgba(155, 89, 182, 0.2);
    top: 40%; left: 40%;
    animation-duration: 18s;
    animation-delay: -5s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(40px, 60px) scale(1.1); }
}

.hero-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 60px 40px;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero h1 {
    color: var(--text-dark);
    text-shadow: none;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero p {
    font-size: 1.25em;
    color: black;
    font-weight: 400;
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--primary-color);
    font-size: 1.5rem;
    animation: bounce 2s infinite;
    cursor: pointer;
    z-index: 10;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateX(-50%) translateY(0);}
    40% {transform: translateX(-50%) translateY(-10px);}
    60% {transform: translateX(-50%) translateY(-5px);}
}

/* =========================================
   6. Introduction Section
   ========================================= */
.intro-section {
    background: white;
    position: relative;
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: start;
}

.intro-header h2 { 
    text-align: left; 
    margin-bottom: 15px; 
}

.intro-header h2::after {
    margin: 10px 0 0;
}

.intro-text p { font-size: 1.1em; color: #555; margin-bottom: 20px; }
.intro-text p:first-of-type { font-weight: 500; color: var(--primary-color); }

/* =========================================
   7. About Us Cards (Glass Effect)
   ========================================= */
.about-section {
    background-color: #f0f4f8;
    position: relative;
    overflow: hidden;
}

.about-section::before {
    content: ''; position: absolute; top: 10%; right: -10%;
    width: 600px; height: 600px; background: radial-gradient(circle, rgba(52, 152, 219, 0.1) 0%, transparent 70%);
    z-index: 1; pointer-events: none;
}

.about-content {
    display: flex; gap: 30px; flex-wrap: wrap; z-index: 2; position: relative;
}

.glass-card {
    flex: 1;
    min-width: 300px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    background: rgba(255, 255, 255, 0.95);
}

.glass-card h3 { color: var(--primary-color); font-size: 1.8em; margin-bottom: 20px; }
.values-list li { display: flex; align-items: flex-start; margin-bottom: 15px; font-size: 1.05em; }
.values-list li i { color: #27ae60; margin-right: 15px; margin-top: 5px; background: rgba(39, 174, 96, 0.1); padding: 8px; border-radius: 50%; font-size: 0.9em; }

/* =========================================
   8. Facility Grid (UPDATED: FLEXBOX)
   ========================================= */
.facility-grid {
    display: flex;             /* Changed from Grid to Flex */
    flex-wrap: wrap;           /* Allow items to wrap to next line */
    justify-content: center;   /* Center all items */
    gap: 25px;
    margin-top: 40px;
}

.facility-item {
    /* flex-grow: 0 (don't stretch wildly)
       flex-shrink: 1 (shrink if screen is tiny)
       flex-basis: 350px (target width)
       
       This ensures that on a standard 1200px container:
       Row 1: 350px * 3 + gaps = ~1100px (Fits 3 items)
       Row 2: Remaining 2 items wrap and center because of justify-content: center
    */
    flex: 0 1 350px; 
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.facility-item:hover { transform: scale(1.02); }
.facility-item img { width: 100%; height: 220px; object-fit: cover; display: block; }

.overlay-label {
    position: absolute; bottom: 0; left: 0; width: 100%;
    background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(4px);
    color: white; padding: 15px; text-align: center;
    transform: translateY(100%); transition: transform 0.3s ease;
}
.facility-item:hover .overlay-label { transform: translateY(0); }

/* =========================================
   9. Services Section (Tabs)
   ========================================= */
.services-section {
    background: white;
}

.service-buttons {
    display: flex; justify-content: center; gap: 15px; margin-bottom: 40px; flex-wrap: wrap;
}

.service-button {
    background: transparent;
    color: var(--text-light);
    padding: 12px 25px;
    border-radius: 50px;
    font-size: 1em;
    font-weight: 600;
    border: 1px solid #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.service-button:hover { border-color: var(--secondary-color); color: var(--secondary-color); }

.service-button.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(41, 128, 185, 0.3);
}

.service-container-glass {
    background: #f8fafc;
    border: 1px solid #edf2f7;
    padding: 50px;
    border-radius: var(--border-radius);
    max-width: 900px;
    margin: 0 auto;
    min-height: 300px;
}

.service-content { display: none; animation: fadeIn 0.5s ease; }
.service-content.active { display: block; }
.service-content h3 { font-size: 2em; margin-bottom: 20px; color: var(--text-dark); }

.service-content ul li {
    position: relative; padding-left: 20px; margin-bottom: 12px; font-size: 1.1em;
}
.service-content ul li::before {
    content: ''; position: absolute; left: 0; top: 10px; width: 8px; height: 8px;
    background: var(--secondary-color); border-radius: 50%;
}

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* =========================================
   10. FAQ Section Styles
   ========================================= */
.faq-section {
    background: #f0f4f8;
    position: relative;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    margin-bottom: 15px;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.03);
}

.faq-item.active {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 25px rgba(52, 152, 219, 0.15);
    border-color: var(--secondary-color);
}

.faq-question {
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 1.1em;
    color: var(--text-dark);
    transition: color 0.3s ease;
}

.faq-item.active .faq-question {
    color: var(--primary-color);
}

.faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    color: var(--text-body);
    opacity: 0;
    line-height: 1.7;
}

.faq-item.active .faq-answer {
    padding-bottom: 25px;
    max-height: 500px;
    opacity: 1;
}

.faq-toggle-icon {
    color: var(--secondary-color);
    transition: transform 0.3s ease;
    font-size: 0.9em;
}

.faq-item.active .faq-toggle-icon {
    transform: rotate(180deg);
}

/* =========================================
   11. Contact Section Styles
   ========================================= */
.contact-section {
    background: white;
    position: relative;
    overflow: hidden;
}

.contact-section::after {
    content: ''; position: absolute; bottom: -100px; left: -100px;
    width: 400px; height: 400px; background: radial-gradient(circle, rgba(26, 188, 156, 0.1) 0%, transparent 70%);
    z-index: 1; pointer-events: none;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    z-index: 2;
    position: relative;
}

.contact-info-card {
    background: #f8fafc;
    padding: 40px;
    border-radius: var(--border-radius);
    border: 1px solid #edf2f7;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: rgba(52, 152, 219, 0.1);
    color: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-text h4 {
    margin-bottom: 5px;
    color: var(--text-dark);
    font-size: 1.1em;
}

.contact-text p {
    margin: 0;
    color: var(--text-light);
    font-size: 1em;
}

.contact-form-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.1);
    background: rgba(255, 255, 255, 0.5);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* =========================================
   12. Footer
   ========================================= */
.corporate-footer {
    background: #1a252f;
    color: #ecf0f1;
    padding: 80px 0 30px;
}

.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; margin-bottom: 50px; }
.corporate-footer h4 { color: white; font-size: 1.2em; margin-bottom: 25px; border-left: 3px solid var(--secondary-color); padding-left: 15px; }

.quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 0;
}

.quick-links li {
    list-style: none;
    margin: 0;
}

.corporate-footer .quick-links a { color: #bdc3c7; transition: 0.3s; display: inline-block; }

.corporate-footer .quick-links a:hover { 
    color: var(--secondary-color); 
    transform: translateY(-3px); 
    padding-left: 0; 
}

.social-icons a { 
    display: inline-flex; width: 40px; height: 40px; background: rgba(255,255,255,0.05); border-radius: 50%;
    align-items: center; justify-content: center; margin-right: 10px; color: white; transition: 0.3s;
}
.social-icons a:hover { background: var(--secondary-color); transform: translateY(-3px); }

.copyright { text-align: center; border-top: 1px solid rgba(255,255,255,0.05); padding-top: 30px; font-size: 0.9em; color: #7f8c8d; }

/* Scroll Up Button */
.scroll-up-btn {
    position: fixed; 
    bottom: 90px;
    right: 30px; 
    width: 50px; 
    height: 50px;
    background: rgba(255, 255, 255, 0.8); 
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.5);
    color: var(--primary-color);
    border-radius: 50%; 
    font-size: 1.2rem; 
    cursor: pointer;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    opacity: 0; 
    pointer-events: none; 
    transform: translateY(20px); 
    transition: 0.3s; 
    z-index: 1001;
    display: flex; 
    align-items: center; 
    justify-content: center;
}
.scroll-up-btn.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.scroll-up-btn:hover { background: var(--primary-color); color: white; }

/* WhatsApp Button */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #25D366;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    text-decoration: none;
}

.whatsapp-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.4);
    background: #20BA5C;
}

/* Responsive */
@media (max-width: 992px) {
    .corporate-header .main-nav { display: none; }
    .mobile-menu-button { display: block; }
    .intro-grid { grid-template-columns: 1fr; gap: 30px; }
    .hero h1 { font-size: 2.8em; }
    .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .hero { padding: 120px 0 60px; height: auto; }
    .hero-card { padding: 30px 20px; }
    .about-content { flex-direction: column; }
    .service-buttons { flex-direction: column; }
    .service-button { width: 100%; text-align: center; }
    .scroll-up-btn { width: 40px; height: 40px; bottom: 70px; right: 20px; font-size: 1rem; }
    .whatsapp-btn { width: 40px; height: 40px; bottom: 20px; right: 20px; font-size: 1.5rem; }
}