/* =======================================
   DESIGN SYSTEM & VARIABLES
   ======================================= */
:root {
    /* Colors */
    --primary-color: #0066FF;
    --primary-light: #E6F0FF;
    --primary-hover: #0052cc;
    --secondary-color: #0EA5E9; /* Cyan blue accent */
    
    --text-dark: #0F172A;
    --text-body: #475569;
    --text-light: #94A3B8;
    
    --bg-main: #FFFFFF;
    --bg-light: #F8FAFC;
    --bg-blue-tint: #F0F9FF;
    
    --white: #FFFFFF;
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Animation & Shadows */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-glow: 0 0 20px rgba(0, 102, 255, 0.4);
    
    /* Spacing */
    --section-pad: 5rem 0;
}

/* =======================================
   RESET & BASE STYLES
   ======================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-dark);
    line-height: 1.2;
    font-weight: 700;
}

h1 { font-size: 3.5rem; letter-spacing: -0.02em; }
h2 { font-size: 2.5rem; letter-spacing: -0.01em; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }

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

ul { list-style: none; }

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

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section { padding: var(--section-pad); }

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

.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }

.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* =======================================
   BUTTONS
   ======================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition-normal);
}

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

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

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-glow {
    box-shadow: var(--shadow-glow);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 102, 255, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(0, 102, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 102, 255, 0); }
}

/* =======================================
   NAVIGATION
   ======================================= */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition-normal);
}

.navbar.scrolled {
    padding: 0.75rem 0;
    box-shadow: var(--shadow-sm);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.logo img { height: 40px; flex-shrink: 0; }

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

.nav-links a:not(.btn) {
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0; width: 0; height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition-normal);
}

.nav-links a:not(.btn):hover::after { width: 100%; }
.nav-links a:not(.btn):hover { color: var(--primary-color); }

.nav-actions { display: flex; align-items: center; gap: 1rem; }

.menu-toggle {
    display: none;
    background: none; border: none;
    font-size: 1.5rem;
    color: var(--text-dark);
    cursor: pointer;
}

.d-mobile-only { display: none; }

/* =======================================
   HERO SECTION
   ======================================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 5rem; /* account for navbar */
    padding-bottom: 3rem;
    background-image: url('../img/hero-bg.png');
    background-size: cover;
    background-position: center;
}

.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.8) 50%, rgba(255, 255, 255, 0.3) 100%);
}

.hero-container {
    position: relative;
    z-index: 10;
}

.hero-content { max-width: 600px; }

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--primary-light);
    color: var(--primary-color);
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.hero h1 { margin-bottom: 1.5rem; }
.hero p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.promo-banner {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background-color: var(--white);
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--secondary-color);
}

.promo-icon {
    color: var(--secondary-color);
    font-size: 1.5rem;
}

/* =======================================
   STATS SECTION
   ======================================= */
.stats-section {
    position: relative;
    margin-top: 0;
    z-index: 20;
    padding: 2rem 0 3rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.stat-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    text-align: center;
    transition: var(--transition-normal);
}

.stat-card:hover { transform: translateY(-5px); }

.stat-icon {
    width: 60px; height: 60px;
    margin: 0 auto 1rem;
    background-color: var(--primary-light);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem;
}

.stat-card h3 { font-size: 2rem; margin-bottom: 0.25rem; color: var(--primary-color); }

/* =======================================
   SECTION TITLES
   ======================================= */
.section-header { margin-bottom: 3rem; }
.subtitle {
    font-family: var(--font-heading);
    color: var(--secondary-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 0.5rem;
}

/* =======================================
   WHY US SECTION
   ======================================= */
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.why-card {
    padding: 2rem;
    background-color: var(--bg-light);
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,0.03);
    transition: var(--transition-normal);
}

