/* ============================================
   LION Safety & Security - Main Stylesheet
   Brand Colors: Black (#0a0a0a) & Gold (#d4a017)
   ============================================ */

/* === CSS Variables === */
:root {
    --gold: #d4a017;
    --gold-light: #e8c547;
    --gold-dark: #b8860b;
    --gold-glow: rgba(212, 160, 23, 0.3);
    --black: #0a0a0a;
    --black-light: #1a1a1a;
    --black-medium: #141414;
    --dark-gray: #222222;
    --gray: #2a2a2a;
    --gray-light: #333333;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-muted: #777777;
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-card: #161616;
    --bg-card-hover: #1e1e1e;
    --border-color: rgba(212, 160, 23, 0.15);
    --border-gold: rgba(212, 160, 23, 0.3);
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 5px 25px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 50px rgba(0, 0, 0, 0.5);
    --shadow-gold: 0 5px 30px rgba(212, 160, 23, 0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --font-primary: 'Cairo', 'Tajawal', sans-serif;
    --container-width: 1200px;
}

/* === Reset & Base === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
    position: relative;
}

/* === Preloader === */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

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

.preloader-logo {
    width: 100px;
    height: 100px;
    animation: pulse 1.5s infinite;
    margin: 0 auto 30px;
}

.preloader-bar {
    width: 200px;
    height: 3px;
    background: var(--gray);
    border-radius: 10px;
    overflow: hidden;
}

.preloader-progress {
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-light));
    border-radius: 10px;
    animation: loading 1.5s ease forwards;
}

@keyframes loading {
    to { width: 100%; }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
}

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

.header.scrolled {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 8px 0;
    box-shadow: 0 2px 30px rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid var(--border-color);
}

.navbar {
    display: flex;
    align-items: center;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1001;
}

.nav-logo img {
    width: 55px;
    height: 55px;
    object-fit: contain;
    transition: var(--transition);
}

.header.scrolled .nav-logo img {
    width: 45px;
    height: 45px;
}

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

.logo-name {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--gold);
    line-height: 1.2;
}

.logo-tagline {
    font-size: 0.7rem;
    color: var(--text-secondary);
    font-weight: 500;
    letter-spacing: 0.5px;
}

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

.nav-link {
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    position: relative;
    transition: var(--transition);
}

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

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 20px;
    height: 2px;
    background: var(--gold);
    border-radius: 2px;
}

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

.lang-toggle {
    background: transparent;
    border: 1px solid var(--border-gold);
    color: var(--gold);
    padding: 6px 14px;
    border-radius: var(--radius-xl);
    font-family: var(--font-primary);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.lang-toggle:hover {
    background: var(--gold);
    color: var(--black);
}

.nav-cta {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--black);
    padding: 10px 24px;
    border-radius: var(--radius-xl);
    font-size: 0.85rem;
    font-weight: 700;
    transition: var(--transition);
    white-space: nowrap;
}

.nav-cta:hover {
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--gold);
    transition: var(--transition);
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

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

.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(212, 160, 23, 0.06) 0%, transparent 60%),
                radial-gradient(ellipse at 20% 80%, rgba(212, 160, 23, 0.04) 0%, transparent 50%);
    pointer-events: none;
}

.hero-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(212, 160, 23, 0.1);
    border: 1px solid var(--border-gold);
    padding: 8px 20px;
    border-radius: var(--radius-xl);
    font-size: 0.85rem;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-badge i {
    font-size: 1rem;
}

.hero-title {
    margin-bottom: 20px;
}

.hero-title-line {
    display: block;
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--text-primary);
    line-height: 1.2;
}

.hero-title-accent {
    display: block;
    font-size: 3.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--gold), var(--gold-light), var(--gold-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.9;
    margin-bottom: 35px;
    max-width: 550px;
}

.hero-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: var(--radius-xl);
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 700;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--black);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(212, 160, 23, 0.3);
}

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

.btn-outline:hover {
    background: rgba(212, 160, 23, 0.1);
    border-color: var(--gold);
    color: var(--gold);
    transform: translateY(-3px);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

.btn i {
    font-size: 1.1rem;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 40px;
}

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

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--gold);
    display: inline;
}

.stat-plus {
    font-size: 2rem;
    font-weight: 900;
    color: var(--gold);
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 4px;
    font-weight: 500;
}

/* Hero Image */
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    max-width: 500px;
}

.hero-image-wrapper img {
    width: 100%;
    border-radius: var(--radius-lg);
    transition: var(--transition-slow);
}

