/* 
    CHAND Developer - Luxury Real Estate Theme
    Based on Brand Guidelines: Green (Trust), Blue (Stability), Red (Minimal), Gold (Luxury)
*/
:root {
    /* Palette */
    --color-primary-green: #2E7D32;   /* Property & Trust */
    --color-secondary-blue: #154360;  /* Construction & Stability */
    --color-accent-red: #C0392B;      /* Minimal Accent */
    --color-gold: #D4AF37;            /* Luxury CTA */
    
    /* Neutrals */
    --color-bg-white: #FFFFFF;
    --color-bg-light: #F9FAFB;
    --color-text-dark: #1A1A1A;
    --color-text-muted: #555555;
    --color-white: #ffffff;
    
    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Poppins', sans-serif;
    
    /* Spacing & UI */
    --spacing-section: 100px;
    --container-width: 1200px;
    --border-radius: 2px; /* Sharp, architectural edges */
    --transition-speed: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Responsive Image Reset */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

body {
    font-family: var(--font-body);
    color: var(--color-text-dark);
    line-height: 1.7;
    background-color: var(--color-bg-white);
    overflow-x: hidden;
}

body.no-scroll {
    overflow: hidden;
}

/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-secondary-blue);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-speed) ease;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: var(--spacing-section) 0;
}

.bg-light { background-color: var(--color-bg-light); }
.bg-dark { background-color: var(--color-secondary-blue); color: var(--color-white); }
.gold-text { color: var(--color-gold) !important; }
.center-text { text-align: center; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 18px 36px; /* Generous padding for luxury feel */
    min-height: 54px;   /* Accessibility: Minimum touch target */
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease-in-out; /* Smooth hover animation */
    border: 1px solid transparent;
    border-radius: var(--border-radius);
    text-align: center;
}

.btn-primary {
    background-color: var(--color-gold);
    color: var(--color-white);
    border-color: var(--color-gold);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--color-gold);
    transform: translateY(-2px) !important; /* Override animation lock */
    box-shadow: 0 10px 20px rgba(0,0,0,0.2); /* Soft shadow on interaction */
}

.btn-primary:focus-visible {
    outline: 2px solid var(--color-white);
    outline-offset: 4px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 1.2rem 0;
    z-index: 1000;
    transition: background 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
    padding: 0.8rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 60px;
    width: auto;
    margin-top: 4px; /* Optical alignment correction */
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.nav-links a {
    font-family: var(--font-body);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    font-weight: 500;
    color: var(--color-text-dark);
    transition: color var(--transition-speed);
}

.nav-links a:hover {
    color: var(--color-primary-green);
}

.btn-nav {
    background-color: var(--color-gold);
    color: #fff !important;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    border: none;
    white-space: nowrap;
}

.btn-nav:hover {
    background-color: var(--color-primary-green);
    transform: translateY(-2px);
}

/* Sidebar Logo (Mobile Only) */
.sidebar-logo {
    display: none;
}

/* Sidebar Socials (Mobile Only) */
.sidebar-socials {
    display: none;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
    background: transparent;
    border: none;
    z-index: 1100;
    position: relative;
    padding: 15px; /* Increased tap area */
    transition: transform 0.2s ease;
}

.bar {
    display: block;
    width: 25px;
    height: 2px; /* Softened styling */
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: var(--color-text-dark);
}

.hamburger:hover {
    transform: scale(1.05); /* Subtle feedback */
}

.navbar.scrolled .bar {
    background-color: var(--color-text-dark);
}

.hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.active .bar:nth-child(2) { opacity: 0; }
.hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Nav Overlay */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2); /* Even lighter for premium feel */
    backdrop-filter: blur(4px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Hero Section */
.hero {
    height: 100vh;
    background-color: var(--color-secondary-blue); /* Fallback */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-white);
    overflow: hidden; /* Prevent scrollbars from zoom effect */
    padding-top: 180px; /* Move content downward for breathing room */
    flex-direction: column; /* Stack content and dots */
}

