/* 
   Runway Aviation Services - Main Stylesheet
   Premium Aviation Ground Handling Landing Page Design System
*/

/* --- Design Tokens & Variables --- */
:root {
    /* Color Palette */
    --primary-color: #003366;       /* Deep Aviation Blue */
    --primary-light: #1E4D8C;       /* Slate Aviation Blue */
    --primary-dark: #002244;        /* Dark Navy */
    --accent-color: #CC0000;        /* Deep Crimson Red */
    --accent-hover: #990000;        /* Darker Crimson */
    --bg-light: #F4F6F9;            /* Light gray background */
    --bg-white: #FFFFFF;            /* White */
    --text-dark: #0F172A;           /* Charcoal Navy for typography */
    --text-muted: #475569;          /* Steel Gray for subtitles */
    --text-light: #F8FAFC;          /* Near white for dark section text */
    
    /* Glassmorphism Styling */
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: rgba(0, 51, 102, 0.06);
    --glass-bg-dark: rgba(15, 23, 42, 0.8);
    --glass-border-dark: rgba(255, 255, 255, 0.1);
    
    /* Layout & Transitions */
    --transition-fast: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-slow: 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
    --border-radius: 12px;
    --max-width: 1200px;
}

/* --- Global Reset & Base Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
}

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

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

ul {
    list-style: none;
}

/* --- Typography Helpers --- */
.section-tag {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent-color);
    margin-bottom: 0.75rem;
}

.section-tag-light {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #FFAAAA;
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.title-divider {
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
    margin: 1.2rem auto;
    border-radius: 2px;
}

.title-divider-left {
    width: 50px;
    height: 4px;
    background-color: var(--accent-color);
    margin: 1rem 0 1.5rem 0;
    border-radius: 2px;
}

.title-divider-left.light {
    background-color: var(--bg-white);
}

.section-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* --- Common UI Components (Buttons) --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.85rem 2rem;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition-fast);
    border: none;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--bg-white);
    box-shadow: 0 4px 12px rgba(204, 0, 0, 0.25);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(204, 0, 0, 0.35);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--bg-white);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    background-color: var(--bg-white);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.15);
}

.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.85rem;
}

.btn-block {
    width: 100%;
}

/* --- Dynamic Scale-Out/Scale-In Easing Effect on Nav Scroll --- */
main {
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), filter 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    transform-origin: center center;
    width: 100%;
    will-change: transform, filter;
}

main.cinematic-zoom {
    transform: scale(0.965);
    filter: brightness(0.92) blur(0.5px);
}

/* --- Reveal on Scroll Animation styling --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.85s cubic-bezier(0.25, 1, 0.5, 1), transform 0.85s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform, opacity;
}

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

/* Staggered Delay for grid cards */
.services-grid .service-card.reveal.revealed:nth-child(1) { transition-delay: 0.05s; }
.services-grid .service-card.reveal.revealed:nth-child(2) { transition-delay: 0.15s; }
.services-grid .service-card.reveal.revealed:nth-child(3) { transition-delay: 0.25s; }
.services-grid .service-card.reveal.revealed:nth-child(4) { transition-delay: 0.35s; }
.services-grid .service-card.reveal.revealed:nth-child(5) { transition-delay: 0.45s; }
.services-grid .service-card.reveal.revealed:nth-child(6) { transition-delay: 0.55s; }
.services-grid .service-card.reveal.revealed:nth-child(7) { transition-delay: 0.65s; }
.services-grid .service-card.reveal.revealed:nth-child(8) { transition-delay: 0.75s; }

