:root {
    /* Brand Palette - Modern, Clean, Inspiring */
    --primary-color: #0F766E;
    /* Teal: Professional, Trustworthy, Growth */
    --primary-dark: #115E59;
    --secondary-color: #3B82F6;
    /* Soft Blue: Calmness (Hilton/Corporate feel) */
    --accent-color: #F59E0B;
    /* Amber: Warmth/Energy */

    --text-main: #0f172a;
    /* Slate 900: Sharper, more modern black */
    --text-muted: #475569;
    /* Slate 600 */
    --text-light: #94A3B8;
    --text-white: #FFFFFF;

    --bg-body: #F8FAFC;
    /* Slate 50 */
    --bg-white: #FFFFFF;
    --bg-light: #F1F5F9;
    --bg-dark: #1E293B;
    /* Slate 800 - Added for Contact Section */

    /* Gradients */
    --gradient-hero: linear-gradient(135deg, rgba(15, 118, 110, 0.7) 0%, rgba(14, 116, 144, 0.7) 100%);
    /* High opacity Teal for contrast */
    --gradient-accent: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);

    /* Modern Typography */
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --font-display: 'Outfit', sans-serif;

    /* Spacing */
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    --container-width: 1200px;
    --radius-md: 12px;
    --radius-full: 9999px;

    /* Effects */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --radius-lg: 16px;

    /* Transition for theme switch */
    --theme-transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

[data-theme='dark'] {
    --primary-color: #14B8A6;
    --primary-dark: #0D9488;
    --bg-body: #0f172a;
    --bg-white: #1e293b;
    --bg-light: #334155;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-light: #64748b;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
}

body {
    transition: var(--theme-transition);
}

.bg-white-card,
.card,
header,
footer,
.stat-card.light {
    transition: var(--theme-transition);
}

/* Theme Toggle Button */
.theme-toggle {
    cursor: pointer;
    font-size: 1.25rem;
    padding: 0.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    color: var(--text-main);
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background: var(--primary-color);
    color: white;
}

/* Base Hero Styles */
.hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 80vh;
    background: var(--gradient-hero), url('../images/hero_new.jpg');
    background-size: cover;
    background-position: center;
    padding: var(--spacing-xl) 0;
    color: var(--text-white);
    position: relative;
    overflow: hidden;
    transition: background-image 1s ease-in-out;
}

.hero .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    z-index: 10;
}

.hero h1 {
    color: #FBBF24;
    /* Amber */
    font-size: 3.5rem;
    margin-bottom: 0.75rem;
    text-shadow: 0 4px 6px rgba(0, 0, 0, 0.4);
}

.hero .subtitle {
    color: #000000;
    background: rgba(255, 255, 255, 0.85);
    /* Highly readable glassbg */
    padding: 0.75rem 2rem;
    border-radius: var(--radius-md);
    backdrop-filter: blur(8px);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -0.025em;
    display: inline-block;
    box-shadow: var(--shadow-md);
    width: auto;
    max-width: fit-content;
    /* Reset generic hero p styles */
    min-height: auto;
    border: none;
    margin-left: auto;
    margin-right: auto;
}

.hero p {
    color: #000000;
    background: rgba(255, 255, 255, 0.9);
    padding: 1.25rem 2rem;
    border-radius: var(--radius-md);
    display: inline-block;
    backdrop-filter: blur(10px);
    max-width: 800px;
    margin: 0 auto 2rem;
    font-size: 1.25rem;
    line-height: 1.6;
    border-left: 6px solid var(--accent-color);
    box-shadow: var(--shadow-md);
    min-height: 4.5em;
    /* Prevent layout shift during typing */
}

/* Subpage Header - Simplified version without large background images */
.subpage-header {
    background: var(--gradient-hero);
    color: var(--text-white);
    padding: var(--spacing-lg) 0;
    text-align: center;
}

.subpage-header h1 {
    color: var(--text-white);
    font-size: 2.75rem;
    margin-bottom: 0.5rem;
}

/* Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Navigation Active State */
.nav-links a.active {
    color: var(--primary-color);
    font-weight: 700;
}

.nav-links a.active::after {
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    margin-top: 2px;
}