.why-card:hover {
    background-color: var(--white);
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.why-card .icon-wrapper {
    width: 50px; height: 50px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.why-card h4 { margin-bottom: 0.75rem; }

/* =======================================
   SERVICES SECTION
   ======================================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    border: 1px solid transparent;
}

.service-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-10px);
    border-color: var(--primary-light);
}

.service-img-wrapper {
    height: 140px;
    background: linear-gradient(135deg, var(--bg-blue-tint), var(--primary-light));
    display: flex; align-items: center; justify-content: center;
}

.service-icon {
    width: 80px; height: 80px;
    background-color: var(--white);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.service-content { padding: 2rem; }

.service-content h3 { margin-bottom: 1rem; }
.service-content p { margin-bottom: 1.5rem; color: var(--text-body); }

.service-features li {
    display: flex; align-items: center; gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    color: var(--text-dark);
    font-weight: 500;
}

.service-features i { color: var(--secondary-color); font-size: 1.25rem; }

/* =======================================
   CTA SECTION
   ======================================= */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 5rem 0;
}

.cta-section h2, .cta-section p { color: var(--white); }
.cta-section h2 { margin-bottom: 1rem; }
.cta-section p { margin-bottom: 2rem; font-size: 1.1rem; opacity: 0.9; }

.cta-section .btn-primary {
    background-color: var(--white);
    color: var(--primary-color);
}
.cta-section .btn-primary:hover { background-color: var(--bg-light); }

/* =======================================
   LOCATION SECTION
   ======================================= */
.location-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    background-color: var(--white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.location-info { padding: 4rem; }

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

.contact-item i {
    font-size: 1.75rem;
    color: var(--primary-color);
    background-color: var(--primary-light);
    width: 50px; height: 50px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

.contact-item strong { display: block; color: var(--text-dark); margin-bottom: 0.25rem; }

.location-map { min-height: 400px; }

/* =======================================
   FOOTER
   ======================================= */
.footer {
    background-color: #0F172A;
    color: var(--text-light);
    padding-top: 5rem;
}

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

.footer-brand .logo { color: var(--white); margin-bottom: 1.5rem; }
.footer-brand p { margin-bottom: 1.5rem; max-width: 300px; }

.social-links { display: flex; gap: 1rem; }
.social-links a {
    width: 40px; height: 40px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--white);
    font-size: 1.25rem;
}
.social-links a:hover { background-color: var(--primary-color); transform: translateY(-3px); }

.footer-links h4 { color: var(--white); margin-bottom: 1.5rem; }
.footer-links ul li { margin-bottom: 0.75rem; }
.footer-links ul a:hover { color: var(--white); padding-left: 5px; }

.footer-bottom {
    background-color: #0B1120;
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.9rem;
}

/* =======================================
   ANIMATIONS UTILS
   ======================================= */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* =======================================
   RESPONSIVE DESIGN
   ======================================= */
@media (max-width: 992px) {
    h1 { font-size: 2.8rem; }
    .hero-bg-overlay { background: linear-gradient(to right, rgba(255,255,255, 0.95), rgba(255,255,255,0.8)); }
    .location-wrapper { grid-template-columns: 1fr; }
    .location-info { padding: 3rem 2rem; }
    .location-map { min-height: 350px; }
    .stats-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
    .stat-card { padding: 1.5rem 1rem; }
    .stat-card h3 { font-size: 1.5rem; }
    .logo { font-size: 1.25rem; }
}

@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 2rem; }
    
    .menu-toggle { display: block; }
    .d-desktop-only { display: none !important; }
    .d-mobile-only { display: inline-flex; margin-top: 2rem; width: 100%; }
    
    .logo { font-size: 1.1rem; max-width: 200px; }
    .logo span { overflow: hidden; text-overflow: ellipsis; }
    
    .nav-container { gap: 0.5rem; }
    
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        padding-top: 3rem;
        transition: 0.3s ease;
        z-index: 999;
    }
    
    .nav-links.active { left: 0; }
    .nav-links a { font-size: 1.25rem; }
    
    .stats-section { margin-top: 0; }
    .stats-grid { grid-template-columns: 1fr; }
    
    .hero { text-align: center; padding-top: 7rem; padding-bottom: 3rem; min-height: auto; }
    .hero-content { margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
    .hero-buttons { justify-content: center; flex-direction: column; align-items: center; width: 100%; }
    .hero-buttons .btn { width: 100%; max-width: 300px; }
    .hero-bg-overlay { background: rgba(255,255,255, 0.92); }
    .promo-banner { font-size: 0.9rem; }
    
    .footer-container { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
    .footer-brand p { margin: 0 auto 1.5rem; }
    .social-links { justify-content: center; }
    
    .services-grid { grid-template-columns: 1fr; }
    .why-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.6rem; }
    .section { padding: 3rem 0; }
    .hero { padding-top: 6rem; padding-bottom: 2.5rem; }
    .badge { font-size: 0.8rem; }
    .stat-card h3 { font-size: 1.25rem; }
    .cta-section { padding: 3rem 0; }
    .page-header { padding-top: 6rem; padding-bottom: 2.5rem; }
    .page-header h1 { font-size: 2rem; }
}

/* =======================================
   BLOG SECTION & CARDS
   ======================================= */
.page-header {
    padding-top: 8rem;
    padding-bottom: 4rem;
    background: linear-gradient(135deg, var(--primary-light), var(--bg-blue-tint));
    text-align: center;
}

.page-header h1 {
    margin-bottom: 1rem;
    font-size: 3rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.blog-card {
    background-color: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.blog-img {
    height: 200px;
    background-color: var(--primary-light);
    background-size: cover;
    background-position: center;
}

.blog-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
    display: flex;
    gap: 1rem;
}

.blog-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.blog-excerpt {
    color: var(--text-body);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.blog-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--bg-light);
    padding-top: 1rem;
    margin-top: auto;
}

.read-more {
    color: var(--primary-color);
    font-weight: 600;
    font-family: var(--font-heading);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.read-more:hover {
    color: var(--primary-hover);
    gap: 0.75rem;
}

#blog-alert {
    text-align: center;
    padding: 2rem;
    color: var(--text-light);
    font-style: italic;
}

/* =======================================
   ARTICLE MODAL
   ======================================= */
.modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(15, 23, 42, 0.7);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-box {
    background-color: var(--white);
    border-radius: 20px;
    overflow: hidden;
    width: 100%;
    max-width: 720px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-xl);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    position: relative;
}

.modal-overlay.active .modal-box {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
    background-color: rgba(15, 23, 42, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    transition: background-color var(--transition-fast);
}

.modal-close:hover { background-color: rgba(15, 23, 42, 0.8); }

.modal-img {
    height: 220px;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
    background-color: var(--primary-light);
}

.modal-body {
    padding: 2rem;
    overflow-y: auto;
}

.modal-body h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.modal-content-body {
    color: var(--text-body);
    line-height: 1.8;
    font-size: 1rem;
}

.modal-content-body b { color: var(--text-dark); }

@media (max-width: 480px) {
    .modal-img { height: 160px; }
    .modal-body { padding: 1.5rem; }
    .modal-body h2 { font-size: 1.4rem; }
}

/* =======================================
   ADMIN TABS
   ======================================= */
.tabs {
    display: flex;
    gap: 0;
    margin-bottom: 2rem;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #E2E8F0;
}

.tab-btn {
    flex: 1;
    padding: 0.85rem 1rem;
    background-color: #F8FAFC;
    border: none;
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--transition-fast);
}

.tab-btn:not(:last-child) {
    border-right: 1px solid #E2E8F0;
}

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

.tab-btn:hover:not(.active) {
    background-color: #EEF2FF;
    color: var(--primary-color);
}
