/* Base Styles */
:root {
    --primary-color: #2a5c8a;
    --secondary-color: #e9b949;
    --accent-color: #d45d3e;
    --dark-color: #1a2b3c;
    --light-color: #f8f9fa;
    --text-color: #333;
    --text-light: #777;
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Playfair Display', serif;
    --transition: all 0.3s ease;
}

body {
    font-family: var(--font-primary);
    color: var(--text-color);
    overflow-x: hidden;
    width: 100%;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    font-weight: 600;
    line-height: 1.3;
}

a {
    text-decoration: none;
    transition: var(--transition);
}

.btn {
    font-weight: 500;
    padding: 10px 25px;
    border-radius: 30px;
    transition: var(--transition);
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #1e4a75;
    border-color: #1e4a75;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 36px;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.divider {
    width: 80px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 0 auto 20px;
    position: relative;
}

.divider:after {
    content: '';
    position: absolute;
    left: 50%;
    top: -5px;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    background-color: var(--secondary-color);
    border-radius: 50%;
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader {
    text-align: center;
}

.loader-circle {
    width: 50px;
    height: 50px;
    border: 3px solid var(--primary-color);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

.loader-text {
    font-weight: 600;
    color: var(--primary-color);
    letter-spacing: 1px;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Navigation Styles */
.navbar {
    background-color: transparent;
    transition: all 0.4s ease;
    padding: 20px 0;
}

.navbar.scrolled {
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    padding: 10px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Brand Container */
.brand-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Logo Image */
.logo-img {
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

/* Text Transition Styles */
.text-transition-container {
    position: relative;
    height: 40px;
    display: flex;
    align-items: center;
    overflow: hidden;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.3rem;
    min-width: 200px;
}

.transition-text {
    position: absolute;
    white-space: nowrap;
    transition: all 0.5s ease;
}

.original-text {
    color: #FCDC04;
    opacity: 1;
}

.transformed-text {
    color: #FF0000;
    opacity: 0;
}

/* Navigation Links */
.nav-link {
    color: white;
    font-weight: 500;
    margin: 0 10px;
    position: relative;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #FCDC04;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Dropdown Styles */
.dropdown-menu {
    background-color: rgba(20, 20, 20, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 10px 0;
    backdrop-filter: blur(5px);
}

.dropdown-item {
    color: white;
    padding: 8px 20px;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: #FCDC04;
    color: #000;
}

/* Donate Button */
.btn-donate-nav {
    background-color: #FCDC04;
    color: #000;
    font-weight: 600;
    border-radius: 50px;
    padding: 8px 20px;
    transition: all 0.3s ease;
}

.btn-donate-nav:hover {
    background-color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(252, 220, 4, 0.3);
}

/* Mobile Styles */
@media (max-width: 991px) {
    .navbar-collapse {
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(10px);
        border-radius: 10px;
        padding: 15px;
        margin-top: 15px;
    }
    
    .brand-container {
        gap: 10px;
    }
    
    .text-transition-container {
        font-size: 1.1rem;
        min-width: 150px;
        height: 35px;
    }
    
    .nav-link {
        margin: 5px 0;
    }
    
    .dropdown-menu {
        margin-left: 15px;
        background-color: rgba(30, 30, 30, 0.95);
    }
}

@media (max-width: 576px) {
    .text-transition-container {
        font-size: 1rem;
        min-width: 130px;
    }
    
    .brand-container {
        gap: 8px;
    }
    
    .logo-img {
        height: 35px;
    }
}

/* Animation for text transition */
@keyframes textTransition {
    0%, 45% {
        opacity: 1;
        transform: translateY(0);
    }
    50%, 100% {
        opacity: 0;
        transform: translateY(-20px);
    }
}

.original-text {
    animation: textTransition 6s infinite;
}

.transformed-text {
    animation: textTransition 6s infinite 3s;
}

/* Navigation Toggle Button Styles */
.navbar-toggler {
    border: none;
    padding: 0.5rem;
    outline: none !important;
    box-shadow: none !important;
}

.navbar-toggler-icon {
    background-image: none;
    position: relative;
    width: 24px;
    height: 2px;
    background-color: #FCDC04;
    display: block;
    transition: all 0.3s ease;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: #FCDC04;
    left: 0;
    transition: all 0.3s ease;
}

.navbar-toggler-icon::before {
    transform: translateY(-8px);
}

.navbar-toggler-icon::after {
    transform: translateY(8px);
}

/* Toggle button animation when open */
.navbar-toggler:not(.collapsed) .navbar-toggler-icon {
    background-color: transparent;
}

.navbar-toggler:not(.collapsed) .navbar-toggler-icon::before {
    transform: rotate(45deg);
}

.navbar-toggler:not(.collapsed) .navbar-toggler-icon::after {
    transform: rotate(-45deg);
}

/* Mobile specific styles */
@media (max-width: 991px) {
    .navbar-toggler {
        order: 2; /* Ensures it appears on the right */
        margin-left: auto; /* Pushes it to the right */
    }
    
    .navbar-brand {
        order: 1; /* Ensures logo stays on left */
    }
    
    .navbar-collapse {
        order: 3; /* Ensures menu appears below */
    }
    
    /* Make sure the button is visible */
    .navbar-toggler {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }
    
    .navbar-toggler-icon {
        background-color: #FCDC04;
    }
    
    .navbar-toggler-icon::before,
    .navbar-toggler-icon::after {
        background-color: #FCDC04;
    }
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/hero-bg.jpg') no-repeat center center;
    background-size: cover;
    color: white;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(42, 92, 138, 0.8) 0%, rgba(212, 93, 62, 0.7) 100%);
    z-index: 0;
}

.hero h1 {
    font-size: 60px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 600px;
}

.hero-buttons .btn {
    margin-right: 15px;
    margin-bottom: 15px;
}

.hero-image-container {
    position: relative;
}

.hero-image {
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transform: perspective(1000px) rotateY(-15deg);
    transition: var(--transition);
}

.hero-image:hover {
    transform: perspective(1000px) rotateY(-5deg);
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.floating-element {
    position: absolute;
    background: white;
    color: var(--primary-color);
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    animation: float 6s ease-in-out infinite;
}

.floating-element i {
    font-size: 30px;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.floating-element span {
    font-size: 12px;
    font-weight: 600;
    text-align: center;
}

.element-1 {
    top: -20px;
    left: -20px;
    animation-delay: 0s;
}

.element-2 {
    top: 50%;
    right: -30px;
    transform: translateY(-50%);
    animation-delay: 1s;
}

.element-3 {
    bottom: -20px;
    left: 20%;
    animation-delay: 2s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.hero-scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.scroll-link {
    display: block;
    width: 40px;
    height: 40px;
    border: 2px solid white;
    border-radius: 50%;
    text-align: center;
    line-height: 36px;
    color: white;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-20px) translateX(-50%); }
    60% { transform: translateY(-10px) translateX(-50%); }
}

/* About Section */
.about-section {
    background-color: #f9f9f9;
}

.about-image {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

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

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--primary-color);
    color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    text-align: center;
    width: 120px;
}

.experience-badge .years {
    font-size: 30px;
    font-weight: 700;
    display: block;
    line-height: 1;
}

.experience-badge .text {
    font-size: 12px;
    display: block;
    margin-top: 5px;
}

.about-content h3 {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.mission-vision {
    margin: 30px 0;
}

.mission, .vision {
    margin-bottom: 20px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

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

.mission h4, .vision h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.mission h4 i, .vision h4 i {
    margin-right: 10px;
    color: var(--secondary-color);
}

/* Stats Section */
.stats-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-color) 100%);
    color: white;
    padding: 80px 0;
}

.stat-item {
    text-align: center;
    padding: 30px 15px;
    position: relative;
}

.stat-item:after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
}

.stat-item:last-child:after {
    display: none;
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--secondary-color);
    font-family: var(--font-secondary);
}

.stat-text {
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Programs Section */
.program-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    height: 100%;
    transition: var(--transition);
    margin-bottom: 30px;
    text-align: center;
    border-bottom: 4px solid transparent;
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border-bottom-color: var(--secondary-color);
}

.program-icon {
    width: 80px;
    height: 80px;
    background: rgba(42, 92, 138, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 30px;
    color: var(--primary-color);
    transition: var(--transition);
}

.program-card:hover .program-icon {
    background: var(--primary-color);
    color: white;
}

.program-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.program-card ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    text-align: left;
}

.program-card ul li {
    padding: 5px 0;
    position: relative;
    padding-left: 25px;
}

.program-card ul li:before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 6px;
    color: var(--secondary-color);
}

/* Impact Stories Section */
.impact-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.impact-section .section-header h2 {
    color: var(--dark-color);
    position: relative;
    display: inline-block;
}

.impact-section .section-header h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--secondary-color);
}

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

