:root {
    --color-primary: #8b1c31; /* Padma Burgundy */
    --color-primary-light: #a82740;
    --color-bg-main: #fcfbf9;
    --color-bg-alt: #f1eee9;
    --color-bg-dark: #2c2929;
    --color-text-main: #2b2b2b;
    --color-text-muted: #5e5e5e;
    --color-text-light: #f7f7f7;
    --color-accent: #d98a4a; /* Warm earthy orange */
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-smooth: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg-main);
    color: var(--color-text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
}

.text-light {
    color: var(--color-text-light);
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(252, 251, 249, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition-smooth);
}

.logo h1 {
    font-size: 1.5rem;
    color: var(--color-primary);
    font-weight: 800;
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo h1 span {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--color-text-muted);
    letter-spacing: 1px;
    margin-top: 4px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--color-text-main);
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition-smooth);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--color-primary);
    transition: var(--transition-smooth);
}

.nav-links a:hover {
    color: var(--color-primary);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 100% 0%, rgba(217, 138, 74, 0.08) 0%, transparent 40%),
                radial-gradient(circle at 0% 100%, rgba(139, 28, 49, 0.05) 0%, transparent 40%);
}

.hero-content {
    max-width: 600px;
    z-index: 2;
    padding-top: 80px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--color-primary);
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-family: var(--font-heading);
    transition: var(--transition-smooth);
    display: inline-block;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
    box-shadow: 0 10px 25px rgba(139, 28, 49, 0.3);
}

.btn-primary:hover {
    background-color: var(--color-primary-light);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(139, 28, 49, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-text-main);
    border: 2px solid var(--color-text-main);
}

.btn-secondary:hover {
    background-color: var(--color-text-main);
    color: white;
}

/* Dynamic Hero Graphics */
.hero-graphic {
    position: absolute;
    right: 5%;
    width: 45%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.hero-logo-anim {
    position: absolute;
    top: 50%;
    right: 5%;
    transform: translateY(-50%);
    width: 90%;
    max-width: 500px;
    height: 500px;
    overflow: visible;
    border-radius: 50%;
    transition: transform 0.1s linear;
}

/* Sections */
.section {
    padding: 8rem 5%;
}

.bg-light { background-color: var(--color-bg-alt); }
.bg-dark { background-color: var(--color-bg-dark); }

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-align: center;
    color: var(--color-primary);
}

.bg-dark .section-title { color: #fff; }

.section-description {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
    font-size: 1.1rem;
    color: var(--color-text-muted);
}

.bg-dark .section-description { color: #aaa; }

/* News Feed & Cards */
.news-feed {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
}

.news-card {
    display: flex;
    flex-direction: column;
}

.news-date {
    display: inline-block;
    background-color: var(--color-primary);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    align-self: flex-start;
    box-shadow: 0 4px 15px rgba(139, 28, 49, 0.2);
}

.glass-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    transition: var(--transition-smooth);
    box-shadow: 0 10px 40px rgba(0,0,0,0.03);
    position: relative;
    overflow: hidden;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
    background: rgba(255, 255, 255, 0.8);
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-smooth);
}

.glass-card:hover::before { transform: scaleX(1); }

.glass-card h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--color-primary);
    letter-spacing: -0.5px;
}

.glass-card p {
    margin-bottom: 1rem;
    color: var(--color-text-main);
    font-size: 1.05rem;
}

.glass-card p:last-child {
    margin-bottom: 0;
}

.news-highlight {
    font-size: 1.15rem !important;
    color: var(--color-primary) !important;
    border-left: 3px solid var(--color-accent);
    padding-left: 1rem;
    margin-bottom: 1.5rem;
}

/* Map and Gallery Grid */
.mb-4 {
    margin-bottom: 4rem;
}

.map-container {
    width: 100%;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(255,255,255,0.02);
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.overview-map {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1/1;
    background: rgba(255,255,255,0.05);
    position: relative;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.gallery-item:hover img {
    transform: scale(1.1) rotate(2deg);
}

/* Footer */
.footer {
    background-color: #1a1818;
    color: white;
    padding: 4rem 5% 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 2rem;
    margin-bottom: 2rem;
}

.footer-brand h2 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.footer-brand span {
    font-weight: 300;
    font-size: 0.9rem;
    color: #aaa;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-links a:hover { color: white; }

/* Animations */
.fade-in-up {
    animation: fadeInUp 1s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
    .hero-title { font-size: 3rem; }
    .hero-graphic { display: none; }
    .hero { justify-content: center; text-align: center; }
    .hero-content { padding-top: 120px; position: relative; z-index: 10; }
    .hero-actions { justify-content: center; }
}

@media (max-width: 768px) {
    .nav-links { display: none; } /* Mobile menu toggle needed later */
    .section { padding: 5rem 5%; }
    .section-title { font-size: 2.5rem; }
    .footer-content { flex-direction: column; gap: 2rem; text-align: center; }

    #project-map {
        min-height: 350px;
        height: 50vh;
    }
}

/* --- Leaflet Map Styles --- */
#project-map {
    width: 100%;
    height: 80vh;
    min-height: 600px;
    z-index: 1; /* Essential for proper interaction behind fixed navbar */
}

/* Custom Marker */
@keyframes pulseMarker {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(217, 138, 74, 0.7); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 10px rgba(217, 138, 74, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(217, 138, 74, 0); }
}

.custom-pulsing-div {
    width: 15px; 
    height: 15px; 
    background-color: var(--color-accent); 
    border-radius: 50%; 
    border: 2px solid var(--color-bg-dark); 
    animation: pulseMarker 2s infinite;
}

/* Custom Popup Styles */
.leaflet-popup-content-wrapper {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    color: var(--color-text-main);
}

.leaflet-popup-tip {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.leaflet-popup-content {
    font-family: var(--font-body);
    margin: 15px 20px;
}

.popup-title {
    color: var(--color-primary);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 4px;
}

.popup-location {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

/* --- Contact Form Styles --- */
.contact-form-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 3rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: left;
}

.form-group label {
    font-weight: 600;
    color: var(--color-primary);
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid rgba(139, 28, 49, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.8);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-text-main);
    transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(139, 28, 49, 0.1);
    background: #fff;
}

.form-submit-btn {
    width: 100%;
    margin-top: 1rem;
    border: none;
    font-size: 1.1rem;
    padding: 1.2rem;
}

.form-status {
    text-align: center;
    color: var(--color-primary);
    font-weight: 500;
    margin-top: 1rem;
}
