/* =========================================================================
   VARIABLES & THEME
   ========================================================================= */
:root {
   --clr-bg: #f8fafc;
   --clr-text: #0f172a;
   --clr-text-muted: #475569;
   --clr-primary: #3b82f6;
   --clr-primary-glow: rgba(59, 130, 246, 0.3);
   --clr-secondary: #0ea5e9;
   --clr-accent: #8b5cf6;

   --grad-primary: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
   --grad-bg: linear-gradient(135deg, rgba(248, 250, 252, 0.7) 0%, rgba(226, 232, 240, 0.7) 100%);

   --glass-bg: rgba(255, 255, 255, 0.55);
   --glass-border: rgba(255, 255, 255, 0.8);
   --glass-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.05);
   --glass-blur: blur(20px);

   --font-heading: 'Cairo', sans-serif;
   --font-body: 'Tajawal', sans-serif;

   --radius: 20px;
   --radius-lg: 32px;
   --transition: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
   --transition-fast: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

body.dark-mode {
   --clr-bg: #0a0f1c;
   --clr-text: #f8fafc;
   --clr-text-muted: #94a3b8;
   --grad-bg: linear-gradient(135deg, rgba(10, 15, 28, 0.8) 0%, rgba(20, 28, 45, 0.8) 100%);
   --glass-bg: rgba(30, 41, 59, 0.3);
   --glass-border: rgba(255, 255, 255, 0.05);
   --glass-shadow: 0 15px 45px -10px rgba(0, 0, 0, 0.6);
}

/* =========================================================================
   GLOBAL RESET & TYPOGRAPHY HIERARCHY
   ========================================================================= */
* {
   margin: 0;
   padding: 0;
   box-sizing: border-box;
   font-family: var(--font-body);
}

html {
   scroll-behavior: smooth;
   scroll-padding-top: 100px;
}

body {
   background-color: var(--clr-bg);
   color: var(--clr-text);
   transition: background-color var(--transition), color var(--transition);
   overflow-x: hidden;
   position: relative;
   line-height: 1.8;
}

h1,
h2,
h3,
h4,
h5,
h6 {
   font-family: var(--font-heading);
   font-weight: 700;
}

h1 {
   font-size: clamp(3rem, 5vw, 5rem);
   letter-spacing: -0.02em;
   line-height: 1.1;
   font-weight: 800;
   margin-bottom: 24px;
}

h2 {
   font-size: clamp(2rem, 3.5vw, 3rem);
   letter-spacing: -0.01em;
   line-height: 1.2;
   margin-bottom: 16px;
}

h3 {
   font-size: clamp(1.25rem, 2vw, 1.75rem);
   line-height: 1.4;
   font-weight: 700;
}

h4 {
   font-size: 1.25rem;
   font-weight: 600;
}

p {
   font-size: 1.15rem;
   color: var(--clr-text-muted);
}

a {
   text-decoration: none;
   color: inherit;
}

ul {
   list-style: none;
}

.cursor-glow {
   position: fixed;
   top: 0;
   left: 0;
   width: 600px;
   height: 600px;
   background: radial-gradient(circle, var(--clr-primary-glow) 0%, transparent 60%);
   border-radius: 50%;
   transform: translate(-50%, -50%);
   pointer-events: none;
   z-index: 1;
   opacity: 0;
   transition: opacity 1s var(--transition);
}

/* =========================================================================
   UTILITIES & SPACING
   ========================================================================= */
.container {
   max-width: 1300px;
   margin: 0 auto;
   padding: 0 5%;
}

.section-padding {
   padding: 140px 0;
   position: relative;
   z-index: 10;
}

.glass-panel {
   background: var(--grad-bg);
   backdrop-filter: var(--glass-blur);
   -webkit-backdrop-filter: var(--glass-blur);
   border-top: 1px solid var(--glass-border);
   border-bottom: 1px solid var(--glass-border);
}

.glass-card {
   background: var(--glass-bg);
   backdrop-filter: var(--glass-blur);
   -webkit-backdrop-filter: var(--glass-blur);
   border: 1px solid var(--glass-border);
   border-radius: var(--radius);
   box-shadow: var(--glass-shadow);
   padding: 40px;
   transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
   will-change: transform;
}

.hover-lift {
   transform-style: preserve-3d;
}

.hover-lift:hover {
   border-color: rgba(59, 130, 246, 0.4);
   box-shadow: 0 25px 50px -12px var(--clr-primary-glow);
}

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

.section-header.right-align {
   text-align: right;
}

