﻿:root {
    --primary: #0A324D;
    --primary-dark: #051A29;
    --accent: #15939F;
    --accent-dark: #0C7A85;
    --bg-main: #ffffff;
    --bg-sec: #f4f7f6;
    --bg-card: #ffffff;
    --text-main: #333333;
    --text-muted: #666666;
    --border-color: #dddddd;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.1);
    --border-radius: 12px;
}

[data-theme="dark"] {
    --bg-main: #0B0E14;
    --bg-sec: #151A22;
    --bg-card: #1A202C;
    --text-main: #F3F4F6;
    --text-muted: #9CA3AF;
    --border-color: #2D3748;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.7);
    --primary: #4FA8E0;
    --accent: #22D4E3;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    background-color: var(--bg-main);
}

body {
    font-family: 'Cairo', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    direction: rtl;
    text-align: right;
}

a {
    text-decoration: none;
    transition: 0.3s;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin-right: auto;
    margin-left: auto;
    padding-right: 20px;
    padding-left: 20px;
    display: block;
}

.main-header {
    background: var(--bg-card);
    box-shadow: var(--shadow-sm);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--primary);
}

.logo img {
    height: 40px;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
    color: var(--primary);
    z-index: 1100;
}

.main-nav {
    display: flex;
    gap: 15px;
    align-items: center;
}

.main-nav a {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.9rem;
    white-space: nowrap;
}

.main-nav a:hover {
    color: var(--accent);
}

.header-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.close-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.4rem;
    color: var(--text-main);
    position: absolute;
    top: 15px;
    left: 15px;
    cursor: pointer;
}

@media (max-width: 992px) {
    .mobile-menu-toggle {
        display: block;
    }

    .close-menu-btn {
        display: block;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -260px;
        width: 250px;
        height: 100vh;
        background: var(--bg-card);
        flex-direction: column;
        padding: 60px 15px 20px;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease-in-out;
        z-index: 1100;
        overflow-y: auto;
        gap: 10px;
    }

    .main-nav.active {
        right: 0;
    }

    .main-nav>a:not(.btn) {
        width: 100%;
        text-align: right;
        padding: 12px;
        border-bottom: 1px solid #f9f9f9;
        font-size: 0.95rem;
    }

    .main-nav>a:not(.btn):hover {
        padding-right: 20px;
        background: var(--bg-sec);
    }

    .header-buttons {
        flex-direction: column;
        width: 100%;
        gap: 10px;
        margin-top: 15px;
    }

    .header-buttons .btn {
        width: 100%;
        text-align: center;
        padding: 10px;
        font-size: 0.9rem;
    }
}

.btn {
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 700;
    display: inline-block;
    cursor: pointer;
    text-align: center;
    font-size: 0.9rem;
    transition: 0.3s;
}

.btn-primary {
    background: var(--accent);
    color: #fff !important;
    border: 2px solid var(--accent);
}

.btn-outline {
    background: transparent;
    color: var(--accent) !important;
    border: 2px solid var(--accent);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    opacity: 0.9;
}

.hero {
    position: relative;
    width: 100%;
    height: 85vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 0;
    padding: 0;
    overflow: hidden;
    border-bottom-left-radius: 50% 8%;
    border-bottom-right-radius: 50% 8%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    margin-bottom: 50px;
}

.hero-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(11, 60, 93, 0.6), rgba(11, 60, 93, 0.4));
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 800px;
    padding: 20px;
}

.seo-hidden-heading {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.3;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #f0f0f0;
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.hero .btn-outline {
    color: #fff !important;
    border-color: #fff;
}

.hero .btn-outline:hover {
    background: var(--bg-card);
    color: var(--primary) !important;
}

@media (max-width: 768px) {
    .hero {
        height: 70vh;
        border-bottom-left-radius: 50% 5%;
        border-bottom-right-radius: 50% 5%;
    }

    .hero-video-wrapper video {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center;
    }
}

#services {
    padding: 60px 0;
    background: var(--bg-main);
}

.section-title {
    text-align: center;
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.swiper-container {
    width: 100%;
    overflow: hidden;
    padding-bottom: 50px;
}

.swiper-wrapper {
    display: flex;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    height: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}

.service-icon {
    display: none !important;
}

.service-ai-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

#process,
#portfolio,
#testimonials {
    padding: 60px 0;
}

#process {
    background: var(--bg-sec);
}

#portfolio {
    background: var(--bg-sec);
}

#testimonials {
    background: var(--bg-main);
}

.process-grid,
.portfolio-grid,
.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.process-step,
.why-item,
.project-card {
    background: var(--bg-card);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    text-align: center;
    border: 1px solid var(--border-color);
}