/* Hero Carousel */
.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1);
    transition: opacity 1.5s cubic-bezier(0.2, 1, 0.3, 1), transform 8s linear;
    z-index: 0;
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1.05);
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* Deep Teal/Green Overlay for Cinematic Contrast */
    background: linear-gradient(135deg, rgba(5, 35, 35, 0.85), rgba(0, 60, 60, 0.75));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 65%; /* Limit width for focus */
    max-width: 1000px;
    transition: opacity 0.5s ease;
}

/* Carousel Dots */
.hero-dots {
    position: relative;
    margin-top: 50px; /* Closer to CTA but spaced */
    display: flex;
    gap: 12px;
    z-index: 3;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-dot.active {
    background-color: var(--color-gold);
    transform: scale(1.2);
}

.hero-pre-title {
    display: block;
    font-family: var(--font-body);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 35px; /* Increased spacing */
    line-height: 1.1;
    color: #fff;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 15px rgba(0,0,0,0.3);
}

.hero-accent {
    color: var(--color-gold);
    font-style: italic;
    display: inline-block; /* Required for transform animation */
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 60px; /* Increased spacing */
    font-weight: 300;
    color: #f0f0f0;
}

/* Hero CTA Specifics */
.hero-content .btn {
    min-width: 220px;
    padding: 20px 40px; /* Taller button */
    display: inline-block;
}

/* 
 * Cinematic Text Animations 
 * Sequence: Pre-title -> Title -> Accent -> Subtitle -> Button
 */

/* Initial State (Hidden by default to prevent flash on load) */
.hero-pre-title,
.hero-title,
.hero-subtitle,
.hero-content .btn,
.hero-accent {
    opacity: 0;
}

/* Animation Definitions */
@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(30px); filter: blur(10px); }
    100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes fadeInBlur {
    0% { opacity: 0; filter: blur(10px); transform: translateY(20px); }
    100% { opacity: 1; filter: blur(0); transform: translateY(0); }
}

@keyframes scaleIn {
    0% { opacity: 0; transform: scale(0.9); filter: blur(5px); }
    100% { opacity: 1; transform: scale(1); filter: blur(0); }
}

@keyframes goldReveal {
    0% { opacity: 0; transform: translateY(20px); color: #fff; filter: blur(5px); }
    100% { opacity: 1; transform: translateY(0); color: var(--color-gold); filter: blur(0); }
}

/* Sequencing Delays */
.hero-content.animate-active .hero-pre-title {
    animation: fadeInUp 1.5s cubic-bezier(0.2, 1, 0.3, 1) forwards 0.2s;
}

.hero-content.animate-active .hero-title {
    animation: fadeInUp 1.5s cubic-bezier(0.2, 1, 0.3, 1) forwards 0.5s;
}

.hero-content.animate-active .hero-accent {
    animation: goldReveal 1.8s cubic-bezier(0.2, 1, 0.3, 1) forwards 1.0s; /* Delayed emphasis */
}

.hero-content.animate-active .hero-subtitle {
    animation: fadeInBlur 1.8s cubic-bezier(0.2, 1, 0.3, 1) forwards 1.4s;
}

.hero-content.animate-active .btn {
    animation: fadeInUp 1.5s cubic-bezier(0.2, 1, 0.3, 1) forwards 1.8s;
}

/* Page Header (For Sub-pages) */
.page-header {
    height: 65vh; /* Balanced height */
    min-height: 500px;
    background-color: var(--color-secondary-blue);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-white);
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax effect */
    padding-top: 160px; /* Navbar clearance + visual offset */
    margin-bottom: var(--spacing-section);
    overflow: hidden;
}

/* Compact Header for Contact Page */
.page-header.compact {
    height: 50vh;
    min-height: 400px;
}

.page-header .hero-overlay {
    background: linear-gradient(to bottom, rgba(21, 67, 96, 0.85), rgba(5, 35, 35, 0.95));
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1;
}

.page-header .hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 900px;
    max-width: var(--container-width);
    padding: 0 20px;
    margin: 0 auto;
    /* Animation handled by JS or default CSS animation below */
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards 0.3s;
}

