@font-face {
    font-family: 'SST Arabic';
    src: url('SST-Arabic-Roman.ttf') format('truetype');
    font-weight: 400;
}

@font-face {
    font-family: 'SST Arabic';
    src: url('SST-Arabic-Medium.ttf') format('truetype');
    font-weight: 500;
}

:root {
    --primary-color: #1E3160; /* Navy Blue from Identity */
    --secondary-color: #4294D1; /* Secondary Blue from Identity */
    --accent-color: #D49E60; /* Gold/Beige from Identity */
    --accent-hover: #b8864b;
    --bg-light: #f8f9fa;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.9);
    --glass-shadow: rgba(0, 0, 0, 0.08);
    
    --text-main: #1b263b;
    --text-muted: #415a77;
    
    --transition-speed: 0.3s;
    --btn-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'SST Arabic', 'Cairo', 'Outfit', sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    /* Soft glowing background base */
    background: radial-gradient(circle at 50% 50%, #ffffff 0%, #e2eaf0 100%);
    transition: direction 0.3s ease;
}

/* LTR Specifics */
body.en-mode {
    font-family: 'Outfit', sans-serif;
}

body.en-mode .logo-text {
    align-items: flex-start;
}

body.en-mode .nav-link::after {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
}

body.en-mode .about-note {
    text-align: center;
}

body.en-mode .faq-question {
    flex-direction: row-reverse;
}

body.en-mode .faq-question h3 {
    text-align: left;
    width: 100%;
}

.glassmorphism {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 10px 30px var(--glass-shadow);
    padding: 2rem;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.glassmorphism:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

/* Typography */
h1, h2, h3, h4 {
    color: var(--primary-color);
}

.section-padding {
    padding: 80px 0;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.text-center {
    text-align: center;
}

.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }
.mb-3 { margin-bottom: 1rem; }

/* Buttons - 3D Effect */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    border: none;
    outline: none;
    text-align: center;
}

.btn-3d {
    position: relative;
    transform-style: preserve-3d;
    box-shadow: 0 6px 0 var(--secondary-color), 0 10px 20px rgba(0,0,0,0.1);
    top: 0;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-hover) 100%);
    color: white;
    box-shadow: 0 6px 0 #94753a, 0 10px 20px rgba(0,0,0,0.15);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #000000 100%);
    color: white;
    box-shadow: 0 6px 0 #000000, 0 10px 20px rgba(0,0,0,0.2);
}

.btn-success {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    box-shadow: 0 6px 0 #075E54, 0 10px 20px rgba(0,0,0,0.15);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 6px 0 var(--primary-color), 0 10px 20px rgba(0,0,0,0.1);
}

.btn-lg {
    padding: 15px 40px;
    font-size: 1.3rem;
}

.btn-3d:hover {
    transform: translateY(2px);
    box-shadow: 0 4px 0 var(--secondary-color), 0 8px 15px rgba(0,0,0,0.1);
}

.btn-primary.btn-3d:hover {
    box-shadow: 0 4px 0 #bdc3c7, 0 8px 15px rgba(0,0,0,0.15);
}

.btn-secondary.btn-3d:hover {
    box-shadow: 0 4px 0 #0d1318, 0 8px 15px rgba(0,0,0,0.2);
}

.btn-success.btn-3d:hover {
    box-shadow: 0 4px 0 #075E54, 0 8px 15px rgba(0,0,0,0.15);
}

.btn-outline.btn-3d:hover {
    box-shadow: 0 4px 0 var(--primary-color), 0 8px 15px rgba(0,0,0,0.1);
    background: var(--glass-bg);
}

.btn-3d:active {
    transform: translateY(6px);
    box-shadow: none;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    z-index: 1000;
    transition: all 0.4s ease;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.6);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.navbar.scrolled {
    top: 0;
    width: 100%;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.8);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: 0.5px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.1;
}

.logo-text .en {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--accent-color);
}

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

/* Language Switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.5);
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.lang-option {
    font-size: 0.85rem;
    font-weight: 800;
    cursor: pointer;
    color: var(--primary-color);
    transition: all 0.3s ease;
    padding: 2px 4px;
    background: none;
    border: none;
    outline: none;
}

.lang-option:hover {
    color: var(--secondary-color);
}

.lang-option.active {
    color: var(--accent-color);
}

.lang-divider {
    font-size: 0.8rem;
    color: var(--text-muted);
    opacity: 0.5;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.3s ease;
    padding: 5px 10px;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 50%;
    transform: translateX(50%);
    width: 0;
    height: 3px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color);
}

.social-icons a {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-right: 15px;
    transition: transform 0.3s, color 0.3s;
}

.social-icons a:hover {
    transform: translateY(-3px) scale(1.1);
    color: var(--accent-color);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    text-align: center;
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    background-image: url('hero.png');
    z-index: -2;
}

/* Let's try to add a 3D sphere to mimic the image visually, purely in CSS */
.hero-bg::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #ffffff, var(--accent-color), var(--primary-color));
    box-shadow: 
        0 50px 100px rgba(0,0,0,0.3),
        inset 0 -20px 40px rgba(0,0,0,0.5),
        inset 0 20px 40px rgba(255,255,255,0.8);
    z-index: -1;
    animation: float 6s ease-in-out infinite;
    opacity: 0.6;
}

