:root {
    --primary-color: #FF4D00;
    --primary-dark: #CC3D00;
    --secondary-color: #1f2937;
    --accent-color: #f8f9fa;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --white: #ffffff;
    --border-light: #e5e7eb;
}

* {
    box-sizing: border-box;
}

html, body {
    overscroll-behavior: none;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

input, textarea, select {
    font-size: 16px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 2px, transparent 2px),
        radial-gradient(circle at 80% 50%, rgba(255, 255, 255, 0.1) 2px, transparent 2px),
        radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.1) 2px, transparent 2px);
    background-size: 100px 100px, 150px 150px, 120px 120px;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    animation: fadeInUp 1s ease-out;
}

/* Title and Logo Integration */
.hero-title-container {
    margin: 60px 0;
}

.hero-title {
    font-size: 6rem;
    font-weight: 800;
    line-height: 0.9;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    margin: 0;
}

/* Mission Statement */
.hero-mission {
    max-width: 700px;
    margin: 0 auto;
}

.hero-mission .lead {
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

/* Quote Box */
.hero-quote {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.quote-icon {
    color: rgba(255, 255, 255, 0.8);
    font-size: 2rem;
    margin-bottom: 15px;
}

.hero-quote blockquote {
    margin: 0;
}

.hero-quote p {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 15px;
    line-height: 1.4;
}

.hero-quote cite {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    font-style: normal;
}

/* Action Buttons */
.hero-actions {
    margin-top: 70px;
}

.hero-section .btn {
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 30px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.hero-section .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
}

.hero-section .btn-primary {
    background: white;
    color: var(--primary-color);
    border: none;
}

.hero-section .btn-primary:hover {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-dark);
}

.hero-section .btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: white;
    background: transparent;
}

.hero-section .btn-outline-light:hover {
    background: white;
    color: var(--primary-color);
    border-color: white;
}

/* Section Styling */
.section-padding {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-title h2 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 2.5rem;
}

.section-title p.lead {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.section-title::after {
    content: '';
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    margin: 20px auto 0;
    display: block;
    border-radius: 2px;
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 2px 30px rgba(0,0,0,0.1);
    padding: 15px 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 2px 40px rgba(0,0,0,0.15);
}

.navbar-brand {
    font-weight: 700;
    color: var(--primary-color) !important;
    font-size: 1.5rem;
}

.nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 16px !important;
    border-radius: 20px;
    margin: 0 2px;
}

.nav-link:hover {
    color: var(--primary-color) !important;
    background: rgba(255, 77, 0, 0.1);
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border: none;
    border-radius: 25px;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    color: white;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 77, 0, 0.4);
    background: linear-gradient(135deg, var(--primary-dark) 0%, #992600 100%);
    color: white;
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
    border-radius: 25px;
    padding: 10px 28px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: white;
    background: transparent;
    border-radius: 25px;
    padding: 10px 28px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Cards */
.card {
    border: none;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.card-body {
    padding: 2rem;
}

/* Icon Boxes */
.icon-box {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: white;
    font-size: 2rem;
    box-shadow: 0 10px 30px rgba(255, 77, 0, 0.3);
}

/* Stats Section */
.stats-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
}


.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    line-height: 1;
    margin-bottom: 8px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.stat-item {
    text-align: center;
    padding: 40px 20px;
}

.stat-item .stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary-color);
    display: block;
    line-height: 1;
    margin-bottom: 10px;
}

.stat-item h5 {
    color: var(--text-dark);
    font-weight: 600;
    margin: 0;
}

/* Event Cards */
.event-card {
    border-left: 5px solid var(--primary-color);
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
}

.event-card:hover {
    transform: translateX(5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.event-date {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    margin-bottom: 15px;
    display: inline-block;
    min-width: 80px;
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(255, 77, 0, 0.3);
}

/* Social Links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: 50%;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-links a:hover {
    transform: translateY(-3px) scale(1.1);
    color: white;
    box-shadow: 0 10px 25px rgba(255, 77, 0, 0.4);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 60px 0 30px;
}

.footer h5 {
    color: white;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--secondary-color);
}

/* Logo Placeholders */
.logo-placeholder {
    background: rgba(255, 77, 0, 0.1);
    border: 2px dashed var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    color: var(--primary-color);
    font-size: 0.9rem;
    text-align: center;
    font-weight: 600;
    transition: all 0.3s ease;
}

.logo-placeholder:hover {
    background: rgba(255, 77, 0, 0.15);
    border-color: var(--primary-dark);
}

/* Forms */
.form-control {
    border: 2px solid var(--border-light);
    border-radius: 10px;
    padding: 12px 15px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(255, 77, 0, 0.25);
}

.form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

/* Scroll to Top */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(255, 77, 0, 0.4);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 10px 30px rgba(255, 77, 0, 0.5);
}

/* Program Card Clickable */
.program-card {
    cursor: pointer;
    position: relative;
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.program-card::after {
    content: '\f05a';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 15px;
    right: 15px;
    color: var(--primary-color);
    font-size: 1.2rem;
    opacity: 0.7;
}

/* Modal Styling */
.modal-content {
    border-radius: 20px;
    border: none;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: 20px 20px 0 0;
    padding: 1.5rem 2rem;
}

.modal-body {
    padding: 2rem;
}

.modal-footer {
    padding: 1.5rem 2rem;
}

.modal-header .btn-close {
    filter: invert(1);
}

/* Admin Styles */
.admin-controls {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
    display: none;
}

.admin-controls.show {
    display: block;
}

.event-admin-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.event-card:hover .event-admin-overlay {
    opacity: 1;
}

.admin-logged-in .event-admin-overlay {
    opacity: 0.7;
}

.admin-logged-in .event-card:hover .event-admin-overlay {
    opacity: 1;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Utility Classes */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

/* Mobile menu fix */
body.menu-open {
    overflow: hidden;
}

/* Responsive Design */
@media (min-width: 1200px) {
    .hero-title-container {
        margin: 80px 0;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 3.5rem;
        line-height: 0.95;
        word-break: break-word;
        hyphens: auto;
    }
    
    .hero-title-container {
        margin: 40px 0;
    }
    
    .hero-content {
        padding: 0 15px;
    }
    
    .hero-section {
        padding: 100px 0 60px;
    }
    
    .hero-quote {
        padding: 20px;
        margin: 30px 0;
    }
    
    .hero-quote p {
        font-size: 1.1rem;
    }
    
    .hero-actions .btn {
        display: block;
        width: 100%;
        margin: 10px 0;
    }
    
    .section-padding {
        padding: 60px 0;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .stat-item .stat-number {
        font-size: 2.5rem;
    }
    
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
    
    .card-body {
        padding: 1.5rem;
    }
    
    .event-card {
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2.8rem;
        line-height: 1;
        text-align: center;
        word-wrap: break-word;
    }
    
    .hero-title div {
        display: block;
        margin-bottom: 0.2rem;
    }

    .hero-section {
        padding: 80px 0 40px;
    }
    
    .hero-mission .lead {
        font-size: 1rem;
    }
    
    .btn-primary, .btn-outline-primary, .btn-outline-light {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .social-links {
        gap: 10px;
    }
    
    .social-links a {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}

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

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