/* ===================================
   CSS Variables & Reset
   =================================== */
:root {
    /* Colors - Professional Sky Blue palette (sophisticated, not cartoonish) */
    --primary-color: #1E88E5;        /* Bright Blue - professional, vibrant */
    --secondary-color: #26A69A;      /* Teal Blue - subtle turquoise, not green */
    --accent-color: #42A5F5;         /* Light Blue - soft accent */
    --dark-blue: #0D47A1;            /* Deep Blue - rich, elegant */
    --light-sky: #E3F2FD;            /* Very Light Blue background */
    --cream: #F5F5F5;                /* Soft Gray-White */
    --sage: #80DEEA;                 /* Cyan - light accent only */
    --teal: #00796B;                 /* Deep Teal - sophisticated */
    --text-dark: #2E2E2E;            /* Dark Gray for body text (readable, not overwhelming) */
    --text-light: #5A5A5A;           /* Medium Gray for secondary text */
    --heading-color: #01579B;        /* Deep Blue for headings only */
    --white: #FFFFFF;
    --gray-light: #F4F4F4;
    --gray-medium: #CCCCCC;
    
    /* Typography */
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Open Sans', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    
    /* Transitions */
    --transition-speed: 0.3s;
    
    /* Border radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
}

/* Reset & Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-secondary);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-speed) ease;
}

ul {
    list-style: none;
}

/* ===================================
   Accessibility
   =================================== */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: var(--white);
    padding: var(--spacing-sm);
    z-index: 100;
    text-decoration: none;
}

.skip-link:focus {
    top: 0;
}

/* Focus styles */
a:focus, button:focus, input:focus, textarea:focus, select:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* ===================================
   Typography
   =================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
    color: var(--heading-color);
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }

p {
    margin-bottom: var(--spacing-sm);
    color: var(--text-dark);
}

/* ===================================
   Container & Layout
   =================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

@media (min-width: 768px) {
    .container {
        padding: 0 var(--spacing-md);
    }
}

/* Section Spacing */
section {
    padding: var(--spacing-xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-header h2 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.divider {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    margin: 0 auto;
}

/* ===================================
   Header & Navigation
   =================================== */
.site-header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) 0;
}

.logo h1 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.logo .tagline {
    font-size: 0.875rem;
    color: var(--text-light);
    margin: 0;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
}

.hamburger {
    display: block;
    width: 28px;
    height: 2px;
    background: var(--primary-color);
    position: relative;
    transition: background var(--transition-speed) ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 28px;
    height: 2px;
    background: var(--primary-color);
    transition: all var(--transition-speed) ease;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    bottom: -8px;
}

/* Navigation */
.main-nav ul {
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
}

.main-nav > ul > li {
    position: relative;
}

.main-nav a {
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-dark);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    transition: all var(--transition-speed) ease;
    white-space: nowrap;
    display: block;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary-color);
    background: var(--light-sky);
}

/* Dropdown Menu */
.has-submenu {
    position: relative;
}

.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    border-radius: var(--radius-md);
    min-width: 200px;
    max-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-speed) ease;
    z-index: 100;
    display: flex;
    flex-direction: column;
}

.has-submenu:hover .submenu,
.has-submenu:focus-within .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu li {
    border-bottom: 1px solid var(--gray-light);
    display: block;
    text-align: left !important;
}

.submenu li:last-child {
    border-bottom: none;
}

.submenu a {
    display: block;
    padding: 10px 16px;
    color: var(--text-dark);
    white-space: nowrap;
    text-align: left !important;
}

.submenu a:hover {
    background: var(--light-sky);
    color: var(--primary-color);
}

/* Mobile Navigation */
@media (max-width: 1100px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background: var(--white);
        box-shadow: -5px 0 20px rgba(0,0,0,0.2);
        padding: var(--spacing-lg) var(--spacing-md);
        overflow-y: auto;
        transition: right var(--transition-speed) ease;
    }
    
    .main-nav.active {
        right: 0;
    }
    
    .main-nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }
    
    .main-nav > ul > li {
        position: static;
    }
    
    .main-nav li {
        border-bottom: 1px solid var(--gray-light);
    }
    
    .main-nav a {
        display: block;
        padding: var(--spacing-sm);
    }
    
    .submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height var(--transition-speed) ease;
    }
    
    .has-submenu.active .submenu {
        max-height: 500px;
    }
    
    .submenu a {
        padding-left: var(--spacing-lg);
        font-size: 0.9rem;
    }
}

/* ===================================
   Hero Section with Carousel
   =================================== */
.hero {
    position: relative;
    height: 70vh;
    min-height: 500px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-blue) 100%);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
}

/* Carousel Background Images */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    animation: heroCarousel 15s infinite;
    z-index: 0;
}

