:root {
    --primary-color: #1a3a52;
    --secondary-navy: #2d5875;
    --accent-color: #4a90d9;
    --gold-color: #b8975a;
    --gold-light: #d4af6e;
    --gold-glow: rgba(184, 151, 90, 0.3);
    --accent-glow: rgba(74, 144, 217, 0.3);
    --text-main: #f8f9fa;
    --text-dim: #c5d0db;
    --glass-bg: rgba(26, 58, 82, 0.85);
    --glass-border: rgba(184, 151, 90, 0.2);
    --luxury-gradient: linear-gradient(135deg, #1a3a52 0%, #2d5875 100%);
    --dark-bg: #0f1419;
    --light-section: #e8ecef;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

[dir="rtl"] {
    --font-heading: 'Alexandria', sans-serif;
    --font-body: 'Alexandria', sans-serif;
}

* {
    scroll-behavior: smooth;
}

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

h1,
h2,
h3,
h4,
.premium-text {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.bold-heading {
    font-weight: 800;
}

/* Utility Classes */
.text-gold {
    color: var(--gold-color) !important;
}

.text-dim {
    color: var(--text-dim);
}

.bg-gold {
    background-color: var(--gold-color) !important;
}

.z-2 {
    z-index: 2;
}

.tracking-wider {
    letter-spacing: 0.1em;
}

/* Glass Card */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold-color);
    background: rgba(20, 22, 28, 0.95);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.hover-gold:hover {
    border-color: var(--gold-color) !important;
}

/* Buttons */
.btn-premium {
    background: linear-gradient(45deg, var(--accent-color), #2563eb);
    color: white;
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px var(--accent-glow);
    transition: all 0.3s ease;
}

.btn-premium:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 25px var(--accent-glow);
    color: white;
}

.btn-gold {
    background: linear-gradient(45deg, var(--gold-color), #b08d26);
    color: black;
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 700;
    border: none;
    box-shadow: 0 4px 15px var(--gold-glow);
    transition: all 0.3s ease;
}

.btn-gold:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 25px var(--gold-glow);
    color: black;
    background: linear-gradient(45deg, #e6c047, #c9a12f);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 100px;
    background: var(--luxury-gradient);
}

/* Glow Effects */
.glow-effect {
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--accent-color);
    filter: blur(150px);
    opacity: 0.15;
    z-index: 0;
    pointer-events: none;
}

/* Typography */
.arabic-text {
    line-height: 1.9;
}

/* Icon Circles */
.icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bg-gold-subtle {
    background: rgba(212, 175, 55, 0.1);
}

.bg-blue-subtle {
    background: rgba(61, 139, 255, 0.1);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }
}

.fade-in {
    animation: fadeIn 0.8s forwards;
}

/* Form Styling */
.form-control:focus,
.form-select:focus {
    border-color: var(--gold-color);
    box-shadow: 0 0 0 0.2rem var(--gold-glow);
}

/* Navbar Toggle Fix for Dark Mode */
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ===================================
   RESPONSIVE DESIGN - MOBILE FIRST
   =================================== */

/* Extra Small Devices (Phones, 320px to 480px) */
@media (max-width: 480px) {

    /* Typography - Very Small Screens */
    .display-3 {
        font-size: 1.75rem !important;
        line-height: 1.3;
    }

    .display-4 {
        font-size: 1.5rem !important;
        line-height: 1.3;
    }

    .display-5 {
        font-size: 1.25rem !important;
    }

    .display-6 {
        font-size: 1.1rem !important;
    }

    .lead {
        font-size: 1rem !important;
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    h4 {
        font-size: 1.1rem;
    }

    h5 {
        font-size: 1rem;
    }

    /* Hero Section - Mobile */
    .hero-section {
        min-height: auto;
        padding: 100px 0 40px;
    }

    /* Hide decorative glow effects on small screens for performance */
    .glow-effect {
        display: none;
    }

    /* Glass Cards - Reduce padding */
    .glass-card {
        padding: 1rem !important;
        border-radius: 12px;
    }

    /* Buttons - Make touch-friendly */
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .btn-premium,
    .btn-gold {
        padding: 12px 24px;
        font-size: 0.95rem;
    }

    /* Make CTA buttons full width on very small screens */
    .hero-section .btn,
    section[id="quote"] .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    /* Icon Circles - Smaller */
    .icon-circle {
        width: 50px;
        height: 50px;
    }

    .icon-circle svg {
        width: 24px;
        height: 24px;
    }

    /* Navbar adjustments */
    .navbar {
        margin: 0.5rem !important;
        padding: 0.75rem 0.5rem !important;
    }

    .navbar-brand {
        flex-direction: row !important;
        align-items: center !important;
    }

    .navbar-brand img {
        height: 32px !important;
        margin-left: 0.5rem !important;
    }

    .navbar-brand .d-flex {
        margin-right: 0 !important;
    }

    .navbar-brand span.premium-text {
        font-size: 0.85rem !important;
        line-height: 1.1 !important;
    }

    .navbar-brand .text-gold {
        font-size: 0.55rem !important;
    }

    /* Navbar menu items */
    .navbar-collapse {
        background: var(--glass-bg);
        backdrop-filter: blur(12px);
        margin-top: 1rem;
        padding: 1rem;
        border-radius: 12px;
        border: 1px solid var(--glass-border);
    }

    .navbar-nav {
        gap: 0.5rem !important;
    }

    .nav-link {
        padding: 0.75rem 1rem !important;
        border-radius: 8px;
        transition: all 0.3s ease;
    }

    .nav-link:hover {
        background: rgba(184, 151, 90, 0.1);
    }

    /* CTA Button in navbar */
    .navbar .btn-gold {
        width: 100%;
        margin-top: 0.5rem;
        padding: 0.75rem 1.5rem;
    }

    /* Forms - Better touch targets */
    .form-control,
    .form-select {
        padding: 12px;
        font-size: 1rem;
    }

    /* Reduce gaps in grids */
    .row.g-4 {
        gap: 1rem !important;
    }

    .row.g-5 {
        gap: 1.5rem !important;
    }

    /* Stack buttons vertically */
    .d-flex.gap-3 {
        flex-direction: column !important;
        gap: 0.75rem !important;
    }

    /* Portfolio/Blog cards - Full width */
    .col-lg-4,
    .col-lg-6,
    .col-md-6 {
        margin-bottom: 1rem;
    }

    /* Better spacing for sections */
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    /* Container padding */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* Badge sizing */
    .badge {
        font-size: 0.75rem;
        padding: 0.35em 0.65em;
    }

    /* Stats numbers */
    .display-5.fw-bold,
    .display-6.fw-bold {
        font-size: 1.5rem !important;
    }
}

/* Small Devices (Phones, 481px to 767px) */
@media (min-width: 481px) and (max-width: 767px) {
    .display-3 {
        font-size: 2rem !important;
    }

    .display-4 {
        font-size: 1.75rem !important;
    }

    .lead {
        font-size: 1.05rem !important;
    }

    .hero-section {
        min-height: auto;
        padding: 110px 0 50px;
    }

    .glass-card {
        padding: 1.25rem;
    }

    .btn-premium,
    .btn-gold {
        padding: 12px 28px;
    }

    /* Glow effects can be shown but reduced */
    .glow-effect {
        width: 200px !important;
        height: 200px !important;
        filter: blur(100px) !important;
    }
}

/* Medium Devices (Tablets, 768px to 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .display-3 {
        font-size: 2.5rem;
    }

    .display-4 {
        font-size: 2rem;
    }

    .hero-section {
        min-height: auto;
        padding: 120px 0 60px;
    }

    .glass-card {
        padding: 1.5rem;
    }

    /* 2-column grid for services/portfolio */
    .row .col-lg-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    /* Navbar */
    .navbar-brand img {
        height: 40px;
    }

    /* Better button sizing */
    .btn-premium,
    .btn-gold {
        padding: 12px 30px;
    }
}

/* Large Devices (Small Desktops, 992px to 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
    .display-3 {
        font-size: 2.75rem;
    }

    .hero-section {
        min-height: 90vh;
        padding: 100px 0;
    }

    .glass-card {
        padding: 1.75rem;
    }

    .container {
        max-width: 960px;
    }
}

/* Extra Large Devices (Large Desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }

    .hero-section {
        min-height: 100vh;
    }

    .glass-card {
        padding: 2rem;
    }
}

/* Ultra Wide Screens (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* Landscape Orientation Fixes for Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        min-height: auto;
        padding: 80px 0 40px;
    }

    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
}

/* Better touch targets for all touch devices */
@media (hover: none) and (pointer: coarse) {
    .btn {
        min-height: 44px;
        min-width: 44px;
    }

    .nav-link {
        padding: 12px 16px;
    }

    .form-control,
    .form-select {
        min-height: 44px;
    }
}

/* Print styles */
@media print {

    .navbar,
    .glow-effect,
    .btn,
    footer {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    .glass-card {
        border: 1px solid #ddd;
        background: white;
    }
}

/* Selection Color */
::selection {
    background: var(--gold-color);
    color: black;
}