/* ============================================
   IECA FOUNDATION - MAIN STYLESHEET
   Premium Old Age Home Website
   ============================================ */

/* ============================================
   CSS VARIABLES & DESIGN TOKENS
   ============================================ */
:root {
    /* Primary Colors */
    --primary-blue: #0066cc;
    --primary-dark: #004499;
    --primary-light: #4d94ff;

    /* Secondary Colors */
    --secondary-teal: #00b8b8;
    --secondary-cyan: #00d4ff;

    /* Neutral Colors */
    --gray-900: #1a1a2e;
    --gray-800: #16213e;
    --gray-700: #2d3436;
    --gray-600: #4a5568;
    --gray-500: #718096;
    --gray-400: #a0aec0;
    --gray-300: #cbd5e0;
    --gray-200: #e2e8f0;
    --gray-100: #f7fafc;
    --white: #ffffff;
    --black: #000000;

    /* Accent Colors */
    --accent-gold: #f4a261;
    --accent-coral: #e76f51;
    --accent-green: #2a9d8f;
    --accent-purple: #6c5ce7;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-teal) 100%);
    --gradient-dark: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-800) 100%);
    --gradient-hero: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.6) 100%);
    --gradient-card: linear-gradient(145deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    --gradient-glow: radial-gradient(circle, var(--secondary-cyan) 0%, transparent 70%);

    /* Typography */
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Playfair Display', serif;
    --font-accent: 'Dancing Script', cursive;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 30px rgba(0, 212, 255, 0.3);
    --shadow-glow-blue: 0 0 40px rgba(0, 102, 204, 0.4);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;
    --transition-bounce: 500ms cubic-bezier(0.68, -0.55, 0.265, 1.55);

    /* Z-Index */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal: 400;
    --z-tooltip: 500;
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    color: var(--gray-700);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-base);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul,
ol {
    list-style: none;
}

button {
    cursor: pointer;
    font-family: inherit;
    border: none;
    background: none;
}

input,
textarea {
    font-family: inherit;
    border: none;
    outline: none;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.container-fluid {
    width: 100%;
    padding: 0 var(--space-lg);
}

.section {
    padding: var(--space-4xl) 0;
}

.section-title {
    font-family: var(--font-secondary);
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--gray-900);
    text-align: center;
    margin-bottom: var(--space-lg);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray-500);
    text-align: center;
    max-width: 600px;
    margin: 0 auto var(--space-3xl);
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   TOP ADDRESS BAR
   ============================================ */
.top-bar {
    background: linear-gradient(90deg, var(--gray-900) 0%, var(--gray-800) 50%, var(--gray-900) 100%);
    padding: 10px 0;
    position: relative;
    overflow: hidden;
}

.top-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.address-marquee {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
}

.address-marquee p {
    display: inline-block;
    color: var(--gray-200);
    font-size: 0.9rem;
    animation: marquee 20s linear infinite;
}