.page-header .hero-pre-title {
    display: inline-block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--color-gold);
    margin-bottom: 1rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.page-header .hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
    font-size: 4rem;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.page-header .hero-subtitle {
    font-size: 1.15rem;
    font-size: 1.25rem;
    font-weight: 300;
    color: rgba(255,255,255,0.9);
    margin-bottom: 2.5rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    margin-left: 0;
    margin-right: 0;
}

.page-header .btn {
    min-width: 180px;
    padding: 16px 32px;
    background-color: transparent;
    border: 1px solid var(--color-gold);
    color: var(--color-gold);
}

.page-header .btn:hover {
    background-color: var(--color-gold);
    color: var(--color-white);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.2);
}

/* Section Headers */
.section-label {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    color: var(--color-primary-green);
    margin-bottom: 0.5rem;
    display: block;
    font-weight: 600;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--color-text-dark);
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    /* See .editorial-layout below for specific overrides */
}

.about-image img {
    width: 100%;
    height: auto;
    box-shadow: 20px 20px 0px var(--color-bg-light);
    border-radius: var(--border-radius);
}

/* ----------------------------------------------------------------
   Who We Are - Luxury Editorial Redesign
---------------------------------------------------------------- */
.about-grid.editorial-layout {
    align-items: start; /* Top alignment */
    gap: 80px; /* Generous whitespace */
    align-items: center;
    gap: 60px;
    grid-template-columns: 0.9fr 1.1fr;
}

.about-grid.editorial-layout .about-text {
    position: relative;
    padding-left: 35px; /* Space for accent line */
    border-left: 2px solid var(--color-gold); /* Gold Accent Line */
    max-width: 560px; /* Reduced width for readability */
    padding-left: 0;
    border-left: none;
    max-width: 100%;
    text-align: left;
}

.about-grid.editorial-layout .section-label {
    letter-spacing: 3px;
    font-size: 0.85rem;
    color: var(--color-primary-green);
    margin-bottom: 1.2rem;
}

.about-grid.editorial-layout .section-title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    line-height: 1.25;
    margin-bottom: 1.8rem;
}

.about-grid.editorial-layout .section-title .highlight {
    color: var(--color-gold);
    font-weight: 400;
    font-style: italic;
}

.about-grid.editorial-layout p {
    font-size: 1.05rem;
    line-height: 1.8; /* Increased line height */
    margin-bottom: 1.5rem;
    color: var(--color-text-muted);
}

.about-grid.editorial-layout .about-image {
    border-radius: 12px; /* Subtle rounded corners */
    box-shadow: 0 20px 50px rgba(0,0,0,0.08); /* Soft depth shadow */
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    transform: translateZ(0); /* Fix for safari overflow */
}

.about-grid.editorial-layout .about-image img {
    border-radius: 12px;
    border-radius: 16px;
    box-shadow: none; /* Reset default shadow */
    width: 100%;
    transition: transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Smooth slow zoom */
}

.about-grid.editorial-layout .about-image:hover img {
    transform: scale(1.05);
}

.read-more-link {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--color-secondary-blue);
    border-bottom: 1px solid var(--color-gold);
    padding-bottom: 4px;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.read-more-link:hover {
    color: var(--color-gold);
    border-color: transparent;
    transform: translateX(5px);
}