.section-header h2 {
   background: var(--grad-primary);
   -webkit-background-clip: text;
   background-clip: text;
   -webkit-text-fill-color: transparent;
   display: inline-block;
}

.divider {
   height: 6px;
   width: 60px;
   background: var(--grad-primary);
   border-radius: 3px;
   margin: 0 auto 24px;
}

.right-align .divider {
   margin: 0 0 24px 0;
}

.section-header p {
   color: var(--clr-text-muted);
   font-size: 1.25rem;
   max-width: 700px;
   margin: 0 auto;
}

.btn {
   display: inline-flex;
   align-items: center;
   gap: 12px;
   padding: 15px 40px;
   border-radius: 50px;
   font-family: var(--font-heading);
   font-weight: 700;
   font-size: 1.1rem;
   cursor: pointer;
   transition: var(--transition-fast);
   border: none;
   outline: none;
}

.btn-primary {
   background: var(--grad-primary);
   color: white;
   box-shadow: 0 8px 25px -5px var(--clr-primary-glow);
}

.btn-primary:hover {
   transform: translateY(-3px) scale(1.02);
   box-shadow: 0 15px 35px -5px rgba(139, 92, 246, 0.5);
}

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

.btn-secondary:hover {
   background: var(--clr-primary);
   color: white;
}

.mt-2 {
   margin-top: 24px;
}

/* =========================================================================
   ANIMATED BACKGROUND BLOBS
   ========================================================================= */
.bg-animation {
   position: fixed;
   top: 0;
   left: 0;
   width: 100vw;
   height: 100vh;
   z-index: 0;
   pointer-events: none;
   overflow: hidden;
}

.blob {
   position: absolute;
   filter: blur(100px);
   border-radius: 50%;
   opacity: 0.3;
   animation: float 25s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}

body.dark-mode .blob {
   opacity: 0.12;
}

.blob-1 {
   width: 450px;
   height: 450px;
   background: var(--clr-primary);
   top: -100px;
   right: -50px;
}

.blob-2 {
   width: 550px;
   height: 550px;
   background: var(--clr-accent);
   bottom: -150px;
   left: -100px;
   animation-delay: -5s;
}

.blob-3 {
   width: 350px;
   height: 350px;
   background: var(--clr-secondary);
   top: 30%;
   left: 40%;
   animation-duration: 30s;
}

@keyframes float {
   0% {
      transform: translate(0, 0) scale(1) rotate(0deg);
   }

   33% {
      transform: translate(50px, -80px) scale(1.1) rotate(10deg);
   }

   66% {
      transform: translate(-30px, 40px) scale(0.9) rotate(-10deg);
   }

   100% {
      transform: translate(0, 0) scale(1) rotate(0deg);
   }
}

/* =========================================================================
   NAVIGATION (NAVBAR)
   ========================================================================= */
.navbar {
   position: fixed;
   top: 0;
   left: 0;
   width: 100%;
   z-index: 1000;
   transition: padding var(--transition), background var(--transition), backdrop-filter var(--transition);
   padding: 25px 0;
}

.navbar.scrolled {
   padding: 15px 0;
   background: var(--glass-bg);
   backdrop-filter: var(--glass-blur);
   -webkit-backdrop-filter: var(--glass-blur);
   border-bottom: 1px solid var(--glass-border);
   box-shadow: var(--glass-shadow);
}

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

.logo {
   display: flex;
   align-items: center;
   gap: 12px;
   font-family: var(--font-heading);
   font-weight: 800;
   font-size: 2rem;
   color: var(--clr-text);
}

.logo i {
   color: var(--clr-primary);
}

.logo span {
   color: var(--clr-accent);
}

.nav-links {
   display: flex;
   gap: 40px;
}

.nav-links a {
   font-weight: 600;
   font-size: 1.1rem;
   color: var(--clr-text);
   transition: var(--transition-fast);
   position: relative;
   padding-bottom: 5px;
}

.nav-links a::after {
   content: '';
   position: absolute;
   bottom: 0;
   right: 0;
   width: 0;
   height: 3px;
   background: var(--grad-primary);
   border-radius: 2px;
   transition: width var(--transition-fast);
}

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

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

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

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

.theme-btn {
   background: var(--glass-bg);
   border: 1px solid var(--glass-border);
   font-size: 1.3rem;
   color: var(--clr-text);
   cursor: pointer;
   transition: var(--transition-fast);
   width: 45px;
   height: 45px;
   border-radius: 50%;
   display: flex;
   align-items: center;
   justify-content: center;
}

.theme-btn:hover {
   color: var(--clr-primary);
   transform: rotate(15deg) scale(1.1);
}