.project-image img {
    width: 100px;
    height: auto;
    margin-bottom: 15px;
}

#contact {
    background: var(--bg-sec);
    padding: 80px 0;
}

.contact-form {
    background: var(--bg-card);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid var(--border-color);
}

.contact-form>div {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: 0.3s;
    background: var(--bg-sec);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    background: var(--bg-card);
    outline: none;
}

.form-group.full-width {
    grid-column: span 2;
}

@media (max-width: 768px) {
    .contact-form {
        padding: 25px;
    }

    .contact-form>div {
        grid-template-columns: 1fr;
    }

    .form-group.full-width {
        grid-column: span 1;
    }

    #phone-prefix-display {
        font-size: 1rem !important;
    }
}

.main-footer {
    background: #0b1c2c;
    color: #fff;
    padding: 70px 0 20px;
    margin-top: 50px;
    font-size: 0.95rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: #fff;
    margin-bottom: 25px;
    font-size: 1.3rem;
    font-weight: 800;
    position: relative;
    padding-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #bdc3c7;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: var(--accent);
    transform: translateX(-5px);
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #bdc3c7;
    margin-bottom: 15px;
}

.contact-info i {
    color: var(--accent);
    font-size: 1.1rem;
    width: 25px;
    text-align: center;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    transition: 0.3s;
}

.social-links a:hover {
    background: var(--accent);
    transform: translateY(-5px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 25px;
    text-align: center;
    color: #888;
    font-size: 0.9rem;
}

.footer-bottom a {
    color: #bdc3c7;
}

.whatsapp-widget {
    position: fixed;
    bottom: 65px;
    right: 25px;
    background: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    transition: 0.3s;
}

.whatsapp-widget:hover {
    transform: scale(1.1);
}

.swiper-pagination {
    display: none !important;
}

/* === Premium Footer Badges Section === */
.premium-footer-badges {
    width: 100%;
    margin-top: 25px;
    padding: 20px 25px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 25px;
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.01);
}

.badges-title {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 12px;
    display: block;
}

.badges-row {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 5px;
    -webkit-overflow-scrolling: touch;
}

/* Hide scrollbar for cleaner look */
.badges-row::-webkit-scrollbar {
    height: 4px;
}

.badges-row::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

/* Certificates Styling */
.cert-badge {
    background: #ffffff;
    padding: 6px 12px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.cert-badge img {
    max-height: 100%;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%) opacity(60%) !important;
    transition: filter 0.3s ease;
}

.cert-badge:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 15px rgba(255, 255, 255, 0.1);
}

.cert-badge:hover img {
    filter: grayscale(0%) opacity(100%) !important;
}

/* Payment Icons Styling */
.pay-icon {
    background: #ffffff;
    padding: 0 10px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease, filter 0.3s ease;
    cursor: default;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
    filter: grayscale(100%) opacity(60%);
}

.pay-icon.stcpay-icon {
    background: #4F008C;
}

.pay-icon:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 6px 12px rgba(255, 255, 255, 0.1);
    filter: grayscale(0%) opacity(100%);
}

@media (max-width: 768px) {
    .footer-accordion h4 {
        cursor: pointer;
    }

    .footer-accordion h4::after {
        content: '\f078';
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        width: auto;
        height: auto;
        background: none;
        position: static;
        font-size: 0.9rem;
        transition: 0.3s;
    }

    .footer-accordion.active h4::after {
        transform: rotate(180deg);
    }

    .footer-accordion .footer-links,
    .footer-accordion .contact-info,
    .footer-accordion .social-links {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-out;
        opacity: 0;
    }

    .footer-accordion.active .footer-links,
    .footer-accordion.active .contact-info,
    .footer-accordion.active .social-links {
        max-height: 500px;
        opacity: 1;
        transition: max-height 0.4s ease-in, opacity 0.4s ease-in;
        margin-top: 10px;
    }
}

/* تنسيق خاص للصفحات الداخلية لتقليل ارتفاع الهيدر */
.inner-hero {
    height: 40vh !important;
    /* ارتفاع أقل للصفحات الفرعية */
    min-height: 350px !important;
    margin-bottom: 0 !important;
}

@media (max-width: 768px) {
    .inner-hero {
        height: 30vh !important;
        min-height: 250px !important;
    }
}

/* =========================================
   Tracking Page Styles (New Addition)
   ========================================= */