/* --- Header / Navigation Bar --- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent;
    transition: var(--transition-fast);
    padding: 1.25rem 0;
}

.main-header.scrolled {
    background-color: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    padding: 0.75rem 0;
    box-shadow: 0 4px 20px rgba(0, 51, 102, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.lang-toggle-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: var(--bg-white);
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.4rem 0.9rem;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-fast);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.lang-toggle-btn:hover {
    background-color: var(--bg-white);
    color: var(--primary-dark);
    border-color: var(--bg-white);
}

.main-header.scrolled .lang-toggle-btn {
    color: var(--primary-color);
    border-color: rgba(0, 51, 102, 0.3);
}

.main-header.scrolled .lang-toggle-btn:hover {
    background-color: var(--primary-color);
    color: var(--bg-white);
    border-color: var(--primary-color);
}

.header-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-img {
    height: 48px;
    width: auto;
    border-radius: 50%;
    border: 2px solid var(--bg-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition-fast);
}

.main-header.scrolled .logo-img {
    border-color: var(--primary-color);
}

.logo-text {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--bg-white);
    letter-spacing: -0.5px;
    transition: var(--transition-fast);
}

.main-header.scrolled .logo-text {
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2.2rem;
}

.nav-item {
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2.5px;
    background-color: var(--accent-color);
    transition: var(--transition-fast);
}

.nav-item:hover, 
.nav-item.active {
    color: var(--bg-white);
}

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

/* Scrolled Nav overrides (High contrast Primary Color swap) */
.main-header.scrolled .nav-item {
    color: var(--primary-color); /* Deep Aviation Blue */
}

.main-header.scrolled .nav-item:hover,
.main-header.scrolled .nav-item.active {
    color: var(--accent-color); /* Accent Red for high contrast indicators */
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}

.mobile-nav-toggle .bar {
    width: 25px;
    height: 2.5px;
    background-color: var(--bg-white);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), 
                opacity 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), 
                background-color 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.main-header.scrolled .mobile-nav-toggle .bar {
    background-color: var(--primary-color);
}

/* --- Hero Section (HOME) --- */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 700px;
    background-image: url('assets/cover.png');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--bg-white);
    text-align: center;
    overflow: hidden;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 51, 102, 0.9) 0%, rgba(0, 34, 68, 0.95) 100%);
    z-index: 1;
}

.hero-content-container {
    position: relative;
    z-index: 10;
    max-width: 850px;
    padding: 0 2rem;
    margin-bottom: 2rem;
}

.hero-subtitle {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent-color);
    margin-bottom: 1.25rem;
    display: inline-block;
    animation: fadeInDown 0.8s var(--transition-fast);
}

.hero-headline {
    font-size: 3.8rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1.5px;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s var(--transition-fast) 0.1s both;
}

.hero-description {
    font-size: 1.25rem;
    font-weight: 300;
    line-height: 1.6;
    color: rgba(248, 250, 252, 0.85);
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1.2s var(--transition-fast) 0.2s both;
}

.hero-actions {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    animation: fadeInUp 1.4s var(--transition-fast) 0.3s both;
}

/* --- CREATIVE ANIMATION: Gliding Planes (Parallax & Curved Paths) --- */
.plane-animation-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2; /* behind main-text overlay */
    overflow: hidden;
}

.gliding-plane {
    position: absolute;
    width: 210px;
    height: 84px;
    opacity: 0;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.3));
}

/* Secondary background plane (Parallax) */
.gliding-plane-secondary {
    width: 100px;
    height: 40px;
    z-index: 1; /* behind primary plane */
    filter: drop-shadow(0 8px 15px rgba(0, 0, 0, 0.2)) blur(0.5px); /* distant blur */
}

.plane-svg {
    width: 100%;
    height: 100%;
}

/* Jet Engine Vapor Trail */
.vapor-trail {
    position: absolute;
    top: 48%;
    left: 5%;
    width: 130px;
    height: 3px;
    background: linear-gradient(to left, rgba(255, 255, 255, 0.55), transparent);
    transform: rotate(-12deg);
    border-radius: 50%;
    filter: blur(1.5px);
    opacity: 0;
}

.gliding-plane.fly .vapor-trail {
    opacity: 1;
    animation: vaporPulse 0.5s ease-in-out infinite alternate;
}

