/*===============================================
  AeroMarine Website - Main Stylesheet
=================================================*/

/* 1. Global Styles & Variables
-------------------------------------------------*/
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&family=Tajawal:wght@400;700&display=swap');

:root {
    --primary-color: #FFFFFF;
    --accent-color: #00AEEF; /* Cyber Blue */
    --dark-background: #050A1A; /* Dark Blue/Black */
    --secondary-background: #0A182D;
    --font-arabic: 'Tajawal', sans-serif;
    --font-english: 'Poppins', sans-serif;
}

html { scroll-behavior: smooth; }

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-arabic);
    background-color: var(--dark-background);
    color: var(--primary-color);
    overflow-x: hidden;
}
html[lang="en"] body { font-family: var(--font-english); }

h1, h2, h3, h4, h5, h6 { font-weight: 700; }
p { line-height: 1.8; color: #cccccc; }
a { text-decoration: none; color: var(--accent-color); transition: color 0.3s ease; }
a:hover { color: var(--primary-color); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 100px 0; }
.section-title { text-align: center; font-size: 2.5rem; margin-bottom: 50px; position: relative; }
.section-title::after { content: ''; display: block; width: 60px; height: 3px; background-color: var(--accent-color); margin: 10px auto 0; }

/* 2. Header & Navigation
-------------------------------------------------*/
.header { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; padding: 20px 40px; transition: background-color 0.4s ease, padding 0.4s ease; }
.header.scrolled { background-color: rgba(5, 10, 26, 0.9); backdrop-filter: blur(10px); padding: 15px 40px; }
.navbar { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.logo { display: flex; align-items: center; gap: 12px; font-size: 1.8rem; font-weight: 700; color: var(--primary-color); }
.logo-svg { height: 35px; width: 35px; }
.nav-menu { list-style: none; display: flex; margin: 0; padding: 0; }
html[lang="en"] .nav-menu { gap: 40px; }
.nav-menu li { margin: 0 20px; }
.nav-menu a { color: var(--primary-color); font-size: 1rem; position: relative; padding-bottom: 5px; }
.nav-menu a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background-color: var(--accent-color); transition: width 0.3s ease; }
.nav-menu a:hover::after, .nav-menu a.active::after { width: 100%; }
.nav-extra { display: flex; align-items: center; gap: 25px; }
.lang-switcher { font-weight: 700; }
.menu-toggle { display: none; width: 28px; height: 22px; cursor: pointer; position: relative; z-index: 101; }
.menu-toggle span { display: block; position: absolute; height: 3px; width: 100%; background: #fff; border-radius: 3px; opacity: 1; left: 0; transform: rotate(0deg); transition: .25s ease-in-out; }
.menu-toggle span:nth-child(1) { top: 0px; }
.menu-toggle span:nth-child(2) { top: 9px; }
.menu-toggle span:nth-child(3) { top: 18px; }
.nav-menu-mobile.active + .header .menu-toggle span:nth-child(1) { top: 9px; transform: rotate(135deg); }
.nav-menu-mobile.active + .header .menu-toggle span:nth-child(2) { opacity: 0; left: -60px; }
.nav-menu-mobile.active + .header .menu-toggle span:nth-child(3) { top: 9px; transform: rotate(-135deg); }

/* 3. Hero Section
-------------------------------------------------*/
.hero-section { position: relative; height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; }
#bgVideo { position: absolute; top: 50%; left: 50%; min-width: 100%; min-height: 100%; width: auto; height: auto; z-index: 1; transform: translateX(-50%) translateY(-50%); object-fit: cover; filter: brightness(0.5); }
.hero-content { position: relative; z-index: 2; }
.hero-title { font-size: 4.5rem; font-weight: 700; line-height: 1.2; margin: 0; color: #FFFFFF; }

/* 4. Services Section
-------------------------------------------------*/
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; margin-top: 50px; }
.service-card { background-color: var(--secondary-background); padding: 40px; border: 1px solid #1a2a4a; text-align: center; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.service-card:hover { transform: translateY(-10px); box-shadow: 0 10px 30px rgba(0, 174, 239, 0.1); }
.service-card .icon { color: var(--accent-color); margin-bottom: 20px; }
.service-card .icon svg { width: 48px; height: 48px; stroke-width: 1.5; }
.service-card h3 { font-size: 1.5rem; margin-bottom: 15px; }

/* 5. CTA Section
-------------------------------------------------*/
.cta-section { background-color: var(--secondary-background); text-align: center; }
.cta-title { font-size: 2.2rem; margin-bottom: 30px; }
.btn { display: inline-block; padding: 15px 35px; background-color: var(--accent-color); color: var(--primary-color); font-size: 1rem; font-weight: 700; border-radius: 5px; transition: background-color 0.3s ease, transform 0.3s ease; border: none; cursor: pointer; }
.btn:hover { background-color: #0095c7; transform: translateY(-3px); }

/* 6. Footer
-------------------------------------------------*/
.footer { background-color: #020610; padding: 40px 0; text-align: center; }
.footer p { margin: 0; color: #8899b8; }

/* 7. Inner Pages
-------------------------------------------------*/
.page-header { height: 40vh; display: flex; align-items: center; justify-content: center; text-align: center; background-size: cover; background-position: center; position: relative; }
.page-header::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to top, var(--dark-background), rgba(5, 10, 26, 0.5)); }
.page-title { position: relative; z-index: 2; font-size: 3.5rem; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: flex-start; }
.contact-form input, .contact-form textarea { background-color: var(--secondary-background); border: 1px solid #1a2a4a; color: var(--primary-color); padding: 15px; margin-bottom: 20px; border-radius: 5px; font-family: inherit; width: 100%; box-sizing: border-box; }
.contact-info-item { display: flex; align-items: flex-start; margin-bottom: 20px; font-size: 1.1rem; }
.contact-info-icon { flex-shrink: 0; color: var(--accent-color); }
html[dir="rtl"] .contact-info-icon { margin-left: 15px; }
html[dir="ltr"] .contact-info-icon { margin-right: 15px; }
.contact-info-icon svg { width: 24px; height: 24px; stroke-width: 2; }
.contact-info-text strong { font-weight: 700; color: var(--primary-color); display: block; margin-bottom: 5px; }
#form-status { margin-top: 15px; font-weight: bold; text-align: center; }
#form-status.success { color: #28a745; }
#form-status.error { color: #dc3545; }

/* 8. Responsive Design
-------------------------------------------------*/
@media (max-width: 992px) {
    .nav-menu { display: none; }
    .menu-toggle { display: block; }

    html[dir="ltr"] .navbar { flex-direction: row; }
    html[dir="rtl"] .navbar { flex-direction: row-reverse; }

    .nav-menu-mobile {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background-color: var(--dark-background);
        justify-content: center;
        align-items: center;
        transition: left 0.5s ease;
        padding: 0;
        z-index: 100;
        list-style: none;
    }
    html[dir="rtl"] .nav-menu-mobile { left: auto; right: -100%; transition: right 0.5s ease; }
    .nav-menu-mobile.active { left: 0; }
    html[dir="rtl"] .nav-menu-mobile.active { right: 0; }

    .nav-menu-mobile li { margin: 25px 0; }
    .nav-menu-mobile a { font-size: 1.5rem; }

    .hero-title { font-size: 3rem; }
    .section-title, .cta-title { font-size: 2rem; }
    .page-title { font-size: 2.5rem; }
    .contact-grid { grid-template-columns: 1fr; }
    .contact-info { margin-top: 50px; }
}



/* === AeroMarine FINAL PATCH (2025-08-28) ===================
   Fix EN pages hamburger visibility + larger tap target + no shrink
============================================================= */
.nav-menu { flex: 1; min-width: 0; }
.nav-extra { flex-shrink: 0; }

/* Bigger tappable hamburger with fixed line length */
.menu-toggle {
  width: 48px !important;
  height: 48px !important;
  display: none;
  position: relative;
  z-index: 101;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  align-items: center;
  justify-content: center;
}
.menu-toggle span {
  position: absolute;
  left: 8px;
  right: 8px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: .25s ease-in-out;
}
.menu-toggle span:nth-child(1){ top: 14px; }
.menu-toggle span:nth-child(2){ top: 22px; }
.menu-toggle span:nth-child(3){ top: 30px; }

/* Use .menu-open on .nav-extra for the X animation */
.nav-extra.menu-open .menu-toggle span:nth-child(1){ top: 22px; transform: rotate(45deg); }
.nav-extra.menu-open .menu-toggle span:nth-child(2){ opacity: 0; }
.nav-extra.menu-open .menu-toggle span:nth-child(3){ top: 22px; transform: rotate(-45deg); }

/* Show burger on mobile */
@media (max-width: 992px) {
  .nav-menu { display: none; }
  .menu-toggle { display: flex; }
}


/* === Floating Hamburger (mobile-only, non-intrusive) — 2025-08-28 === */
@media (max-width: 992px){
  .menu-toggle-float{
    position: fixed;
    top: calc(env(safe-area-inset-top, 0px) + 12px);
    inset-inline-end: 16px;
    width: 44px; height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    -webkit-tap-highlight-color: transparent;
  }
  .menu-toggle-float span{
    position: absolute;
    left: 8px; right: 8px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
  }
  .menu-toggle-float span:nth-child(1){ top: 12px; }
  .menu-toggle-float span:nth-child(2){ top: 20px; }
  .menu-toggle-float span:nth-child(3){ top: 28px; }
}



/* === Refinement (2025-08-28): Scope floating hamburger to EN only & shrink X icon === */

/* Smaller X icon */
.icon-x { width: 16px; height: 16px; }
.footer .social-x {
  width: 28px; height: 28px;
  border-radius: 6px;
}

/* Mobile: disable floating button on Arabic (use the original header button only) */
@media (max-width: 992px){
  html[lang="ar"] .menu-toggle-float { display: none !important; }
}

/* Mobile: enable/position floating button on English only */
@media (max-width: 992px){
  html[lang="en"] .menu-toggle-float{
    position: fixed;
    top: calc(env(safe-area-inset-top, 0px) + 12px);
    inset-inline-end: 16px;
    width: 44px; height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    -webkit-tap-highlight-color: transparent;
  }
  html[lang="en"] .menu-toggle-float span{
    position: absolute;
    left: 8px; right: 8px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
  }
  html[lang="en"] .menu-toggle-float span:nth-child(1){ top: 12px; }
  html[lang="en"] .menu-toggle-float span:nth-child(2){ top: 20px; }
  html[lang="en"] .menu-toggle-float span:nth-child(3){ top: 28px; }
}