/* القسم الرئيسي للتتبع */
.track-section {
    padding: 140px 0 100px;
    background: linear-gradient(to bottom, #f8f9fa, #fff);
    min-height: 80vh;
}

.track-wrapper {
    max-width: 650px;
    margin: 0 auto;
    background: var(--bg-card);
    padding: 45px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.track-title {
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 10px;
}

.track-sub {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 35px;
}

/* تنسيقات النماذج */
.track-form {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.track-input {
    width: 100%;
    padding: 16px 20px;
    margin-bottom: 20px;
    border-radius: 12px;
    border: 2px solid #eef2f5;
    background: #fcfcfc;
    font-size: 1rem;
    color: var(--text-main);
    transition: all 0.3s ease;
    text-align: center;
}

.track-input:focus {
    border-color: var(--accent);
    background: var(--bg-card);
    box-shadow: 0 4px 12px rgba(0, 183, 195, 0.1);
    outline: none;
}

.btn-track {
    width: 100%;
    padding: 16px;
    border-radius: 12px;
    border: none;
    background: var(--primary);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(11, 60, 93, 0.2);
}

.btn-track:hover {
    background: var(--accent);
    transform: translateY(-2px);
}

/* تنسيق حقل الرمز OTP */
.otp-input {
    letter-spacing: 8px;
    font-size: 1.5rem;
    font-weight: 700;
}

/* =========================================
   Responsive Orders Table / List
   ========================================= */

.orders-container {
    margin-top: 10px;
    text-align: right;
}

/* رأس الجدول (يظهر فقط في الكمبيوتر) */
.orders-header {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr 1fr;
    padding: 15px 20px;
    background: #f1f5f9;
    border-radius: 10px;
    margin-bottom: 15px;
    font-weight: 800;
    color: var(--primary);
    font-size: 0.9rem;
}

/* صف الطلب (يعمل كصف في الكمبيوتر وكبطاقة في الجوال) */
.order-row {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr 1fr;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 12px;
    align-items: center;
    transition: 0.3s;
}

.order-row:hover {
    border-color: var(--accent);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transform: translateX(-3px);
}

/* تنسيق النصوص داخل الجدول */
.order-col {
    font-size: 0.95rem;
    color: var(--text-main);
    font-weight: 600;
}

.order-col.id {
    font-family: sans-serif;
    color: var(--accent-dark);
}

.order-col.date {
    font-size: 0.85rem;
    color: #888;
}

/* حالة الطلب */
.status-badge {
    display: inline-block;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-align: center;
    background: #e3f2fd;
    color: #0d47a1;
}

/* =========================================
   Mobile Responsiveness for Table
   ========================================= */
@media (max-width: 768px) {
    .track-wrapper {
        padding: 30px 20px;
        margin: 0 15px;
    }

    /* إخفاء رأس الجدول في الجوال */
    .orders-header {
        display: none;
    }

    /* تحويل الصف إلى بطاقة */
    .order-row {
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding: 20px;
        position: relative;
    }

    /* تنسيق الأعمدة داخل البطاقة */
    .order-col {
        display: flex;
        justify-content: space-between;
        width: 100%;
        border-bottom: 1px dashed #eee;
        padding-bottom: 8px;
    }

    .order-col:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    /* إضافة تسميات توضيحية قبل القيمة في الجوال */
    .order-col::before {
        content: attr(data-label);
        font-weight: 700;
        color: var(--text-muted);
        font-size: 0.9rem;
    }

    .status-badge {
        width: fit-content;
        margin-right: auto;
    }
}

/* ... (باقي الكود السابق كما هو) ... */

.btn {
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 700;
    display: inline-block;
    cursor: pointer;
    text-align: center;
    font-size: 0.9rem;
    transition: 0.3s;
}

.btn-primary {
    background: var(--accent);
    color: #fff !important;
    border: 2px solid var(--accent);
}

.btn-outline {
    background: transparent;
    color: var(--accent) !important;
    border: 2px solid var(--accent);
}

/* --- الإضافة الجديدة: زر أحمر للخروج --- */
.btn-danger {
    background: #dc3545;
    color: #fff !important;
    border: 2px solid #dc3545;
}

.btn-danger:hover {
    background: #bb2d3b;
    border-color: #bb2d3b;
    box-shadow: var(--shadow-md);
    opacity: 0.9;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    opacity: 0.9;
}

/* =========================================
   Custom Scrollbar
   ========================================= */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-main);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
    -webkit-background-clip: padding-box;
    background-clip: padding-box;
    border: 1px solid transparent;
}

/* ... (باقي الكود كما هو) ... */
/* =========================================
   Premium Redesign & Dynamic Styles
   ========================================= */

/* AOS fallback if JS disabled or loading */
[data-aos] {
    transition-duration: 0.8s;
}

.premium-gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.glass-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
}

