/* 
 * NAT Telecom
 * نات تليكوم
 * Modern Stylesheet with Dark/Light Theme Support
 * تصميم عصري متجاوب
 */

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

/* ================================
   CSS Variables - Light Theme
================================ */
:root {
    /* Colors - Blue/Cyan Telecom Theme */
    --primary: #0891b2;
    --primary-dark: #0e7490;
    --primary-light: #22d3ee;
    --secondary: #f97316;
    --secondary-dark: #ea580c;
    --accent: #3b82f6;
    --accent-light: #60a5fa;
    --gradient-primary: linear-gradient(135deg, #0891b2 0%, #0e7490 50%, #06b6d4 100%);
    --gradient-accent: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
    
    /* Light Theme Colors */
    --bg-primary: #f0f9ff;
    --bg-secondary: #ffffff;
    --bg-tertiary: #e0f2fe;
    --bg-card: #ffffff;
    --bg-overlay: rgba(255, 255, 255, 0.85);
    --bg-glass: rgba(255, 255, 255, 0.7);
    
    --text-primary: #0c4a6e;
    --text-secondary: #0369a1;
    --text-tertiary: #0284c7;
    --text-muted: #7dd3fc;
    
    --border-color: #bae6fd;
    --border-light: #e0f2fe;
    
    --shadow-sm: 0 1px 2px rgba(8, 145, 178, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(8, 145, 178, 0.1), 0 2px 4px -1px rgba(8, 145, 178, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(8, 145, 178, 0.1), 0 4px 6px -2px rgba(8, 145, 178, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(8, 145, 178, 0.1), 0 10px 10px -5px rgba(8, 145, 178, 0.04);
    --shadow-glow: 0 0 30px rgba(8, 145, 178, 0.3);
    
    /* Typography */
    --font-arabic: 'Tajawal', sans-serif;
    --font-display: 'Poppins', sans-serif;
    
    /* Spacing */
    --nav-height: 80px;
    --container-max: 1400px;
    --section-padding: 100px;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    --transition-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 50%;
}

/* ================================
   Dark Theme
================================ */
[data-theme="dark"] {
    --bg-primary: #030712;
    --bg-secondary: #0f172a;
    --bg-tertiary: #1e293b;
    --bg-card: #0f172a;
    --bg-overlay: rgba(3, 7, 18, 0.9);
    --bg-glass: rgba(15, 23, 42, 0.8);
    
    --text-primary: #f0f9ff;
    --text-secondary: #bae6fd;
    --text-tertiary: #7dd3fc;
    --text-muted: #38bdf8;
    
    --border-color: #1e4976;
    --border-light: #1e293b;
    
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(8, 145, 178, 0.4);
}

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

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

body {
    font-family: var(--font-arabic);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    transition: background-color var(--transition-normal), color var(--transition-normal);
}

body[dir="rtl"] {
    text-align: right;
}

body[dir="ltr"] {
    text-align: left;
}

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

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    outline: none;
}

ul, ol {
    list-style: none;
}

/* ================================
   Typography
================================ */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.5em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

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

.section-title h2 {
    color: var(--text-primary);
    position: relative;
    display: inline-block;
    padding-bottom: 20px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.section-title p {
    max-width: 600px;
    margin: 20px auto 0;
    color: var(--text-tertiary);
    font-size: 1.125rem;
}

/* ================================
   Layout
================================ */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 30px;
}

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

.section-alt {
    background-color: var(--bg-secondary);
}

/* ================================
   🚀 FUTURISTIC NAVIGATION BAR
================================ */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(0);
    width: calc(100% - 40px);
    max-width: 1400px;
    height: 70px;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(8, 145, 178, 0.2);
    box-shadow: var(--shadow-lg), 0 0 40px rgba(8, 145, 178, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    opacity: 0.8;
}

.navbar.scrolled {
    top: 10px;
    height: 65px;
    box-shadow: var(--shadow-xl), var(--shadow-glow);
}

/* Hide navbar on scroll down */
.navbar.nav-hidden {
    transform: translateX(-50%) translateY(-150%);
    opacity: 0;
}

/* Show navbar on scroll up */
.navbar.nav-visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 25px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    z-index: 10;
}

.navbar-brand img {
    height: 45px;
    width: auto;
    filter: drop-shadow(0 0 10px rgba(8, 145, 178, 0.3));
    transition: all var(--transition-normal);
}

.navbar-brand:hover img {
    transform: scale(1.05);
    filter: drop-shadow(0 0 15px rgba(8, 145, 178, 0.5));
}

.navbar-brand span {
    font-weight: 800;
    font-size: 1.3rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

/* Navigation Menu */
.navbar-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(8, 145, 178, 0.05);
    padding: 8px;
    border-radius: var(--radius-lg);
}

.navbar-menu > a {
    padding: 12px 20px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-secondary);
    transition: all var(--transition-normal) var(--transition-bounce);
    position: relative;
    overflow: hidden;
}

.navbar-menu > a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--gradient-primary);
    transition: all var(--transition-normal);
    transform: translateX(-50%);
    border-radius: 3px;
}