.hero-image-wrapper:hover img {
    transform: scale(1.03);
}

.hero-image-glow {
    position: absolute;
    inset: -2px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--gold), transparent, var(--gold-dark));
    opacity: 0.3;
    z-index: -1;
    filter: blur(15px);
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
}

.hero-scroll-indicator a {
    color: var(--gold);
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-15px); }
    60% { transform: translateY(-7px); }
}

/* === Section Headers === */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-badge {
    display: inline-block;
    background: rgba(212, 160, 23, 0.1);
    border: 1px solid var(--border-gold);
    padding: 6px 20px;
    border-radius: var(--radius-xl);
    font-size: 0.85rem;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 15px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.section-line {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    margin: 0 auto 20px;
    border-radius: 3px;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

/* === About Section === */
.about {
    background: var(--bg-secondary);
}

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

.about-images {
    position: relative;
}

.about-img-main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-img-main img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: var(--transition-slow);
}

.about-img-main:hover img {
    transform: scale(1.05);
}

.about-img-secondary {
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 200px;
    height: 200px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 4px solid var(--bg-secondary);
    box-shadow: var(--shadow-md);
}

[dir="rtl"] .about-img-secondary {
    left: auto;
    right: -30px;
}

.about-img-secondary img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-experience-badge {
    position: absolute;
    top: -20px;
    right: -20px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--black);
    padding: 20px;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-gold);
}

[dir="rtl"] .about-experience-badge {
    right: auto;
    left: -20px;
}

.exp-number {
    display: block;
    font-size: 2rem;
    font-weight: 900;
    line-height: 1;
}

.exp-text {
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 5px;
    display: block;
}

.about-subtitle {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--gold);
    margin-bottom: 20px;
}

.about-text {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.9;
    margin-bottom: 15px;
}

.about-features {
    margin-top: 25px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.about-feature:hover {
    border-color: var(--gold);
    transform: translateY(-2px);
}

.feature-icon {
    color: var(--gold);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.about-feature span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* === Services Section === */
.services {
    background: var(--bg-primary);
}

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

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 35px 30px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    transform: scaleX(0);
    transition: var(--transition);
}

.service-card:hover {
    border-color: var(--border-gold);
    transform: translateY(-8px);
    box-shadow: var(--shadow-gold);
    background: var(--bg-card-hover);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 65px;
    height: 65px;
    background: rgba(212, 160, 23, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: var(--transition);
}

.service-icon i {
    font-size: 1.8rem;
    color: var(--gold);
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
}

.service-card:hover .service-icon i {
    color: var(--black);
}

.service-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.service-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.service-line {
    width: 40px;
    height: 2px;
    background: var(--gold);
    margin-top: 20px;
    border-radius: 2px;
    transition: var(--transition);
}

.service-card:hover .service-line {
    width: 60px;
}

/* === Showcase / Gallery === */
.showcase {
    background: var(--bg-secondary);
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.showcase-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 1;
}

.showcase-item.showcase-large {
    grid-column: span 2;
    aspect-ratio: 2/1;
}

.showcase-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

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

.showcase-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 10, 10, 0.9) 0%, rgba(10, 10, 10, 0.3) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px;
    opacity: 0;
    transition: var(--transition);
}

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

.showcase-overlay h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 5px;
}

.showcase-overlay p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* === Training Section === */
.training {
    background: var(--bg-primary);
}

.training-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

.training-category {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 30px;
    transition: var(--transition);
}

.training-category:hover {
    border-color: var(--border-gold);
    transform: translateY(-5px);
    box-shadow: var(--shadow-gold);
}