/* Primary Plane Flight path using offset-path */
.gliding-plane.fly:not(.gliding-plane-secondary) {
    /* M (StartX, StartY) C (ControlX1, ControlY1) (ControlX2, ControlY2) (EndX, EndY) */
    offset-path: path('M -220 120 C 350 -40, 650 550, 1300 240');
    offset-rotate: auto;
    animation: planeOffsetFlight 16s cubic-bezier(0.3, 0.1, 0.7, 0.9) forwards;
}

/* Secondary Plane Flight path (Different path, higher altitude, different curves) */
.gliding-plane-secondary.fly {
    offset-path: path('M -150 180 C 450 320, 750 -80, 1350 140');
    offset-rotate: auto;
    animation: planeOffsetFlightSec 22s cubic-bezier(0.35, 0.05, 0.65, 0.95) forwards;
}

@keyframes planeOffsetFlight {
    0% {
        offset-distance: 0%;
        opacity: 0;
    }
    4% {
        opacity: 0.9;
    }
    12% {
        opacity: 1;
    }
    88% {
        opacity: 1;
    }
    96% {
        opacity: 0.9;
    }
    100% {
        offset-distance: 100%;
        opacity: 0;
    }
}

@keyframes planeOffsetFlightSec {
    0% {
        offset-distance: 0%;
        opacity: 0;
    }
    6% {
        opacity: 0.5; /* more transparent for depth */
    }
    15% {
        opacity: 0.55;
    }
    85% {
        opacity: 0.55;
    }
    94% {
        opacity: 0.5;
    }
    100% {
        offset-distance: 100%;
        opacity: 0;
    }
}

@keyframes vaporPulse {
    from { opacity: 0.3; transform: scaleY(0.8) rotate(-12deg); }
    to { opacity: 0.6; transform: scaleY(1.3) rotate(-12deg); }
}

/* Features Bar at Bottom of Hero */
.features-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 34, 68, 0.6);
    backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 10;
    padding: 1.5rem 0;
}

.features-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.feature-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent-color);
}

.feature-text {
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.9);
}

/* --- Services Section ('Our Specialties') --- */
.services-section {
    padding: 7.5rem 0;
    background-color: var(--bg-light);
}

.section-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4.5rem;
}

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

@media (min-width: 1025px) {
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.service-card {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    min-height: 460px;
    height: auto;
    background-color: var(--primary-dark);
    box-shadow: 0 8px 30px var(--glass-shadow);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    border: 1px solid rgba(0, 51, 102, 0.05);
}

/* Base card bg container */
.card-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 0;
}

/* --- Creative CSS Backgrounds (Aviation Specific Patterns) --- */

