@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

html {
    scroll-behavior: smooth;
}

:root {
    --primary: #2fa22a;    /* Green */
    --primary-light: #86efac;
    --secondary: #05577c;  /* Blue */
    --secondary-light: #38bdf8;
    --accent: #f59e0b;     /* Amber */
    
    --bg-main: #ffffff;
    --bg-soft: #f0fdf4;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border: #e2e8f0;
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 32px;
    
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(47,162,42,0.08);
    --shadow-lg: 0 10px 30px rgba(47,162,42,0.12);
    
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --grad: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --grad-blue: linear-gradient(135deg, #2fa22a 0%, #4ecb4e 100%);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', 'Inter', sans-serif;
    color: var(--text-main);
    background: var(--bg-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- Layout --- */
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
}

/* --- Typography --- */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(47,162,42,0.1);
    color: var(--primary);
    border-radius: 99px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 24px;
}

.section-title span {
    color: var(--primary);
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.125rem;
    max-width: 700px;
    margin-bottom: 60px;
}

/* --- Navigation --- */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 2000;
}

.navbar {
    width: 100%;
    padding: 20px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(15px);
    padding: 12px 0;
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--border);
}

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

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 56px;
    width: auto;
    object-fit: contain;
    transition: height 0.3s ease;
}

.navbar.scrolled .logo-img {
    height: 42px;
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px; left: 0; width: 0; height: 2px;
    background: var(--grad);
    transition: var(--transition);
}

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

.nav-cta {
    display: flex;
    align-items: center;
    gap: 15px;
}

.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 2001;
}

body.no-scroll {
    overflow: hidden;
}

/* --- Buttons --- */
.btn {
    padding: 12px 28px;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 10px 20px rgba(47,162,42,0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(47,162,42,0.3);
}

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

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

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    padding: 160px 0 100px;
    background: radial-gradient(circle at top right, rgba(47,162,42,0.05), transparent 40%),
                radial-gradient(circle at bottom left, rgba(5,150,105,0.05), transparent 40%);
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.2rem);
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero-title span {
    color: var(--primary);
    position: relative;
}

.hero-title span::after {
    content: '';
    position: absolute;
    bottom: 8px; left: 0; width: 100%; height: 12px;
    background: rgba(47,162,42,0.1);
    z-index: -1;
}