.training-category-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.training-icon {
    width: 50px;
    height: 50px;
    background: rgba(212, 160, 23, 0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.training-icon i {
    font-size: 1.4rem;
    color: var(--gold);
}

.training-category-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.training-list li {
    padding: 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.training-list li:last-child {
    border-bottom: none;
}

.training-list li:hover {
    color: var(--gold);
    padding-right: 10px;
}

[dir="ltr"] .training-list li:hover {
    padding-right: 0;
    padding-left: 10px;
}

.training-list li i {
    color: var(--gold);
    font-size: 0.7rem;
    flex-shrink: 0;
}

.training-cta {
    background: linear-gradient(135deg, rgba(212, 160, 23, 0.08), rgba(212, 160, 23, 0.02));
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-lg);
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.training-cta-content h4 {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.training-cta-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* === Clients Section === */
.clients {
    background: var(--bg-secondary);
    overflow: hidden;
}

.clients-marquee {
    overflow: hidden;
    margin-bottom: 15px;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.clients-track {
    display: flex;
    gap: 15px;
    animation: marquee 35s linear infinite;
    width: max-content;
}

.clients-marquee-reverse .clients-track {
    animation: marquee-reverse 35s linear infinite;
}

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

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

.client-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 15px 30px;
    white-space: nowrap;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: var(--transition);
    flex-shrink: 0;
}

.client-item:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(212, 160, 23, 0.05);
}

.client-image-showcase {
    margin-top: 50px;
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.client-image-showcase img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    transition: var(--transition-slow);
}

.client-image-showcase:hover img {
    transform: scale(1.05);
}

.client-image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(10, 10, 10, 0.95), transparent);
    padding: 30px 25px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.client-image-caption i {
    color: var(--gold);
    font-size: 1.3rem;
}

.client-image-caption span {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
}

/* === Contact Section === */
.contact {
    background: var(--bg-primary);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 25px;
    display: flex;
    gap: 20px;
    transition: var(--transition);
}

.contact-card:hover {
    border-color: var(--border-gold);
    transform: translateX(-5px);
}

[dir="ltr"] .contact-card:hover {
    transform: translateX(5px);
}

.contact-card-icon {
    width: 50px;
    height: 50px;
    background: rgba(212, 160, 23, 0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-card-icon i {
    font-size: 1.3rem;
    color: var(--gold);
}

.contact-card-content h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 8px;
}

.contact-card-content p,
.contact-card-content a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
}

.contact-card-content a:hover {
    color: var(--gold);
}

.phone-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.phone-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
}

.phone-label {
    color: var(--text-muted);
    font-weight: 600;
    min-width: 120px;
}

.phone-item a {
    color: var(--text-secondary);
}

.phone-item a:hover {
    color: var(--gold);
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
}

.contact-form h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 30px;
    text-align: center;
}

.form-group {
    position: relative;
    margin-bottom: 25px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 16px 20px 16px 45px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 0.95rem;
    transition: var(--transition);
    outline: none;
}

[dir="rtl"] .form-group input,
[dir="rtl"] .form-group select,
[dir="rtl"] .form-group textarea {
    padding: 16px 45px 16px 20px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.1);
}

.form-group label {
    position: absolute;
    top: 16px;
    right: 45px;
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: var(--transition);
    pointer-events: none;
    background: transparent;
}

[dir="ltr"] .form-group label {
    right: auto;
    left: 45px;
}

.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group select:focus ~ label,
.form-group select:valid ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
    top: -10px;
    right: 15px;
    font-size: 0.75rem;
    color: var(--gold);
    background: var(--bg-card);
    padding: 0 8px;
}

[dir="ltr"] .form-group input:focus ~ label,
[dir="ltr"] .form-group input:not(:placeholder-shown) ~ label,
[dir="ltr"] .form-group select:focus ~ label,
[dir="ltr"] .form-group select:valid ~ label,
[dir="ltr"] .form-group textarea:focus ~ label,
[dir="ltr"] .form-group textarea:not(:placeholder-shown) ~ label {
    right: auto;
    left: 15px;
}

.form-group i {
    position: absolute;
    top: 18px;
    right: 16px;
    color: var(--text-muted);
    font-size: 1rem;
    transition: var(--transition);
}

[dir="ltr"] .form-group i {
    right: auto;
    left: 16px;
}

.form-group input:focus ~ i,
.form-group select:focus ~ i,
.form-group textarea:focus ~ i {
    color: var(--gold);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group select option {
    background: var(--bg-primary);
    color: var(--text-primary);
}

/* === Footer === */
.footer {
    background: var(--black-medium);
    padding: 60px 0 0;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
}

.footer-brand img {
    margin-bottom: 15px;
}

.footer-brand h3 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--gold);
    margin-bottom: 10px;
}

.footer-brand p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.footer-links h4,
.footer-services h4,
.footer-contact h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h4::after,
.footer-services h4::after,
.footer-contact h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 30px;
    height: 2px;
    background: var(--gold);
    border-radius: 2px;
}

[dir="ltr"] .footer-links h4::after,
[dir="ltr"] .footer-services h4::after,
[dir="ltr"] .footer-contact h4::after {
    right: auto;
    left: 0;
}

.footer-links li,
.footer-services li {
    margin-bottom: 10px;
}