/* Card 1: Flights Ground Handling - Runway perspective lines */
.bg-ground-handling {
    background: 
        linear-gradient(90deg, transparent 48%, rgba(255, 255, 255, 0.1) 48%, rgba(255, 255, 255, 0.1) 52%, transparent 52%),
        linear-gradient(45deg, rgba(204, 0, 0, 0.1) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(204, 0, 0, 0.1) 25%, transparent 25%),
        linear-gradient(135deg, #001f3f 0%, #003366 100%);
    background-size: 100% 100%, 40px 40px, 40px 40px, auto;
}

/* Card 2: Aviation Security - Radar scan grid lines */
.bg-security {
    background: 
        radial-gradient(circle at 50% 30%, rgba(204, 0, 0, 0.12) 0%, transparent 65%),
        radial-gradient(circle at 50% 30%, transparent 35%, rgba(255, 255, 255, 0.03) 36%, rgba(255, 255, 255, 0.03) 38%, transparent 39%),
        radial-gradient(circle at 50% 30%, transparent 55%, rgba(255, 255, 255, 0.03) 56%, rgba(255, 255, 255, 0.03) 58%, transparent 59%),
        linear-gradient(135deg, #001122 0%, #002244 100%);
    animation: radarRipple 8s ease-in-out infinite alternate;
}

/* Card 3: Meet and Assist services - Golden skies and jet stream */
.bg-meet-assist {
    background: 
        radial-gradient(circle at 10% 20%, rgba(204, 0, 0, 0.22) 0%, transparent 55%),
        radial-gradient(circle at 90% 80%, rgba(30, 77, 140, 0.35) 0%, transparent 60%),
        linear-gradient(135deg, #001a33 0%, #002244 100%);
}

/* Card 4: International flight support - Latitude longitude map grid */
.bg-flight-support {
    background: 
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(0deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(135deg, #002244 0%, #001122 100%);
    background-size: 24px 24px, 24px 24px, auto;
    animation: gridMove 20s linear infinite;
}

/* Card 5: Fuel Services - Dynamic energy lines */
.bg-fuel {
    background: 
        repeating-linear-gradient(45deg, rgba(204, 0, 0, 0.05) 0px, rgba(204, 0, 0, 0.05) 15px, transparent 15px, transparent 30px),
        linear-gradient(135deg, #003366 0%, #001f3f 100%);
}

/* Card 6: Executive Flights Handling - Aerodynamic wing angles */
.bg-executive {
    background: 
        linear-gradient(135deg, rgba(204, 0, 0, 0.18) 0%, transparent 45%),
        linear-gradient(120deg, rgba(255, 255, 255, 0.03) 30%, transparent 30%),
        linear-gradient(135deg, #001f3f 0%, #002244 100%);
}

/* Card 7: Catering Arrangement - Premium diamond grid */
.bg-catering {
    background: 
        linear-gradient(135deg, rgba(204, 0, 0, 0.08) 0%, transparent 50%),
        repeating-linear-gradient(45deg, transparent, transparent 15px, rgba(255, 255, 255, 0.015) 15px, rgba(255, 255, 255, 0.015) 30px),
        linear-gradient(135deg, #002244 0%, #001122 100%);
}

/* Card 8: Crew Handling - Flight level horizon line */
.bg-crew {
    background: 
        linear-gradient(to bottom, transparent 49%, rgba(204, 0, 0, 0.15) 50%, transparent 51%),
        linear-gradient(135deg, #003366 0%, #001122 100%);
}

/* CSS Animations for Backgrounds */
@keyframes radarRipple {
    0% { background-position: 0 0; }
    100% { background-position: 15px 15px; }
}

@keyframes gridMove {
    0% { background-position: 0px 0px, 0px 0px, 0% 0%; }
    100% { background-position: 24px 24px, 24px 24px, 0% 0%; }
}

/* Strong Dark Gradient Overlay */
.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 26, 51, 0.9) 10%, rgba(0, 34, 68, 0.45) 75%, transparent 100%);
    backdrop-filter: blur(4px);
    transition: background 0.6s cubic-bezier(0.16, 1, 0.3, 1), backdrop-filter 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
}

.service-card:hover .card-overlay {
    background: linear-gradient(to top, #001122 30%, rgba(0, 51, 102, 0.95) 75%, rgba(0, 51, 102, 0.5) 100%);
    backdrop-filter: blur(1.5px);
}

.card-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
    color: var(--bg-white);
    width: 100%;
    transition: var(--transition-slow);
    display: flex;
    flex-direction: column;
}

.service-icon {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    background-color: rgba(204, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    box-shadow: 0 4px 10px rgba(204, 0, 0, 0.3);
    transition: var(--transition-fast);
}

.card-content h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: -0.3px;
}

/* Hidden Content Refactored for smooth overflow-free height transition */
.card-content p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    margin-bottom: 0;
    transition: max-height 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease, margin 0.5s ease;
}

.service-features {
    list-style: none;
    padding-left: 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    margin-bottom: 0;
    transition: max-height 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease, margin 0.5s ease;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.service-features li::before {
    content: "✓";
    color: #FFAAAA;
    font-weight: bold;
}

/* Premium Request Service Button */
.request-service-btn {
    padding: 0 1.4rem;
    font-size: 0.85rem;
    width: fit-content;
    align-self: flex-start;
    background-color: var(--accent-color);
    color: var(--bg-white);
    border: none;
    box-shadow: 0 4px 10px rgba(204, 0, 0, 0.25);
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    margin-top: 0;
    transition: max-height 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease, padding 0.6s ease, margin 0.6s ease, background 0.3s ease, box-shadow 0.3s ease;
}

/* Card Hover States - Elegant scaling and item expansions */
.service-card:hover {
    transform: scale(1.04) translateY(-5px);
    box-shadow: 0 22px 45px rgba(0, 34, 68, 0.25);
}

.service-card:hover .card-bg-image {
    transform: scale(1.12);
}

.service-card:hover .card-content p {
    max-height: 120px;
    opacity: 1;
    margin-bottom: 1rem;
}

.service-card:hover .service-features {
    max-height: 150px;
    opacity: 1;
    margin-bottom: 0.5rem;
}

.service-card:hover .request-service-btn {
    max-height: 50px;
    padding: 0.6rem 1.4rem;
    opacity: 1;
    margin-top: 1.25rem;
}

.request-service-btn:hover {
    background-color: var(--accent-hover);
    box-shadow: 0 6px 14px rgba(204, 0, 0, 0.35);
    color: var(--bg-white);
}

.service-card:hover .service-icon {
    background-color: var(--bg-white);
    color: var(--accent-color);
}

/* --- About Us Section ('Company Profile') --- */
.about-section {
    padding: 8rem 0;
    background-color: var(--bg-white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.about-intro {
    font-size: 1.2rem;
    color: var(--primary-light);
    font-weight: 500;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.about-body {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

/* Mission & Vision Cards side-by-side */
.mission-vision-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.mv-card {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    padding: 2rem;
    height: 240px;
    display: flex;
    align-items: flex-end;
    box-shadow: 0 4px 20px rgba(0, 51, 102, 0.05);
    transition: var(--transition-fast);
}

.mv-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.5) blur(1.5px);
    transition: var(--transition-slow);
}

.mv-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 34, 68, 0.92) 30%, rgba(0, 51, 102, 0.6) 100%);
    z-index: 1;
}

.mv-content {
    position: relative;
    z-index: 2;
    color: var(--bg-white);
}

.mv-icon {
    color: #FFAAAA;
    margin-bottom: 0.75rem;
}

.mv-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.mv-card p {
    font-size: 0.85rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.85);
}

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

.mv-card:hover .mv-bg {
    transform: scale(1.1);
}

/* About Media Panel */
.about-media-wrapper {
    position: relative;
}

.media-large {
    border-radius: var(--border-radius);
    box-shadow: 0 15px 35px rgba(0, 34, 68, 0.15);
    border: 4px solid var(--bg-white);
}

.media-accent-box {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background-color: var(--primary-color);
    color: var(--bg-white);
    padding: 1.5rem 2rem;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 51, 102, 0.25);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
    border-left: 4px solid var(--accent-color);
}

.accent-number {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1;
    color: var(--accent-color);
}

.accent-text {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    margin-top: 0.25rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.85);
}

/* --- Contact Section ('Contact Operations') --- */
.contact-section {
    position: relative;
    padding: 8rem 0;
    background-image: url('assets/services.jpg');
    background-size: cover;
    background-position: center;
    color: var(--bg-white);
}

.contact-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 34, 68, 0.96) 0%, rgba(0, 20, 40, 0.98) 100%);
    z-index: 1;
}

