* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    user-select: none; /* Security: prevent text selection */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    background-color: #fff;
    transition: background-color 0.3s ease;
}

body.dark-mode {
    background-color: #000;
    color: #fff;
}

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

/* --- Navigation --- */
nav {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    transition: background-color 0.3s ease;
}

nav.dark-mode {
    background-color: #222;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav ul {
    list-style-type: none;
    display: flex;
}

nav ul li {
    margin-left: 15px;
}

nav ul li a {
    text-decoration: none;
    color: #ff0000;
    font-weight: 500;
    padding: 32px 18px;
    border-radius: 4px;
    transition: background-color 0.3s, color 0.3s;
}
@media screen and (max-width: 1024px) {
    nav ul li a { padding: 20px 10px; }
}
@media screen and (max-width: 768px) {
    nav ul li a { padding: 10px 10px; }
}

nav ul li a:hover {
    background-color: #ff0000;
    color: #fff;
}

nav.dark-mode ul li a {
    color: #ffff00;
}

nav.dark-mode ul li a:hover {
    background-color: #ffff00;
    color: #000;
}

/* --- Mode Toggle --- */
.mode-toggle {
    position: relative;
    width: 50px;
    height: 26px;
    border-radius: 13px;
    background-color: #ff0000;
    cursor: pointer;
    transition: background-color 0.3s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
    display: inline-block;
}

.mode-toggle::before {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.18);
    transition: left 0.3s cubic-bezier(0.4,0,0.2,1);
}

.mode-toggle.active {
    background-color: #333;
}

.mode-toggle.active::before {
    left: 26px;
}

/* --- Hero Section --- */
.hero {
    background-image: url('/Images/bg.jpg');
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    animation: fade-in 1s ease-in-out;
    position: relative;
    overflow: hidden;
}

.blur {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); 
    background-color: rgba(0, 0, 0, 0.076);
}

@supports not (backdrop-filter: blur(10px)) {
    .blur { background-color: rgba(0, 0, 0, 0.142); }
}

.hero-content {
    position: relative;
    z-index: 1;
}

/* --- Modern Hero Text Styles --- */
.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem); 
    font-weight: 900;
    margin-bottom: 20px;
    color: #ff0000;
    text-transform: uppercase;
    letter-spacing: -1px;
    line-height: 1.1;
    animation: slide-up 1s ease-in-out;
    text-shadow: 
        0 4px 10px rgba(0,0,0,0.4),
        2px 2px 0 #fff,
        -1px -1px 0 #fff; 
}

.dark-mode .hero h1 {
    color: #ffff00;
    text-shadow: 
        0 4px 10px rgba(0,0,0,0.6),
        2px 2px 0 #000;
}