/* Brand Bubbles - inspired by the identity documents */
.hero::before {
    content: '';
    position: absolute;
    bottom: -100px;
    left: 10%;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: transparent;
    border: 4px solid rgba(255,255,255,0.2);
    box-shadow: 0 0 20px rgba(255,255,255,0.1);
    z-index: 1;
    animation: float-bubbles 15s linear infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: 15%;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
    z-index: 1;
    animation: float-bubbles 10s linear infinite 2s;
}

@keyframes float-bubbles {
    0% { transform: translateY(0) scale(1); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateY(-100vh) scale(1.5); opacity: 0; }
}

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

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(13, 27, 42, 0.75); /* Darker overlay for high-end look */
    backdrop-filter: blur(4px);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 30px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: white;
}

.hero-title span {
    font-family: inherit;
    background: linear-gradient(135deg, var(--accent-color), #eedca7);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.4rem;
    color: #f8f9fa;
    margin-bottom: 30px;
    font-weight: 500;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    z-index: 2;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.line {
    height: 4px;
    width: 60px;
    background: var(--accent-color);
    margin: 0 auto;
    border-radius: 2px;
}

/* About Section */
.about {
    position: relative;
    background-image: url('pattern-1.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

.about::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(248, 249, 250, 0.9);
    z-index: 1;
}

.about .container {
    position: relative;
    z-index: 2;
}

.about p {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--text-muted);
}

.about .highlight {
    font-weight: 700;
    color: var(--accent-color);
    font-size: 1.3rem;
    margin-top: 20px;
}

.about-note {
    font-weight: 800;
    color: #000000;
    font-size: 1.4rem;
    margin-bottom: 25px;
    text-align: center;
}

/* Services section */
.services {
    position: relative;
    background-image: url('pattern-2.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}
.services::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(248, 249, 250, 0.95);
    z-index: 1;
}
.services .container {
    position: relative;
    z-index: 2;
}

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

.service-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.service-card:hover {
    transform: translateY(-10px) rotateX(5deg) rotateY(5deg);
    box-shadow: 20px 20px 40px rgba(0,0,0,0.1), -10px -10px 20px rgba(255,255,255,0.8);
}

.service-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 20px;
    transform: translateZ(30px); /* 3D pop */
}

.service-img-box {
    width: 100%;
    height: 160px;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transform: translateZ(15px);
}

.service-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    transform: translateZ(20px);
}

.service-card p {
    color: var(--text-muted);
    margin-bottom: 20px;
    transform: translateZ(10px);
}

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

.maintenance-card {
    text-align: center;
    padding: 30px 20px;
}

.maintenance-card .service-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.maintenance-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
}

/* Reviews */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.review-card {
    transition: transform 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
}

.stars {
    color: #f1c40f;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.review-text {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 15px;
}

.reviewer-name {
    font-weight: 700;
    color: var(--primary-color);
}

/* FAQ */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 20px;
    cursor: pointer;
    overflow: hidden;
}

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

.faq-question h3 {
    font-size: 1.2rem;
    margin: 0;
}

.faq-question i {
    color: var(--primary-color);
    transition: transform 0.3s;
}

.faq-answer {
    max-height: 0;
    opacity: 0;
    transition: all 0.4s ease-out;
    margin-top: 0;
    padding-top: 0;
    border-top: 1px solid transparent;
    overflow: hidden;
}

.faq-answer p {
    color: var(--text-muted);
}

.faq-item.active .faq-answer {
    max-height: 300px;
    opacity: 1;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.faq-item.active .faq-question i {
    transform: rotate(45deg);
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.contact-actions {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-card {
    transition: transform 0.3s;
}

.contact-card:hover {
    transform: scale(1.02);
}

.action-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.whatsapp-icon { color: #25D366; }
.phone-icon { color: var(--primary-color); }

.contact-map {
    padding: 20px;
}

.social-footer {
    margin-top: 30px;
    text-align: center;
}

.social-footer h3 {
    margin-bottom: 15px;
}

.social-icons.large {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.social-icons.large a {
    font-size: 2rem;
    background: rgba(255,255,255,0.5);
    width: 60px;
    height: 60px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    transform-style: preserve-3d;
}

.social-icons.large a:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 15px 25px rgba(0,0,0,0.1), inset 0 -3px 5px rgba(0,0,0,0.1);
}

/* Scroll Reveal Classes (3D) */
.reveal-up {
    opacity: 0;
}

.reveal-up.active {
    animation: revealUpAnim 0.8s cubic-bezier(0.5, 0, 0, 1) forwards;
}

@keyframes revealUpAnim {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.footer {
    text-align: center;
    padding: 30px;
    background: var(--primary-color);
    color: var(--accent-color);
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255,255,255,0.95);
        backdrop-filter: blur(10px);
        padding: 20px;
        border-radius: 0 0 20px 20px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }
    
    .nav-links.active {
        display: flex;
        animation: fadeIn 0.3s ease;
    }

    .mobile-toggle {
        display: block;
    }

    .logo-text {
        font-size: 1.2rem;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    /* Reduce section padding on mobile */
    .section-padding {
        padding: 50px 0;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    /* Make grids single column on mobile */
    .services-grid, .reviews-grid {
        grid-template-columns: 1fr;
    }

    /* Reduce padding in glass cards */
    .glassmorphism {
        padding: 1.5rem;
    }

    /* Scale down 3D sphere */
    .hero-bg::after {
        width: 200px;
        height: 200px;
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