.contact-grid {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 4.5rem;
    align-items: center;
}

.contact-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--bg-white);
    margin-bottom: 0.5rem;
}

.contact-lead {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 3.5rem;
    font-weight: 300;
}

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

.detail-item {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.detail-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    flex-shrink: 0;
}

.detail-item h4 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.detail-item p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.75);
}

/* Contact Detail Links & Interactive States */
.contact-link {
    text-decoration: none;
    color: inherit;
    display: block;
    outline: none;
    transition: transform 0.3s ease;
}

.contact-link:hover {
    transform: translateX(5px);
}

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

.contact-link .detail-icon {
    transition: transform 0.3s ease, border-color 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

.contact-link:hover .detail-icon {
    transform: scale(1.1);
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--bg-white);
}

.contact-link .detail-item h4 {
    transition: color 0.3s ease;
}

.contact-link:hover .detail-item h4 {
    color: var(--accent-color);
}

/* Glassmorphic Contact Form */
.contact-form-container {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--border-radius);
    padding: 3rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.ops-contact-form h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.3px;
}

.form-instructions {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
}

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

.form-group {
    margin-bottom: 1.25rem;
    position: relative;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.85);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    padding: 0.8rem 1rem;
    color: var(--bg-white);
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--bg-white);
    background-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

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

