/**
 * SRIJAN Theme CSS
 * Earthy colors and elegant layout
 */

:root {
    /* Earthy Color Palette */
    --soil-brown: #004a8d;
    --soil-light: #ed1c24;
    --leaf-green: #004a8d;
    --leaf-light: #004a8d;
    --water-blue: #004a8d;
    --millet-yellow: #004a8d;
    --millet-light: #F4D03F;
    --primary-blue: #004a8d;
    --primary-blue-light: rgba(0, 74, 141, .1);
    --primary-red: #ed1c24;
    --dark-red: #cb131a;
    --primary-red-light: rgba(237,28,36,.1);

    /* Neutrals */
    --bg-light: #e1f3fc;
    /* Soft off-white like unbleached paper */
    --text-dark: #2C3E50;
    --text-muted: #7F8C8D;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

.letter-spacing-1 {
    letter-spacing: 1px;
}

/* Custom Primary Button */
.btn-primary {
    background-color: var(--primary-red);
    border-color: var(--primary-red);
    padding: 1rem 2rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--dark-red);
    border-color: var(--dark-red);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(92, 64, 51, 0.4);
}

/* Navigation */
#mainNav {
    padding-top: 1rem;
    padding-bottom: 1rem;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    background-color: transparent;
}

#mainNav.navbar-scrolled {
    background-color: var(--primary-blue);
    backdrop-filter: blur(10px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Mobile menu */
#mainNav .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
}

#mainNav .navbar-toggler:focus {
    box-shadow: none;
}

@media (max-width: 991.98px) {
    #mainNav .navbar-collapse {
        background-color: rgba(92, 64, 51, 0.97);
        backdrop-filter: blur(10px);
        border-radius: 0.5rem;
        margin-top: 0.5rem;
        padding: 1rem;
    }

    #mainNav .navbar-collapse .nav-link {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    #mainNav .navbar-collapse .nav-item:last-child .nav-link {
        border-bottom: none;
    }
}

/* Hero Section */
.hero-section {
    position: relative;
    padding-top: 10rem;
    padding-bottom: 8rem;
    background: linear-gradient(to bottom, rgba(44, 62, 80, 0.6) 0%, rgba(92, 64, 51, 0.7) 100%), url('../images/banner.jpg');
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    min-height: 75vh;
    display: flex;
    flex-direction: column;
}

@media (max-width: 991.98px) {
    .hero-section {
        background-attachment: scroll;
    }
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.divider {
    max-width: 5rem;
    margin: 1.5rem auto;
    border-width: 0.2rem;
    border-color: var(--millet-yellow);
    opacity: 1;
}

/* Impact Overlay Counters */
.impact-overlay {
    position: relative;
    z-index: 2;
    transform: translateY(3rem);
}

.impact-glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.stat-icon {
    font-size: 2.5rem;
    color: var(--primary-red) !important;
    margin-bottom: 10px;
}

.stat-icon i{ color: var(--primary-red) !important;}

.counter-value {
    font-size: 3rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    display: inline-block;
}

/* Animations */
.animate-fade-in {
    animation: fadeIn 1.5s ease-out forwards;
}

.animate-fade-in-up {
    animation: fadeInUp 1.2s ease-out forwards;
    opacity: 0;
    animation-delay: 0.3s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Media Queries */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .impact-overlay {
        transform: translateY(0);
        margin-top: 3rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }

    #mainNav .navbar-brand img {
        height: 28px;
    }
}

/* Base sections */
.page-section {
    padding: 6rem 0;
}

/* About Section */
.icon-challenge {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(220, 53, 69, 0.1);
    border-radius: 12px;
}

.solution-box {
    transition: transform 0.3s ease;
}

.solution-icon-box {
    background-color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.icon-circle {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

/* Geography Section */
.geography-list .list-group-item {
    transition: all 0.2s ease;
    cursor: pointer;
}

.geography-list .list-group-item:hover {
    background-color: rgba(0, 0, 0, 0.02) !important;
    transform: translateX(5px);
}

/* Abstract Map Styling */
.map-node {
    z-index: 2;
    transition: all 0.3s ease;
    cursor: default;
}

.node-pulse {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin: 0 auto;
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 1);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(46, 139, 87, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 15px rgba(46, 139, 87, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(46, 139, 87, 0);
    }
}

.map-node.active .node-pulse {
    transform: scale(1.5);
}

.map-node.active .node-label {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.2) !important;
    color: var(--water-blue);
}

/* Timeline/Process Section */
.timeline-step {
    min-width: 140px;
}

.z-index-2 {
    z-index: 2 !important;
}

.timeline-icon {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Before/After Slider */
.before-after-container {
    user-select: none;
}

.cursor-ew-resize {
    cursor: ew-resize !important;
}

/* Sustainability Circular Infographic */
.sustainability-circle {
    animation: slowSpin 30s linear infinite;
}

.sustainability-circle>div {
    animation: slowSpinReverse 30s linear infinite;
    /* Keeps text upright */
}

@keyframes slowSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes slowSpinReverse {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(-360deg);
    }
}

@media (max-width: 768px) {
    .sustain-node {
        font-size: 0.75rem;
        padding: 0.2rem 0.5rem !important;
        white-space: nowrap;
        color: var(--primary-red) !important;
    }

    .sustain-node i {
        display: none;
    }

    .sustainability-circle {
        width: 260px !important;
        height: 260px !important;
        margin: 2rem auto 3rem;
    }
}

@media (max-width: 480px) {
    .sustainability-circle {
        width: 220px !important;
        height: 220px !important;
    }
}

/* Responsive: Before/After Slider */
@media (max-width: 768px) {
    .before-after-container {
        height: 260px !important;
    }
}

/* Responsive: Gallery Carousel */
@media (max-width: 768px) {
    #impactGalleryCarousel .carousel-item img {
        height: 260px !important;
    }
}

/* Utils */
.hover-text-white:hover {
    color: white !important;
}

.max-w-700 {
    max-width: 700px;
}
[type="button"], [type="reset"], [type="submit"], button{ -webkit-appearance: auto !important;}


.hero-section{ position: relative;}
.hero-section:before{ position: absolute; content: ''; left: 0; right: 0; top: 0; bottom: 0; background: var(--primary-blue); opacity: 0.3; z-index: 0;}
.btn-success{ background-color: var(--primary-red); border-color: var(--primary-red);}
.btn-success:hover{ background-color: var(--dark-red); border-color: var(--dark-red);}
.text-success{ color: var(--primary-blue) !important;}
.border-success{ border-color: var(--primary-blue) !important;}
.text-danger{ color: var(--primary-red) !important;}
.bg-success{ background-color: var(--primary-blue) !important;}
.text-primary{ color: var(--primary-red) !important;}
.bg-success-light{ background-color: var();}
.bg-primary{ background-color: var(--primary-blue) !important;}
.navbar-brand{ max-width: 250px;}
.navbar-brand img{ width: 100%;}