/* Typewriter Cursor */
.typing-cursor::after {
    content: '|';
    animation: blink 0.8s infinite;
    margin-left: 2px;
    font-weight: bold;
    color: var(--primary-color);
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
    /* Offset for sticky header */
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--text-main);
    background-color: var(--bg-body);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    color: var(--primary-dark);
    line-height: 1.2;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

/* Navbar */
header {
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100px;
    /* Standard header height */
}

.logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo img {
    height: 70px;
    /* Constrain huge logo to standard size */
    width: auto;
    border-radius: 4px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-main);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--secondary-color);
    font-weight: 600;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--text-white);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    border: 2px solid var(--text-white);
    color: var(--text-white);
}

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

/* Hero Section Styles below consolidated above */

/* Section Styles */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: var(--spacing-lg);
    color: var(--primary-dark);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.card {
    background: var(--bg-white);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.card h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

/* Impact Stats */
.impact-section {
    background: var(--bg-white);
    padding: var(--spacing-lg) 0;
}

.stat-card {
    text-align: center;
    padding: 2rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Timeline (Retaining structure) */
.timeline-section {
    padding: var(--spacing-lg) 0;
    background: var(--bg-light);
}

/* ... (Timeline styles can be added if we keep the timeline) ... */

/* Footer */
footer {
    background: #1e293b;
    color: #cbd5e1;
    padding: var(--spacing-lg) 0 var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.footer-column h4 {
    color: var(--text-white);
    margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: white;
        padding: 2rem;
        box-shadow: var(--shadow-lg);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero h1 {
        font-size: 2.5rem;
    }
}

/* Section Layouts */
.section-padding {
    padding: var(--spacing-xl) 0;
}

.section-compact {
    padding: var(--spacing-lg) 0;
}

.bg-white-card {
    background: var(--bg-white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid #f1f5f9;
}

.mission-text {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: var(--text-dark);
    line-height: 1.6;
}

.network-card {
    background: #F0FDFA;
    padding: 1.5rem;
    border-radius: 12px;
}

.network-list {
    list-style: none;
    padding: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.vision-card {
    background: #FFF7ED;
    padding: 1.5rem;
    border-radius: 12px;
}

.skillnet-feature {
    margin-top: 4rem;
    background: #E0F2FE;
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
}

.stat-card.light {
    background: var(--bg-white);
    padding: 1rem;
    border: 1px solid #f1f5f9;
}

.story-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.gallery-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.3s ease;
    cursor: pointer;
}

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

.contact-section {
    background: var(--bg-dark);
    color: var(--text-white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

/* Specific style for index.html dark contact section form */
.contact-section .contact-form-card {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: var(--text-white);
}

.contact-section .contact-input {
    background: rgba(255, 255, 255, 0.9);
    border: none;
}

/* General contact form styles (for contact.html) */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-input {
    padding: 0.8rem;
    border-radius: 6px;
    border: none;
    background: rgba(255, 255, 255, 0.9);
}

/* Staggered Animation Logic */
.reveal.stagger>* {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.stagger.active>*:nth-child(1) {
    transition-delay: 0.1s;
    opacity: 1;
    transform: translateY(0);
}

.reveal.stagger.active>*:nth-child(2) {
    transition-delay: 0.2s;
    opacity: 1;
    transform: translateY(0);
}

.reveal.stagger.active>*:nth-child(3) {
    transition-delay: 0.3s;
    opacity: 1;
    transform: translateY(0);
}

.reveal.stagger.active>*:nth-child(4) {
    transition-delay: 0.4s;
    opacity: 1;
    transform: translateY(0);
}

/* Carousel Styles */
.carousel-container {
    position: relative;
    padding: 2rem 0;
}

.carousel-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 2rem;
    scrollbar-width: none;
    padding-bottom: 2rem;
}

.carousel-track::-webkit-scrollbar {
    display: none;
}

.carousel-slide {
    min-width: calc(33.333% - 1.35rem);
    scroll-snap-align: center;
}

@media (max-width: 992px) {
    .carousel-slide {
        min-width: calc(50% - 1rem);
    }
}

@media (max-width: 640px) {
    .carousel-slide {
        min-width: 100%;
    }
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--secondary-color);
    transform: scale(1.3);
}

/* Utility */
.animate {
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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