/* Form Validation States */
.form-group.error input,
.form-group.error select {
    border-color: var(--accent-color);
    background-color: rgba(204, 0, 0, 0.08);
}

.error-msg {
    display: block;
    font-size: 0.75rem;
    color: #FFAAAA;
    margin-top: 0.3rem;
    opacity: 0;
    height: 0;
    overflow: hidden;
    transition: var(--transition-fast);
}

.form-group.error .error-msg {
    opacity: 1;
    height: auto;
}

#submitBtn {
    margin-top: 1rem;
}

/* Success Alert Styling */
.form-status {
    margin-top: 1.5rem;
}

.success-alert {
    display: none;
    align-items: center;
    gap: 0.75rem;
    background-color: rgba(0, 204, 102, 0.15);
    border: 1px solid rgba(0, 204, 102, 0.4);
    color: #88ffd0;
    padding: 1rem;
    border-radius: 5px;
    font-size: 0.95rem;
    animation: fadeInUp 0.4s ease forwards;
}

/* --- Footer --- */
.main-footer {
    background-color: var(--primary-dark);
    color: rgba(255, 255, 255, 0.85);
    padding: 5rem 0 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 4rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--bg-white);
}

.footer-logo-img {
    height: 40px;
    width: auto;
    border-radius: 50%;
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.65);
}

.footer-links h4,
.footer-compliance h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--bg-white);
    margin-bottom: 1.5rem;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.65);
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-left: 4px;
}

.certifications-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.cert-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
}

.footer-bottom {
    max-width: var(--max-width);
    margin: 4rem auto 0 auto;
    padding: 1.5rem 2rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.45);
}

/* --- Responsive Layout Utilities --- */
@media (max-width: 1024px) {
    .hero-headline {
        font-size: 3rem;
    }
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }
    .about-media {
        display: flex;
        justify-content: center;
        width: 80%;
        margin: 0 auto;
    }
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }
}

