/* 
   Darlene Deberry - Premium "Framer Style" Redesign
   Aesthetic: "Million Dollar Consultant" - Modern, Clean, Glassmorphism, Bento Grids
*/

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700&family=Outfit:wght@400;500;700;800&display=swap');

:root {
    /* Premium Palette */
    --color-bg: #F8F9FC;
    /* Very subtle cool gray */
    --color-surface: #FFFFFF;
    --color-primary: #0F172A;
    /* Deepest Navy/Black */
    --color-accent: #C2410C;
    /* Vibrant Burnt Orange/Terracotta */
    --color-accent-soft: #FFF7ED;
    --color-gold: #B45309;
    /* Deep Gold for subtle highlights */
    --color-text-main: #334155;
    --color-text-light: #64748B;

    /* Spacing & Layout */
    --radius-sm: 12px;
    --radius-md: 24px;
    --radius-lg: 40px;

    /* Effects */
    --shadow-soft: 0 20px 40px -10px rgba(15, 23, 42, 0.05);
    --shadow-hover: 0 30px 60px -12px rgba(15, 23, 42, 0.12);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: 1px solid rgba(255, 255, 255, 0.5);
    --blur: blur(20px);
}

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

body {
    background-color: var(--color-bg);
    font-family: 'Manrope', sans-serif;
    color: var(--color-text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
    font-family: 'Outfit', sans-serif;
    color: var(--color-primary);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

/* Typography Scale */
/* Typography Scale */
.display-text {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 800;
    /* Changed to solid dark color for better readability/accessibility */
    color: var(--color-primary);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 0px rgba(255, 255, 255, 0.5);
    /* separation from background */
}

/* Ensure headings on dark backgrounds are readable */
.bg-dark h1,
.bg-dark h2,
.bg-dark h3,
.bento-card.large h1,
.bento-card.large h2,
.bento-card.large h3 {
    color: #FFFFFF !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}


.section-heading {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.lead-text {
    font-size: 1.25rem;
    color: var(--color-text-light);
    max-width: 600px;
}

/* Utilities */
.container {
    width: 90%;
    max-width: 1400px;
    /* Wider container for modern feel */
    margin: 0 auto;
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border: var(--glass-border);
    border-radius: var(--radius-md);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 100px;
    /* Pill shape */
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.9rem;
    cursor: pointer;
}

.btn-primary {
    background: var(--color-primary);
    color: white;
    box-shadow: 0 10px 20px -5px rgba(15, 23, 42, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 20px 30px -8px rgba(15, 23, 42, 0.4);
}

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

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

/* Floating Navigation - "Island" Style */
.nav-wrapper {
    position: fixed;
    top: 2rem;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: center;
    pointer-events: none;
    /* Let clicks pass through around the nav */
}

.navbar {
    pointer-events: auto;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(12px);
    padding: 0.75rem 0.75rem 0.75rem 2rem;
    border-radius: 100px;
    display: flex;
    align-items: center;
    gap: 3rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.logo {
    color: white;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    text-decoration: none;
    white-space: nowrap;
}

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

.nav-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
    border-radius: 100px;
    transition: all 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.nav-cta {
    background: var(--color-accent);
    color: white !important;
    font-weight: 600;
}

.nav-cta:hover {
    background: #ea580c !important;
}

/* Modern Hero Section */
.hero {
    padding-top: 180px;
    /* Space for nav */
    padding-bottom: 100px;
    position: relative;
    overflow: hidden;
}

/* Abstract Background Blob */
.hero-bg-accent {
    position: absolute;
    top: -10%;
    right: -20%;
    width: 90vw;
    height: 90vw;
    max-width: 1000px;
    max-height: 1000px;
    background-image: url('../assets/images/premium_mesh_bg.png');
    background-size: cover;
    background-position: center;
    border-radius: 50%;
    z-index: -1;
    filter: blur(80px);
    opacity: 0.6;
    animation: floatBlob 20s infinite ease-in-out alternate;
    pointer-events: none;
}

@keyframes floatBlob {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(-20px, 30px);
    }
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-visual {
    position: relative;
}

.hero-image-container {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    /* Framer-style reveal mask setup */
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.5s ease;
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.2);
}

.hero-image-container:hover {
    transform: perspective(1000px) rotateY(0deg) scale(1.02);
}

.hero-img {
    width: 100%;
    height: auto;
    display: block;
}

/* Floating Badge on Hero Image */
.hero-badge {
    position: absolute;
    bottom: 30px;
    left: -30px;
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-hover);
    max-width: 250px;
    z-index: 2;
    animation: floatBadge 4s infinite ease-in-out;
}

.hero-badge strong {
    display: block;
    color: var(--color-primary);
    font-size: 1.2rem;
}

.hero-badge span {
    font-size: 0.9rem;
    color: var(--color-text-light);
}

@keyframes floatBadge {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Bento Grid Services */
.bento-section {
    padding: 8rem 0;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 4rem;
}

.bento-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.bento-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(194, 65, 12, 0.1);
}

.bento-card.large {
    grid-column: span 2;
    background: linear-gradient(135deg, var(--color-primary) 0%, #1e293b 100%);
    color: white;
}

.bento-card.large h3 {
    color: white;
}

.bento-card.large p {
    color: rgba(255, 255, 255, 0.7);
}

.bento-icon {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    padding: 1rem;
    background: var(--color-bg);
    border-radius: 12px;
}

.bento-card.large .bento-icon {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* Scrolling Partners Ticker */
.partners-marquee {
    background: white;
    padding: 3rem 0;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.marquee-content {
    display: inline-flex;
    gap: 4rem;
    animation: marquee 30s linear infinite;
}

.partner-logo {
    font-family: 'Outfit';
    font-weight: 700;
    font-size: 1.5rem;
    color: #94a3b8;
    /* Subtle gray */
    text-transform: uppercase;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Footer "Big Impact" Style */
.footer-big {
    background: var(--color-primary);
    color: white;
    padding: 8rem 0 4rem;
    border-radius: 0;
    text-align: center;
    position: relative;
}

.footer-title {
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 1;
    margin-bottom: 2rem;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Metrics / Infographics Section */
.metrics-section {
    padding: 6rem 0;
    background: #0f172a;
    color: white;
    position: relative;
    overflow: hidden;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    text-align: center;
}

.metric-card {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
}

.metric-value {
    font-size: 3.5rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    color: var(--color-accent);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.metric-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

/* Timeline */
.timeline-item {
    padding: 2rem 0;
    border-left: 2px solid var(--color-accent);
    padding-left: 2rem;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -9px;
    top: 2.5rem;
    width: 16px;
    height: 16px;
    background: var(--color-bg);
    border: 4px solid var(--color-accent);
    border-radius: 50%;
}

/* Specific Mobile Tweaks */
@media (max-width: 900px) {
    .nav-wrapper {
        top: 0;
        padding: 1rem;
    }

    .navbar {
        width: 100%;
        border-radius: 16px;
        justify-content: space-between;
        padding: 1rem;
        gap: 0;
    }

    .nav-links {
        display: none;
    }

    /* Use toggle for real impl */
    .menu-toggle {
        display: block;
    }

    /* Assume existing toggle logic */

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-image-container {
        transform: none;
        margin-top: 2rem;
    }

    .hero-badge {
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
    }

    .bento-grid {
        grid-template-columns: 1fr;
    }

    .bento-card.large {
        grid-column: span 1;
    }
}

/* Infographic: Rural Resilience Cycle (Redesigned) */
.infographic-container {
    padding: 3rem 0 5rem;
    background: #F8F9FC;
    text-align: center;
}

.cycle-diagram {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
    position: relative;
    align-items: flex-start;
}

/* Connecting Line (Desktop) */
@media (min-width: 900px) {
    .cycle-diagram::before {
        content: '';
        position: absolute;
        top: 24px;
        left: 50px;
        right: 50px;
        height: 2px;
        background: linear-gradient(90deg, var(--color-accent) 0%, rgba(194, 65, 12, 0.2) 100%);
        z-index: 0;
    }
}

.cycle-step {
    background: transparent;
    border: none;
    padding: 1rem;
    text-align: center;
    position: relative;
    box-shadow: none;
    transition: transform 0.3s ease;
}

.cycle-step:hover {
    transform: translateY(-5px);
}

.cycle-number {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 48px;
    height: 48px;
    background: white;
    color: var(--color-accent);
    border: 2px solid var(--color-accent);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
    font-family: 'Outfit', sans-serif;
}

.cycle-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cycle-desc {
    font-size: 0.9rem;
    color: var(--color-text-light);
    line-height: 1.5;
    max-width: 240px;
    margin: 0 auto;
}