:root {
    --primary: #FF3B30;
    /* Fiery Red */
    --primary-rgb: 255, 59, 48;
    --secondary: #FF7A00;
    /* Orange Flame */
    --dark-bg: #121212;
    --darker-bg: #0A0A0A;
    --card-bg: #1E1E1E;
    --text-main: #FFFFFF;
    --text-muted: #B0B0B0;
    --transition: all 0.3s ease;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 5px 20px rgba(255, 59, 48, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Tajawal', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    text-align: right;
    direction: rtl;
}

.no-scroll {
    overflow: hidden;
}

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

ul {
    list-style: none;
}

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

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

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

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

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

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    gap: 10px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 59, 48, 0.5);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--text-main);
    color: var(--text-main);
}

.btn-secondary:hover {
    background: var(--text-main);
    color: var(--dark-bg);
}

.btn-block {
    width: 100%;
    margin-top: 20px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    padding: 20px 0;
}

.header.scrolled {
    background-color: rgba(18, 18, 18, 0.95);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    padding: 10px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 900;
    font-size: 2.2rem;
    /* Increased font size */
    color: var(--text-main);
    letter-spacing: 1px;
}

.logo img {
    height: 65px;
    /* Increased image height */
    filter: drop-shadow(0 0 10px rgba(255, 59, 48, 0.5));
    /* Glow effect */
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.1) rotate(5deg);
}

.logo span {
    background: linear-gradient(to bottom, #fff, #e0e0e0);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.5));
}

.nav-list {
    display: flex;
    gap: 30px;
}

.nav-list li a {
    font-size: 1.1rem;
    font-weight: 500;
    position: relative;
}

.nav-list li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-list li a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.8rem;
    cursor: pointer;
}

.header-cta {
    display: block;
}

/* Mobile Nav */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: var(--darker-bg);
        padding: 80px 20px;
        transition: 0.4s ease;
        z-index: 999;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
    }

    .nav.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 20px;
    }

    .header-cta {
        display: none;
    }

    /* Hide CTA in header, maybe put in menu */
    .mobile-nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.7);
        z-index: 998;
        opacity: 0;
        visibility: hidden;
        transition: 0.3s;
    }

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

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

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

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    /* Center the image for better framing */
}

.hero-bg .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, var(--dark-bg), rgba(18, 18, 18, 0.7));
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content .highlight {
    color: var(--primary);
    text-shadow: 0 0 20px rgba(255, 59, 48, 0.4);
}

.cursor {
    display: inline-block;
    width: 3px;
    background-color: var(--text-main);
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 30px;
}

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

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-btns {
        flex-direction: column;
        gap: 15px;
    }
}

/* Stats Section */
.stats {
    margin-top: -50px;
    position: relative;
    z-index: 10;
    padding-bottom: 50px;
}

.list-grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.stat-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    will-change: transform;
}

.stat-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}

.stat-card .icon {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 15px;
}

.stat-card h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Services Section */
/* Floating Icons Animation */
.floating-icons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.float-icon {
    position: absolute;
    color: rgba(255, 59, 48, 0.05);
    font-size: 4rem;
    animation: floatUp 8s infinite linear;
}

.f-1 {
    top: 10%;
    left: 10%;
    animation-duration: 12s;
    font-size: 3rem;
}

.f-2 {
    top: 60%;
    right: 15%;
    animation-duration: 15s;
    font-size: 5rem;
    animation-delay: 2s;
}

.f-3 {
    top: 80%;
    left: 20%;
    animation-duration: 10s;
    font-size: 4rem;
    animation-delay: 1s;
}

@keyframes floatUp {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    80% {
        opacity: 1;
    }

    100% {
        transform: translateY(-100px) rotate(20deg);
        opacity: 0;
    }
}

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

.section-header p {
    color: var(--text-muted);
    margin-bottom: 15px;
}

.section-header .line {
    width: 80px;
    height: 4px;
    background: var(--primary);
    margin: 0 auto;
    border-radius: 2px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: linear-gradient(145deg, #1f1f1f, #252525);
    padding: 40px 25px;
    border-radius: 20px;
    text-align: center;
    transition: var(--transition);
    border-top: 3px solid transparent;
    will-change: transform;
}

.service-card:hover {
    background: #2a2a2a;
    border-top-color: var(--primary);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(255, 59, 48, 0.2);
}

.s-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 59, 48, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
    color: var(--primary);
    transition: var(--transition);
}