.navbar-menu > a:hover,
.navbar-menu > a.active {
    color: var(--primary);
    background: rgba(8, 145, 178, 0.1);
    transform: translateY(-2px);
}

.navbar-menu > a:hover::before,
.navbar-menu > a.active::before {
    width: 60%;
}

/* Dropdown styles */
.nav-dropdown {
    position: relative;
}

.nav-dropdown .dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-secondary);
    transition: all var(--transition-normal);
    cursor: pointer;
}

.nav-dropdown .dropdown-toggle i {
    font-size: 0.7rem;
    transition: transform var(--transition-normal);
}

.nav-dropdown:hover .dropdown-toggle {
    color: var(--primary);
    background: rgba(8, 145, 178, 0.1);
}

.nav-dropdown:hover .dropdown-toggle i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    min-width: 240px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px) scale(0.95);
    transition: all var(--transition-normal);
    z-index: 100;
    padding: 12px;
    overflow: hidden;
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
}

[dir="ltr"] .dropdown-menu {
    right: auto;
    left: 0;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    color: var(--text-secondary);
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.dropdown-menu a:hover {
    background: rgba(8, 145, 178, 0.1);
    color: var(--primary);
    transform: translateX(-5px);
}

[dir="ltr"] .dropdown-menu a:hover {
    transform: translateX(5px);
}

/* Navbar Actions */
.navbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.theme-toggle,
.lang-toggle {
    width: 45px;
    height: 45px;
    border-radius: var(--radius-md);
    background: rgba(8, 145, 178, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all var(--transition-normal);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.theme-toggle::before,
.lang-toggle::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.theme-toggle:hover,
.lang-toggle:hover {
    border-color: var(--primary);
    transform: scale(1.05);
}

.theme-toggle:hover::before,
.lang-toggle:hover::before {
    opacity: 1;
}

.theme-toggle i,
.lang-toggle {
    position: relative;
    z-index: 1;
}

.theme-toggle:hover,
.lang-toggle:hover {
    color: white;
}

.lang-toggle {
    font-weight: 800;
    font-size: 0.9rem;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    width: 45px;
    height: 45px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: rgba(8, 145, 178, 0.1);
    border-radius: var(--radius-md);
    cursor: pointer;
}

.mobile-toggle span {
    width: 22px;
    height: 2.5px;
    background: var(--primary);
    transition: all var(--transition-normal);
    border-radius: 3px;
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Sidebar Toggle Button */
.sidebar-mode-toggle {
    width: 45px;
    height: 45px;
    border-radius: var(--radius-md);
    background: rgba(8, 145, 178, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all var(--transition-normal);
    border: 1px solid transparent;
    cursor: pointer;
    position: relative;
}

.sidebar-mode-toggle:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: scale(1.05);
}

.sidebar-mode-toggle i {
    font-size: 1.1rem;
}

/* ================================
   📱 SIDEBAR NAVIGATION MODE
================================ */
.sidebar-nav-panel {
    position: fixed;
    top: 0;
    right: -350px;
    width: 320px;
    height: 100vh;
    background: var(--bg-card);
    z-index: 2000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 50px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--border-color);
}

[dir="ltr"] .sidebar-nav-panel {
    right: auto;
    left: -350px;
    border-left: none;
    border-right: 1px solid var(--border-color);
}

.sidebar-nav-panel.open {
    right: 0;
}

[dir="ltr"] .sidebar-nav-panel.open {
    left: 0;
}

.sidebar-nav-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.sidebar-nav-header {
    padding: 25px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-nav-header .brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-nav-header .brand img {
    height: 40px;
}

.sidebar-nav-header .brand span {
    font-weight: 700;
    font-size: 1.2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar-close-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: rgba(239, 68, 68, 0.1);
    border: none;
    color: #ef4444;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.sidebar-close-btn:hover {
    background: #ef4444;
    color: white;
}

.sidebar-nav-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.sidebar-nav-content a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 20px;
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    margin-bottom: 8px;
    transition: all var(--transition-fast);
    font-weight: 500;
}

.sidebar-nav-content a:hover,
.sidebar-nav-content a.active {
    background: rgba(8, 145, 178, 0.1);
    color: var(--primary);
    transform: translateX(-5px);
}

[dir="ltr"] .sidebar-nav-content a:hover,
[dir="ltr"] .sidebar-nav-content a.active {
    transform: translateX(5px);
}

.sidebar-nav-content a i {
    width: 24px;
    text-align: center;
    font-size: 1.1rem;
}

.sidebar-nav-content .nav-divider {
    height: 1px;
    background: var(--border-color);
    margin: 15px 0;
}

.sidebar-nav-content .nav-section-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 1px;
    padding: 10px 20px;
    font-weight: 700;
}

.sidebar-nav-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
}

.sidebar-nav-footer .contact-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.sidebar-nav-footer .contact-info a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.sidebar-nav-footer .contact-info a:hover {
    color: var(--primary);
}

.sidebar-nav-footer .social-links {
    display: flex;
    gap: 10px;
}

.sidebar-nav-footer .social-links a {
    width: 40px;
    height: 40px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.sidebar-nav-footer .social-links a:hover {
    background: var(--primary);
    color: white;
}

/* Sidebar Overlay */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    backdrop-filter: blur(5px);
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ================================
   🟢 WHATSAPP FLOATING BUTTON
================================ */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
}

[dir="ltr"] .whatsapp-float {
    right: auto;
    left: 30px;
}

.whatsapp-float a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: var(--radius-full);
    color: white;
    font-size: 2rem;
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
    transition: all var(--transition-normal);
    position: relative;
    animation: whatsapp-pulse 2s infinite;
}