.glass-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 183, 195, 0.15);
    border-color: rgba(0, 183, 195, 0.3);
}

.glass-card .service-icon {
    display: inline-flex !important;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #e0fcfc, #f4f6f8);
    border-radius: 12px;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--accent);
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .glass-card {
    background: rgba(26, 32, 44, 0.85);
    /* Mapped to var(--bg-card) with transparency */
    border-color: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .glass-card .service-icon {
    background: linear-gradient(135deg, #1A202C, #2D3748);
}

.dark-section {
    background: linear-gradient(135deg, var(--primary-dark), #0b1c2c);
    color: #fff;
    position: relative;
}

.dark-section .section-title {
    color: #fff;
}

.dark-section .section-subtitle {
    color: #cbd5e1;
}

.testimonial-card,
.project-card,
.why-item {
    border-radius: 16px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.testimonial-card:hover,
.project-card:hover,
.why-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.modern-hero {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 50% 100%, 0 90%);
}

.video-overlay-premium {
    background: linear-gradient(to right, rgba(8, 47, 73, 0.85), rgba(0, 151, 167, 0.75));
}

/* =========================================
   Admin Sidebar & Layout
   ========================================= */
.admin-body {
    background: #f4f6f9;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 260px;
    background: var(--primary-dark);
    color: white;
    flex-shrink: 0;
    transition: all 0.3s;
    z-index: 1000;
}

.admin-sidebar .sidebar-header {
    padding: 20px;
    background: rgba(0, 0, 0, 0.1);
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-nav {
    list-style: none;
    padding: 20px 0;
    margin: 0;
}

.sidebar-nav li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 25px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.2s;
    border-right: 3px solid transparent;
    font-weight: 600;
}

.sidebar-nav li a:hover,
.sidebar-nav li a.active {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border-right-color: var(--accent);
}

.sidebar-nav li a i {
    width: 24px;
    text-align: center;
    font-size: 1.1rem;
}

.sidebar-nav li a.text-danger {
    color: #ff6b6b;
}

.sidebar-nav li a.text-danger:hover {
    background: rgba(255, 107, 107, 0.1);
    border-right-color: #ff6b6b;
}

.admin-main-content {
    flex-grow: 1;
    width: calc(100% - 260px);
    overflow-x: hidden;
}

/* Sidebar Toggle for Mobile */
.sidebar-toggle {
    display: none;
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 1001;
    background: var(--primary);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 8px;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    backdrop-filter: blur(3px);
}

/* Responsive Admin Layout */
@media (max-width: 992px) {
    .admin-sidebar {
        position: fixed;
        right: -260px;
        height: 100vh;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
    }

    .admin-sidebar.active {
        right: 0;
    }

    .admin-main-content {
        width: 100%;
        padding-top: 50px;
        /* space for toggle button */
    }

    .sidebar-toggle {
        display: block;
    }

    .sidebar-overlay.active {
        display: block;
    }
}


/* === AI CHAT WIDGET === */
.chatbot-widget {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 10000;
}

.ai-chat-btn {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 1.8rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.3s;
}

.ai-chat-btn:hover {
    transform: scale(1.1);
    background: var(--accent);
}

.ai-chat-window {
    position: absolute;
    bottom: 80px;
    left: 0;
    width: 350px;
    height: 450px;
    background: var(--bg-card);
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.chat-header {
    background: var(--primary);
    color: #fff;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 700;
}

.chat-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-body .bot-msg {
    align-self: flex-start;
    background: var(--bg-sec);
    color: var(--text-main);
    padding: 10px 15px;
    border-radius: 15px 15px 15px 0;
    font-size: 0.9rem;
    max-width: 85%;
    border: 1px solid var(--border-color);
}

.chat-body .user-msg {
    align-self: flex-end;
    background: var(--accent);
    color: #fff;
    padding: 10px 15px;
    border-radius: 15px 15px 0 15px;
    font-size: 0.9rem;
    max-width: 85%;
}

.chat-footer {
    display: flex;
    padding: 15px;
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
}

.chat-footer input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    outline: none;
    font-size: 0.9rem;
    background: var(--bg-main);
    color: var(--text-main);
}

.chat-footer button {
    background: var(--accent);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    cursor: pointer;
    font-size: 1rem;
    transition: 0.2s;
}

.chat-footer button:hover {
    background: var(--primary);
}

/* === DARK MODE TRANSITION === */
html,
body,
.main-header,
.card,
.btn,
input,
textarea,
select {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

@media (max-width: 400px) {
    .ai-chat-window {
        width: 300px;
    }
}