/* Staggered Animation for Editorial Content */
.reveal-group .reveal-item {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal-group.active .reveal-item {
    opacity: 1;
    transform: translateY(0);
}

.reveal-group.active .reveal-item:nth-child(1) { transition-delay: 0.1s; } /* Label */
.reveal-group.active .reveal-item:nth-child(2) { transition-delay: 0.25s; } /* Title */
.reveal-group.active .reveal-item:nth-child(3) { transition-delay: 0.4s; } /* P1 */
.reveal-group.active .reveal-item:nth-child(4) { transition-delay: 0.55s; } /* P2 */
.reveal-group.active .reveal-item:nth-child(5) { transition-delay: 0.7s; } /* Link */

.stats-grid {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    border-top: 1px solid #ddd;
    padding-top: 30px;
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--color-gold);
    font-weight: 700;
    /* Counter Animation Initial State */
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.stat-number.count-active {
    opacity: 1;
    transform: translateY(0);
}

.stat-desc {
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.project-card {
    background: var(--color-white);
    border: none;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    cursor: pointer;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.card-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .card-image img {
    transform: scale(1.05);
}

.badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 0.4rem 0.8rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    border-radius: var(--border-radius);
}

.badge.ongoing { background: var(--color-primary-green); color: white; }
.badge.completed { background: var(--color-secondary-blue); color: white; }

.card-content {
    padding: 25px;
}

.card-content h3 { 
    font-size: 1.5rem; 
    margin-bottom: 5px; 
    color: var(--color-secondary-blue);
}

.location { color: var(--color-text-muted); font-size: 0.9rem; margin-bottom: 15px; }
.details { font-weight: 600; margin-bottom: 20px; color: var(--color-text-dark); }
.link-arrow { color: var(--color-gold); font-weight: 600; font-size: 0.9rem; }

/* News & Events */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.news-card {
    background: var(--color-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.news-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-date {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--color-gold);
    color: var(--color-white);
    padding: 5px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: var(--border-radius);
}

.news-content {
    padding: 25px;
}

.news-content h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--color-secondary-blue);
    line-height: 1.4;
}

.news-content p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin-bottom: 20px;
    line-height: 1.6;
}

.read-more {
    color: var(--color-gold);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.read-more:hover {
    color: var(--color-primary-green);
}

/* Contact */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: start;
}

.contact-info {
    padding-top: 10px;
}

.contact-form {
    margin-top: 60px;
}

.trust-text {
    color: var(--color-text-muted);
    margin-bottom: 30px;
    font-weight: 400;
    line-height: 1.8;
    font-size: 1.05rem;
    border-left: 3px solid var(--color-gold);
    padding-left: 20px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 35px;
    padding-left: 0;
    border-left: none;
}

.icon-box {
    flex-shrink: 0;
    width: 45px;
    height: 45px;
    background-color: rgba(46, 125, 50, 0.1); /* Light Green */
    color: var(--color-primary-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.info-item:hover .icon-box {
    background-color: var(--color-primary-green);
    color: var(--color-white);
}

.info-item strong {
    display: block;
    font-family: var(--font-heading);
    color: var(--color-secondary-blue);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
    font-weight: 700;
}

.info-item p {
    margin-bottom: 0;
    font-size: 1rem;
    color: var(--color-text-dark);
}

.form-group { 
    margin-bottom: 15px; 
    position: relative;
}

.form-group label { 
    display: block; 
    margin-bottom: 5px; 
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-text-muted);
    font-weight: 500;
    transition: color 0.3s ease;
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background-color: var(--color-white);
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-text-dark);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-group input:focus, 
.form-group textarea:focus {
    outline: none;
    background-color: #fff;
    border-color: var(--color-primary-green); /* Trust color on focus */
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.1);
}

.form-group:focus-within label {
    color: var(--color-primary-green);
}

.contact-form .btn {
    /* Centered Button Logic */
    display: inline-block;
    min-width: 200px;
    padding: 14px 36px;
    font-size: 0.9rem;
    letter-spacing: 2px;
    background-color: var(--color-gold);
    border-color: var(--color-gold);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.2);
}

.form-note {
    margin-top: 15px;
    color: var(--color-text-muted);
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.contact-form .btn:hover {
    background-color: transparent;
    color: var(--color-gold);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.15);
}

/* Footer */
.footer {
    background: var(--color-secondary-blue);
    color: #888;
    padding: 60px 0;
    font-size: 0.9rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}

.footer-col h3, .footer-col h4 { color: white; margin-bottom: 20px; }
.footer-col a { display: block; margin-bottom: 10px; color: rgba(255,255,255,0.8); }
.footer-col a:hover { color: var(--color-gold); }

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* 4. Contact Section Specific Animations */
.contact-container .reveal {
    transition: all 1.0s ease-out;
}

.contact-container .contact-info.reveal {
    transform: translateX(-20px); /* Subtle Left Fade In */
}

