/* ==========================================================================
   CSS Variables & Global Styles
   ========================================================================== */
:root {
    /* Colors extracted from flyer */
    --primary: #0B3A7E;       /* Deep Navy Blue */
    --secondary: #48A63F;     /* Grass Green */
    --primary-dark: #072554;
    --secondary-light: #5BCE51;
    --dark: #1F2937;
    --gray-dark: #4B5563;
    --gray-light: #9CA3AF;
    --bg-light: #F9FAFB;
    --white: #FFFFFF;
    
    /* Typography */
    --font-main: 'Inter', sans-serif;
    
    /* Effects */
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --radius: 12px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--dark);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

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

/* ==========================================================================
   Utility Classes
   ========================================================================== */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-padding {
    padding: 5rem 0;
}

.bg-light {
    background-color: var(--bg-light);
}

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

.text-white {
    color: var(--white);
}

.text-center {
    text-align: center;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--primary);
}

.bg-primary .section-title {
    color: var(--white);
}

.card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
}

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

/* Grids */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
}

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

.btn-primary:hover {
    background-color: var(--secondary-light);
    box-shadow: 0 4px 14px rgba(72, 166, 63, 0.4);
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--white);
    color: var(--white);
}

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

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo img {
    height: 50px;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-list a {
    font-weight: 500;
    color: var(--dark);
    font-size: 0.95rem;
}

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

.btn-primary-small {
    background-color: var(--primary);
    color: var(--white) !important;
    padding: 0.5rem 1.25rem;
    border-radius: 20px;
}

.btn-primary-small:hover {
    background-color: var(--primary-dark);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--primary);
    transition: var(--transition);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('https://images.unsplash.com/photo-1577223625816-7546f13df25d?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    margin-top: 80px;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(11, 58, 126, 0.9) 0%, rgba(31, 41, 55, 0.7) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    max-width: 900px;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero .tagline {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 2.5rem;
}

.hero .tagline span {
    color: var(--secondary);
    font-weight: 600;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 4rem;
}

.hero-highlights {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: var(--radius);
    backdrop-filter: blur(5px);
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.highlight-item img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    font-size: 1.125rem;
    color: var(--gray-dark);
    margin-bottom: 1.5rem;
}

.about-image img {
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

/* ==========================================================================
   Core Functions
   ========================================================================== */
.function-card {
    text-align: center;
}

.function-card .card-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.function-card .card-icon img {
    width: 32px;
}

.function-card h3 {
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.function-card p {
    color: var(--gray-dark);
    font-size: 0.95rem;
}

/* ==========================================================================
   Infrastructure Services
   ========================================================================== */
.service-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--bg-light);
}

.service-icon {
    width: 48px;
    height: 48px;
}

.service-header h3 {
    color: var(--primary);
    font-size: 1.2rem;
}

.service-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--gray-dark);
    font-size: 0.95rem;
}

.service-list li::before {
    content: "•";
    color: var(--secondary);
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
}

/* ==========================================================================
   Why Choose Us
   ========================================================================== */
.why-item {
    display: flex;
    gap: 1.25rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: var(--radius);
}

.check-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.why-item h4 {
    color: var(--secondary-light);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.why-item p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

/* ==========================================================================
   Gallery Section
   ========================================================================== */
.gallery-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.gallery-item figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(11, 58, 126, 0.9));
    color: var(--white);
    padding: 1.5rem 1rem 1rem;
    font-weight: 600;
    font-size: 1.1rem;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem;
}

.contact-info h2 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-icon {
    width: 24px;
    height: 24px;
}

.contact-item span {
    display: block;
    font-size: 0.85rem;
    color: var(--gray-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-item a {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
}

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

.contact-qr {
    text-align: center;
    padding-left: 3rem;
    border-left: 2px dashed var(--bg-light);
}

.contact-qr img {
    width: 150px;
    margin: 0 auto 1rem;
}

.contact-qr p {
    color: var(--secondary);
    font-size: 1.1rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background-color: var(--primary-dark);
    color: var(--white);
    padding: 4rem 0 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-logo {
    height: 60px;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links h3, .footer-contact h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--secondary);
}

.footer-links ul li {
    margin-bottom: 0.75rem;
}

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

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

.footer-contact p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.75rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* ==========================================================================
   Animations
   ========================================================================== */
.fade-in {
    animation: fadeIn 1.5s ease forwards;
}

.slide-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-up.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ==========================================================================
   Media Queries
   ========================================================================== */
@media (max-width: 992px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .about-grid, .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .contact-card { flex-direction: column; gap: 3rem; text-align: center; }
    .contact-item { justify-content: center; }
    .contact-qr { padding-left: 0; border-left: none; border-top: 2px dashed var(--bg-light); padding-top: 2rem; }
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .hero .tagline { font-size: 1.2rem; }
    .grid-3, .grid-2 { grid-template-columns: 1fr; }
    
    .mobile-menu-toggle { display: block; }
    .main-nav {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--white);
        flex-direction: column;
        transition: 0.3s;
        text-align: center;
    }
    .main-nav.active { left: 0; }
    .nav-list {
        flex-direction: column;
        padding-top: 2rem;
        gap: 2rem;
    }
    .mobile-menu-toggle.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .mobile-menu-toggle.active .bar:nth-child(2) { opacity: 0; }
    .mobile-menu-toggle.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}