@keyframes marquee {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

.top-bar-links {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.top-bar-links a {
    color: var(--gray-300);
    font-size: 0.85rem;
    transition: color var(--transition-base);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.top-bar-links a:hover {
    color: var(--secondary-cyan);
}

.top-bar-links i {
    font-size: 1rem;
}

.social-links {
    display: flex;
    gap: var(--space-sm);
}

.social-links a {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    color: var(--gray-300);
}

/* Social Media Brand Colors */
.social-links a.social-facebook {
    background: #1877F2;
    color: #ffffff;
}

.social-links a.social-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #ffffff;
}

.social-links a.social-youtube {
    background: #FF0000;
    color: #ffffff;
}

.social-links a.social-x {
    background: #000000;
    color: #ffffff;
}

.social-links a.social-linkedin {
    background: #0A66C2;
    color: #ffffff;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    background: linear-gradient(180deg, #5a7a95 0%, #7a9ab0 50%, #9ab5c8 100%);
    padding: var(--space-sm) 0;
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
}

.navbar.scrolled {
    background: rgba(90, 122, 149, 0.95);
    backdrop-filter: blur(10px);
    padding: var(--space-xs) 0;
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    position: relative;
}

.nav-left,
.nav-right {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.nav-left {
    flex: 1;
    justify-content: flex-end;
    padding-right: var(--space-xl);
}

.nav-right {
    flex: 1;
    justify-content: flex-start;
    padding-left: var(--space-xl);
}

.nav-link {
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 500;
    padding: var(--space-sm) var(--space-md);
    position: relative;
    white-space: nowrap;
    transition: all var(--transition-base);
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--white);
    transition: all var(--transition-base);
    transform: translateX(-50%);
}

.nav-link:hover {
    color: var(--secondary-cyan);
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.nav-link:hover::before {
    width: 80%;
}

.nav-link.active {
    color: var(--secondary-cyan);
}

.nav-link.active::before {
    width: 80%;
    background: var(--secondary-cyan);
}

/* Center Logo */
.nav-logo {
    flex-shrink: 0;
    z-index: 10;
}

.nav-logo img {
    height: 60px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    transition: transform var(--transition-base);
}

.nav-logo:hover img {
    transform: scale(1.05);
}

/* Donate Button */
.btn-donate {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: var(--white);
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
    transition: all var(--transition-base);
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
    }

    50% {
        box-shadow: 0 4px 25px rgba(231, 76, 60, 0.6);
    }
}

.btn-donate:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(231, 76, 60, 0.5);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: var(--space-sm);
    cursor: pointer;
    z-index: var(--z-fixed);
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--white);
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(180deg, var(--gray-900) 0%, var(--gray-800) 100%);
    padding: 100px var(--space-xl) var(--space-xl);
    z-index: var(--z-modal);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-slow);
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu .nav-link {
    display: block;
    font-size: 1.2rem;
    padding: var(--space-md) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* ============================================
   HERO SLIDER
   ============================================ */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
    z-index: 1;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-hero);
    z-index: 2;
}

/* Spider Web Effect */
.spider-web {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    opacity: 0.15;
}

.spider-web-line {
    position: absolute;
    background: rgba(255, 255, 255, 0.3);
    transform-origin: center;
}

/* Particles */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-full);
    animation: float-particle 15s infinite linear;
}

@keyframes float-particle {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Hero Content */
.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
    width: 90%;
    max-width: 800px;
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--secondary-cyan);
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: var(--space-md);
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.3s;
}

.hero-title {
    font-family: var(--font-secondary);
    font-size: clamp(2.5rem, 8vw, 5rem);
    color: var(--white);
    line-height: 1.1;
    margin-bottom: var(--space-lg);
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.5s;
}

.hero-tagline {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: var(--gray-200);
    margin-bottom: var(--space-xl);
    font-weight: 300;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.7s;
}

.hero-tagline-accent {
    font-family: var(--font-accent);
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: var(--secondary-cyan);
    display: block;
    margin-top: var(--space-sm);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    background: var(--gradient-primary);
    color: var(--white);
    padding: var(--space-md) var(--space-2xl);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1rem;
    box-shadow: var(--shadow-glow-blue);
    transition: all var(--transition-base);
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.9s;
}

.hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(0, 102, 204, 0.5);
}

.hero-btn i {
    transition: transform var(--transition-base);
}

.hero-btn:hover i {
    transform: translateX(5px);
}

/* Slider Navigation */
.slider-nav {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: var(--space-sm);
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-base);
}

.slider-dot.active {
    background: var(--secondary-cyan);
    width: 40px;
    box-shadow: var(--shadow-glow);
}

/* Contact Info Bar */
.hero-contact-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    padding: var(--space-md) 0;
    z-index: 10;
}

.hero-contact-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.hero-contact-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--white);
}

.hero-contact-item i {
    font-size: 1.5rem;
    color: var(--secondary-cyan);
}

.hero-contact-item span {
    font-size: 0.9rem;
}

.hero-contact-item a {
    color: var(--secondary-cyan);
    font-weight: 500;
}

/* ============================================
   ABOUT SECTION (IECA MEANS)
   ============================================ */
.about-ieca {
    background: linear-gradient(180deg, var(--gray-100) 0%, var(--white) 100%);
    position: relative;
    overflow: hidden;
}

.about-ieca::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 102, 204, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.about-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.about-header .section-label {
    font-size: 0.9rem;
    color: var(--primary-blue);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: var(--space-sm);
}

.about-header .section-title {
    color: var(--secondary-teal);
}