.service-card:hover .s-icon {
    background: var(--primary);
    color: #fff;
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Why Us */
.two-col-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.why-content h2 {
    font-size: 2.5rem;
    font-weight: 900;
}

.line-left {
    width: 60px;
    height: 4px;
    background: var(--primary);
    margin: 15px 0 25px;
    border-radius: 2px;
}

.why-list li {
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    font-size: 1.1rem;
}

.why-list li i {
    color: var(--secondary);
    margin-top: 5px;
}

.why-image {
    min-height: 400px;
    background: radial-gradient(circle, #333 0%, var(--darker-bg) 70%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.abstract-shape .big-icon {
    font-size: 10rem;
    color: rgba(255, 255, 255, 0.05);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0);
    }

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

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

@media (max-width: 900px) {
    .two-col-grid {
        grid-template-columns: 1fr;
    }

    .why-image {
        min-height: 250px;
    }
}

/* Owner Section */
.owner-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 50px;
    display: flex;
    gap: 40px;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.owner-img-wrapper {
    position: relative;
    flex-shrink: 0;
}

.owner-img {
    width: 250px;
    height: auto;
    border-radius: 15px;
    border: 3px solid var(--primary);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    cursor: pointer;
}

.owner-img:hover {
    transform: scale(1.15);
    /* Zoom effect */
    box-shadow: 0 10px 30px rgba(255, 59, 48, 0.4);
}

.badge-exp {
    position: absolute;
    bottom: -15px;
    right: -15px;
    background: var(--secondary);
    color: #fff;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.owner-info h3 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.owner-info .role {
    font-size: 1rem;
    color: var(--primary);
    display: block;
    margin-top: 5px;
}

.owner-bio {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 25px;
}

.owner-skills {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.owner-skills span {
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
}

.owner-skills i {
    color: var(--secondary);
    margin-left: 5px;
}

@media (max-width: 768px) {
    .owner-card {
        flex-direction: column;
        padding: 30px;
        text-align: center;
    }

    .badge-exp {
        right: 50%;
        transform: translateX(50%);
        bottom: -20px;
    }
}

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

.step {
    text-align: center;
    position: relative;
    padding: 20px;
}

.step-num {
    font-size: 3rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.05);
    margin-bottom: -20px;
    position: relative;
    z-index: 0;
}

.step h4 {
    position: relative;
    z-index: 1;
    font-size: 1.4rem;
    color: var(--secondary);
    margin-bottom: 10px;
}

.step p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Portfolio */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.portfolio-item {
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
}

.p-img-box {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.placeholder-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 1.2rem;
    transition: transform 0.5s ease;
}

.p-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 59, 48, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.3s ease;
    font-size: 2rem;
    color: #fff;
}

.portfolio-item:hover .p-overlay {
    opacity: 1;
}

.portfolio-item:hover .placeholder-img {
    transform: scale(1.1);
}

/* Testimonials */
.test-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.test-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 15px;
    border-right: 4px solid var(--secondary);
}

.stars {
    color: #FFD700;
    margin-bottom: 15px;
}

.test-card p {
    font-style: italic;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.test-card h5 {
    color: var(--text-muted);
    font-size: 0.9rem;
}

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

.contact-info h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    line-height: 1.3;
}

.contact-info p {
    margin-bottom: 30px;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.c-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.c-item i {
    color: var(--primary);
}

.big-social {
    margin-top: 30px;
    display: flex;
    gap: 20px;
}

.big-social a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.3s;
}

.big-social a:hover {
    background: var(--primary);
}

.contact-form-box {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
}

.contact-form-box h3 {
    margin-bottom: 25px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    background: var(--darker-bg);
    border: 1px solid #333;
    border-radius: 8px;
    color: #fff;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--primary);
    outline: none;
}

.success-msg {
    margin-top: 15px;
    color: #4cd137;
    font-weight: 700;
    text-align: center;
}

.hidden {
    display: none;
}

@media (max-width: 768px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

/* Footer */
.footer {
    background: #000;
    padding: 40px 0 20px;
    border-top: 1px solid #222;
}

.footer-logo {
    height: 50px;
    margin: 0 auto 20px;
}

.credits {
    font-size: 0.8rem;
    color: #555;
    margin-top: 10px;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.lightbox-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    border-radius: 10px;
    animation: zoom 0.6s;
}

@keyframes zoom {
    from {
        transform: scale(0)
    }

    to {
        transform: scale(1)
    }
}

.close-lightbox {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

/* Reveal Animations Classes */
.reveal-text,
.reveal-card,
.reveal-up,
.reveal-zoom {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal-text.active,
.reveal-card.active,
.reveal-up.active,
.reveal-zoom.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-zoom {
    transform: scale(0.9);
}

.reveal-zoom.active {
    transform: scale(1);
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

.delay-3 {
    transition-delay: 0.6s;
}

.pulse {
    animation: pulse-anim 2s infinite;
}

@keyframes pulse-anim {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(255, 59, 48, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 59, 48, 0);
    }
}

/* Back to Top */
.scroll-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    /* LTR swap for RTL? No, stick to right or left visual preference. Usually bottom right, but RTL might prefer bottom left. Sticking to left as per RTL convention implies flipping right? Let's check. */
    right: auto;
    width: 45px;
    height: 45px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: none;
    /* hidden by default */
    align-items: center;
    justify-content: center;
    z-index: 999;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

body[dir="rtl"] .scroll-top {
    left: 30px;
    right: auto;
}

.scroll-top.show {
    display: flex;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Floating WhatsApp */
.float-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    /* Right side to avoid overlap with scroll-top */
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50%;
    text-align: center;
    font-size: 35px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    animation: pulse-green 2s infinite;
}

.float-whatsapp:hover {
    transform: scale(1.1);
    background-color: #128c7e;
}

@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* FAQ Accordion */
.faq-item {
    background: var(--card-bg);
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    transition: var(--transition);
}

.faq-question {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.02);
}

.faq-question h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
}

.faq-question i {
    transition: transform 0.3s ease;
    color: var(--secondary);
    /* Bright Orange */
    font-size: 1.2rem;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 20px;
    background: rgba(0, 0, 0, 0.2);
}

.faq-answer p {
    padding: 20px 0;
    color: var(--text-muted);
    font-size: 1rem;
}

.faq-item.faq-open .faq-question {
    background: linear-gradient(90deg, rgba(255, 59, 48, 0.1), transparent);
}

.faq-item.faq-open .faq-question i {
    transform: rotate(180deg);
}

.faq-item.faq-open .faq-answer {
    /* Max height handled by JS for smooth animation */
    padding-bottom: 20px;
    /* Add padding when open */
}