.whatsapp-float a:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 10px 40px rgba(37, 211, 102, 0.6);
}

.whatsapp-float .tooltip {
    position: absolute;
    right: 80px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--bg-card);
    color: var(--text-primary);
    padding: 12px 20px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    border: 1px solid var(--border-color);
}

[dir="ltr"] .whatsapp-float .tooltip {
    right: auto;
    left: 80px;
}

.whatsapp-float a:hover + .tooltip,
.whatsapp-float .tooltip:hover {
    opacity: 1;
    visibility: visible;
}

@keyframes whatsapp-pulse {
    0%, 100% {
        box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
    }
    50% {
        box-shadow: 0 6px 30px rgba(37, 211, 102, 0.3), 0 0 0 15px rgba(37, 211, 102, 0.1);
    }
}

/* ================================
   Hero Section
================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: var(--bg-secondary);
    padding-top: 100px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-background video,
.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(3, 7, 18, 0.92) 0%,
        rgba(8, 145, 178, 0.7) 100%
    );
    z-index: 2;
}

[data-theme="light"] .hero-overlay {
    background: linear-gradient(
        135deg,
        rgba(12, 74, 110, 0.88) 0%,
        rgba(8, 145, 178, 0.65) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 0 30px;
    max-width: 900px;
}

.hero-content h1 {
    color: white;
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease;
}

.hero-content p {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.4s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================================
   Buttons
================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 36px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 1rem;
    transition: all var(--transition-normal);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 20px rgba(8, 145, 178, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(8, 145, 178, 0.5);
}

.btn-secondary {
    background: transparent;
    color: white;
    border-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
}

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

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

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

.btn-sm {
    padding: 10px 20px;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 20px 44px;
    font-size: 1.125rem;
}

/* ================================
   Cards
================================ */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    border: 1px solid var(--border-color);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.card:hover .card-image img {
    transform: scale(1.1);
}