.about-description {
    max-width: 900px;
    margin: 0 auto var(--space-3xl);
    text-align: center;
    font-size: 1.1rem;
    color: var(--gray-600);
    line-height: 1.8;
}

/* Info Cards Wrapper */
.info-cards-wrapper {
    position: relative;
    padding: 2rem 0 3rem 0;
    margin-bottom: 0;
    clear: both;
}

.info-cards-wrapper::after {
    content: '';
    display: table;
    clear: both;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
    margin-bottom: 2rem;
}

.info-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-slow);
    position: relative;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
}

.info-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.info-card-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.info-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.info-card:hover .info-card-image img {
    transform: scale(1.1);
}

.info-card-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.3), transparent);
}

.info-card-icon {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: var(--shadow-md);
}

.info-card-icon i {
    font-size: 1.5rem;
    color: var(--white);
}

.info-card-content {
    padding: var(--space-2xl) var(--space-lg) var(--space-lg);
    text-align: center;
}

.info-card-title {
    font-family: var(--font-secondary);
    font-size: 1.5rem;
    color: var(--secondary-teal);
    margin-bottom: var(--space-md);
    font-style: italic;
}

.info-card-text {
    color: var(--gray-600);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    background: var(--gradient-primary);
    padding: var(--space-3xl) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before,
.cta-section::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.05);
}

.cta-section::before {
    top: -150px;
    left: -150px;
}

.cta-section::after {
    bottom: -150px;
    right: -150px;
}

.cta-title {
    font-family: var(--font-secondary);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--white);
    margin-bottom: var(--space-lg);
}

.cta-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto var(--space-xl);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    background: var(--white);
    color: var(--primary-blue);
    padding: var(--space-md) var(--space-2xl);
    border-radius: var(--radius-full);
    font-weight: 600;
    transition: all var(--transition-base);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    background: transparent;
    color: var(--white);
    padding: var(--space-md) var(--space-2xl);
    border-radius: var(--radius-full);
    font-weight: 600;
    border: 2px solid var(--white);
    transition: all var(--transition-base);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-blue);
    transform: translateY(-3px);
}

/* ============================================
   FEATURES SECTION
   ============================================ */
.features-section {
    background: var(--white);
    position: relative;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-xl);
}

.feature-card {
    text-align: center;
    padding: var(--space-xl);
    background: var(--gray-100);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-base);
    z-index: 1;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card>* {
    position: relative;
    z-index: 2;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-card:hover .feature-icon,
.feature-card:hover .feature-title,
.feature-card:hover .feature-text {
    color: var(--white);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-lg);
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
}

.feature-card:hover .feature-icon {
    background: rgba(255, 255, 255, 0.2);
}

.feature-icon i {
    font-size: 2rem;
    color: var(--white);
}

.feature-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: var(--space-sm);
    transition: color var(--transition-base);
}

.feature-text {
    color: var(--gray-600);
    font-size: 0.9rem;
    transition: color var(--transition-base);
}

/* ============================================
   PAGE HEADER / BANNER
   ============================================ */
.page-header {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.page-header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4);
}

.page-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.7) 0%, rgba(0, 184, 184, 0.7) 100%);
}

.page-header-content {
    position: relative;
    z-index: 10;
}

.page-header h1 {
    font-family: var(--font-secondary);
    font-size: clamp(2.5rem, 6vw, 4rem);
    color: var(--white);
    margin-bottom: var(--space-md);
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.page-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
}

.breadcrumb a {
    color: var(--secondary-cyan);
    transition: color var(--transition-base);
}

.breadcrumb a:hover {
    color: var(--white);
}

.breadcrumb span {
    color: var(--gray-300);
}

/* ============================================
   PROJECTS / FACILITIES SECTION
   ============================================ */
.facilities-section {
    background: linear-gradient(180deg, var(--white) 0%, var(--gray-100) 100%);
}

.facilities-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-3xl);
}

.facility-tab {
    padding: var(--space-sm) var(--space-lg);
    background: var(--white);
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-full);
    font-weight: 500;
    color: var(--gray-600);
    transition: all var(--transition-base);
}

.facility-tab:hover,
.facility-tab.active {
    background: var(--gradient-primary);
    border-color: transparent;
    color: var(--white);
}

.facility-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.facility-content.reverse {
    direction: rtl;
}

.facility-content.reverse>* {
    direction: ltr;
}