.contact-container .contact-form.reveal {
    transform: translateY(20px); /* Subtle Bottom Fade In */
}

.contact-container .reveal.active {
    transform: translate(0);
    opacity: 1;
}

.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ----------------------------------------------------------------
   New Sections: Timeline, Features, CTA
---------------------------------------------------------------- */

/* Timeline Section */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 0;
}

/* Vertical Line */
.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: rgba(212, 175, 55, 0.3); /* Gold with opacity */
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
    box-sizing: border-box;
}

.timeline-item.left { left: 0; text-align: right; }
.timeline-item.right { left: 50%; }

.timeline-content {
    padding: 30px;
    background-color: var(--color-white);
    border-radius: var(--border-radius);
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 3px solid var(--color-gold); /* Luxury accent */
}

.timeline-content:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.timeline-year {
    color: var(--color-gold);
    font-weight: 700;
    font-size: 1.5rem;
    font-family: var(--font-heading);
    margin-bottom: 10px;
    display: block;
}

/* Timeline Dots */
.timeline-item::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    right: -8px;
    background-color: var(--color-white);
    border: 3px solid var(--color-gold);
    top: 30px;
    border-radius: 50%;
    z-index: 1;
    transition: background-color 0.3s ease;
}

.timeline-item:hover::after { background-color: var(--color-gold); }
.timeline-item.right::after { left: -8px; }

/* Why Choose Us (Features) */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-box {
    text-align: center;
    padding: 40px 30px;
    background: var(--color-white);
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    border-color: rgba(212, 175, 55, 0.3);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: rgba(46, 125, 50, 0.08); /* Light Green */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: var(--color-primary-green);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.feature-box:hover .feature-icon {
    background: var(--color-primary-green);
    color: var(--color-white);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(rgba(21, 67, 96, 0.92), rgba(5, 35, 35, 0.92)), url('https://images.unsplash.com/photo-1560518883-ce09059eeffa?ixlib=rb-4.0.3&auto=format&fit=crop&w=1600&q=80');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    color: var(--color-white);
    text-align: center;
    padding: 100px 0;
    margin-top: var(--spacing-section);
}

.cta-section h2 { color: var(--color-white); margin-bottom: 20px; }
.cta-section p { color: rgba(255,255,255,0.85); font-size: 1.1rem; margin-bottom: 40px; }

/* Founder's Message Section */
.founder-section {
    background-color: var(--color-secondary-blue);
    color: var(--color-white);
    position: relative;
    overflow: hidden;
}

.founder-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 80px;
    align-items: center;
}

.founder-image img {
    border-radius: var(--border-radius);
    box-shadow: 20px 20px 0 rgba(212, 175, 55, 0.15); /* Subtle Gold Shadow */
    filter: brightness(0.95) contrast(1.05); /* Cinematic look */
}

.founder-text {
    position: relative;
}

.founder-quote-icon {
    font-family: var(--font-heading);
    font-size: 5rem;
    line-height: 1;
    color: var(--color-gold);
    opacity: 0.2;
    position: absolute;
    top: -40px;
    left: -20px;
}

.founder-message {
    font-size: 1.05rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    font-weight: 300;
    position: relative;
    z-index: 1;
}

.founder-name {
    font-size: 1.5rem;
    color: var(--color-gold);
    margin-bottom: 5px;
}

.founder-role {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.7;
}

/* ----------------------------------------------------------------
   Vision & Mission Redesign (Premium)
---------------------------------------------------------------- */
.philosophy-section {
    background: linear-gradient(to bottom, #ffffff, #f8fcf8); /* Subtle premium gradient */
    position: relative;
    overflow: hidden;
    padding: 100px 0;
}

/* Background Decoration (Subtle Glow) */
.philosophy-section::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -5%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(46, 125, 50, 0.03) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.vision-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    position: relative;
    z-index: 1;
    margin-top: 60px;
}

.vision-card {
    background: var(--color-white);
    border-radius: 16px; /* Soft rounded corners */
    padding: 50px 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03); /* Soft elevation */
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border: 1px solid rgba(0,0,0,0.02);
    position: relative;
    overflow: hidden;
}

