﻿@font-face {
    font-family: 'Cairo';
    src: url('../fonts/Cairo-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Cairo';
    src: url('../fonts/Cairo-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Cairo';
    src: url('../fonts/Cairo-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Cairo';
    src: url('../fonts/Cairo-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Reddit Sans';
    src: url('../fonts/RedditSans-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Reddit Sans';
    src: url('../fonts/RedditSans-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Reddit Sans';
    src: url('../fonts/RedditSans-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Reddit Sans';
    src: url('../fonts/RedditSans-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

:root {
    --primary: #253B50;
    --secondary: #117256;
    --accent: #BF5F22;
    --white: #ffffff;
    --light-bg: #f8f9fa;
    --dark-text: #1a1a1a;
    --gray-text: #666666;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Reddit Sans', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--white);
    color: var(--dark-text);
    line-height: 1.6;
    overflow-x: hidden;
}

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

p {
    color: var(--gray-text);
    font-size: 1.1rem;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Navbar */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: var(--transition);
}

nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 5%;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

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

.logo img {
    height: 100px;
    transition: var(--transition);
}

.logo span {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--white);
    transition: var(--transition);
}

nav.scrolled .logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--white);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    position: relative;
}

nav.scrolled .nav-links a {
    color: var(--primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: var(--transition);
}

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

.nav-links a:hover {
    color: var(--secondary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Language Toggle Button */
.lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--glass-bg);
    border: 1.5px solid var(--glass-border);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(6px);
    letter-spacing: 0.05em;
}

.lang-btn:hover {
    background: var(--secondary);
    border-color: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(17, 114, 86, 0.35);
}

nav.scrolled .lang-btn {
    color: var(--primary);
    border-color: rgba(37, 59, 80, 0.3);
    background: rgba(37, 59, 80, 0.06);
}

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

.lang-btn i {
    font-size: 0.95rem;
}

.mobile-only {
    display: none;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background-color: var(--white);
    border-radius: 10px;
    transition: all 0.3s ease;
}

nav.scrolled .hamburger span {
    background-color: var(--primary);
}

.hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 998;
}

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

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, rgba(37, 59, 80, 0.5), rgba(37, 59, 80, 0.3)), url('../images/header_bg.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    padding: 0 10%;
    color: var(--white);
}

.hero-content {
    max-width: 800px;
}

.hero-content h1 {
    font-size: 4.5rem;
    color: var(--white);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-content span {
    font-size: 3rem;
}

.btn {
    display: inline-block;
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background: var(--secondary);
    color: var(--white);
    box-shadow: 0 10px 20px rgba(79, 97, 112, 0.3);
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(104, 107, 110, 0.3);
    background: #114765;
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

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

.hero-btns {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
}

/* Sections General */
section {
    padding: 120px 10%;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-header h2 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 5px;
    background: var(--accent);
    border-radius: 5px;
}

/* About Section */
.about-container {
    display: flex;
    align-items: center;
    gap: 5rem;
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--secondary);
}

.about-image {
    flex: 1;
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: 30px;
    box-shadow: 30px 30px 60px rgba(0, 0, 0, 0.1);
}

.about-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100px;
    height: 100px;
    border-top: 10px solid var(--accent);
    border-left: 10px solid var(--accent);
    border-radius: 30px 0 0 0;
    z-index: -1;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.service-card {
    background: var(--white);
    padding: 4rem 2.5rem;
    border-radius: 24px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid #f0f0f0;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary), #3a5b7a);
    opacity: 0;
    transition: var(--transition);
    z-index: 0;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover * {
    color: var(--white);
    position: relative;
    z-index: 1;
}

.service-card i {
    font-size: 3.5rem;
    color: var(--accent);
    margin-bottom: 2rem;
    display: block;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

/* Why Choose Us */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin-top: 50px;
}

.feature-item {
    padding: 2rem;
    background: var(--light-bg);
    border-radius: 20px;
    border-left: 5px solid var(--accent);
}

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 5rem;
    background: var(--white);
    padding: 5rem;
    border-radius: 40px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.05);
}

.contact-info {
    padding: 2rem;
    background: var(--primary);
    border-radius: 30px;
    color: var(--white);
}

.contact-info h3 {
    color: var(--white);
    margin-bottom: 2.5rem;
    font-size: 2rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--accent);
    margin-top: 5px;
}

.info-item p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.info-item strong {
    display: block;
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.input-group label {
    font-weight: 600;
    color: var(--primary);
}

.input-group input,
.input-group textarea {
    padding: 1.2rem;
    border-radius: 12px;
    border: 2px solid #eee;
    outline: none;
    transition: var(--transition);
    font-size: 1rem;
    background: #fdfdfd;
}

.input-group input:focus,
.input-group textarea:focus {
    border-color: var(--secondary);
    background: var(--white);
}

/* Footer */
footer {
    background: #1a2a3a;
    color: var(--white);
    padding: 100px 10% 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 60px;
}

.footer-logo img {
    height: 80px;
    margin-bottom: 1.5rem;
    filter: brightness(0) invert(1);
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    margin-top: 1rem;
}

.footer-links h4 {
    margin-bottom: 2rem;
    color: var(--white);
    font-size: 1.3rem;
    position: relative;
}

.footer-links h4::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--secondary);
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 1rem;
}

.footer-links ul a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links ul a:hover {
    color: var(--secondary);
    padding-left: 10px;
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.4);
}

.footer-bottom p {
    font-size: 0.95rem;
}

.footer-bottom a {
    color: var(--accent);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer-bottom a:hover {
    color: var(--secondary);
}

/* Notifications */
#notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 1.5rem 2.5rem;
    border-radius: 15px;
    color: white;
    font-weight: 600;
    transform: translateX(150%);
    transition: var(--transition);
    z-index: 2000;
}

#notification.show {
    transform: translateX(0);
}

#notification.success {
    background: #2ecc71;
}