.facility-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.facility-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.facility-image:hover img {
    transform: scale(1.05);
}

.facility-image::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    border: 3px solid var(--secondary-cyan);
    border-radius: var(--radius-md);
    z-index: 2;
    pointer-events: none;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.facility-image:hover::before {
    opacity: 1;
}

.facility-info h3 {
    font-family: var(--font-secondary);
    font-size: 2rem;
    color: var(--gray-900);
    margin-bottom: var(--space-lg);
}

.facility-info p {
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: var(--space-lg);
}

.facility-list {
    margin-bottom: var(--space-xl);
}

.facility-list li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    padding: var(--space-sm) 0;
    color: var(--gray-700);
}

.facility-list li i {
    color: var(--secondary-teal);
    font-size: 1.2rem;
    margin-top: 2px;
}

/* ============================================
   GALLERY SECTION
   ============================================ */
.gallery-section {
    background: var(--gray-100);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    box-shadow: var(--shadow-md);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    display: flex;
    align-items: flex-end;
    padding: var(--space-lg);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.5rem;
    color: var(--white);
}

/* Video Gallery */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: var(--space-xl);
}

.video-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--gray-900);
}

.video-item video {
    width: 100%;
    height: auto;
    display: block;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-base);
}

.video-overlay:hover {
    background: rgba(0, 0, 0, 0.2);
}

.play-btn {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-base);
}

.play-btn:hover {
    transform: scale(1.1);
}

.play-btn i {
    font-size: 2rem;
    color: var(--white);
    margin-left: 5px;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-section {
    background: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
}

.contact-info h3 {
    font-family: var(--font-secondary);
    font-size: 1.8rem;
    color: var(--gray-900);
    margin-bottom: var(--space-xl);
}

.contact-info p {
    color: var(--gray-600);
    margin-bottom: var(--space-xl);
    line-height: 1.8;
}

.contact-item {
    display: flex;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
    align-items: flex-start;
}

.contact-item-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-item-icon i {
    font-size: 1.5rem;
    color: var(--white);
}

.contact-item-text h4 {
    font-size: 1.1rem;
    color: var(--gray-900);
    margin-bottom: var(--space-xs);
}

.contact-item-text p,
.contact-item-text a {
    color: var(--gray-600);
    font-size: 0.95rem;
}

.contact-item-text a:hover {
    color: var(--primary-blue);
}

/* Contact Form */
.contact-form {
    background: var(--gray-100);
    padding: var(--space-2xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.contact-form h3 {
    font-family: var(--font-secondary);
    font-size: 1.5rem;
    color: var(--gray-900);
    margin-bottom: var(--space-xl);
}

.form-group {
    margin-bottom: var(--space-lg);
}

.form-group label {
    display: block;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: var(--space-sm);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: var(--space-md);
    background: var(--white);
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: border-color var(--transition-base);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-blue);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-submit {
    width: 100%;
    padding: var(--space-md);
    background: var(--gradient-primary);
    color: var(--white);
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.form-submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Map */
.map-container {
    margin-top: var(--space-3xl);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    height: 400px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--gradient-dark);
    color: var(--gray-300);
    padding: var(--space-4xl) 0 0;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: var(--space-3xl);
    padding-bottom: var(--space-3xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand img {
    height: 80px;
    margin-bottom: var(--space-lg);
}

.footer-brand p {
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: var(--space-lg);
}

.footer-social {
    display: flex;
    gap: var(--space-sm);
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    color: var(--gray-300);
}

/* Footer Social Media Brand Colors */
.footer-social a.social-facebook {
    background: #1877F2;
    color: #ffffff;
}

.footer-social a.social-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #ffffff;
}

.footer-social a.social-youtube {
    background: #FF0000;
    color: #ffffff;
}

.footer-social a.social-x {
    background: #000000;
    color: #ffffff;
}

.footer-social a.social-linkedin {
    background: #0A66C2;
    color: #ffffff;
}

.footer-title {
    font-size: 1.2rem;
    color: var(--white);
    font-weight: 600;
    margin-bottom: var(--space-lg);
    position: relative;
    padding-bottom: var(--space-sm);
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--secondary-cyan);
    border-radius: var(--radius-full);
}

.footer-links li {
    margin-bottom: var(--space-sm);
}

.footer-links a {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.95rem;
    transition: all var(--transition-base);
}

.footer-links a:hover {
    color: var(--secondary-cyan);
    transform: translateX(5px);
}

.footer-links a i {
    font-size: 0.8rem;
    color: var(--secondary-cyan);
}

.footer-contact-item {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.footer-contact-item i {
    color: var(--secondary-cyan);
    font-size: 1.2rem;
    margin-top: 3px;
}

.footer-contact-item p {
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-contact-item a {
    color: var(--secondary-cyan);
}

.footer-bottom {
    padding: var(--space-lg) 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.footer-bottom p {
    font-size: 0.9rem;
}

.footer-bottom a {
    color: var(--secondary-cyan);
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease;
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease;
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.8s ease;
}

.reveal-scale.active {
    opacity: 1;
    transform: scale(1);
}

/* ============================================
   BACK TO TOP BUTTON
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    z-index: var(--z-fixed);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow-blue);
}

/* ============================================
   LIGHTBOX
   ============================================ */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: var(--z-modal);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: var(--radius-md);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2.5rem;
    color: var(--white);
    cursor: pointer;
    transition: color var(--transition-base);
}

.lightbox-close:hover {
    color: var(--secondary-cyan);
}

/* ============================================
   LOADING SPINNER
   ============================================ */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

.loader-logo {
    width: 100px;
    margin-bottom: var(--space-lg);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.7;
    }
}

.loader-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--secondary-cyan);
    border-radius: var(--radius-full);
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   MEMBERSHIP CARDS
   ============================================ */
.membership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
}

.membership-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    text-align: center;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.membership-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-primary);
}

