/* ==========================================================================
   Sahaa Technologies - Modern Design System & Global Styles
   ========================================================================== */

:root {
    /* Brand Color Palette matching Official Sahaa Technologies Logo */
    --primary: #11223c;          /* Deep Corporate Navy matching Logo */
    --primary-light: #183358;    /* Medium Royal Navy */
    --primary-surface: #142845;
    --navy: #162a45;             /* Navy from Logo Dots & Brandmark */
    --navy-light: #24426b;
    --accent: #c98218;           /* Warm Gold / Ochre from Logo Dots */
    --accent-hover: #b3710f;     /* Rich Deep Gold */
    --accent-glow: rgba(201, 130, 24, 0.35);
    --gold: #d98a1a;
    --gold-light: #fef3c7;
    --cyan: #c98218;
    --cyan-glow: rgba(201, 130, 24, 0.25);
    --emerald: #10b981;
    --amber: #f59e0b;
    --rose: #e11d48;
    
    /* Neutrals */
    --bg-main: #f8fafc;
    --bg-alt: #f1f5f9;
    --surface-card: #ffffff;
    --surface-glass: rgba(255, 255, 255, 0.90);
    --border-light: #e2e8f0;
    --border-card: rgba(226, 232, 240, 0.85);
    
    /* Text */
    --text-primary: #0f223d;
    --text-muted: #475569;
    --text-light: #94a3b8;
    --text-white: #ffffff;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(15, 34, 61, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(15, 34, 61, 0.08), 0 2px 4px -2px rgba(15, 34, 61, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(15, 34, 61, 0.08), 0 4px 6px -4px rgba(15, 34, 61, 0.04);
    --shadow-xl: 0 20px 25px -5px rgba(15, 34, 61, 0.12), 0 8px 10px -6px rgba(15, 34, 61, 0.04);
    --shadow-card: 0 12px 30px rgba(15, 34, 61, 0.07);
    --shadow-glow: 0 0 25px var(--accent-glow);
    
    /* Typography */
    --font-heading: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-base: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-smooth: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-pill: 9999px;
    
    /* Container */
    --container-max: 1320px;
}

/* Base Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text-muted);
    background-color: var(--bg-main);
    overflow-x: hidden;
}

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

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

a:hover {
    color: var(--accent-hover);
}

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

.icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    display: inline-block;
    vertical-align: middle;
}
.icon-sm {
    width: 15px;
    height: 15px;
}
.icon-lg {
    width: 28px;
    height: 28px;
}

/* Utilities */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }

.text-gradient {
    background: linear-gradient(135deg, #0f223d 0%, #162a45 40%, #c98218 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-cyan, .text-gradient-gold {
    background: linear-gradient(135deg, #c98218 0%, #e69926 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.py-1 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2 { padding-top: 1rem; padding-bottom: 1rem; }
.py-3 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-4 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.py-5 { padding-top: 4.5rem; padding-bottom: 4.5rem; }
.py-6 { padding-top: 6rem; padding-bottom: 6rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.flex-column { flex-direction: column; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }
.flex-wrap { flex-wrap: wrap; }

.max-w-600 { max-width: 600px; }
.max-w-800 { max-width: 800px; }
.mx-auto { margin-left: auto; margin-right: auto; }

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

@media (max-width: 1024px) {
    .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .py-5 { padding-top: 3rem; padding-bottom: 3rem; }
    .py-6 { padding-top: 3.5rem; padding-bottom: 3.5rem; }
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

/* Top Bar */
.top-bar {
    background-color: var(--primary);
    color: var(--text-light);
    font-size: 0.85rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.top-bar a {
    color: var(--text-light);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.top-bar svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}
.top-bar a:hover {
    color: var(--text-white);
}
.top-bar-left, .top-bar-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Main Navbar */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    transition: all var(--transition-base);
}

.site-header.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(11, 19, 43, 0.08);
    padding: 0.25rem 0;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
    transition: height var(--transition-base);
}
.site-header.scrolled .navbar {
    height: 68px;
}

/* Brand Logo */
.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}
.brand-logo img {
    max-height: 52px;
    width: auto;
    object-fit: contain;
    transition: transform var(--transition-fast);
}
.brand-logo:hover img {
    transform: scale(1.02);
}
.brand-text {
    display: flex;
    flex-direction: column;
}
.brand-name {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.1;
    letter-spacing: -0.02em;
}
.brand-name span {
    color: var(--accent);
}
.brand-tagline {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

/* Nav Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
}
.nav-item {
    position: relative;
}
.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.55rem 0.75rem;
    font-size: 0.91rem;
    font-weight: 600;
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
    color: var(--accent);
    background-color: rgba(201, 130, 24, 0.08);
}
.nav-link .icon {
    width: 14px;
    height: 14px;
}

/* CTA Header Group */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--primary);
    border-radius: var(--radius-sm);
}
.mobile-toggle svg {
    width: 28px;
    height: 28px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-section {
    position: relative;
    padding: 5.5rem 0 5rem;
    background: radial-gradient(circle at 85% 15%, rgba(201, 130, 24, 0.12) 0%, transparent 45%),
                radial-gradient(circle at 15% 75%, rgba(22, 42, 69, 0.08) 0%, transparent 40%),
                linear-gradient(180deg, #ffffff 0%, var(--bg-main) 100%);
    overflow: hidden;
}

.hero-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem 1.1rem;
    background: rgba(201, 130, 24, 0.1);
    border: 1px solid rgba(201, 130, 24, 0.3);
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 1.5rem;
}
.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--accent);
    box-shadow: 0 0 0 0 rgba(201, 130, 24, 0.7);
    animation: pulseGlow 2s infinite;
}
@keyframes pulseGlow {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(201, 130, 24, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(201, 130, 24, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(201, 130, 24, 0); }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: var(--primary);
    margin-bottom: 1.5rem;
}
.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--text-muted);
    max-width: 680px;
    margin-bottom: 2.25rem;
}