.hamburger {
   display: none;
   font-size: 1.8rem;
   cursor: pointer;
   color: var(--clr-text);
}

/* =========================================================================
   HERO SECTION
   ========================================================================= */
.hero {
   min-height: 100vh;
   display: flex;
   align-items: center;
   justify-content: center;
   padding-top: 80px;
   position: relative;
   z-index: 10;
   text-align: center;
}

.hero-content {
   max-width: 900px;
   will-change: transform;
   transition: transform 0.2s ease-out;
}

.hero h1 span {
   background: linear-gradient(-45deg, #3b82f6, #8b5cf6, #0ea5e9, #6366f1);
   background-size: 300% auto;
   animation: gradientText 6s ease infinite;
   -webkit-background-clip: text;
   background-clip: text;
   -webkit-text-fill-color: transparent;
}

@keyframes gradientText {
   0% {
      background-position: 0% 50%;
   }

   50% {
      background-position: 100% 50%;
   }

   100% {
      background-position: 0% 50%;
   }
}

.hero p {
   font-size: 1.4rem;
   color: var(--clr-text-muted);
   margin-bottom: 50px;
}

.hero p strong {
   color: var(--clr-text);
}

.hero-buttons {
   display: flex;
   justify-content: center;
   gap: 24px;
}

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

.about-text h3 {
   font-size: 2.2rem;
   margin-bottom: 24px;
}

.about-text p {
   color: var(--clr-text-muted);
   font-size: 1.2rem;
   line-height: 1.9;
}

.vision-mission {
   text-align: center;
   padding: 50px;
}

.icon-box {
   width: 90px;
   height: 90px;
   background: var(--grad-primary);
   border-radius: 50%;
   display: flex;
   align-items: center;
   justify-content: center;
   margin: 0 auto 24px;
   font-size: 2.2rem;
   color: white;
   box-shadow: 0 15px 30px var(--clr-primary-glow);
}

.vision-mission h3 {
   margin-bottom: 20px;
   font-size: 1.8rem;
}

.vision-mission p {
   color: var(--clr-text-muted);
   font-size: 1.15rem;
}

/* =========================================================================
   BOARD & CEO
   ========================================================================= */
.board-content {
   max-width: 900px;
   margin: 0 auto;
   position: relative;
   padding: 50px 60px 50px 140px;
}

.board-icon {
   position: absolute;
   right: 40px;
   top: 50%;
   transform: translateY(-50%);
   font-size: 6rem;
   background: var(--grad-primary);
   -webkit-background-clip: text;
   background-clip: text;
   -webkit-text-fill-color: transparent;
   opacity: 0.5;
}

.responsibilities-list li {
   font-size: 1.2rem;
   margin-bottom: 20px;
   display: flex;
   align-items: center;
   gap: 15px;
}

.responsibilities-list li i {
   color: var(--clr-secondary);
   font-size: 1.4rem;
}

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

.ceo-info .role-desc h3 {
   font-size: 2.2rem;
   margin-bottom: 24px;
}

.ceo-info .role-desc p {
   font-size: 1.2rem;
}

.ceo-authorities {
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: 30px;
}

.auth-card {
   text-align: center;
   padding: 30px;
}

.auth-card i {
   font-size: 2.5rem;
   margin-bottom: 20px;
   color: var(--clr-primary);
}

.auth-card h4 {
   font-size: 1.2rem;
}

/* =========================================================================
   OPERATIONS (SERVICES)
   ========================================================================= */
.grid-4-cols {
   display: grid;
   grid-template-columns: repeat(4, 1fr);
   gap: 40px;
}

.card-icon {
   font-size: 3rem;
   margin-bottom: 25px;
   color: var(--clr-accent);
}

.grid-4-cols .glass-card h3 {
   margin-bottom: 15px;
   font-size: 1.4rem;
}

.grid-4-cols .glass-card p {
   font-size: 1.05rem;
}

/* =========================================================================
   TEAMS
   ========================================================================= */
.teams-grid {
   display: grid;
   grid-template-columns: repeat(3, 1fr);
   gap: 40px;
}

.team-card {
   position: relative;
   overflow: hidden;
   padding: 0;
}

.team-card-inner {
   padding: 50px 40px;
   text-align: center;
   position: relative;
   z-index: 1;
}

.team-card::before {
   content: '';
   position: absolute;
   top: 0;
   right: 0;
   width: 100%;
   height: 100%;
   background: var(--grad-primary);
   opacity: 0;
   transition: opacity var(--transition);
   z-index: 0;
}

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

.team-card:hover .team-card-inner {
   color: white;
}

.team-card:hover p {
   color: rgba(255, 255, 255, 0.9);
}

.icon-wrapper {
   width: 80px;
   height: 80px;
   background: rgba(59, 130, 246, 0.1);
   color: var(--clr-primary);
   border-radius: 50%;
   display: flex;
   align-items: center;
   justify-content: center;
   font-size: 2.5rem;
   margin: 0 auto 25px;
   transition: var(--transition);
}

.team-card:hover .icon-wrapper {
   background: rgba(255, 255, 255, 0.2);
   color: white;
   transform: scale(1.1);
}

.team-card h3 {
   margin-bottom: 15px;
   font-size: 1.6rem;
}

.team-card p {
   transition: color var(--transition);
}

/* =========================================================================
   QUALITY, SAFETY, TRAINING, CORPORATE DEPARTMENTS
   ========================================================================= */
.grid-3-cols {
   display: grid;
   grid-template-columns: repeat(3, 1fr);
   gap: 40px;
}

.qst-header {
   display: flex;
   align-items: center;
   gap: 20px;
   margin-bottom: 25px;
}

.qst-header i {
   font-size: 2.5rem;
   color: var(--clr-secondary);
}

.departments-layout {
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: 60px;
}

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

.finance-grid .glass-card {
   text-align: center;
   padding: 35px;
}

.finance-grid i {
   font-size: 2.5rem;
   color: var(--clr-primary);
   margin-bottom: 20px;
}

.flex-row {
   display: flex;
   align-items: center;
   gap: 25px;
   padding: 35px;
}

.icon-round {
   width: 70px;
   height: 70px;
   background: var(--clr-bg);
   border-radius: 50%;
   display: flex;
   align-items: center;
   justify-content: center;
   font-size: 1.8rem;
   color: var(--clr-accent);
   flex-shrink: 0;
   border: 1px solid var(--glass-border);
}

.marketing-cards p {
   font-size: 1rem;
   margin-top: 8px;
}

/* =========================================================================
   STATS (COUNTERS)
   ========================================================================= */
.stats {
   background: var(--grad-primary);
   color: white;
   padding: 120px 0;
}

.stats-grid {
   display: grid;
   grid-template-columns: repeat(4, 1fr);
   gap: 40px;
   text-align: center;
}

.stat-item.glass-card {
   background: rgba(255, 255, 255, 0.1);
   border-color: rgba(255, 255, 255, 0.2);
   backdrop-filter: blur(10px);
}

.stat-item i {
   font-size: 3rem;
   margin-bottom: 20px;
   opacity: 0.85;
}

.stat-item div[class^="counter"] {
   font-family: var(--font-heading);
   font-size: 3.5rem;
   font-weight: 800;
   margin-bottom: 10px;
}

.stat-item p {
   font-size: 1.2rem;
   opacity: 0.95;
   font-weight: 600;
}

/* =========================================================================
   CONTACT FORM
   ========================================================================= */
.contact-form-wrapper {
   max-width: 900px;
   margin: 0 auto;
   padding: 50px;
}

.form-grid {
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: 25px;
   margin-bottom: 25px;
}

.form-group.full-width {
   grid-column: 1 / -1;
}

.form-group label {
   display: block;
   margin-bottom: 10px;
   font-weight: 600;
   color: var(--clr-text);
   font-size: 1.1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
   width: 100%;
   padding: 18px;
   border-radius: var(--radius);
   border: 1px solid var(--glass-border);
   background: rgba(255, 255, 255, 0.5);
   color: var(--clr-text);
   font-size: 1.1rem;
   outline: none;
   transition: var(--transition-fast);
}

body.dark-mode .form-group input,
body.dark-mode .form-group select,
body.dark-mode .form-group textarea {
   background: rgba(15, 23, 42, 0.4);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
   border-color: var(--clr-primary);
   box-shadow: 0 0 0 4px var(--clr-primary-glow);
}

.form-group .error-msg {
   color: #ef4444;
   font-size: 0.95rem;
   margin-top: 8px;
   display: none;
}

.form-group.error input,
.form-group.error select,
.form-group.error textarea {
   border-color: #ef4444;
}

.form-group.error .error-msg {
   display: block;
}

.submit-btn {
   width: 100%;
   justify-content: center;
   padding: 18px;
   font-size: 1.2rem;
}

.success-message {
   background: #10b981;
   color: white;
   padding: 18px;
   border-radius: var(--radius);
   margin-top: 25px;
   text-align: center;
   font-weight: 600;
   font-size: 1.1rem;
}

/* =========================================================================
   FOOTER
   ========================================================================= */
.footer {
   background: var(--clr-text);
   color: white;
   padding-top: 100px;
}

body.dark-mode .footer {
   background: #070b14;
}

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

.footer-logo {
   color: white;
   margin-bottom: 25px;
   display: inline-flex;
}

.footer-about p {
   color: #94a3b8;
   margin-bottom: 25px;
   line-height: 1.9;
   font-size: 1.1rem;
}

.social-links {
   display: flex;
   gap: 18px;
}

.social-links a {
   width: 45px;
   height: 45px;
   background: rgba(255, 255, 255, 0.08);
   border-radius: 50%;
   display: flex;
   align-items: center;
   justify-content: center;
   font-size: 1.1rem;
   transition: var(--transition-fast);
}

.social-links a:hover {
   background: var(--clr-primary);
   transform: translateY(-5px);
}

.footer h3 {
   font-size: 1.4rem;
   margin-bottom: 30px;
   position: relative;
   padding-bottom: 12px;
}

.footer h3::after {
   content: '';
   position: absolute;
   bottom: 0;
   right: 0;
   width: 50px;
   height: 3px;
   background: var(--clr-primary);
   border-radius: 2px;
}

.footer-links ul li {
   margin-bottom: 15px;
}

.footer-links ul li a {
   color: #94a3b8;
   transition: var(--transition-fast);
   display: flex;
   align-items: center;
   gap: 10px;
   font-size: 1.1rem;
}

.footer-links ul li a i {
   font-size: 0.85rem;
   color: var(--clr-primary);
}

.footer-links ul li a:hover {
   color: white;
   padding-right: 8px;
}

.footer-contact ul li {
   display: flex;
   align-items: flex-start;
   gap: 18px;
   color: #94a3b8;
   margin-bottom: 18px;
   font-size: 1.1rem;
}

.footer-contact ul li i {
   color: var(--clr-primary);
   margin-top: 6px;
}

.footer-bottom {
   background: rgba(0, 0, 0, 0.25);
   padding: 25px 0;
   text-align: center;
   color: #94a3b8;
   font-size: 1.05rem;
}

/* =========================================================================
   ANIMATIONS (SMOOTH PREMIUM REVEAL)
   ========================================================================= */
.reveal-up {
   opacity: 0;
   transform: translateY(60px) scale(0.98);
   transition: opacity 1s var(--transition), transform 1s var(--transition);
}

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

.delay-1 {
   transition-delay: 0.15s;
}

.delay-2 {
   transition-delay: 0.3s;
}

.delay-3 {
   transition-delay: 0.45s;
}

/* =========================================================================
   RESPONSIVENESS (MOBILE & TABLET)
   ========================================================================= */
@media (max-width: 1200px) {
   .grid-4-cols {
      grid-template-columns: repeat(2, 1fr);
   }

   .teams-grid {
      gap: 30px;
   }

   .board-content {
      padding-right: 120px;
   }
}

@media (max-width: 991px) {

   .teams-grid,
   .grid-3-cols,
   .stats-grid {
      grid-template-columns: repeat(2, 1fr);
   }

   .board-content {
      padding: 40px;
      padding-top: 80px;
   }

   .board-icon {
      top: 30px;
      right: 40px;
      transform: translateY(0);
      font-size: 4rem;
   }

   .ceo-grid,
   .departments-layout {
      grid-template-columns: 1fr;
   }

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

   .hero p {
      font-size: 1.25rem;
   }
}

@media (max-width: 768px) {
   .section-padding {
      padding: 90px 0;
   }

   .about-grid,
   .grid-4-cols,
   .teams-grid,
   .grid-3-cols,
   .stats-grid,
   .finance-grid,
   .form-grid,
   .footer-grid {
      grid-template-columns: 1fr;
   }

   .hamburger {
      display: block;
   }

   .nav-links {
      position: absolute;
      top: 100%;
      left: 0;
      width: 100%;
      background: var(--glass-bg);
      backdrop-filter: var(--glass-blur);
      -webkit-backdrop-filter: var(--glass-blur);
      flex-direction: column;
      gap: 0;
      clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
      transition: clip-path var(--transition);
      border-bottom: 1px solid var(--glass-border);
   }

   .nav-links.active {
      clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
   }

   .nav-links li {
      width: 100%;
      text-align: center;
      border-top: 1px solid rgba(128, 128, 128, 0.1);
   }

   .nav-links a {
      display: block;
      padding: 20px;
      font-size: 1.2rem;
   }

   .nav-links a::after {
      display: none;
   }

   .hero-buttons {
      flex-direction: column;
      width: 100%;
   }

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