/* Hover Effects */
.vision-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

/* Icon Styling */
.vision-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
    /* Circular Gradient Background */
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.12), rgba(46, 125, 50, 0.02));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary-green);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.vision-card:hover .vision-icon {
    transform: scale(1.15); /* Pulse effect on hover */
}

.vision-icon svg {
    width: 36px;
    height: 36px;
    stroke-width: 1.5;
}

/* Typography */
.vision-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-secondary-blue);
    margin-bottom: 15px;
}

.vision-card p {
    font-family: var(--font-body);
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--color-text-muted);
}

/* Section Header Divider */
.philosophy-section .section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--color-gold);
    margin: 20px auto 0;
    border-radius: 2px;
}

/* ----------------------------------------------------------------
   Premium Contact Page Styles
---------------------------------------------------------------- */
.contact-premium-layout {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 80px; /* Increased gap for elegance */
    align-items: stretch; /* Ensure equal height cards */
    margin-top: 0; /* Removed overlap for cleaner hierarchy */
    position: relative;
    z-index: 1;
    margin-bottom: 0;
}

.contact-card {
    background: var(--color-white);
    padding: 50px 40px;
    border-radius: 4px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.06); /* Softer, refined shadow */
    height: 100%;
    position: relative;
    overflow: hidden;
    border-top: 4px solid var(--color-gold); /* Gold accent top */
    border: 1px solid rgba(0,0,0,0.02); /* Subtle definition */
}

.contact-card .section-title {
    font-size: 2rem;
}

/* Dark Contact Card Variant */
.contact-card.contact-card-dark {
    background-color: var(--color-secondary-blue);
    color: var(--color-white);
    border: none;
    border-top: 4px solid var(--color-gold);
}

.contact-card.contact-card-dark .section-title {
    color: var(--color-white);
}

.contact-card.contact-card-dark .section-label {
    color: var(--color-gold);
}

.contact-card.contact-card-dark .trust-text {
    color: rgba(255, 255, 255, 0.8);
    border-left-color: var(--color-gold);
}

.contact-card.contact-card-dark .info-item strong {
    color: var(--color-gold);
}

.contact-card.contact-card-dark .info-item p,
.contact-card.contact-card-dark .info-item a {
    color: rgba(255, 255, 255, 0.9);
}

.contact-card.contact-card-dark .icon-box {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-gold);
}

.contact-card.contact-card-dark .info-item:hover .icon-box {
    background-color: var(--color-gold);
    color: var(--color-white);
}

/* Floating Labels Form */
.form-group-floating {
    position: relative;
    margin-bottom: 35px;
}

.form-group-floating input,
.form-group-floating textarea {
    width: 100%;
    padding: 12px 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid #e0e0e0;
    border-radius: 0;
    font-family: var(--font-body);
    font-size: 1.05rem;
    color: var(--color-text-dark);
    transition: all 0.3s ease;
}

.form-group-floating textarea {
    min-height: 100px;
    resize: vertical;
}

.form-group-floating label {
    position: absolute;
    left: 0;
    top: 12px;
    color: #999;
    font-size: 1rem;
    pointer-events: none;
    transition: all 0.3s ease;
}

/* Floating Label Active State */
.form-group-floating input:focus,
.form-group-floating textarea:focus {
    outline: none;
    border-bottom-color: var(--color-gold);
}