@keyframes heroCarousel {
    0%, 33% {
        background-image: url('../Images/hero-bg-1.jpg');
        opacity: 1;
    }
    34%, 66% {
        background-image: url('../Images/hero-bg-2.jpg');
        opacity: 1;
    }
    67%, 100% {
        background-image: url('../Images/hero-bg-3.jpg');
        opacity: 1;
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(1, 87, 155, 0.5);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 var(--spacing-md);
}

.hero-content h2 {
    font-size: clamp(2rem, 6vw, 4rem);
    margin-bottom: var(--spacing-md);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    color: var(--white);
}

.hero-content p {
    font-size: clamp(1rem, 2vw, 1.5rem);
    margin-bottom: var(--spacing-lg);
    color: var(--white);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* ===================================
   Buttons
   =================================== */
.btn {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-md);
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    border: 2px solid transparent;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(180deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: var(--white);
    border-color: transparent;
}

.btn-primary:hover {
    background: linear-gradient(180deg, var(--accent-color) 0%, var(--secondary-color) 100%);
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-secondary {
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: var(--white);
    border-color: transparent;
}

.btn-secondary:hover {
    background: linear-gradient(180deg, var(--accent-color) 0%, var(--teal) 100%);
    border-color: transparent;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* ===================================
   About Section
   =================================== */
.about {
    background: var(--gray-light);
}

.about-content {
    display: grid;
    gap: var(--spacing-lg);
}

.about-content-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-lg);
}

.about-text {
    font-size: 1.125rem;
    line-height: 1.8;
}

.about-text-centered {
    font-size: 1.125rem;
    line-height: 1.8;
    text-align: center;
    max-width: 900px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
    width: 100%;
}

.stat-card {
    background: var(--white);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform var(--transition-speed) ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: var(--spacing-xs);
}

.stat-card p {
    color: var(--text-light);
    margin: 0;
}

@media (min-width: 768px) {
    .about-content {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }
    
    .about-stats {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ===================================
   Quick Links Section
   =================================== */
.quick-links {
    background: var(--white);
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
}

.quick-link-card {
    background: var(--light-sky);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all var(--transition-speed) ease;
    border: 2px solid transparent;
}

.quick-link-card:hover {
    transform: translateY(-5px);
    border-color: var(--secondary-color);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.quick-link-card .icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
}

.quick-link-card h3 {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xs);
}

.quick-link-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin: 0;
}

/* ===================================
   Departments Section
   =================================== */
.departments {
    background: var(--cream);
}

.departments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.department-card {
    background: var(--white);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform var(--transition-speed) ease;
}

.department-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.department-card h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.department-card p {
    margin-bottom: var(--spacing-md);
}

/* ===================================
   Enterprises Section
   =================================== */
.enterprises {
    background: var(--white);
}

.enterprises-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
}

.enterprise-card {
    background: linear-gradient(180deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: var(--white);
    padding: var(--spacing-lg) var(--spacing-md);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: transform var(--transition-speed) ease;
}

.enterprise-card:hover {
    transform: scale(1.05);
}

.enterprise-card h3 {
    color: var(--white);
    margin-bottom: var(--spacing-sm);
}

.enterprise-card p {
    color: rgba(255,255,255,0.9);
    margin-bottom: var(--spacing-md);
}

.enterprise-card .btn-outline {
    border-color: var(--white);
    color: var(--white);
}

.enterprise-card .btn-outline:hover {
    background: var(--white);
    color: var(--primary-color);
}

/* ===================================
   News Section
   =================================== */
.news {
    background: var(--gray-light);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.news-card {
    background: var(--white);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform var(--transition-speed) ease;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-date {
    color: var(--secondary-color);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

.news-card h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.news-card p {
    margin-bottom: var(--spacing-md);
}

.read-more {
    color: var(--accent-color);
    font-weight: 600;
    transition: color var(--transition-speed) ease;
}

.read-more:hover {
    color: var(--primary-color);
}

/* ===================================
   Footer
   =================================== */
.site-footer {
    background: var(--dark-blue);
    color: var(--white);
    padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-section h3,
.footer-section h4 {
    color: var(--secondary-color);
    margin-bottom: var(--spacing-md);
}

.footer-section p {
    color: rgba(255,255,255,0.8);
}

.footer-section ul li {
    margin-bottom: var(--spacing-xs);
}

.footer-section a {
    color: rgba(255,255,255,0.8);
    transition: color var(--transition-speed) ease;
}

.footer-section a:hover {
    color: var(--secondary-color);
}

.social-links {
    display: flex;
    gap: var(--spacing-sm);
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transition: all var(--transition-speed) ease;
}

.social-links a:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
    color: rgba(255,255,255,0.6);
    margin: 0;
    font-size: 0.875rem;
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 768px) {
    :root {
        --spacing-xl: 2rem;
        --spacing-lg: 1.5rem;
    }
    
    .hero {
        height: 60vh;
        min-height: 400px;
    }
    
    section {
        padding: var(--spacing-lg) 0;
    }
}

@media (max-width: 480px) {
    .quick-links-grid,
    .departments-grid,
    .enterprises-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   Print Styles
   =================================== */
@media print {
    .site-header,
    .mobile-menu-toggle,
    .hero,
    .site-footer {
        display: none;
    }
    
    body {
        font-size: 12pt;
        color: #000;
    }
    
    a {
        text-decoration: underline;
    }
}