.footer-links a,
.footer-services a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.footer-links a:hover,
.footer-services a:hover {
    color: var(--gold);
    padding-right: 5px;
}

[dir="ltr"] .footer-links a:hover,
[dir="ltr"] .footer-services a:hover {
    padding-right: 0;
    padding-left: 5px;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.footer-contact-item i {
    color: var(--gold);
    margin-top: 4px;
    flex-shrink: 0;
}

.footer-contact-item a {
    color: var(--text-secondary);
}

.footer-contact-item a:hover {
    color: var(--gold);
}

.footer-bottom {
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* === WhatsApp Float === */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: var(--transition);
    animation: whatsapp-pulse 2s infinite;
}

[dir="rtl"] .whatsapp-float {
    left: 30px;
    right: auto;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}

.whatsapp-float i {
    font-size: 1.8rem;
    color: #fff;
}

.whatsapp-tooltip {
    position: absolute;
    right: 70px;
    background: var(--dark-gray);
    color: #fff;
    padding: 8px 15px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    pointer-events: none;
}

[dir="ltr"] .whatsapp-tooltip {
    right: auto;
    left: 70px;
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
}

@keyframes whatsapp-pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* === Back to Top === */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--black);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 998;
    box-shadow: var(--shadow-gold);
}

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

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(212, 160, 23, 0.4);
}

/* === English (LTR) mode adjustments === */
[dir="ltr"] .hero .container {
    direction: ltr;
}

[dir="ltr"] .training-list li i {
    transform: rotate(180deg);
}

[dir="ltr"] .btn .fa-arrow-left {
    transform: rotate(180deg);
}

/* === Responsive Design === */

/* Tablet */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        order: 2;
    }

    .hero-image {
        order: 1;
    }

    .hero-desc {
        max-width: 100%;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-title-line,
    .hero-title-accent {
        font-size: 2.8rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-images {
        max-width: 500px;
        margin: 0 auto;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .training-grid {
        grid-template-columns: 1fr;
    }

    .showcase-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .training-cta {
        flex-direction: column;
        text-align: center;
    }
}

/* Mobile */
@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    .section {
        padding: 70px 0;
    }

    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 350px;
        height: 100vh;
        background: var(--black-light);
        flex-direction: column;
        align-items: flex-start;
        padding: 100px 30px 30px;
        gap: 5px;
        transition: var(--transition);
        box-shadow: var(--shadow-lg);
        z-index: 1000;
        border-left: 1px solid var(--border-color);
    }

    [dir="ltr"] .nav-links {
        right: auto;
        left: -100%;
        border-left: none;
        border-right: 1px solid var(--border-color);
    }

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

    [dir="ltr"] .nav-links.active {
        right: auto;
        left: 0;
    }

    .nav-link {
        width: 100%;
        padding: 12px 16px;
        font-size: 1rem;
    }

    .nav-cta {
        display: none;
    }

    .hero-title-line,
    .hero-title-accent {
        font-size: 2.2rem;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 25px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .hero-image-wrapper {
        max-width: 350px;
    }

    .section-title {
        font-size: 2rem;
    }

    .about-img-secondary {
        width: 150px;
        height: 150px;
        bottom: -20px;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .showcase-grid {
        grid-template-columns: 1fr;
    }

    .showcase-item.showcase-large {
        grid-column: span 1;
        aspect-ratio: 16/9;
    }

    .showcase-item {
        aspect-ratio: 16/9;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-form-wrapper {
        padding: 25px;
    }

    .client-image-showcase img {
        height: 250px;
    }

    .phone-label {
        min-width: 90px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .hero-title-line,
    .hero-title-accent {
        font-size: 1.8rem;
    }

    .hero-desc {
        font-size: 0.95rem;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions .btn {
        justify-content: center;
    }

    .section-title {
        font-size: 1.7rem;
    }

    .about-subtitle {
        font-size: 1.4rem;
    }

    .training-cta {
        padding: 25px;
    }

    .training-cta-content h4 {
        font-size: 1.1rem;
    }
}

/* === Overlay for mobile menu === */
.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

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

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

::-moz-selection {
    background: var(--gold);
    color: var(--black);
}

/* === Scrollbar === */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--gray);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold-dark);
}

/* === Print Styles === */
@media print {
    .header, .whatsapp-float, .back-to-top, .hero-particles {
        display: none !important;
    }
    body {
        background: #fff;
        color: #000;
    }
}