.story-cards {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.645, 0.045, 0.355, 1);
    will-change: transform;
}

.story-card {
    min-width: 100%;
    padding: 20px;
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.6s cubic-bezier(0.645, 0.045, 0.355, 1);
    position: absolute;
    visibility: hidden;
}

.story-card.active {
    opacity: 1;
    transform: scale(1);
    position: relative;
    visibility: visible;
}

.story-card-inner {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.story-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.story-card:hover .story-image img {
    transform: scale(1.05);
}

.story-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    padding: 10px 15px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    font-weight: 600;
    color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease 0.2s;
}

.story-card.active .story-badge {
    transform: translateY(0);
    opacity: 1;
}

.story-badge i {
    margin-right: 8px;
    color: var(--secondary-color);
}

.story-content {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.story-content h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.story-meta {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--text-light);
}

.story-meta span {
    margin-right: 20px;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
}

.story-meta i {
    margin-right: 5px;
    color: var(--secondary-color);
}

.story-stats {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
    padding: 15px;
    background: rgba(42, 92, 138, 0.05);
    border-radius: 10px;
    min-width: 100px;
    margin: 5px;
    flex: 1;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease;
}

.story-card.active .stat {
    transform: translateY(0);
    opacity: 1;
}

.story-card.active .stat:nth-child(1) {
    transition-delay: 0.1s;
}
.story-card.active .stat:nth-child(2) {
    transition-delay: 0.2s;
}
.story-card.active .stat:nth-child(3) {
    transition-delay: 0.3s;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
    font-family: var(--font-secondary);
}