.membership-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.membership-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-lg);
    background: var(--gray-100);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

.membership-icon i {
    font-size: 2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.membership-card h3 {
    font-size: 1.5rem;
    color: var(--gray-900);
    margin-bottom: var(--space-md);
}

.membership-card p {
    color: var(--gray-600);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ============================================
   TIMELINE
   ============================================ */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: var(--space-xl) 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
}

.timeline-item {
    position: relative;
    padding: var(--space-xl);
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: var(--space-3xl);
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: var(--space-3xl);
}

.timeline-dot {
    position: absolute;
    top: var(--space-xl);
    width: 20px;
    height: 20px;
    background: var(--secondary-cyan);
    border: 4px solid var(--white);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-md);
    z-index: 5;
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -10px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -10px;
}

.timeline-content {
    background: var(--white);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.timeline-content h3 {
    font-size: 1.3rem;
    color: var(--gray-900);
    margin-bottom: var(--space-sm);
}

.timeline-content p {
    color: var(--gray-600);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */
@media (max-width: 1200px) {
    .nav-link {
        font-size: 0.8rem;
        padding: var(--space-sm) var(--space-sm);
    }

    .nav-left,
    .nav-right {
        padding: 0 var(--space-md);
    }
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .facility-content {
        grid-template-columns: 1fr;
    }

    .facility-content.reverse {
        direction: ltr;
    }

    .timeline::before {
        left: 30px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px !important;
        padding-right: 0 !important;
        text-align: left !important;
    }

    .timeline-item:nth-child(even) {
        left: 0;
    }

    .timeline-dot {
        left: 20px !important;
        right: auto !important;
    }
}

@media (max-width: 768px) {
    :root {
        font-size: 14px;
    }

    .nav-left,
    .nav-right {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
        position: absolute;
        right: var(--space-lg);
    }

    .mobile-menu {
        display: block;
    }

    .navbar-container {
        justify-content: flex-start;
    }

    .nav-logo {
        margin: 0 auto;
    }

    .hero-content {
        width: 95%;
    }

    .hero-contact-content {
        flex-direction: column;
        text-align: center;
    }

    .top-bar-content {
        justify-content: center;
    }

    .top-bar-links {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-social {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .page-header {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .section {
        padding: var(--space-2xl) 0;
    }

    .hero {
        min-height: 500px;
    }

    .hero-btn {
        padding: var(--space-sm) var(--space-lg);
        font-size: 0.9rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .video-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {

    .navbar,
    .footer,
    .back-to-top,
    .top-bar {
        display: none;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
    }

    .section {
        page-break-inside: avoid;
    }
}