#notification.error {
    background: #e74c3c;
}

/* Responsive */
@media (max-width: 1024px) {
    .contact-container {
        padding: 3rem;
        gap: 3rem;
    }
}

@media (max-width: 1150px) {
    .desktop-only {
        display: none;
    }

    .mobile-only {
        display: block;
    }

    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 350px;
        height: 100vh;
        background: var(--white);
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: 2rem;
        padding: 4rem 2rem;
        transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        z-index: 999;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
    }

    .nav-links.active {
        right: 0;
    }

    .drawer-logo {
        margin-bottom: 2rem;
        list-style: none;
    }

    .drawer-logo img {
        height: 90px;
        width: auto;
    }

    .nav-links a {
        color: var(--primary);
        font-size: 1.2rem;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .about-container {
        flex-direction: column-reverse;
    }

    .contact-container {
        grid-template-columns: 1fr;
        padding: 1rem;
        gap: 3rem;
    }

    section,
    .hero {
        padding: 80px 5%;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

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

    .hero-content span {
        font-size: 1.8rem;
    }

    .logo img {
        height: 60px;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .hero-btns {
        gap: 1rem;
    }

    .hero-btns .btn {
        margin-left: 0 !important;
        width: auto;
        padding: 1rem 1.5rem;
        font-size: 0.95rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    nav {
        padding: 1rem 5%;
    }

    section,
    .hero {
        padding: 60px 4%;
    }

    /* Nav links handled in 968px query */
}

/* =====================
   RTL - Arabic Support
   ===================== */
body.rtl {
    direction: rtl;
    text-align: right;
    font-family: 'Cairo', sans-serif !important;
    overflow-x: hidden;
}

body.rtl h1,
body.rtl h2,
body.rtl h3,
body.rtl h4,
body.rtl h5,
body.rtl h6,
body.rtl .nav-links a,
body.rtl .logo span,
body.rtl .hero-content h1,
body.rtl .hero-content h1 span {
    font-family: 'Cairo', sans-serif !important;
}

body.rtl .nav-links a::after {
    left: auto;
    right: 0;
}

/* Fix for About Section Responsiveness in RTL */
@media (min-width: 969px) {
    body.rtl .about-container {
        flex-direction: row-reverse;
    }
}

body.rtl .about-text {
    text-align: right !important;
}

body.rtl .about-text .section-header {
    text-align: right !important;
}

body.rtl .about-image::before {
    left: auto;
    right: -20px;
    border-left: none;
    border-right: 10px solid var(--accent);
    border-radius: 0 30px 0 0;
}

body.rtl .section-header h2::after {
    left: auto;
    right: 50%;
    transform: translateX(50%);
}

body.rtl .about-text .section-header h2::after {
    left: auto;
    right: 0;
    transform: none;
}

body.rtl .feature-item {
    border-left: none;
    border-right: 5px solid var(--accent);
    text-align: right;
}

body.rtl .input-group input,
body.rtl .input-group textarea {
    text-align: right;
}

body.rtl .footer-links h4::after {
    left: auto;
    right: 0;
}

body.rtl .footer-links ul a:hover {
    padding-left: 0;
    padding-right: 10px;
}

body.rtl #notification {
    right: auto;
    left: 30px;
}

@media (max-width: 1150px) {
    body.rtl .nav-links {
        right: auto;
        left: -100%;
    }

    body.rtl .nav-links.active {
        left: 0;
        right: auto;
    }
}