.stat-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
}

.story-content p {
    margin-bottom: 25px;
    font-style: italic;
    position: relative;
    padding-left: 20px;
    flex: 1;
}

.story-content p:before {
    content: '"';
    position: absolute;
    left: 0;
    top: 0;
    font-size: 50px;
    line-height: 1;
    color: rgba(42, 92, 138, 0.1);
    font-family: var(--font-secondary);
}

.story-author {
    display: flex;
    align-items: center;
    margin-top: auto;
}

.author-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
    border: 3px solid var(--secondary-color);
}

.author-info h5 {
    margin-bottom: 5px;
    color: var(--dark-color);
}

.author-info span {
    font-size: 14px;
    color: var(--text-light);
}

/* Story Navigation */
.story-nav {
    margin-bottom: 40px;
    position: relative;
}

.story-progress {
    height: 3px;
    background: rgba(42, 92, 138, 0.1);
    position: relative;
    margin: 0 50px;
}

.progress-bar {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 25%;
    background: var(--secondary-color);
    transition: width 0.4s ease;
}

.story-dots {
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(42, 92, 138, 0.2);
    margin: 0 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.dot:after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 1px solid rgba(42, 92, 138, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

.dot.active:after {
    border-color: var(--primary-color);
}

.story-arrows {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.arrow {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    border: none;
    color: var(--primary-color);
    font-size: 18px;
    margin: 0 10px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.arrow:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

/* Impact Video Modal */
.impact-video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.impact-video-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1;
}

.modal-content {
    position: relative;
    z-index: 2;
    width: 80%;
    max-width: 900px;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.impact-video-modal.active .modal-content {
    transform: scale(1);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 18px;
    cursor: pointer;
    z-index: 3;
    transition: all 0.3s ease;
}

.close-modal:hover {
    background: var(--secondary-color);
    color: var(--dark-color);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Story Cards Container */
.story-cards-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.story-cards-wrapper {
    display: flex;
    transition: transform 0.6s ease-in-out;
    will-change: transform;
}

.story-card {
    min-width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Animation Classes */
.story-card.animate-out {
    transform: translateX(-100%);
    opacity: 0;
}

.story-card.animate-in {
    transform: translateX(100%);
    opacity: 0;
}

.story-card.active {
    transform: translateX(0);
    opacity: 1;
}

.story-cards-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.story-cards-wrapper {
    display: flex;
    width: 100%;
    position: relative;
    transition: none;
}

.story-card {
    min-width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
    transition: transform 0.6s ease-in-out;
    position: relative;
}

/* Responsive Styles */
@media (max-width: 991.98px) {
    .story-image {
        height: 250px;
    }
    
    .story-content {
        padding: 20px;
    }
    
    .story-stats {
        margin: 15px 0;
    }
    
    .stat {
        padding: 10px;
        min-width: 80px;
    }
    
    .stat-value {
        font-size: 20px;
    }
}

@media (max-width: 767.98px) {
    .story-card {
        flex-direction: column;
    }
    
    .story-image {
        height: 200px;
    }
    
    .story-content h3 {
        font-size: 20px;
    }
    
    .story-meta {
        font-size: 13px;
    }
    
    .modal-content {
        width: 95%;
    }
}

@media (max-width: 575.98px) {
    .story-stats {
        flex-direction: column;
    }
    
    .stat {
        width: 100%;
        margin: 5px 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .stat-value, .stat-label {
        margin: 0;
    }
    
    .story-progress {
        margin: 0 30px;
    }
    
    .dot {
        margin: 0 5px;
    }
    
    .arrow {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: white;
    padding: 80px 0 0;
    position: relative;
}

.footer-about {
    margin-bottom: 30px;
}

.footer .logo-img {
    height: 35px;
    margin-right: 10px;
}

.footer .brand-text {
    font-size: 20px;
}

.footer .brand-text span {
    color: var(--secondary-color);
}

.footer p {
    color: rgba(255, 255, 255, 0.7);
    margin: 20px 0;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    margin-right: 10px;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--secondary-color);
    color: var(--dark-color);
    transform: translateY(-3px);
}

.footer-links h4 {
    font-size: 20px;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h4:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: var(--secondary-color);
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-contact ul {
    list-style: none;
    padding: 0;
}

.footer-contact ul li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.footer-contact ul li i {
    margin-right: 15px;
    color: var(--secondary-color);
    margin-top: 5px;
}

.newsletter h5 {
    font-size: 18px;
    margin-bottom: 15px;
}

.newsletter form {
    display: flex;
}

.newsletter input {
    flex: 1;
    padding: 10px 15px;
    border: none;
    border-radius: 30px 0 0 30px;
    outline: none;
}

.newsletter button {
    background: var(--secondary-color);
    color: var(--dark-color);
    border: none;
    padding: 0 20px;
    border-radius: 0 30px 30px 0;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter button:hover {
    background: white;
}

.copyright {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px 0;
    margin-top: 50px;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--accent-color);
    transform: translateY(-5px);
}

/* Responsive Styles */
@media (max-width: 1199.98px) {
    .hero h1 {
        font-size: 50px;
    }
}

@media (max-width: 991.98px) {
    .section {
        padding: 80px 0;
    }
    
    .hero h1 {
        font-size: 42px;
    }
    
    /* .navbar {
        background-color: white !important;
        padding: 10px 0;
    }
    
    .navbar .nav-link {
        color: var(--text-color) !important;
    }
    
    .navbar .navbar-brand .brand-text {
        color: var(--dark-color);
    }
    
    .navbar .navbar-brand .brand-text span {
        color: var(--primary-color);
    }
    
    .navbar .login-btn {
        color: white !important;
    } */
    
    .hero {
        text-align: center;
        padding-top: 80px;
    }
    
    .hero p {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .about-content {
        margin-top: 30px;
    }
    
    .stat-item:after {
        display: none;
    }
}

@media (max-width: 767.98px) {
    .section {
        padding: 60px 0;
    }
    
    .section-header h2 {
        font-size: 30px;
    }
    
    .hero h1 {
        font-size: 36px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .stat-item {
        padding: 20px 15px;
        margin-bottom: 15px;
    }
    
    .stat-number {
        font-size: 36px;
    }
    
    .cta-content h2 {
        font-size: 32px;
    }
    
    .footer {
        padding: 60px 0 0;
    }
    
    .footer-about, .footer-links, .footer-contact {
        margin-bottom: 40px;
    }
}

@media (max-width: 575.98px) {
    .hero h1 {
        font-size: 30px;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .cta-buttons .btn {
        display: block;
        width: 100%;
        margin: 0 0 15px 0;
    }
    
    .experience-badge {
        width: 100px;
        padding: 15px;
    }
    
    .experience-badge .years {
        font-size: 24px;
    }
}


/*ABOUT PAGE*/

/* About Hero */
.about-hero {
    background: linear-gradient(135deg, rgba(0,0,0,0.8) 0%, rgba(218,18,26,0.8) 100%), url('../images/about-bg.jpg') no-repeat center center;
    background-size: cover;
    color: white;
    padding: 150px 0 100px;
}

/* Mission Section */
.mission-section {
    background-color: #f5f5f5;
}

.mission-statement {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.mission-card {
    flex: 1;
    min-width: 300px;
    background: white;
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s ease;
}

.mission-card:hover {
    transform: translateY(-10px);
}

.mission-icon {
    width: 80px;
    height: 80px;
    background: #FCDC04;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 30px;
    color: white;
}

/* Timeline Section */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline:before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background: #FCDC04;
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    width: 100%;
}

.timeline-date {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    background: #DA121A;
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(218,18,26,0.3);
}

.timeline-content {
    width: calc(50% - 40px);
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    position: relative;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: auto;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-right: auto;
}

.timeline-content:after {
    content: '';
    position: absolute;
    top: 30px;
    width: 0;
    height: 0;
    border-style: solid;
}

.timeline-item:nth-child(odd) .timeline-content:after {
    right: 100%;
    border-width: 10px 15px 10px 0;
    border-color: transparent white transparent transparent;
}

.timeline-item:nth-child(even) .timeline-content:after {
    left: 100%;
    border-width: 10px 0 10px 15px;
    border-color: transparent transparent transparent white;
}

/* Values Section */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.value-card {
    text-align: center;
    padding: 40px 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.value-card:hover {
    transform: translateY(-10px);
}

.value-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 30px;
    color: white;
}


/* Responsive Timeline */
@media (max-width: 768px) {
    .timeline:before {
        left: 30px;
    }
    
    .timeline-date {
        left: 30px;
        transform: none;
    }
    
    .timeline-content {
        width: calc(100% - 80px);
        margin-left: 80px !important;
    }
    
    .timeline-content:after {
        left: -15px !important;
        right: auto !important;
        border-width: 10px 15px 10px 0 !important;
        border-color: transparent white transparent transparent !important;
    }
}

.zed-carousel-wrapper {
  all: unset; /* Reset Bootstrap inheritance */
  perspective: 2000px;
  width: 100%;
  min-height: 600px;
  background: #0f0f1c;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;
}

.zed-carousel {
  position: relative;
  width: 400px;
  height: 400px;
  transform-style: preserve-3d;
  transform: rotateY(0deg);
  transition: transform 1s;
}

.zed-carousel-item {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 250px;
  height: 160px;
  transform-style: preserve-3d;
  transform: translate(-50%, -50%) rotateY(var(--rotation)) translateZ(500px);
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.5s ease;
}

.zed-carousel-item:hover {
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.6),
              0 0 60px rgba(0, 255, 255, 0.3);
  transform: translate(-50%, -50%) rotateY(var(--rotation)) translateZ(520px) scale(1.05);
}

.zed-carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.zed-tooltip {
  position: fixed;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  pointer-events: none;
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(10px);
  max-width: 200px;
  z-index: 999;
}

@media (max-width: 768px) {
  .zed-carousel-wrapper {
    min-height: 400px;
    padding: 20px 0;
  }

  .zed-carousel {
    width: 280px;
    height: 280px;
  }

  .zed-carousel-item {
    width: 160px;
    height: 100px;
    transform: translate(-50%, -50%) rotateY(var(--rotation)) translateZ(300px);
  }

  .zed-carousel-item:hover {
    transform: translate(-50%, -50%) rotateY(var(--rotation)) translateZ(320px) scale(1.05);
  }
}

@media (max-width: 480px) {
  .zed-carousel {
    width: 220px;
    height: 220px;
  }

  .zed-carousel-item {
    width: 130px;
    height: 80px;
    transform: translate(-50%, -50%) rotateY(var(--rotation)) translateZ(250px);
  }

  .zed-carousel-item:hover {
    transform: translate(-50%, -50%) rotateY(var(--rotation)) translateZ(270px) scale(1.05);
  }

  .zed-tooltip {
    font-size: 12px;
    max-width: 160px;
    padding: 6px 10px;
  }
}


.zed-gallery-section {
  padding: 60px 20px;
  background: linear-gradient(145deg, #0e0e0e, #1b1b1b);
  color: white;
  text-align: center;
  overflow-x: hidden;
}

.gallery-title {
  font-size: 2.8rem;
  margin-bottom: 40px;
  text-transform: uppercase;
  letter-spacing: 3px;
  background: linear-gradient(to right, #00f2ff, #f0f);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gallery-filters {
  margin-bottom: 40px;
}

.gallery-filters .filter {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #00f2ff;
  padding: 10px 20px;
  margin: 5px;
  cursor: pointer;
  border-radius: 30px;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.gallery-filters .filter.active,
.gallery-filters .filter:hover {
  background: #00f2ff;
  color: #000;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 0 10px rgba(0, 242, 255, 0.1);
}

.gallery-item:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(0, 242, 255, 0.4);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 0;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item .overlay {
  position: absolute;
  bottom: 0;
  background: rgba(0, 242, 255, 0.08);
  backdrop-filter: blur(10px);
  width: 100%;
  padding: 20px 10px;
  transform: translateY(100%);
  transition: transform 0.4s ease;
  color: #fff;
  text-shadow: 0 0 5px #000;
}

.gallery-item:hover .overlay {
  transform: translateY(0);
}

.overlay h3 {
  font-size: 1.2rem;
  margin: 0;
  color: #00f2ff;
}

.overlay p {
  font-size: 0.9rem;
  margin: 5px 0 0;
}

/* Lightbox */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 15, 15, 0.95);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 12px;
  box-shadow: 0 0 50px rgba(0, 242, 255, 0.3);
}

.lightbox .close {
  position: absolute;
  top: 40px;
  right: 60px;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
  z-index: 10000;
}

/* Responsive Tweaks */
@media screen and (max-width: 600px) {
  .gallery-title {
    font-size: 2rem;
  }

  .gallery-filters .filter {
    padding: 8px 15px;
    font-size: 0.9rem;
  }

  .overlay h3 {
    font-size: 1rem;
  }

  .overlay p {
    font-size: 0.8rem;
  }
}

.zed-team-section {
    padding: 60px 20px;
    background: #f9f9f9;
    text-align: center;
    background: linear-gradient(145deg, #0a0a0a, #141414);
}

.team-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: #1a2a5b;
    background: linear-gradient(to right, #00f2ff, #f0f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.team-subtitle {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 40px 0 20px;
    color: #c19a2a; /* goldenrod shade */
    text-transform: uppercase;
}

/* Grid Layout */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    justify-content: center;
}

/* Team Member Card */
.team-member {
    background: #fff;
    border-radius: 15px;
    padding: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 15px rgba(0,0,0,0.08);
}

.team-member:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.team-member img {
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
    margin-bottom: 15px;
}

.team-member h3 {
    font-size: 1.3rem;
    color: #1a2a5b;
    margin-bottom: 8px;
}

.team-member p {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 15px;
}

/* Social Icons */
.socials a {
    margin: 0 6px;
    font-size: 1.2rem;
    color: #1a2a5b;
    transition: color 0.3s ease;
}

.socials a:hover {
    color: #c19a2a;
}