.form-group-floating input:focus ~ label,
.form-group-floating input:not(:placeholder-shown) ~ label,
.form-group-floating textarea:focus ~ label,
.form-group-floating textarea:not(:placeholder-shown) ~ label {
    top: -20px;
    font-size: 0.75rem;
    color: var(--color-gold);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Dark CTA Section */
.cta-dark {
    background-color: #0f2b2f; /* Deep Charcoal/Green */
    color: var(--color-white);
    padding: 100px 0;
    text-align: center;
    position: relative;
}

.cta-dark h2 {
    color: var(--color-white);
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.cta-dark p {
    color: rgba(255,255,255,0.7);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.btn-outline-light {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: var(--color-white);
    margin: 0 10px;
}

.btn-outline-light:hover {
    background: var(--color-white);
    color: var(--color-text-dark);
    border-color: var(--color-white);
}

/* Map Section */
.map-section {
    width: 100%;
    height: 500px;
    background-color: var(--color-bg-light);
    margin-bottom: -6px; /* Remove bottom gap */
}

.map-section iframe {
    width: 100%;
    height: 100%;
    border: none;
    filter: grayscale(100%) invert(92%) contrast(83%); /* Luxury Dark Mode Map */
}

/* Responsive */
@media (max-width: 1024px) {
    .hamburger { display: block; }
    .nav-links {
        position: fixed;
        top: 0; right: -100%;
        height: 100vh; width: 70%; max-width: 300px;
        background-color: var(--color-bg-white);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 80px; /* Adjusted for logo presence */
        gap: 15px; /* Reduced gap for compact feel */
        transition: right 0.4s ease-in-out, box-shadow 0.3s ease; /* Smooth ease-in-out */
        z-index: 1000;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transform: none;
        left: auto;
    }
    
    /* Mobile Sidebar Logo */
    .sidebar-logo {
        display: block;
        margin-bottom: 15px;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(0,0,0,0.05); /* Subtle separator */
        padding-bottom: 15px;
    }
    .sidebar-logo img {
        height: 45px;
        width: auto;
        margin: 0 auto;
    }

    .nav-links.active { right: 0; }
    .nav-links a {
        color: var(--color-text-dark);
        font-size: 1.05rem; /* Reduced font size */
        letter-spacing: 1px;
        display: block;
        padding: 10px 0; /* Reduced padding */
        transition: color 0.2s ease, transform 0.2s ease;
    }
    .nav-links a:active {
        transform: scale(0.98) translateX(3px); /* Tactile press feedback */
        color: var(--color-gold);
    }
    .nav-links a:hover {
        color: var(--color-gold);
        transform: translateX(5px);
    }
    .nav-links .btn-nav {
        margin-top: 15px;
        width: 100%; /* Touch-friendly width */
        text-align: center;
        background-color: var(--color-gold); /* Prominent CTA */
        color: var(--color-white) !important;
        box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2);
        padding: 14px 10px;
        border-radius: 4px;
        transition: all 0.25s ease-in-out;
    }
    .nav-links .btn-nav:hover,
    .nav-links .btn-nav:active {
        background-color: #bfa13a; /* Darker gold */
        transform: scale(1.03);
        box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
    }

    /* Sidebar Social Icons */
    .sidebar-socials {
        display: flex;
        justify-content: center;
        gap: 15px;
        margin-top: 25px;
        width: 100%;
    }
    .sidebar-socials a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background-color: rgba(0,0,0,0.04);
        padding: 0;
    }
    .sidebar-socials a:hover {
        background-color: var(--color-gold);
        color: var(--color-white);
        transform: translateY(-3px);
    }
    
    /* Staggered Menu Animation */
    .nav-links li {
        opacity: 0;
        transform: translateY(15px);
        transition: opacity 0.4s ease, transform 0.4s ease;
    }
    .nav-links.active li { opacity: 1; transform: translateY(0); }
    .nav-links.active li:nth-child(1) { transition-delay: 0.1s; }
    .nav-links.active li:nth-child(2) { transition-delay: 0.15s; }
    .nav-links.active li:nth-child(3) { transition-delay: 0.2s; }
    .nav-links.active li:nth-child(4) { transition-delay: 0.25s; }
    .nav-links.active li:nth-child(5) { transition-delay: 0.3s; }
    .nav-links.active li:nth-child(6) { transition-delay: 0.35s; }
    .nav-links.active li:nth-child(7) { transition-delay: 0.4s; }
}

@media (max-width: 768px) {
    :root { --spacing-section: 60px; }
    .hero-content { width: 90%; } /* Increase horizontal padding area */

    /* Hero Mobile Adjustments */
    .hero {
        height: auto;
        min-height: 85vh; /* Reduced height to avoid excessive space */
        padding-top: 130px; /* Prevent navbar overlap */
        padding-bottom: 60px;
    }
    
    /* Page Header Mobile */
    .page-header { 
        height: auto; 
        min-height: 70vh; 
        min-height: 600px; 
        padding-top: 120px; 
        padding-bottom: 60px; 
        padding-bottom: 80px; 
        background-attachment: scroll; 
        text-align: center;
    }
    .page-header .hero-title { font-size: 2.2rem; }
    .page-header .hero-title { font-size: 2.5rem; }
    .page-header .hero-subtitle { font-size: 1.1rem; }

    .hero-title { 
        font-size: 2.2rem; /* Reduced font size */
        margin-bottom: 20px;
    }
    .hero-subtitle { margin-bottom: 35px; }

    .page-header .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    
    /* Ensure CTA is visible and tap-friendly */
    .hero-content .btn { padding: 18px 32px; }

    .section-title { font-size: 2rem; }
    .about-grid, .contact-container, .footer-content { grid-template-columns: 1fr; gap: 40px; }
    .about-text { text-align: center; }
    .stats-grid { justify-content: center; }
    .contact-form { margin-top: 0; }
    
    /* Editorial Layout Mobile */
    .about-grid.editorial-layout { gap: 50px; }
    .about-grid.editorial-layout { gap: 40px; grid-template-columns: 1fr; }
    .about-grid.editorial-layout .about-text { 
        text-align: left; /* Enforce left align */
        padding-left: 25px;
        padding-left: 0;
        max-width: 100%;
    }
    .about-grid.editorial-layout .section-title { font-size: 2.2rem; }
    
    /* Founder Section Mobile */
    .founder-grid { grid-template-columns: 1fr; gap: 50px; }
    .founder-image { max-width: 400px; margin: 0 auto; order: -1; }
    .founder-text { text-align: center; }
    .founder-quote-icon { left: 50%; transform: translateX(-50%); top: -50px; }
    
    /* Vision Grid Tablet */
    .vision-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 cards per row */
    }
    .vision-card:last-child {
        grid-column: span 2; /* Center the last card */
        max-width: 60%;
        margin: 0 auto;
    }

    /* Timeline Mobile */
    .timeline::after { left: 31px; }
    .timeline-item { width: 100%; padding-left: 70px; padding-right: 25px; }
    .timeline-item.left, .timeline-item.right { left: 0; text-align: left; }
    .timeline-item::after { left: 23px; }
    .timeline-item.right::after { left: 23px; }

    /* Contact Page Mobile */
    .contact-premium-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .page-header.compact { height: auto; padding-bottom: 60px; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 1.8rem; } /* Further reduced */
    .hero-subtitle { font-size: 1rem; }
    /* Reset global mobile btn style for hero to keep it compact */
    .hero-content .btn { 
        width: auto; 
        min-width: 180px; 
        padding: 16px 30px;
    }
    .btn { width: 85%; max-width: 360px; display: block; margin: 0 auto; }
    .container { padding: 0 20px; }
    
    /* Vision Grid Mobile */
    .vision-grid { grid-template-columns: 1fr; gap: 30px; }
    .vision-card:last-child { grid-column: auto; max-width: 100%; }
    .vision-card { padding: 40px 25px; }

    /* Map Mobile */
    .map-section { height: 350px; }
}

/* ----------------------------------------------------------------
   News & Events Page Styles
---------------------------------------------------------------- */
.news-category {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--color-secondary-blue);
    padding: 5px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: var(--border-radius);
    letter-spacing: 1px;
    z-index: 2;
}

.featured-news-card {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    background: var(--color-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    margin-bottom: 60px;
    border: 1px solid rgba(0,0,0,0.03);
}

.featured-news-card .news-image {
    height: 100%;
    min-height: 400px;
}

.featured-news-card .news-content {
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (max-width: 900px) {
    .featured-news-card { grid-template-columns: 1fr; }
    .featured-news-card .news-image { height: 300px; min-height: auto; }
    .featured-news-card .news-content { padding: 40px 30px; }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .vision-card, 
    .vision-icon, 
    .vision-card:hover,
    .vision-card:hover .vision-icon {
        transform: none;
        transition: none;
    }
}