:root {
    --brand-dark: #20304c;
    --brand-cyan: #00c4cc;
    --brand-cyan-light: #e0f9fa;
    --bg-light: #f9fbfd;
    --text-main: #20304c;
    --text-grey: #556068;
    --white: #ffffff;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Tajawal', sans-serif;
    color: var(--text-main);
    line-height: 1.7;
    background-color: var(--white);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

h1, h2, h3, h4, .logo {
    font-family: 'Outfit', 'Tajawal', sans-serif;
    font-weight: 800;
}

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

ul {
    list-style: none;
}

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

/* --- BUTTONS --- */
.btn-brand {
    display: inline-block;
    background: var(--brand-cyan);
    color: var(--white);
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 4px 14px rgba(0, 196, 204, 0.3);
}

.btn-brand:hover {
    background: var(--brand-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(32, 48, 76, 0.2);
}

/* --- NAVBAR --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 15px 0;
    transition: var(--transition);
}

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

.logo {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-size: 24px;
    color: var(--brand-dark);
    line-height: 1;
}

.logo-sub {
    font-size: 11px;
    color: var(--brand-cyan);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    font-weight: 700;
    color: var(--text-main);
    font-size: 15px;
    position: relative;
}

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

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

.btn-nav {
    background: var(--brand-dark);
    color: var(--white);
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 700;
}

.btn-nav:hover {
    background: var(--brand-cyan);
}

/* --- HERO SECTION --- */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    background: var(--brand-dark);
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
}

.hero-slide.active {
    opacity: 1;
    z-index: 1;
}

.hero-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

@keyframes kenBurns {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.hero-slide.active .hero-bg-img {
    animation: kenBurns 15s linear forwards;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to left, rgba(32, 48, 76, 0.85), rgba(32, 48, 76, 0.4));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    color: var(--white);
}

.hero-content h1 {
    font-size: 56px;
    margin-bottom: 24px;
    line-height: 1.2;
    word-wrap: break-word;
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 32px;
    color: rgba(255, 255, 255, 0.9);
}

/* --- SECTIONS --- */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-subtitle {
    display: block;
    color: var(--brand-cyan);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.section-title {
    font-size: 42px;
    color: var(--brand-dark);
}

/* --- ABOUT SECTION --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-img {
    position: relative;
}

.about-img img {
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.about-img::after {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border: 4px solid var(--brand-cyan);
    border-radius: 20px;
    z-index: -1;
}

/* --- SERVICES --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--brand-cyan);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--brand-cyan-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: var(--brand-cyan);
    font-size: 32px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--brand-cyan);
    color: var(--white);
    transform: rotateY(180deg);
}

.service-card h3 {
    margin-bottom: 16px;
    font-size: 22px;
}

/* --- PARTNERS MARQUEE --- */
.partners-section {
    background: var(--bg-light);
    padding: 60px 0;
}

.partners-track {
    overflow: hidden;
    position: relative;
    padding: 20px 0;
    -webkit-mask-image: linear-gradient(90deg, transparent, #fff 15%, #fff 85%, transparent);
    mask-image: linear-gradient(90deg, transparent, #fff 15%, #fff 85%, transparent);
}

.partners-scroll-wrapper {
    display: flex;
    gap: 100px;
    animation: scroll 40s linear infinite;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.partner-logo {
    flex: 0 0 auto;
    filter: grayscale(100%);
    opacity: 0.5;
    transition: var(--transition);
}

.partner-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

/* --- FOOTER --- */
.footer {
    background: var(--brand-dark);
    color: var(--white);
    padding: 80px 0 30px;
}

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

.footer-col h3 {
    font-size: 28px;
    margin-bottom: 20px;
}

.footer-col h4 {
    font-size: 20px;
    margin-bottom: 25px;
    color: var(--brand-cyan);
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a:hover {
    color: var(--brand-cyan);
    padding-right: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.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%;
}

.social-links a:hover {
    background: var(--brand-cyan);
}

.contact-info li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.contact-info i {
    color: var(--brand-cyan);
    margin-top: 5px;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

/* --- PAGE HEADER --- */
.page-header {
    position: relative;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 80px;
    overflow: hidden;
}

.page-header .header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.page-header .header-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(32, 48, 76, 0.9), rgba(0, 196, 204, 0.5));
}

.page-header .header-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
}

.page-header .page-title {
    font-size: 48px;
    margin-bottom: 16px;
}

.page-header .breadcrumbs {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
}

.page-header .breadcrumbs a {
    color: var(--brand-cyan);
}

.page-header .breadcrumbs span {
    margin: 0 10px;
}

/* --- LANGUAGE SWITCH --- */
.lang-switch {
    display: inline-block;
    background: var(--brand-cyan-light);
    color: var(--brand-dark);
    padding: 8px 18px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 14px;
    transition: var(--transition);
}

.lang-switch:hover {
    background: var(--brand-cyan);
    color: var(--white);
}

.nav-cta {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* --- HIGHLIGHT BOX --- */
.highlight-box {
    background: var(--brand-cyan-light);
    border-right: 4px solid var(--brand-cyan);
    padding: 20px 24px;
    border-radius: 0 12px 12px 0;
    margin: 20px 0;
    font-weight: 500;
    line-height: 1.8;
}

[dir="ltr"] .highlight-box {
    border-right: none;
    border-left: 4px solid var(--brand-cyan);
    border-radius: 12px 0 0 12px;
}

/* --- LINK CARD HOVER --- */
.link-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--brand-cyan);
}

.link-card:hover h3 {
    color: var(--brand-cyan);
}

/* --- VIDEO CARD HOVER --- */
.video-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

/* --- GALLERY ITEM HOVER --- */
.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* --- CONTACT CARD HOVER --- */
.contact-card-simple:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--brand-cyan);
}

/* --- MOBILE TOGGLE --- */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
    z-index: 1100;
}