@media (max-width: 1024px) {
    /* Touch Target Sizing & Card layouts for touch devices */
    input, select, textarea, .btn {
        min-height: 46px !important;
    }
    
    .service-card {
        min-height: 480px;
    }
    
    .card-content p,
    .service-features,
    .request-service-btn {
        max-height: none !important;
        opacity: 1 !important;
        overflow: visible !important;
        margin-bottom: 0.8rem !important;
    }
    
    .request-service-btn {
        max-height: none !important;
        padding: 0.75rem 1.6rem !important;
        min-height: 44px !important;
        opacity: 1 !important;
        margin-top: 1rem !important;
        transform: none !important;
    }
    
    .card-overlay {
        background: linear-gradient(to top, #001122 30%, rgba(0, 51, 102, 0.9) 75%, rgba(0, 51, 102, 0.4) 100%) !important;
        backdrop-filter: blur(2px) !important;
    }
}

@media (max-width: 768px) {
    .mobile-nav-toggle {
        display: flex;
        z-index: 1010;
    }

    /* Modern glassmorphic slide-out navigation drawer */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(0, 34, 68, 0.85);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-left: 1px solid rgba(255, 255, 255, 0.1);
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        padding: 3rem 2rem;
        transition: right 0.5s cubic-bezier(0.16, 1, 0.3, 1);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.25);
        z-index: 1005;
    }

    .nav-menu.open {
        right: 0;
    }

    .nav-item {
        color: rgba(255, 255, 255, 0.85);
        font-size: 1.15rem;
        font-weight: 500;
        width: 100%;
        text-align: center;
        padding: 0.75rem 0;
    }

    /* Force mobile drawer links to stay white on dark background even when header is scrolled */
    .main-header.scrolled #mobileNav .nav-item {
        color: rgba(255, 255, 255, 0.85);
    }

    .main-header.scrolled #mobileNav .nav-item:hover,
    .main-header.scrolled #mobileNav .nav-item.active {
        color: var(--bg-white);
    }

    /* Hamburger Btn Animations */
    .mobile-nav-toggle.open .bar:nth-child(1) {
        transform: translateY(8.5px) rotate(45deg);
    }
    .mobile-nav-toggle.open .bar:nth-child(2) {
        opacity: 0;
    }
    .mobile-nav-toggle.open .bar:nth-child(3) {
        transform: translateY(-8.5px) rotate(-45deg);
    }

    .hero-headline {
        font-size: 2.4rem;
    }
    .hero-description {
        font-size: 1.05rem;
    }
    
    .mission-vision-container {
        grid-template-columns: 1fr;
    }
    
    .form-group-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .contact-form-container {
        padding: 2rem 1.5rem;
    }
}

/* Keyframe Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* --- RTL Styles for Arabic support --- */
[dir="rtl"] {
    font-family: 'Cairo', sans-serif !important;
}

[dir="rtl"] body,
[dir="rtl"] h1,
[dir="rtl"] h2,
[dir="rtl"] h3,
[dir="rtl"] h4,
[dir="rtl"] h5,
[dir="rtl"] h6,
[dir="rtl"] p,
[dir="rtl"] input,
[dir="rtl"] select,
[dir="rtl"] textarea,
[dir="rtl"] button,
[dir="rtl"] .btn {
    font-family: 'Cairo', sans-serif !important;
}

[dir="rtl"] .lang-toggle-btn {
    font-family: 'Outfit', sans-serif !important; /* Keep digits/EN code clean */
}

/* Adjust alignments and margins in RTL */
[dir="rtl"] .title-divider-left {
    margin: 1rem 0 1.5rem auto;
}

[dir="rtl"] .about-content,
[dir="rtl"] .contact-info,
[dir="rtl"] .ops-contact-form {
    text-align: right;
}

[dir="rtl"] .service-features {
    padding-right: 0;
}

[dir="rtl"] .service-features li::before {
    content: "✓";
    margin-left: 0.5rem;
    margin-right: 0;
    display: inline-block;
}

[dir="rtl"] .nav-item::after {
    left: auto;
    right: 0;
}

[dir="rtl"] .logo-link {
    flex-direction: row-reverse;
}

[dir="rtl"] .detail-item {
    display: flex;
    flex-direction: row-reverse;
    text-align: right;
}

[dir="rtl"] .detail-item div {
    margin-right: 0;
    margin-left: auto;
}

[dir="rtl"] .detail-icon {
    margin-right: 0;
    margin-left: 1.25rem;
}

[dir="rtl"] .request-service-btn {
    align-self: flex-end;
}

/* Mobile Nav Drawer slides in from left in RTL */
@media (max-width: 768px) {
    [dir="rtl"] .nav-menu {
        right: auto;
        left: -100%;
        border-right: 1px solid rgba(255, 255, 255, 0.1);
        border-left: none;
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.25);
        transition: left 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    }
    
    [dir="rtl"] .nav-menu.open {
        left: 0;
        right: auto;
    }
}