.hero-desc {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-btns {
    display: flex;
    gap: 20px;
    margin-bottom: 50px;
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.stat-item h3 {
    font-size: 1.75rem;
    color: var(--primary);
}

.stat-item p {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
}

.hero-img-wrap {
    position: relative;
}

.hero-img-main {
    width: 100%;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    z-index: 10;
    position: relative;
}

.hero-blob {
    position: absolute;
    top: -10%; right: -10%;
    width: 120%; height: 120%;
    background: var(--grad);
    filter: blur(80px);
    opacity: 0.1;
    border-radius: 50%;
    z-index: 1;
}

.hero-card-float {
    position: absolute;
    background: white;
    padding: 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 20;
    animation: float 6s ease-in-out infinite;
}

.float-1 { top: 10%; left: -10%; }
.float-2 { bottom: 15%; right: -5%; animation-delay: 2s; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* --- Services --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.service-card {
    background: white;
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

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

.s-icon {
    width: 64px; height: 64px;
    background: var(--bg-soft);
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: var(--primary);
    transition: var(--transition);
}

.service-card:hover .s-icon {
    background: var(--primary);
    color: white;
    transform: rotate(10deg);
}

.service-card h3 {
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.s-link {
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* --- Careers --- */
.career-section {
    background: var(--bg-soft);
}

.career-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 80px;
    align-items: center;
}

.job-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.job-card {
    background: white;
    padding: 24px;
    border-radius: var(--radius-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.job-card:hover {
    border-color: var(--primary);
    transform: translateX(10px);
}

/* --- Admin Panel Styles --- */
.admin-bg {
    background: #f1f5f9;
    min-height: 100vh;
}

.admin-sidebar {
    width: 280px;
    background: #1e293b;
    height: 100vh;
    position: fixed;
    color: white;
    padding: 30px;
}

.admin-main {
    margin-left: 280px;
    padding: 40px;
}

.admin-card {
    background: white;
    padding: 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin-bottom: 30px;
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-content { display: flex; flex-direction: column; align-items: center; }
    .hero-stats { justify-content: center; }
    .nav-links { display: none; }
    .float-1, .float-2 { display: none; }
}

@media (max-width: 640px) {
    .section { padding: 60px 0; }
    .hero-btns { flex-direction: column; width: 100%; }
    .btn { justify-content: center; }
}

/* Floating WhatsApp Button */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: white;
    font-size: 30px;
    box-shadow: 0 10px 20px rgba(37,211,102,0.3);
    z-index: 1000;
    transition: var(--transition);
    animation: whatsapp-float 3s ease-in-out infinite;
}

.whatsapp-btn::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: #25d366;
    border-radius: 50%;
    z-index: -1;
    animation: whatsapp-pulse 2s ease-out infinite;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
}

.wa-tooltip {
    position: fixed;
    bottom: 40px;
    right: 100px;
    background: white;
    padding: 10px 20px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    font-weight: 600;
    color: var(--text-main);
    z-index: 999;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.5s ease;
    pointer-events: none;
    border: 1px solid var(--border);
    white-space: nowrap;
}

.whatsapp-btn:hover + .wa-tooltip,
.wa-tooltip.show {
    opacity: 1;
    transform: translateX(0);
}

.wa-tooltip::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 8px solid white;
}

@keyframes whatsapp-pulse {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.8); opacity: 0; }
}

@keyframes whatsapp-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* --- Enhanced Hero Section --- */
.hero-mesh {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-announce {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.9);
    border: 1px solid rgba(47,162,42,0.2);
    border-radius: 50px;
    padding: 8px 16px 8px 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.announce-badge {
    background: var(--grad);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.btn-glow {
    animation: glow-pulse 2s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% { box-shadow: 0 4px 14px rgba(47,162,42,0.35), 0 0 0 0 rgba(47,162,42,0.3); }
    50% { box-shadow: 0 4px 14px rgba(47,162,42,0.35), 0 0 0 10px rgba(47,162,42,0); }
}

.btn-ghost {
    background: rgba(255,255,255,0.8);
    color: var(--text-main);
    border: 1.5px solid var(--border);
    backdrop-filter: blur(8px);
}

.btn-ghost:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-glass-wrap {
    position: relative;
    padding: 24px;
    background: rgba(255,255,255,0.5);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.7);
    border-radius: 40px;
    box-shadow: 0 20px 60px rgba(47,162,42,0.15);
    animation: float-card 6s ease-in-out infinite;
}

.dash-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    border: 1px solid var(--border);
    overflow: hidden;
}

.dash-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: #f8fafc;
    border-bottom: 1px solid var(--border);
}

.dash-dots {
    display: flex;
    gap: 6px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot-red { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green { background: #28c840; }

.dash-title-bar {
    flex: 1;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
}

.dash-live {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    color: #10b981;
    background: rgba(16,185,129,0.1);
    padding: 4px 10px;
    border-radius: 20px;
}

.live-dot {
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse 1.2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.metric-pill {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-soft);
    border-radius: 12px;
    border: 1px solid var(--border);
}

.metric-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-size: 18px;
}

.metric-val {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
}

.metric-key {
    font-size: 12px;
    color: var(--text-muted);
}

.metric-trend {
    margin-left: auto;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 20px;
}

.metric-trend.up {
    background: rgba(16,185,129,0.1);
    color: #10b981;
}

.chart-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 80px;
}

.chart-bar-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    justify-content: flex-end;
}

.chart-bar {
    width: 100%;
    background: var(--grad);
    border-radius: 4px 4px 0 0;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.chart-bar:hover {
    opacity: 1;
}

.float-notif {
    position: absolute;
    background: #fff;
    border-radius: 12px;
    padding: 12px 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 20;
    white-space: nowrap;
    animation: float-card 6s ease-in-out infinite;
}

.notif-1 {
    top: -20px;
    left: -20px;
    animation-delay: 0s;
}

.notif-2 {
    top: 40%;
    right: -30px;
    animation-delay: 1s;
}

.notif-icon {
    font-size: 20px;
}

.notif-text strong {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.2;
}

.notif-text span {
    font-size: 11px;
    color: var(--text-muted);
}

@keyframes float-card {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.hero-rating {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(12px);
    border-radius: 50px;
    border: 1px solid var(--border);
    width: fit-content;
    margin-top: 20px;
}

.rating-stars {
    color: #f59e0b;
    font-size: 14px;
    letter-spacing: 2px;
}

.rating-text {
    font-size: 13px;
    color: var(--text-muted);
}

.stat-divider {
    width: 1px;
    height: 50px;
    background: var(--border);
    margin: 0 20px;
}

.stat-number {
    font-size: 32px;
    font-weight: 800;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.scroll-hint {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.scroll-hint-mouse {
    width: 24px;
    height: 38px;
    border: 2px solid var(--border);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 6px;
}

.scroll-hint-wheel {
    width: 3px;
    height: 8px;
    background: var(--primary);
    border-radius: 2px;
    animation: scroll-wheel 1.5s ease-in-out infinite;
}

@keyframes scroll-wheel {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(10px); opacity: 0; }
}

@media (max-width: 992px) {
    .container {
        padding: 0 25px;
    }
    
    .mobile-toggle {
        display: block;
    }

    .nav-links {
        display: flex; /* Added to override display:none from earlier media query */
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: white;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 2500; /* Increased to ensure it's on top of everything */
        padding: 60px 40px;
    }

    .nav-links.active {
        right: 0;
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    }

    .nav-links li a {
        font-size: 1.5rem;
        font-weight: 700;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .hero-actions {
        justify-content: center;
    }
    .hero-stats {
        justify-content: center;
    }
    .hero-visual {
        order: -1;
    }
    .float-notif, .metric-float {
        display: none !important;
    }
    .stat-divider {
        display: none;
    }
    .scroll-hint {
        display: none;
    }
}

@media (max-width: 600px) {
    .hero {
        padding: 120px 0 80px !important;
    }
    .hero-animated-title {
        font-size: 2rem !important;
        line-height: 1.3 !important;
        margin-bottom: 15px !important;
    }
    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 12px !important;
    }
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
        padding: 14px 20px !important;
    }
    .hero-stats {
        flex-wrap: wrap;
        gap: 15px !important;
        width: 100%;
    }
    .stat-number {
        font-size: 24px !important;
    }
    .about-features {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    .section-title {
        font-size: 1.8rem !important;
    }
    .logo-img {
        height: 48px;
    }
}

/* --- Top Announcement Bar --- */
.top-bar {
    background: var(--grad);
    color: white;
    padding: 8px 0;
    font-size: 14px;
    overflow: hidden;
    position: relative;
}

/* --- Ticker Animation --- */
.ticker-container {
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
    display: flex;
}

.ticker-content {
    display: inline-block;
    padding-left: 100%;
    animation: ticker 30s linear infinite;
}

.ticker-content:hover {
    animation-play-state: paused;
}

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

.ticker-item {
    display: inline-block;
    padding-right: 50px;
    color: white;
    text-decoration: none;
}

.ticker-item:hover {
    text-decoration: underline;
}

.top-bar-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.top-badge {
    background: rgba(255,255,255,0.2);
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    margin-right: 8px;
    border: 1px solid rgba(255,255,255,0.3);
}

.top-link {
    color: white;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: opacity 0.3s;
}

.top-link:hover {
    opacity: 0.8;
}

/* --- News Section Styling --- */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.news-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

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

.news-thumb {
    height: 200px;
    background: var(--bg-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.news-thumb i, .news-thumb span {
    font-size: 4rem;
    transition: var(--transition);
}

.news-card:hover .news-thumb span {
    transform: scale(1.1) rotate(5deg);
}

.news-body {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-cat {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: white;
    background: var(--primary);
    margin-bottom: 20px;
}

.news-title {
    font-size: 1.25rem;
    margin-bottom: 15px;
    color: var(--text-main);
    line-height: 1.4;
}

.news-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-cta-row {
    text-align: center;
    margin-top: 60px;
}

@media (max-width: 768px) {
    .top-bar-flex {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    .top-link {
        font-size: 12px;
    }
}

/* --- Detailed Services Sections --- */
.service-detail-section {
    padding: 100px 0;
}

.service-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.service-detail-grid.reverse {
    grid-template-columns: 1fr 1fr;
    direction: rtl;
}

.service-detail-grid.reverse > div {
    direction: ltr;
}

.feature-list-detailed {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 30px 0;
    list-style: none;
}

.feature-list-detailed li {
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 0.95rem;
    font-weight: 500;
}

.feature-list-detailed li i {
    color: var(--primary);
}

.service-img-wrap {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.service-img-wrap img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    transition: var(--transition);
}

.service-img-wrap:hover img {
    transform: scale(1.05);
}

/* --- Why Choose Us Grid --- */
.why-grid-v2 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.why-card-v2 {
    background: white;
    padding: 30px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    text-align: center;
    transition: var(--transition);
}

.why-card-v2:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.why-card-v2 i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 20px;
}

@media (max-width: 992px) {
    .service-detail-grid, .service-detail-grid.reverse {
        grid-template-columns: 1fr;
        gap: 50px;
        direction: ltr;
    }
    .why-grid-v2 {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .why-grid-v2 {
        grid-template-columns: 1fr;
    }
}

/* Animations */
@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}
.blink-anim {
    animation: blink 1s linear infinite;
}

/* Stats Section Improvements */
.stats-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.stats-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.stats-card i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
    opacity: 0.9;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}


/* ── Mobile Responsive Fixes (768px and below) ───────────────── */
@media (max-width: 768px) {

  /* Homepage: About Preview & Why Choose grids */
  .about-preview-grid, 
  .why-choose-grid {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }

  /* About Page: Mission/Vision & Legacy grids */
  .mission-vision-grid, 
  .legacy-section-grid {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }

  /* Careers Page: Job Apply Form Grid */
  .job-apply-grid {
    grid-template-columns: 1fr !important;
    gap: 15px !important;
  }

  /* CTA Section: Padding reduction for mobile screens */
  .cta-inner-block {
    padding: 40px 20px !important;
    border-radius: 20px !important;
  }

  /* UI: Hide floating metric cards to prevent horizontal overflow */
  .metric-float {
    display: none !important;
  }

  /* Contact Page Fixes */
  .contact-grid,
  .form-grid-row {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .contact-form-container {
    padding: 30px 20px !important;
  }

  /* General: Flex containers stack on mobile */
  .about-preview-grid div[style*="flex"],
  .legacy-section-grid div[style*="flex"],
  .services-stats-grid {
    grid-template-columns: 1fr !important;
    flex-wrap: wrap;
    gap: 20px;
  }
}

/* ── Specific Fixes (480px and below) ────────────────────── */
@media (max-width: 480px) {
  .hero-title {
    font-size: 2.2rem !important;
  }
  
  .hero {
    padding-top: 120px !important;
  }

  /* Force CTA button stacking */
  .cta-inner-block div[style*="flex"] {
    flex-direction: column !important;
    gap: 15px !important;
  }

  .cta-inner-block a {
    width: 100% !important;
    justify-content: center !important;
  }
}