.mobile-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--brand-dark);
    border-radius: 3px;
    transition: var(--transition);
}

.mobile-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}
.mobile-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.nav-links.mobile-active {
    display: flex !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1050;
    gap: 40px;
    font-size: 20px;
}

/* --- LTR OVERRIDES --- */
[dir="ltr"] body {
    font-family: 'Outfit', 'Tajawal', sans-serif;
}

[dir="ltr"] .hero-overlay {
    background: linear-gradient(to right, rgba(32, 48, 76, 0.85), rgba(32, 48, 76, 0.4));
}

[dir="ltr"] .about-img::after {
    right: auto;
    left: -20px;
}

[dir="ltr"] .footer-col ul li a:hover {
    padding-right: 0;
    padding-left: 5px;
}

/* --- FEATURE LIST --- */
.feature-list li {
    position: relative;
    padding-right: 24px;
    margin-bottom: 8px;
}

.feature-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 0;
    color: var(--brand-cyan);
}

[dir="ltr"] .feature-list li {
    padding-right: 0;
    padding-left: 24px;
}

[dir="ltr"] .feature-list li::before {
    right: auto;
    left: 0;
}

/* --- RESPONSIVE --- */
@media (max-width: 1100px) {
    .nav-links { display: none !important; }
    .mobile-toggle { display: flex !important; }
    .hero-content h1 { font-size: 38px; }
    .hero-content p { font-size: 16px; }
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .services-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .page-header .page-title { font-size: 32px; }
    .logo-main { font-size: 20px; }
    .logo-sub { font-size: 9px; max-width: 150px; line-height: 1.2; }
}

@media (max-width: 768px) {
    .section { padding: 60px 0; }
    .section-title { font-size: 28px; }
    .services-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .nav-cta .btn-nav { display: none; }
    .page-header { height: 240px; }
    .contact-grid-top { grid-template-columns: 1fr !important; }
    .video-grid { grid-template-columns: 1fr !important; }
    .links-grid { grid-template-columns: 1fr !important; }
}

@media (max-width: 480px) {
    .hero-content h1 { font-size: 32px; }
    .logo-main { font-size: 18px; }
    .logo-sub { font-size: 10px; }
    .nav-cta .lang-switch { padding: 6px 12px; font-size: 12px; }
}