@keyframes slide-up {
    0% { transform: translateY(50px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

@keyframes fade-in {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.hero p {
    font-size: clamp(1.2rem, 3vw, 2.2rem);
    margin-bottom: 40px;
    color: #ff0000;
    font-weight: 700;
    letter-spacing: 1px;
    animation: slide-up 1s ease-in-out 0.3s backwards;
    text-shadow: 1px 1px 0 #fff, 0 2px 5px rgba(0,0,0,0.3);
}

.dark-mode .hero p {
    color: #ffff00;
    text-shadow: 1px 1px 0 #000, 0 2px 5px rgba(0,0,0,0.5);
}

.btn {
    display: inline-block;
    background-color: #ff0000;
    color: #fff;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 4px;
    transition: background-color 0.3s, box-shadow 0.3s, color 0.3s;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    animation: slide-up 1s ease-in-out 0.6s backwards;
}

.dark-mode .btn {
    background-color: #ffff00;
    color: #000;
}

.btn:hover {
    background-color: #fff;
    color: #ff0000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.dark-mode .btn:hover {
    background-color: #000;
    color: #ffff00;
    box-shadow: 0 4px 10px rgba(255, 255, 0, 0.3);
}

/* --- Improved About Section --- */
.about-section {
    padding: 100px 0;
    text-align: center;
    background-color: #f9f9f9;
    background-image: radial-gradient(#ddd 1px, transparent 1px);
    background-size: 20px 20px;
    transition: background-color 0.3s ease;
    position: relative;
}
.about-section h2 { 
    color: #ff0000; 
    margin-bottom: 25px; 
    font-size: 2.8rem; 
    font-weight: 900;
}
.about-section p { 
    max-width: 800px; 
    margin: 0 auto; 
    color: #444; 
    font-size: 1.2rem; 
    line-height: 1.8;
}
.dark-mode .about-section { 
    background-color: #111; 
    background-image: radial-gradient(#333 1px, transparent 1px);
}
.dark-mode .about-section h2 { color: #ffff00; }
.dark-mode .about-section p { color: #ccc; }

/* --- Improved Statistics Section --- */
.stats-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #ff0000, #cc0000);
    color: #fff;
    position: relative;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.stats-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    text-align: center;
    gap: 30px;
}
.stat-item { 
    flex: 1 1 200px;
    padding: 20px;
    transition: transform 0.3s ease;
}
.stat-item:hover {
    transform: translateY(-5px);
}
.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    opacity: 0.9;
}
.stat-item h3 { 
    font-size: 3.5rem; 
    margin-bottom: 5px; 
    font-weight: 900;
    line-height: 1;
}
.stat-item p { 
    font-size: 1.1rem; 
    font-weight: 500; 
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}
.dark-mode .stats-section { 
    background: linear-gradient(135deg, #222, #111); 
    color: #ffff00; 
    border-top: 2px solid #ffff00;
    border-bottom: 2px solid #ffff00;
}
.dark-mode .stat-icon { color: #ffff00; }

/* --- Featured Section --- */
.featured {
    padding: 80px 0;
    background-color: #fff;
    transition: background-color 0.3s ease;
}

.dark-mode .featured {
    background-color: #000;
}

.featured h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #ff0000;
    font-size: 2.5rem;
    animation: fade-in 1s ease-in-out;
}

.dark-mode .featured h2 {
    color: #ffff00;
}

.featured .card {
    margin-bottom: 20px;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    background-color: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border: 1px solid #eee;
}

.featured .card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.12);
}

.dark-mode .featured .card {
    background-color: #222;
    box-shadow: 0 4px 15px rgba(255, 255, 0, 0.1);
    border-color: #333;
}

.featured .card img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
}

.featured .card h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #ff0000;
}

.dark-mode .featured .card h3 { color: #ffff00; }
.featured .card p { color: #555; margin-bottom: 20px; }
.dark-mode .featured .card p { color: #ddd; }

/* --- NEW: Core Values Section (Static/Evergreen) --- */
.values-section {
    padding: 100px 0;
    background-color: #fff;
    border-top: 1px solid #f0f0f0;
    transition: background-color 0.3s ease;
}
.values-section h2 {
    text-align: center;
    color: #ff0000;
    margin-bottom: 60px;
    font-size: 2.5rem;
}
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 40px;
}
.value-card {
    text-align: center;
    padding: 30px 20px;
    border-radius: 10px;
    transition: transform 0.3s;
    border: 1px solid transparent;
}
.value-card:hover {
    transform: translateY(-5px);
    border-color: #eee;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.value-icon {
    font-size: 2.5rem;
    color: #ff0000;
    margin-bottom: 25px;
    background: rgba(255, 0, 0, 0.08);
    width: 90px;
    height: 90px;
    line-height: 90px;
    border-radius: 50%;
    display: inline-block;
}
.value-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #222;
    font-weight: 700;
}
.value-card p {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
}

/* Dark Mode Values */
.dark-mode .values-section { background-color: #0a0a0a; border-top-color: #222; }
.dark-mode .values-section h2 { color: #ffff00; }
.dark-mode .value-icon { color: #ffff00; background: rgba(255, 255, 0, 0.1); }
.dark-mode .value-card h3 { color: #ffff00; }
.dark-mode .value-card p { color: #ccc; }
.dark-mode .value-card:hover { border-color: #333; }


.mode-toggle-container {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.mobile-only {
    display: none;
}

@media screen and (max-width: 768px) {
    .mobile-only {
        display: flex;
        padding: 10px 20px;
        margin-top: 20px;
    }

    .desktop-only {
        display: none;
    }
    .stats-grid { flex-direction: column; gap: 40px; }
    .stat-item { padding: 0; }
}

@media screen and (min-width: 820px) {
    .desktop-only {
        display: flex;
    }
}
@media screen and (max-width: 820px) {
    .hamburger { display: block; cursor: pointer; }
    .hamburger span {
        display: block; width: 32px; height: 6px;
        background-color: #ff0000; margin: 5px 0;
        transition: all 0.3s ease; border-radius: 15px;
    }
    .hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(6px, 9px); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -10px); }
    .dark-mode .hamburger span { background-color: #ffff00; }
    
    .nav-menu {
        position: fixed; left: -100%; top: 70px; gap: 0;
        flex-direction: column; background-color: #fff;
        width: 100%; text-align: center; transition: 0.3s;
        box-shadow: 0 10px 27px rgba(255, 251, 0, 0.05);
        border-top-left-radius: 14px; border-top-right-radius: 14px;
        padding-bottom: 20px; height: 80vh; overflow-y: auto;
    }
    .dark-mode .nav-menu { background-color: #101010; }
    .nav-menu.active { left: 0; }
    .nav-menu > li { margin: 16px 0; }
    nav ul li a { padding: 16px 18px; border-bottom: 1px solid rgba(0,0,0,0.06); display: block;}
    .dark-mode nav ul li a { border-bottom-color: rgba(255,255,255,0.12); }
    
    .logo { display: flex; justify-content: center; align-items: center; width: 100%; margin: 0 auto; }
    .logo img { display: block; margin: 0 auto; }
    
    nav ul li .dropdown-menu.dropdown-row {
        position: static; background: transparent; box-shadow: none;
        padding: 0 20px; max-width: 280px; margin: 0 auto;
        display: none; flex-direction: column; align-items: stretch; border-radius: 0;
    }
}

/* --- IMPROVED FOOTER --- */
footer {
    background: linear-gradient(135deg, #111, #222); 
    color: #ccc; 
    padding: 80px 0 30px; 
    position: relative; 
    font-size: 0.95rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col h3 {
    color: #fff;
    font-size: 1.4rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: #ff0000;
}

.footer-col p {
    line-height: 1.8;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-radius: 50%;
    transition: all 0.3s;
    text-decoration: none;
}

.social-links a:hover {
    background: #ff0000;
    transform: translateY(-3px);
}

.footer-links {
    list-style: none;
}

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

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
}

.footer-links a::before {
    content: '\203A'; /* chevron */
    margin-right: 8px;
    color: #ff0000;
    font-size: 1.2rem;
    line-height: 1;
}

.footer-links a:hover {
    color: #ff0000;
    padding-left: 5px;
}

.contact-info {
    list-style: none;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-info i {
    color: #ff0000;
    font-size: 1.1rem;
    margin-top: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    text-align: center;
    color: #888;
}

.dark-mode footer {
    background: linear-gradient(135deg, #000, #111);
}

.dark-mode .footer-col h3::after, 
.dark-mode .social-links a:hover,
.dark-mode .contact-info i,
.dark-mode .footer-links a:hover,
.dark-mode .footer-links a::before {
    background-color: #ffff00; /* For backgrounds */
    color: #ffff00; /* For text/icons */
}
/* Specific override for background prop */
.dark-mode .footer-col h3::after,
.dark-mode .social-links a:hover {
    background-color: #ffff00;
    color: #000;
}
/* Override specific text colors */
.dark-mode .footer-links a::before,
.dark-mode .contact-info i {
    color: #ffff00;
    background: transparent;
}


/* Dropdown */
nav ul li.has-dropdown { position: relative; }
nav ul li.has-dropdown > a.dropdown-toggle::after {
    content: " \25BE"; font-size: 0.8em; margin-left: 6px; transition: transform .2s ease;
}
nav ul li .dropdown-menu {
    position: absolute; top: calc(100% + 10px); left: 0;
    background: rgba(255,255,255,0.9);
    -webkit-backdrop-filter: saturate(120%) blur(6px); backdrop-filter: saturate(120%) blur(6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12); border: 1px solid rgba(0,0,0,0.06);
    border-radius: 7px; padding: 8px 10px; z-index: 1000;
    display: flex; opacity: 0; margin-top: 17px; visibility: hidden;
    transform: translateY(6px); pointer-events: none;
    transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
}
nav.dark-mode ul li .dropdown-menu {
    background: rgba(34,34,34,0.92); border: 1px solid rgba(255,255,255,0.08);
}
nav ul li .dropdown-menu.dropdown-row { flex-direction: column; gap: 2px; }
nav ul li .dropdown-menu.dropdown-row > li { margin: 0; }
nav ul li .dropdown-menu.dropdown-row > li > a { line-height: 1.15; }
nav ul li .dropdown-menu a {
    padding: 10px 14px; white-space: nowrap; border-radius: 6px;
    display: block; color: #ff0000;
}
nav ul li .dropdown-menu a:hover { background: rgb(255, 0, 0); color: #ffffff; }
nav.dark-mode ul li .dropdown-menu a { color: #ffff00; }
nav.dark-mode ul li .dropdown-menu a:hover { background: rgb(255, 255, 0); color: #000000; }
nav ul li .dropdown-menu.dropdown-row > li + li a { border-top: 1px dashed rgba(0,0,0,0.08); }
nav.dark-mode ul li .dropdown-menu.dropdown-row > li + li a { border-top: 1px dashed rgba(255,255,255,0.12); }

@media screen and (min-width: 769px) {
    nav ul li.has-dropdown:hover > .dropdown-menu.dropdown-row {
        opacity: 1; visibility: visible; pointer-events: auto;
        transform: translateY(0); flex-direction: column;
    }
}
nav ul li .dropdown-menu.dropdown-row { padding: 8px; }
nav ul li.has-dropdown.open > a.dropdown-toggle::after { transform: rotate(180deg); }

@media screen and (max-width: 768px) {
    nav ul li .dropdown-menu.dropdown-row {
        position: static; background: transparent; box-shadow: none;
        padding: 0 20px; max-width: 280px; margin: 0 auto;
        display: none; flex-direction: column; align-items: stretch;
        margin-top: 20px; border-radius: 5px;
    }
    .dark-mode nav ul li .dropdown-menu.dropdown-row { background: transparent; }
    nav.dark-mode ul li .dropdown-menu.dropdown-row { background: transparent; }
    nav ul li.has-dropdown.open > .dropdown-menu.dropdown-row {
        display: block; flex-direction: column; opacity: 1;
        visibility: visible; pointer-events: auto; transform: none;
    }
    nav ul li .dropdown-menu a {
        padding: 16px 18px; margin: 0; border: 0; margin-top: 5px;
        margin-bottom: 5px; border-bottom: 1px solid rgba(0,0,0,0.06);
        line-height: 1.60; text-align: center; border-radius: 5px;
    }
    .dark-mode nav ul li .dropdown-menu a { border-bottom-color: rgba(255,255,255,0.12); }
    nav ul li .dropdown-menu.dropdown-row > li + li a { border-top: none !important; }
}

.astra-logo{ display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.astra-logo__img{ width: 70px; height: auto; display: block; }
.astra-logo__text{ display: flex; flex-direction: column; line-height: 1.1; }
.astra-logo__title{ font-size: 25px; font-weight: 700; color: #ffb407; }
.astra-logo__tagline{ margin-left: 50px; font-size: 25px; font-weight: 600; color: #ffb407; }
@media screen and (min-width: 769px) { .astra-logo__tagline{ margin-left: 50px; } }
@media screen and (max-width: 1024px) {
    .astra-logo__tagline{ margin-left: 20%; font-size: 18px; font-weight: 600; color: #ffb407; }
    .astra-logo__title{ margin-left: 0px; font-size: 18px; font-weight: 700; color: #ffb407; }
} 
@media screen and ( max-width: 360px){
    .astra-logo__title{ margin-left: 0px; font-size: 14px; font-weight: 700; color: #ffb407; }
    .astra-logo__tagline{ margin-left: 20%; font-size: 14px; font-weight: 600; color: #ffb407; }
}