/* Hero Stats Bar */
.hero-stats-row {
    margin-top: 4rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--border-light);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}
.stat-item {
    text-align: left;
}
.stat-number {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.4rem;
}
.stat-number span {
    color: var(--accent);
}
.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

@media (max-width: 1024px) {
    .hero-title { font-size: 2.75rem; }
    .hero-stats-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .hero-title { font-size: 2.2rem; }
    .hero-subtitle { font-size: 1.05rem; }
    .hero-stats-row { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
    .top-bar { display: none; }
    .nav-menu { display: none; }
    .mobile-toggle { display: block; }
}

/* ==========================================================================
   Section Headers & Cards
   ========================================================================== */

.section-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 0.6rem;
}
.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--primary);
    margin-bottom: 1rem;
}
.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Glassmorphic & Modern Cards */
.card {
    background: var(--surface-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}
.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card);
    border-color: rgba(201, 130, 24, 0.35);
}

.card-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: rgba(201, 130, 24, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    margin-bottom: 1.5rem;
    transition: all var(--transition-base);
}
.card:hover .card-icon-wrap {
    background: var(--accent);
    color: var(--text-white);
    transform: scale(1.05);
}
.card-icon-wrap svg {
    width: 28px;
    height: 28px;
}

.card-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--primary);
}
.card-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Footer */
.site-footer {
    background-color: var(--primary);
    color: #cbd5e1;
    padding-top: 5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-logo-box {
    display: inline-flex;
    align-items: center;
    background: #ffffff;
    padding: 0.6rem 1.15rem;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    margin-bottom: 1.5rem;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.footer-logo-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.footer-logo-box img {
    max-height: 48px;
    width: auto;
    object-fit: contain;
    display: block;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3.5rem;
}
.footer-col h4 {
    color: var(--text-white);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
}
.footer-col h4::after {
    content: '';
    display: block;
    width: 32px;
    height: 2px;
    background-color: var(--accent);
    margin-top: 0.5rem;
}
.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.footer-links a {
    color: #94a3b8;
    font-size: 0.92rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all var(--transition-fast);
}
.footer-links a:hover {
    color: var(--text-white);
    transform: translateX(4px);
}
.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.92rem;
    color: #94a3b8;
}
.footer-contact-item svg {
    width: 20px;
    height: 20px;
    color: var(--cyan);
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.footer-bottom {
    padding: 1.75rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.88rem;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.footer-bottom a {
    color: #94a3b8;
}
.footer-bottom a:hover {
    color: var(--text-white);
}

@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 0.75rem; text-align: center; }
}