.card-category {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 8px 16px;
    background: var(--gradient-primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

[dir="ltr"] .card-category {
    right: auto;
    left: 15px;
}

.card-body {
    padding: 28px;
}

.card-date {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 12px;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--text-primary);
    line-height: 1.4;
}

.card-title a:hover {
    color: var(--primary);
}

.card-text {
    color: var(--text-tertiary);
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.9375rem;
    transition: all var(--transition-normal);
}

.card-link:hover {
    gap: 15px;
}

/* ================================
   Grid Layouts
================================ */
.grid {
    display: grid;
    gap: 30px;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* ================================
   Statistics Section
================================ */
.stats-section {
    background: var(--gradient-primary);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    position: relative;
    z-index: 1;
}

.stat-item {
    text-align: center;
    color: white;
}

.stat-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 25px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 12px;
}

.stat-label {
    font-size: 1.125rem;
    opacity: 0.9;
    font-weight: 500;
}

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

.about-image {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.about-image::before {
    content: '';
    position: absolute;
    top: -25px;
    right: -25px;
    width: 100%;
    height: 100%;
    border: 4px solid var(--primary);
    border-radius: var(--radius-xl);
    z-index: -1;
    opacity: 0.5;
}

.about-content h2 {
    color: var(--text-primary);
    margin-bottom: 25px;
}

.about-content p {
    margin-bottom: 20px;
    font-size: 1.0625rem;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-top: 35px;
}

.about-feature {
    display: flex;
    align-items: flex-start;
    gap: 18px;
}

.about-feature i {
    width: 50px;
    height: 50px;
    background: rgba(8, 145, 178, 0.1);
    color: var(--primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.25rem;
}

.about-feature h5 {
    color: var(--text-primary);
    margin-bottom: 5px;
}

.about-feature p {
    font-size: 0.875rem;
    margin: 0;
    color: var(--text-tertiary);
}

/* ================================
   Services/Categories Section
================================ */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.category-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

.category-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.category-card:hover::before {
    transform: scaleX(1);
}

.category-card i {
    font-size: 3rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 25px;
    display: block;
}

.category-card h4 {
    color: var(--text-primary);
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.category-card p {
    font-size: 0.9rem;
    color: var(--text-tertiary);
    margin: 0;
    line-height: 1.6;
}

/* ================================
   Partners Section
================================ */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: center;
}

.partner-logo {
    background: var(--bg-card);
    padding: 35px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 130px;
}

.partner-logo:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.partner-logo span {
    font-weight: 700;
    color: var(--text-secondary);
    text-align: center;
}

/* ================================
   Contact Section
================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info {
    padding: 45px;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
}

.contact-info h3 {
    color: var(--text-primary);
    margin-bottom: 35px;
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-item i {
    width: 55px;
    height: 55px;
    background: rgba(8, 145, 178, 0.1);
    color: var(--primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.contact-item h5 {
    color: var(--text-primary);
    margin-bottom: 5px;
}

.contact-item p,
.contact-item a {
    color: var(--text-tertiary);
    font-size: 0.9375rem;
}

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

.contact-social {
    display: flex;
    gap: 15px;
    margin-top: 35px;
}

.contact-social a {
    width: 50px;
    height: 50px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    font-size: 1.2rem;
}

.contact-social a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.contact-form {
    padding: 45px;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: var(--text-primary);
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 16px 20px;
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(8, 145, 178, 0.15);
}

textarea.form-control {
    min-height: 160px;
    resize: vertical;
}

/* ================================
   Footer
================================ */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding-top: 100px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 50px;
    padding-bottom: 70px;
}

.footer-brand p {
    margin: 25px 0;
    color: var(--text-tertiary);
    line-height: 1.8;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 45px;
    height: 45px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.footer-title {
    color: var(--text-primary);
    font-size: 1.2rem;
    margin-bottom: 30px;
    font-weight: 700;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: var(--text-tertiary);
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: var(--primary);
    transform: translateX(-5px);
}

[dir="ltr"] .footer-links a:hover {
    transform: translateX(5px);
}

.footer-bottom {
    padding: 30px 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

/* ================================
   Page Header
================================ */
.page-header {
    padding: 180px 0 100px;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%230891b2' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-header h1 {
    color: var(--text-primary);
    margin-bottom: 18px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-tertiary);
    font-size: 0.95rem;
}

.breadcrumb a {
    color: var(--primary);
    font-weight: 500;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* ================================
   Post Detail
================================ */
.post-detail {
    padding: 70px 0;
}

.post-detail-header {
    max-width: 850px;
    margin: 0 auto 50px;
    text-align: center;
}

.post-detail-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 35px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.post-detail-meta span {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-tertiary);
    font-size: 0.95rem;
}

.post-detail-meta i {
    color: var(--primary);
}

.post-gallery {
    margin-bottom: 60px;
}

.post-gallery-main {
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-bottom: 25px;
    box-shadow: var(--shadow-lg);
}

.post-gallery-main img,
.post-gallery-main video {
    width: 100%;
    max-height: 650px;
    object-fit: cover;
}

.post-gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 18px;
}

.post-gallery-thumbs img {
    width: 100%;
    height: 90px;
    object-fit: cover;
    border-radius: var(--radius-md);
    cursor: pointer;
    opacity: 0.6;
    transition: all var(--transition-fast);
    border: 3px solid transparent;
}

.post-gallery-thumbs img:hover,
.post-gallery-thumbs img.active {
    opacity: 1;
    border-color: var(--primary);
}

.post-content {
    max-width: 850px;
    margin: 0 auto;
}

.post-content p {
    font-size: 1.15rem;
    line-height: 2;
    margin-bottom: 28px;
}

.post-share {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-top: 45px;
    border-top: 2px solid var(--border-color);
    margin-top: 50px;
}

.post-share span {
    color: var(--text-primary);
    font-weight: 700;
}

.post-share a {
    width: 45px;
    height: 45px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.post-share a:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

/* ================================
   Pagination
================================ */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 60px;
}

.pagination a,
.pagination span {
    min-width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-weight: 600;
    transition: all var(--transition-fast);
}

.pagination a:hover,
.pagination span.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* ================================
   Loading & Animations
================================ */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loader-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.fade-in {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s, transform 0.7s;
}

.fade-in.animate {
    opacity: 0;
    transform: translateY(40px);
}

/* ================================
   📱 RESPONSIVE DESIGN
================================ */
@media (max-width: 1200px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .navbar {
        width: calc(100% - 30px);
    }
}

@media (max-width: 992px) {
    :root {
        --section-padding: 80px;
    }
    
    .navbar {
        top: 15px;
        width: calc(100% - 30px);
        height: auto;
        padding: 15px 0;
    }
    
    .navbar-menu {
        position: fixed;
        top: 90px;
        left: 15px;
        right: 15px;
        background: var(--bg-card);
        flex-direction: column;
        padding: 25px;
        border-radius: var(--radius-xl);
        border: 1px solid var(--border-color);
        box-shadow: var(--shadow-xl);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px) scale(0.95);
        transition: all var(--transition-normal);
        max-height: 75vh;
        overflow-y: auto;
        z-index: 999;
    }
    
    .navbar-menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0) scale(1);
    }
    
    .navbar-menu > a,
    .navbar-menu .nav-dropdown {
        width: 100%;
    }
    
    .navbar-menu > a {
        padding: 18px 20px;
        border-radius: var(--radius-md);
    }
    
    .nav-dropdown .dropdown-toggle {
        width: 100%;
        padding: 18px 20px;
        justify-content: space-between;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: var(--bg-tertiary);
        border-radius: var(--radius-md);
        margin: 10px 0;
        display: none;
    }
    
    .nav-dropdown.open .dropdown-menu {
        display: block;
    }
    
    .nav-dropdown:hover .dropdown-menu {
        display: none;
    }
    
    .nav-dropdown.open:hover .dropdown-menu {
        display: block;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero {
        padding-top: 130px;
    }
    
    .page-header {
        padding: 160px 0 80px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
    }
    
    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .stat-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 320px;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .post-detail-meta {
        flex-direction: column;
        gap: 15px;
    }
    
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
    }
    
    [dir="ltr"] .whatsapp-float {
        left: 20px;
    }
    
    .whatsapp-float a {
        width: 55px;
        height: 55px;
        font-size: 1.7rem;
    }
    
    .whatsapp-float .tooltip {
        display: none;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    .navbar {
        top: 10px;
        width: calc(100% - 20px);
    }
    
    .navbar .container {
        padding: 0 15px;
    }
    
    .navbar-brand span {
        font-size: 1.1rem;
    }
    
    .navbar-brand img {
        height: 38px;
    }
    
    .page-header {
        padding: 140px 0 60px;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .partners-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .contact-info,
    .contact-form {
        padding: 30px 20px;
    }
}

/* ================================
   Utility Classes
================================ */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mt-4 { margin-top: 40px; }
.mt-5 { margin-top: 50px; }

.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.mb-4 { margin-bottom: 40px; }
.mb-5 { margin-bottom: 50px; }

.p-1 { padding: 10px; }
.p-2 { padding: 20px; }
.p-3 { padding: 30px; }
.p-4 { padding: 40px; }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

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

.w-100 { width: 100%; }
.h-100 { height: 100%; }

.rounded { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-full { border-radius: var(--radius-full); }

.shadow { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

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

.text-primary { color: var(--primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }

/* Gradient Text */
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
