/* ===================================
   CSS — Ghanem Al Brolosy Portfolio
   =================================== */

/* ---------- Reset & Base ---------- */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;font-size:16px}
body{font-family:'IBM Plex Sans Arabic',sans-serif;color:#1e293b;background:#fff;line-height:1.7;direction:rtl}
a{text-decoration:none;color:inherit}
ul{list-style:none}
img{max-width:100%;display:block}

/* ---------- Utility ---------- */
.container{max-width:1140px;margin:0 auto;padding:0 1.25rem}

/* ---------- Colors (CSS vars) ---------- */
:root{
  --navy:#2d3748;
  --navy-light:#4a5568;
  --gold:#c9a84c;
  --gold-light:#f5e6b8;
  --gray-bg:#f7f8fa;
  --gray-dark:#1a202c;
  --gray-medium:#718096;
  --gray-light:#e2e8f0;
  --white:#ffffff;
  --text:#1e293b;
  --text-light:#64748b;
  --radius:12px;
  --shadow:0 4px 24px rgba(45,55,72,.08);
}

/* ---------- Reveal animation ---------- */
.reveal{opacity:0;transform:translateY(30px);transition:opacity .6s ease,transform .6s ease}
.reveal.visible{opacity:1;transform:translateY(0)}

/* ---------- Buttons ---------- */
.btn{display:inline-flex;align-items:center;gap:.5rem;padding:.75rem 1.75rem;border-radius:50px;font-weight:600;font-size:.95rem;transition:all .3s ease;cursor:pointer;border:2px solid transparent}
.btn--primary{background:var(--gold);color:var(--gray-dark);border-color:var(--gold)}
.btn--primary:hover{background:transparent;color:var(--gold)}
.btn--outline{background:transparent;color:var(--white);border-color:var(--white)}
.btn--outline:hover{background:var(--white);color:var(--gray-dark)}
.btn--small{padding:.4rem 1rem;font-size:.85rem;background:var(--gray-dark);color:var(--white);border-radius:50px}
.btn--small:hover{background:var(--gold);color:var(--gray-dark)}

/* ---------- Badge ---------- */
.badge{display:inline-flex;align-items:center;gap:.35rem;background:var(--gold-light);color:var(--gray-dark);padding:.3rem .85rem;border-radius:50px;font-size:.82rem;font-weight:600;margin-top:.5rem}

/* ===================================
   NEWS TICKER
   =================================== */
.news-ticker{position:fixed;top:70px;right:0;left:0;z-index:99;background:linear-gradient(135deg,var(--gold) 0%,var(--gold-light) 100%);box-shadow:0 4px 20px rgba(201,168,76,.4);display:flex;align-items:center;height:62px;overflow:hidden;transition:top .3s ease}

.navbar.scrolled ~ .news-ticker{top:60px}

.news-ticker__label{background:var(--gray-dark);color:var(--gold);padding:0 2rem;height:100%;display:flex;align-items:center;gap:.6rem;font-weight:700;font-size:1.1rem;flex-shrink:0;border-left:4px solid var(--gold)}

.news-ticker__label i{font-size:1.3rem;animation:pulse-icon 2s infinite}

@keyframes pulse-icon{
  0%,100%{transform:scale(1)}
  50%{transform:scale(1.2)}
}

.news-ticker__wrapper{flex:1;overflow:hidden;position:relative;height:100%}

.news-ticker__content{display:flex;align-items:center;height:100%;white-space:nowrap;animation:ticker-scroll 60s linear infinite;will-change:transform}

.news-ticker__content.paused{animation-play-state:paused}

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

.news-ticker__item{display:inline-flex;align-items:center;padding:0 3rem;color:var(--gray-dark);font-size:1.15rem;font-weight:600;position:relative;letter-spacing:.01em}

.news-ticker__item::before{content:'';width:8px;height:8px;background:var(--gray-dark);border-radius:50%;position:absolute;right:1.5rem;top:50%;transform:translateY(-50%)}

.news-ticker__item:first-child::before{display:none}

.news-ticker__item a{color:var(--gray-dark);text-decoration:none;transition:color .3s}

.news-ticker__item a:hover{color:var(--white)}

.news-ticker__item--breaking{color:var(--gray-dark);font-weight:700;font-size:1.15rem;background:rgba(0,0,0,.08);padding:.4rem 1.2rem;border-radius:25px;margin:0 1rem}

.news-ticker__control{background:var(--gray-dark);border:none;color:var(--gold);width:55px;height:100%;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:1.1rem;transition:all .3s;flex-shrink:0}

.news-ticker__control:hover{background:var(--navy);color:var(--white)}

.news-ticker__control i{transition:transform .3s}

.news-ticker__control:hover i{transform:scale(1.2)}

/* Adjust hero padding for news ticker */
.hero{margin-top:132px}

@media(max-width:900px){
  .news-ticker{top:60px;height:52px}
  .navbar.scrolled ~ .news-ticker{top:55px}
  .news-ticker__label{padding:0 1.2rem;font-size:1rem}
  .news-ticker__label span{display:none}
  .news-ticker__item{font-size:1rem;padding:0 2rem}
  .news-ticker__control{width:46px;font-size:1rem}
  .hero{margin-top:112px}
}

@media(max-width:600px){
  .news-ticker{height:46px}
  .news-ticker__item{font-size:.95rem;padding:0 1.5rem}
  .news-ticker__item::before{width:5px;height:5px;right:1rem}
}

/* ===================================
   NAVBAR
   =================================== */
.navbar{position:fixed;top:0;right:0;left:0;z-index:100;padding:.85rem 0;background:var(--gray-dark);transition:background .3s,box-shadow .3s}
.navbar.scrolled{background:var(--gray-dark);box-shadow:0 2px 20px rgba(0,0,0,.15)}
.navbar__inner{display:flex;align-items:center;justify-content:space-between}
.navbar__logo{font-size:1.25rem;font-weight:700;color:var(--white);display:flex;align-items:center}
.navbar__logo img{height:50px;width:50px;object-fit:cover;border-radius:50%;border:2px solid var(--gold)}
.navbar__links{display:flex;gap:1.5rem;align-items:center}
.navbar__links a{color:rgba(255,255,255,.8);font-size:.9rem;font-weight:500;transition:color .3s}
.navbar__links a:hover,.navbar__links a.active{color:var(--gold)}
.navbar__lang-btn{background:var(--gold);color:var(--gray-dark);border:none;padding:.5rem 1.25rem;border-radius:50px;font-size:.85rem;font-weight:600;cursor:pointer;transition:all .3s;display:flex;align-items:center;gap:.5rem}
.navbar__lang-btn:hover{background:var(--gold-light);transform:translateY(-2px)}
.navbar__toggle{display:none;flex-direction:column;gap:5px;background:none;border:none;cursor:pointer}
.navbar__toggle span{width:24px;height:2px;background:var(--white);border-radius:2px;transition:transform .3s}

@media(max-width:900px){
  .navbar__toggle{display:flex}
  .navbar__links{position:fixed;top:0;right:-100%;width:70%;height:100vh;background:var(--gray-dark);flex-direction:column;padding:5rem 2rem;gap:1.5rem;transition:right .35s ease}
  .navbar__links.open{right:0}
  .navbar__lang-btn{width:100%;justify-content:center}
}

/* ===================================
   HERO WITH CAROUSEL
   =================================== */
.hero{position:relative;min-height:105vh;display:flex;align-items:center;overflow:hidden;color:var(--white)}

/* Carousel Container */
.hero__carousel{position:absolute;inset:0;width:100%;height:100%}
.hero__slides{position:relative;width:100%;height:100%}

/* Individual Slide */
.hero__slide{position:absolute;inset:0;width:100%;height:100%;opacity:0;visibility:hidden;transition:opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1),visibility 1.2s;background-size:cover;background-position:center;will-change:transform}
.hero__slide.active{opacity:1;visibility:visible;z-index:1}

/* Specific positioning for last slide */
.hero__slide:last-child .hero__slide-img{object-position:center 18%}

/* Ken Burns Effect - subtle zoom animation */
.hero__slide.active .hero__slide-img{animation:kenBurns 12s ease-out forwards}
@keyframes kenBurns{
  0%{transform:scale(1)}
  100%{transform:scale(1.08)}
}

.hero__slide-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform 12s ease-out}

/* Gradient Overlay - Gray tones */
.hero__overlay{position:absolute;inset:0;background:linear-gradient(135deg,rgba(26,32,44,0.88) 0%,rgba(45,55,72,0.92) 50%,rgba(74,85,104,0.88) 100%);backdrop-filter:blur(1px);z-index:2}

/* Decorative mesh circles — Gray & Gold */
.hero__overlay::before,.hero__overlay::after{content:'';position:absolute;border-radius:50%;filter:blur(90px);opacity:.12;z-index:1}
.hero__overlay::before{width:550px;height:550px;background:var(--gold);top:-12%;left:-10%;animation:float 20s ease-in-out infinite}
.hero__overlay::after{width:450px;height:450px;background:var(--gray-medium);bottom:-18%;right:-8%;animation:float 25s ease-in-out infinite reverse}

@keyframes float{
  0%,100%{transform:translate(0,0) scale(1)}
  50%{transform:translate(30px,-30px) scale(1.1)}
}

/* Content */
.hero__content{position:relative;z-index:3;text-align:center;max-width:750px;margin:0 auto;padding-top:6rem}
.hero__greeting{font-size:1.1rem;color:var(--gold);margin-bottom:.25rem;text-shadow:0 2px 8px rgba(0,0,0,.3)}
.hero__name{font-size:clamp(2rem,5vw,3.5rem);font-weight:700;margin-bottom:.5rem;text-shadow:0 2px 12px rgba(0,0,0,.4)}
.hero__title{font-size:1.25rem;font-weight:300;margin-bottom:1rem;color:rgba(255,255,255,.9);text-shadow:0 2px 8px rgba(0,0,0,.3)}
.hero__intro{font-size:1rem;color:rgba(255,255,255,.8);max-width:620px;margin:0 auto 2rem;text-shadow:0 2px 8px rgba(0,0,0,.3)}
.hero__cta{display:flex;gap:1rem;justify-content:center;flex-wrap:wrap;margin-bottom:2.5rem;position:relative;z-index:5}

/* Stats */
.hero__stats{display:flex;justify-content:center;gap:3rem;flex-wrap:wrap;margin-bottom:2rem;position:relative;z-index:5}
.stat{text-align:center}
.stat__number{font-size:2.5rem;font-weight:700;color:var(--gold);text-shadow:0 2px 10px rgba(0,0,0,.4)}
.stat__label{display:block;font-size:.85rem;color:rgba(255,255,255,.75)}

/* Carousel Controls */
.hero__controls{position:absolute;bottom:8rem;left:50%;transform:translateX(-50%);z-index:10;display:flex;align-items:center;gap:1.5rem}

/* Navigation Buttons */
.hero__nav-btn{width:48px;height:48px;border-radius:50%;background:rgba(255,255,255,.12);backdrop-filter:blur(10px);border:1px solid rgba(255,255,255,.2);color:var(--white);display:flex;align-items:center;justify-content:center;cursor:pointer;transition:all .3s cubic-bezier(0.4, 0, 0.2, 1);font-size:1.1rem}
.hero__nav-btn:hover{background:var(--gold);border-color:var(--gold);color:var(--gray-dark);transform:scale(1.08)}
.hero__nav-btn:active{transform:scale(0.95)}
.hero__play-pause{font-size:.95rem}
.hero__play-pause.paused{background:rgba(255,255,255,.2)}

/* Thumbnail Navigation */
.hero__thumbnails{display:flex;gap:.75rem;padding:.5rem;background:rgba(26,32,44,.6);backdrop-filter:blur(12px);border-radius:60px;border:1px solid rgba(255,255,255,.15)}

.hero__thumb{width:60px;height:60px;border-radius:12px;overflow:hidden;cursor:pointer;border:2px solid transparent;transition:all .35s cubic-bezier(0.4, 0, 0.2, 1);position:relative;opacity:.5}
.hero__thumb::after{content:'';position:absolute;inset:0;background:rgba(26,32,44,.4);transition:opacity .3s}
.hero__thumb:hover{opacity:.85;transform:translateY(-3px)}
.hero__thumb:hover::after{opacity:0}
.hero__thumb.active{opacity:1;border-color:var(--gold);transform:scale(1.05)}
.hero__thumb.active::after{opacity:0}
.hero__thumb img{width:100%;height:100%;object-fit:cover}

/* Progress Indicator */
.hero__progress{position:absolute;bottom:6rem;left:50%;transform:translateX(-50%);display:flex;gap:.5rem;z-index:10}
.hero__progress-dot{width:8px;height:8px;border-radius:50%;background:rgba(255,255,255,.3);transition:all .4s cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;position:relative;overflow:hidden}
.hero__progress-dot:hover{background:rgba(255,255,255,.6);transform:scale(1.2)}
.hero__progress-dot.active{width:28px;border-radius:4px;background:var(--gold)}
.hero__progress-dot.active::after{content:'';position:absolute;top:0;left:0;height:100%;width:0;background:rgba(255,255,255,.4);animation:progressBar 5s linear forwards}

@keyframes progressBar{
  from{width:0}
  to{width:100%}
}

/* ===================================
   SECTIONS
   =================================== */
.section{padding:5rem 0}
.section--light{background:var(--gray-bg)}
.section--white{background:var(--white)}
.section--navy{background:linear-gradient(135deg,var(--gray-dark) 0%,var(--navy) 50%,var(--navy-light) 100%);color:var(--white)}
.section__title{font-size:1.75rem;font-weight:700;text-align:center;margin-bottom:2.5rem;display:flex;align-items:center;justify-content:center;gap:.6rem}
.section__title i{color:var(--gold);font-size:1.5rem}
.section__title--light{color:var(--white)}

/* ===================================
   ABOUT - MODERN LAYOUT
   =================================== */
.about-modern{display:grid;grid-template-columns:1fr 1.2fr;gap:3rem;align-items:start}

/* Visual Side (Right) */
.about-modern__visual{position:relative;display:flex;flex-direction:column;gap:1.5rem}

.about-modern__image{position:relative;border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow)}
.about-modern__image img{width:100%;height:auto;display:block;object-fit:cover}

.about-modern__badge{position:relative;background:var(--white);padding:1rem 1.5rem;border-radius:var(--radius);box-shadow:0 4px 20px rgba(0,0,0,.15);text-align:center;min-width:140px;margin-top:-1rem;z-index:2}
.about-modern__badge i{font-size:1.5rem;color:var(--gold);display:block;margin-bottom:.5rem}
.about-modern__badge span{display:block;font-weight:600;color:var(--gray-dark);font-size:.95rem}
.about-modern__badge-sub{font-size:.8rem;color:var(--text-light);font-weight:400;margin-top:.25rem}

/* Circular Progress */
.about-modern__circle{position:relative;width:140px;height:140px;margin:0 auto}
.progress-ring{transform:rotate(-90deg)}
.progress-ring__bg{fill:none;stroke:#e2e8f0;stroke-width:8}
.progress-ring__progress{fill:none;stroke:var(--gold);stroke-width:8;stroke-linecap:round;stroke-dasharray:377;stroke-dashoffset:377;transition:stroke-dashoffset 2s ease}
.progress-ring.active .progress-ring__progress{stroke-dashoffset:38}
.progress-ring__text{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);text-align:center}
.progress-ring__number{font-size:1.8rem;font-weight:700;color:var(--gray-dark)}

/* Small Grid */
.about-modern__grid{display:grid;grid-template-columns:1fr 1fr;gap:1rem}
.about-modern__grid-item{background:var(--white);padding:1rem;border-radius:var(--radius);text-align:center;box-shadow:var(--shadow);border:2px solid var(--gold)}
.about-modern__grid-label{font-size:.85rem;font-weight:600;color:var(--gray-dark)}

/* Content Side (Left) */
.about-modern__content{display:flex;flex-direction:column;gap:1.5rem}
.about-modern__title{font-size:1.8rem;font-weight:700;color:var(--gray-dark);line-height:1.4;margin-bottom:.5rem}
.about-modern__text{font-size:1rem;line-height:1.8;color:var(--text-light)}
.about-modern__text strong{color:var(--gold);font-weight:700}

/* Features */
.about-modern__features{display:flex;flex-direction:column;gap:1.5rem;margin-top:1rem}
.about-modern__feature{display:flex;gap:1rem;align-items:flex-start}
.about-modern__feature-icon{flex-shrink:0;width:50px;height:50px;background:linear-gradient(135deg,var(--gold),var(--gold-light));border-radius:50%;display:flex;align-items:center;justify-content:center;color:var(--white);font-size:1.2rem}
.about-modern__feature-text h4{font-size:1.05rem;font-weight:600;color:var(--gray-dark);margin-bottom:.35rem}
.about-modern__feature-text p{font-size:.9rem;color:var(--text-light);line-height:1.6}

/* Responsive */
@media(max-width:900px){
  .about-modern{grid-template-columns:1fr;gap:2rem}
  .about-modern__visual{order:2}
  .about-modern__content{order:1}
}

/* ===================================
   MISSION TABS
   =================================== */
.mission-tabs{margin-top:4rem;background:var(--white);border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden}

.mission-tabs__nav{display:grid;grid-template-columns:repeat(4,1fr);background:var(--gray-bg);border-bottom:3px solid var(--gray-light)}

.mission-tabs__btn{background:transparent;border:none;padding:1.5rem 1rem;cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:.5rem;transition:all .3s;border-bottom:3px solid transparent;margin-bottom:-3px;position:relative}

.mission-tabs__btn i{font-size:1.5rem;color:var(--gray-medium);transition:all .3s}

.mission-tabs__btn span{font-size:.95rem;font-weight:600;color:var(--text);transition:all .3s}

.mission-tabs__btn:hover{background:rgba(201,168,76,.05)}
.mission-tabs__btn:hover i{color:var(--gold);transform:scale(1.1)}

.mission-tabs__btn.active{background:var(--white);border-bottom-color:var(--gold)}
.mission-tabs__btn.active i{color:var(--gold)}
.mission-tabs__btn.active span{color:var(--gold)}

.mission-tabs__content{padding:2.5rem;min-height:200px}

.mission-tabs__pane{display:none;animation:fadeIn .5s ease}
.mission-tabs__pane.active{display:block}

.mission-tabs__pane p{font-size:1.05rem;line-height:1.9;color:var(--text-light);margin:0}

.mission-tabs__pane ul{list-style:none;padding:0;margin:0;display:grid;gap:1rem}

.mission-tabs__pane ul li{font-size:1rem;line-height:1.7;color:var(--text-light);padding-right:1.5rem;position:relative}

.mission-tabs__pane ul li::before{content:'';position:absolute;right:0;top:.6rem;width:8px;height:8px;background:var(--gold);border-radius:50%}

.mission-tabs__pane ul li strong{color:var(--gray-dark);font-weight:700}

@keyframes fadeIn{
  from{opacity:0;transform:translateY(10px)}
  to{opacity:1;transform:translateY(0)}
}

/* Responsive Tabs */
@media(max-width:768px){
  .mission-tabs__nav{grid-template-columns:repeat(2,1fr)}
  .mission-tabs__btn{padding:1.25rem .75rem}
  .mission-tabs__btn i{font-size:1.3rem}
  .mission-tabs__btn span{font-size:.85rem}
  .mission-tabs__content{padding:1.5rem}
}

/* ===================================
   PERSONAL INFO
   =================================== */
.info-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:1.5rem}
.info-card{background:var(--white);border:1px solid #e2e8f0;border-radius:var(--radius);padding:1.75rem;text-align:center;transition:transform .3s,box-shadow .3s}
.info-card:hover{transform:translateY(-4px);box-shadow:var(--shadow)}
.info-card i{font-size:1.6rem;color:var(--gold);margin-bottom:.75rem}
.info-card h4{font-weight:600;margin-bottom:.35rem}
.info-card p{color:var(--text-light);font-size:.92rem}

/* ===================================
   EDUCATION
   =================================== */
.edu-card{display:flex;gap:1.5rem;background:var(--white);border-radius:var(--radius);padding:2rem;box-shadow:var(--shadow);max-width:700px;margin:0 auto;align-items:flex-start}
.edu-card__icon{flex-shrink:0;width:60px;height:60px;display:flex;align-items:center;justify-content:center;background:var(--gray-dark);color:var(--gold);border-radius:50%;font-size:1.4rem}
.edu-card__body h3{font-size:1.2rem;margin-bottom:.25rem}
.edu-card__sub{color:var(--text-light);font-size:.9rem;margin-bottom:.5rem}

/* ===================================
   TIMELINE
   =================================== */
.timeline{position:relative;max-width:700px;margin:0 auto;padding-right:2rem}
.timeline::before{content:'';position:absolute;right:0;top:0;bottom:0;width:3px;background:linear-gradient(var(--gray-dark),var(--gold))}
.timeline__item{position:relative;margin-bottom:2.5rem}
.timeline__dot{position:absolute;right:-2rem;top:.5rem;width:14px;height:14px;background:var(--gold);border:3px solid var(--gray-dark);border-radius:50%;transform:translateX(50%)}
.timeline__card{background:var(--white);border-radius:var(--radius);padding:1.5rem;box-shadow:var(--shadow);margin-right:1.5rem}
.timeline__date{display:inline-block;background:var(--gold-light);color:var(--gray-dark);padding:.2rem .75rem;border-radius:50px;font-size:.8rem;font-weight:600;margin-bottom:.5rem}
.timeline__card h3{font-size:1.05rem;margin-bottom:.25rem}
.timeline__card p{color:var(--text-light);font-size:.9rem}

/* ===================================
   SERVICES SECTION
   =================================== */
.services-header{display:flex;justify-content:space-between;align-items:flex-start;gap:3rem;margin-bottom:3rem;flex-wrap:wrap}

.services-header__left{flex:1;min-width:300px}

.services-header__badge{display:inline-flex;align-items:center;gap:.5rem;background:var(--gold-light);color:var(--gray-dark);padding:.5rem 1.25rem;border-radius:50px;font-size:.9rem;font-weight:600;margin-bottom:1rem}
.services-header__badge i{color:var(--gold);font-size:1.1rem}

.services-header__title{font-size:2.5rem;font-weight:700;color:var(--gray-dark);margin:0;line-height:1.2}

.services-header__right{flex:1;min-width:300px;display:flex;flex-direction:column;gap:1.5rem;align-items:flex-start}

.services-header__desc{font-size:1.15rem;line-height:1.8;color:var(--text-light);margin:0}

/* Services Grid Wrapper - Full Width */
.services-grid-wrapper{width:100%;padding:0 2rem;margin-top:3rem}

/* Services Grid */
.services-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:2.5rem;max-width:100%}

.service-card{background:var(--white);border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow);transition:all .4s cubic-bezier(0.4, 0, 0.2, 1);border:1px solid var(--gray-light);position:relative}

.service-card:hover{transform:translateY(-8px);box-shadow:0 12px 40px rgba(45,55,72,.15);border-color:var(--gold)}

.service-card__header{padding:2rem;display:flex;align-items:center;gap:1rem;background:var(--gray-bg);transition:background .3s}

.service-card:hover .service-card__header{background:linear-gradient(135deg,var(--gold-light),var(--gray-bg))}

.service-card__icon{width:55px;height:55px;background:linear-gradient(135deg,var(--gold),var(--gold-light));border-radius:50%;display:flex;align-items:center;justify-content:center;color:var(--white);font-size:1.4rem;flex-shrink:0;transition:transform .3s}

.service-card:hover .service-card__icon{transform:scale(1.1) rotate(5deg)}

.service-card__title{font-size:1.15rem;font-weight:600;color:var(--gray-dark);margin:0;line-height:1.4}

.service-card__image{position:relative;overflow:hidden}

.service-card__image img{width:100%;height:auto;display:block;object-fit:unset;transition:transform .6s cubic-bezier(0.4, 0, 0.2, 1)}

.service-card:hover .service-card__image img{transform:scale(1.08)}

.service-card__image::after{content:'';position:absolute;inset:0;background:linear-gradient(to top,rgba(26,32,44,.3) 0%,transparent 50%);opacity:0;transition:opacity .3s}

.service-card:hover .service-card__image::after{opacity:1}

/* Responsive */
@media(max-width:1024px){
  .services-grid-wrapper{padding:0 1.5rem}
  .services-grid{grid-template-columns:repeat(2,1fr);gap:2rem}
  .service-card__image{height:auto}
}

@media(max-width:768px){
  .services-header{flex-direction:column;gap:2rem}
  .services-header__title{font-size:2rem}
  .services-grid-wrapper{padding:0 1.25rem}
  .services-grid{grid-template-columns:1fr;gap:1.5rem}
  .service-card__image{height:auto}
  .service-card__header{padding:1.75rem}
}

/* ===================================
   SECTORS SECTION
   =================================== */
.sectors-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:2rem}

.sector-card{background:var(--white);border-radius:var(--radius);padding:2.5rem 2rem;text-align:center;box-shadow:var(--shadow);border:1px solid var(--gray-light);transition:all .3s cubic-bezier(0.4, 0, 0.2, 1);position:relative;overflow:hidden}

.sector-card::before{content:'';position:absolute;top:0;left:0;right:0;height:4px;background:linear-gradient(90deg,var(--gold),var(--gold-light));transform:scaleX(0);transform-origin:left;transition:transform .3s ease}

.sector-card:hover{transform:translateY(-5px);box-shadow:0 8px 30px rgba(45,55,72,.12);border-color:var(--gold)}

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

.sector-card__icon{width:90px;height:90px;margin:0 auto 1.5rem;background:linear-gradient(135deg,var(--gray-bg),var(--gray-light));border-radius:50%;display:flex;align-items:center;justify-content:center;color:var(--gold);font-size:2.2rem;transition:all .3s}

.sector-card:hover .sector-card__icon{background:linear-gradient(135deg,var(--gold),var(--gold-light));color:var(--white);transform:scale(1.1) rotate(5deg)}

.sector-card__title{font-size:1.15rem;font-weight:600;color:var(--gray-dark);margin:0;line-height:1.5;transition:color .3s}

.sector-card:hover .sector-card__title{color:var(--gold)}

/* Responsive Sectors */
@media(max-width:1024px){
  .sectors-grid{grid-template-columns:repeat(2,1fr);gap:1.5rem}
  .sector-card{padding:2rem 1.5rem}
  .sector-card__icon{width:80px;height:80px;font-size:2rem}
}

@media(max-width:768px){
  .sectors-grid{grid-template-columns:repeat(2,1fr);gap:1.25rem}
  .sector-card{padding:1.75rem 1.25rem}
  .sector-card__icon{width:70px;height:70px;font-size:1.8rem}
  .sector-card__title{font-size:1rem}
}

/* ===================================
   WHY CHOOSE US SECTION
   =================================== */
.why-us{display:grid;grid-template-columns:1fr 1.2fr;gap:3rem;align-items:start;margin-bottom:4rem}

/* Left Image */
.why-us__image{border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow);position:sticky;top:100px}

.why-us__image img{width:100%;height:auto;display:block;object-fit:cover}

/* Right Features Grid */
.why-us__features{display:grid;grid-template-columns:repeat(2,1fr);gap:1.5rem}

.why-feature{background:var(--white);border-radius:var(--radius);padding:2rem;box-shadow:var(--shadow);border:1px solid var(--gray-light);transition:all .3s cubic-bezier(0.4, 0, 0.2, 1)}

.why-feature:hover{transform:translateY(-5px);box-shadow:0 12px 40px rgba(45,55,72,.15);border-color:var(--gold)}

.why-feature__icon{width:60px;height:60px;background:linear-gradient(135deg,var(--gold),var(--gold-light));border-radius:50%;display:flex;align-items:center;justify-content:center;color:var(--white);font-size:1.5rem;margin-bottom:1.25rem;transition:transform .3s}

.why-feature:hover .why-feature__icon{transform:scale(1.1) rotate(5deg)}

.why-feature__title{font-size:1.1rem;font-weight:600;color:var(--gray-dark);margin:0 0 .75rem;line-height:1.4}

.why-feature__desc{font-size:.95rem;color:var(--text-light);margin:0;line-height:1.7}

/* Bottom Content */
.why-us__bottom{text-align:center;max-width:900px;margin:3rem auto 0}

.why-us__subtitle{font-size:2rem;font-weight:700;color:var(--gray-dark);margin:0 0 1.5rem;line-height:1.2}

.why-us__text{font-size:1.05rem;line-height:1.9;color:var(--text-light);margin-bottom:2rem}
.why-us__text strong{color:var(--gold);font-weight:700}

/* Responsive Why Us */
@media(max-width:1024px){
  .why-us{grid-template-columns:1fr;gap:2.5rem}
  .why-us__image{position:static;max-width:500px;margin:0 auto}
  .why-us__features{grid-template-columns:repeat(2,1fr)}
}

@media(max-width:768px){
  .why-us__subtitle{font-size:1.6rem}
  .why-us__features{grid-template-columns:1fr;gap:1.25rem}
  .why-feature{padding:1.75rem}
}

/* ===================================
   AWARDS & ACHIEVEMENTS
   =================================== */
.awards-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:2rem;margin-bottom:4rem;text-align:center}
.awards-stat{background:var(--white);padding:2.5rem 1.5rem;border-radius:var(--radius);box-shadow:var(--shadow);border-top:4px solid var(--gold);transition:transform .3s,box-shadow .3s}
.awards-stat:hover{transform:translateY(-8px);box-shadow:0 12px 40px rgba(45,55,72,.15)}
.awards-stat__number{font-size:3.5rem;font-weight:700;color:var(--gold);margin-bottom:.5rem;display:block}
.awards-stat__label{font-size:1.1rem;color:var(--gray-dark);font-weight:600}

/* Awards Timeline */
.awards-timeline{max-width:900px;margin:0 auto;display:flex;flex-direction:column;gap:2rem}
.award-item{display:grid;grid-template-columns:120px 1fr;gap:2rem;align-items:center}
.award-item__year{font-size:2.5rem;font-weight:700;color:var(--gold);text-align:center;background:var(--white);padding:1.5rem;border-radius:var(--radius);box-shadow:var(--shadow)}
.award-item__content{display:flex;align-items:center;gap:1.5rem;background:var(--white);padding:2rem;border-radius:var(--radius);box-shadow:var(--shadow);border-right:4px solid var(--gold);transition:transform .3s}
.award-item__content:hover{transform:translateX(-8px)}
.award-item__icon{width:70px;height:70px;background:linear-gradient(135deg,var(--gold),var(--gold-light));border-radius:50%;display:flex;align-items:center;justify-content:center;color:var(--white);font-size:2rem;flex-shrink:0}
.award-item__details h3{font-size:1.3rem;color:var(--gray-dark);margin-bottom:.35rem}
.award-item__details p{font-size:1rem;color:var(--text-light)}

@media(max-width:768px){
  .awards-stats{grid-template-columns:repeat(2,1fr);gap:1.5rem}
  .awards-stat{padding:2rem 1rem}
  .awards-stat__number{font-size:2.5rem}
  .award-item{grid-template-columns:1fr;gap:1rem}
  .award-item__year{font-size:2rem;padding:1rem}
  .award-item__content{padding:1.5rem;gap:1rem}
  .award-item__icon{width:60px;height:60px;font-size:1.5rem}
}

/* ===================================
   OWNED COMPANIES
   =================================== */
.section__subtitle{text-align:center;font-size:1.15rem;color:var(--text-light);max-width:700px;margin:0 auto 3rem;line-height:1.8}

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

.owned-company-card{background:var(--white);border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow);border:1px solid var(--gray-light);transition:all .3s cubic-bezier(0.4, 0, 0.2, 1);display:flex;flex-direction:column}

.owned-company-card:hover{transform:translateY(-8px);box-shadow:0 12px 40px rgba(45,55,72,.15);border-color:var(--gold)}

.owned-company-card__logo{width:100%;height:200px;background:var(--gray-bg);display:flex;align-items:center;justify-content:center;padding:1.5rem;overflow:hidden;position:relative}

.owned-company-card__logo img{max-width:100%;max-height:100%;object-fit:contain;transition:transform .4s ease}

.owned-company-card:hover .owned-company-card__logo img{transform:scale(1.1)}

.owned-company-card__info{padding:1.75rem;flex:1;display:flex;flex-direction:column}

.owned-company-card__name{font-size:1.3rem;font-weight:700;color:var(--gray-dark);margin-bottom:.5rem}

.owned-company-card__type{font-size:.95rem;color:var(--text-light);margin-bottom:1.25rem;padding-bottom:1.25rem;border-bottom:2px solid var(--gray-light)}

.owned-company-card__meta{display:flex;flex-direction:column;gap:.75rem;margin-top:auto}

.owned-company-card__location{display:flex;align-items:center;gap:.5rem;font-size:.9rem;color:var(--gray-dark);font-weight:500}

.owned-company-card__location i{color:var(--gold);font-size:1rem}

.owned-company-card__role{display:inline-block;background:linear-gradient(135deg,var(--gold),var(--gold-light));color:var(--gray-dark);padding:.5rem 1rem;border-radius:50px;font-size:.85rem;font-weight:600;text-align:center}

@media(max-width:768px){
  .owned-companies-grid{grid-template-columns:1fr;gap:1.5rem}
  .owned-company-card__logo{height:180px;padding:1rem}
  .owned-company-card__info{padding:1.5rem}
}

/* ===================================
   TRADEMARKS
   =================================== */
.trademark-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:1.5rem;max-width:700px;margin:0 auto}
.trademark-card{background:var(--white);border-radius:var(--radius);padding:1.75rem;box-shadow:var(--shadow);border-right:4px solid var(--gold);text-align:center}
.trademark-card h3{font-size:1.15rem;color:var(--gray-dark);margin-bottom:.35rem}
.trademark-card p{color:var(--text-light);font-size:.9rem}

/* ===================================
   SKILLS
   =================================== */
.skills-grid{display:flex;flex-wrap:wrap;justify-content:center;gap:.85rem}
.skill-tag{display:inline-flex;align-items:center;gap:.5rem;background:var(--gray-bg);border:1px solid #e2e8f0;padding:.65rem 1.25rem;border-radius:50px;font-size:.9rem;font-weight:500;transition:all .3s}
.skill-tag:hover{background:var(--gray-dark);color:var(--white);border-color:var(--gray-dark)}
.skill-tag i{color:var(--gold);font-size:1rem}
.skill-tag:hover i{color:var(--gold)}

/* Stagger animation */
.skills-grid.visible .skill-tag{animation:fadeUp .5s ease forwards}
.skills-grid .skill-tag:nth-child(1){animation-delay:.05s}
.skills-grid .skill-tag:nth-child(2){animation-delay:.1s}
.skills-grid .skill-tag:nth-child(3){animation-delay:.15s}
.skills-grid .skill-tag:nth-child(4){animation-delay:.2s}
.skills-grid .skill-tag:nth-child(5){animation-delay:.25s}
.skills-grid .skill-tag:nth-child(6){animation-delay:.3s}
.skills-grid .skill-tag:nth-child(7){animation-delay:.35s}
.skills-grid .skill-tag:nth-child(8){animation-delay:.4s}
.skills-grid .skill-tag:nth-child(9){animation-delay:.45s}
@keyframes fadeUp{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:translateY(0)}}

/* ===================================
   CERTIFICATIONS
   =================================== */
.cert-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:1.25rem}
.cert-card{background:var(--white);border-radius:var(--radius);padding:1.5rem;box-shadow:var(--shadow);text-align:center;transition:transform .3s}
.cert-card:hover{transform:translateY(-4px)}
.cert-card i{font-size:1.8rem;color:var(--gold);margin-bottom:.75rem}
.cert-card h4{font-size:.95rem;margin-bottom:.25rem}
.cert-card p{font-size:.82rem;color:var(--text-light)}

/* ===================================
   LANGUAGES
   =================================== */
.lang-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1.5rem;max-width:700px;margin:0 auto}
.lang-card{text-align:center}
.lang-card h4{margin-bottom:.5rem;font-weight:600}
.lang-bar{width:100%;height:8px;background:#e2e8f0;border-radius:50px;overflow:hidden;margin-bottom:.35rem}
.lang-bar__fill{height:100%;background:linear-gradient(90deg,var(--gray-dark),var(--gold));border-radius:50px;width:0;transition:width 1.2s ease}
.lang-grid.visible .lang-bar__fill{width:var(--w)}
.lang-card span{font-size:.82rem;color:var(--text-light)}

/* ===================================
   GALLERY SECTION - 2026 DESIGN
   =================================== */
/* Gallery Filters */
.gallery-filters{display:flex;justify-content:center;gap:1rem;margin-bottom:3rem;flex-wrap:wrap}
.gallery-filter{background:var(--white);border:2px solid var(--gray-light);color:var(--gray-dark);padding:.75rem 2rem;border-radius:50px;font-size:.95rem;font-weight:600;cursor:pointer;transition:all .3s cubic-bezier(0.4, 0, 0.2, 1);position:relative;overflow:hidden}
.gallery-filter::before{content:'';position:absolute;top:0;left:0;right:0;bottom:0;background:linear-gradient(135deg,var(--gold),var(--gold-light));transform:scaleX(0);transform-origin:left;transition:transform .3s ease;z-index:-1}
.gallery-filter:hover{border-color:var(--gold);color:var(--gray-dark);transform:translateY(-2px)}
.gallery-filter.active{background:linear-gradient(135deg,var(--gold),var(--gold-light));border-color:var(--gold);color:var(--gray-dark);box-shadow:0 4px 15px rgba(201,168,76,.3)}

/* Gallery Grid - Masonry Layout */
.gallery-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:1.5rem;grid-auto-flow:dense}

/* Gallery Item */
.gallery-item{position:relative;overflow:hidden;border-radius:var(--radius);background:var(--gray-bg);transition:all .4s cubic-bezier(0.4, 0, 0.2, 1);opacity:1;transform:scale(1)}
.gallery-item.hide{opacity:0;transform:scale(0.8);position:absolute;pointer-events:none}

.gallery-item__inner{position:relative;overflow:hidden;border-radius:var(--radius);cursor:pointer;aspect-ratio:1/1}

.gallery-item__inner img{width:100%;height:100%;object-fit:cover;transition:transform .6s cubic-bezier(0.4, 0, 0.2, 1);display:block}

.gallery-item:hover .gallery-item__inner img{transform:scale(1.15) rotate(2deg)}

/* Overlay */
.gallery-item__overlay{position:absolute;inset:0;background:linear-gradient(135deg,rgba(26,32,44,.85),rgba(45,55,72,.9));opacity:0;transition:opacity .4s ease;display:flex;align-items:center;justify-content:center}

.gallery-item:hover .gallery-item__overlay{opacity:1}

.gallery-item__zoom{width:60px;height:60px;background:var(--gold);border:none;border-radius:50%;color:var(--gray-dark);font-size:1.5rem;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .3s cubic-bezier(0.4, 0, 0.2, 1);transform:scale(0);box-shadow:0 8px 25px rgba(201,168,76,.4)}

.gallery-item:hover .gallery-item__zoom{transform:scale(1);animation:pulse 2s infinite}

.gallery-item__zoom:hover{transform:scale(1.15);background:var(--gold-light)}

@keyframes pulse{
  0%,100%{box-shadow:0 8px 25px rgba(201,168,76,.4)}
  50%{box-shadow:0 8px 35px rgba(201,168,76,.6)}
}

/* Lightbox */
.lightbox{position:fixed;inset:0;background:rgba(0,0,0,.95);z-index:9999;display:none;align-items:center;justify-content:center;backdrop-filter:blur(10px);animation:fadeIn .3s ease}
.lightbox.active{display:flex}

.lightbox__content{max-width:90vw;max-height:90vh;position:relative;animation:zoomIn .4s cubic-bezier(0.4, 0, 0.2, 1)}

.lightbox__content img{max-width:100%;max-height:90vh;object-fit:contain;border-radius:var(--radius);box-shadow:0 20px 60px rgba(0,0,0,.5)}

.lightbox__close,.lightbox__prev,.lightbox__next{position:absolute;width:50px;height:50px;background:rgba(255,255,255,.1);backdrop-filter:blur(10px);border:2px solid rgba(255,255,255,.2);border-radius:50%;color:var(--white);font-size:1.3rem;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .3s ease;z-index:10000}

.lightbox__close:hover,.lightbox__prev:hover,.lightbox__next:hover{background:var(--gold);border-color:var(--gold);color:var(--gray-dark);transform:scale(1.1)}

.lightbox__close{top:2rem;left:2rem}
.lightbox__prev{top:50%;right:2rem;transform:translateY(-50%)}
.lightbox__next{top:50%;left:2rem;transform:translateY(-50%)}
.lightbox__prev:hover{transform:translateY(-50%) scale(1.1)}
.lightbox__next:hover{transform:translateY(-50%) scale(1.1)}

@keyframes zoomIn{
  from{opacity:0;transform:scale(0.8)}
  to{opacity:1;transform:scale(1)}
}

/* Responsive Gallery */
@media(max-width:1024px){
  .gallery-grid{grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:1.25rem}
}

@media(max-width:768px){
  .gallery-filters{gap:.75rem}
  .gallery-filter{padding:.6rem 1.5rem;font-size:.85rem}
  .gallery-grid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:1rem}
  .gallery-item__zoom{width:50px;height:50px;font-size:1.2rem}
  .lightbox__close,.lightbox__prev,.lightbox__next{width:45px;height:45px;font-size:1.1rem}
  .lightbox__close{top:1rem;left:1rem}
  .lightbox__prev{right:1rem}
  .lightbox__next{left:1rem}
}

@media(max-width:480px){
  .gallery-grid{grid-template-columns:repeat(2,1fr);gap:.75rem}
  .gallery-filters{gap:.5rem}
  .gallery-filter{padding:.5rem 1.25rem;font-size:.8rem}
}

/* ===================================
   INTERESTS
   =================================== */
.interests{display:flex;flex-wrap:wrap;justify-content:center;gap:.85rem}
.interest-tag{display:inline-flex;align-items:center;gap:.5rem;background:var(--white);border:1px solid #e2e8f0;padding:.65rem 1.25rem;border-radius:var(--radius);font-size:.9rem;transition:all .3s}
.interest-tag:hover{border-color:var(--gold);box-shadow:var(--shadow)}
.interest-tag i{color:var(--gold)}

/* ===================================
   MEDIA
   =================================== */
.media-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:1.25rem}
.media-card{background:var(--gray-bg);border-radius:var(--radius);padding:1.5rem;border-right:4px solid var(--gold);transition:transform .3s,box-shadow .3s}
.media-card:hover{transform:translateY(-4px);box-shadow:var(--shadow)}
.media-card__icon{margin-bottom:.75rem}
.media-card__icon i{font-size:1.5rem;color:var(--gray-dark)}
.media-card h4{font-size:1rem;margin-bottom:.5rem}
.media-card p{font-size:.88rem;color:var(--text-light);line-height:1.7}

/* ===================================
   FOOTER
   =================================== */
.footer{background:linear-gradient(135deg,var(--gray-dark) 0%,var(--navy) 100%);color:var(--white);padding:4rem 0 2rem;text-align:center}
.footer__content{margin-bottom:2rem}
.footer__content p{margin-bottom:.5rem;font-size:1rem;display:flex;align-items:center;justify-content:center;gap:.5rem}
.footer__content i{color:var(--gold)}
.footer__copy{border-top:1px solid rgba(255,255,255,.1);padding-top:1.25rem}
.footer__copy p{font-size:.82rem;color:rgba(255,255,255,.5)}

/* ===================================
   LANGUAGE SWITCHER
   =================================== */
.lang-switcher{position:fixed;bottom:6rem;left:2rem;width:60px;height:60px;border-radius:50%;background:linear-gradient(135deg,var(--gold),var(--gold-light));color:var(--gray-dark);border:none;display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:1.2rem;cursor:pointer;box-shadow:0 4px 20px rgba(201,168,76,.4);transition:all .3s cubic-bezier(0.4, 0, 0.2, 1);z-index:90;gap:.2rem}

.lang-switcher:hover{transform:scale(1.1) rotate(5deg);box-shadow:0 6px 30px rgba(201,168,76,.6)}

.lang-switcher i{font-size:1.3rem}

.lang-switcher .lang-text{font-size:.75rem;font-weight:700;letter-spacing:.5px}

@media(max-width:768px){
  .lang-switcher{width:55px;height:55px;bottom:5rem;left:1.5rem}
  .lang-switcher i{font-size:1.1rem}
  .lang-switcher .lang-text{font-size:.7rem}
}

/* RTL/LTR Transitions */
[dir="rtl"] .lang-switcher{left:auto;right:2rem}
[dir="ltr"] .lang-switcher{right:auto;left:2rem}

@media(max-width:768px){
  [dir="rtl"] .lang-switcher{right:1.5rem}
  [dir="ltr"] .lang-switcher{left:1.5rem}
}

/* ===================================
   BACK TO TOP
   =================================== */
.back-top{position:fixed;bottom:2rem;left:2rem;width:44px;height:44px;border-radius:50%;background:var(--gray-dark);color:var(--gold);border:2px solid var(--gold);display:flex;align-items:center;justify-content:center;font-size:1rem;cursor:pointer;opacity:0;transform:translateY(20px);transition:all .3s;z-index:90}
.back-top.show{opacity:1;transform:translateY(0)}
.back-top:hover{background:var(--gold);color:var(--gray-dark)}

/* ===================================
   RESPONSIVE
   =================================== */
@media(max-width:900px){
  .hero__controls{flex-direction:column;gap:1rem;bottom:6rem}
  .hero__thumbnails{gap:.5rem;padding:.4rem}
  .hero__thumb{width:50px;height:50px}
  .hero__nav-btn{width:42px;height:42px}
  .hero__play-pause{order:-1;margin-bottom:.5rem}
}

@media(max-width:600px){
  .hero__stats{gap:1.5rem}
  .stat__number{font-size:2rem}
  .timeline{padding-right:1.5rem}
  .edu-card{flex-direction:column;align-items:center;text-align:center}
  .hero__controls{bottom:4rem}
  .hero__thumbnails{gap:.4rem;padding:.3rem;max-width:90vw;overflow-x:auto;scrollbar-width:none}
  .hero__thumbnails::-webkit-scrollbar{display:none}
  .hero__thumb{width:45px;height:45px;flex-shrink:0}
  .hero__progress{bottom:2.5rem}
}


/* ===================================
   PROFILE HERO SECTION
   =================================== */
.profile-hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  color: var(--white);
  direction: rtl;
  background: #000;
}

/* Background */
.profile-hero__bg {
  position: absolute;
  inset: 0;
  background-color: #0a0908;
  background-image: url('mainhero2.JPG');
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
}

/* Mobile: use portrait image */
@media (max-width: 768px) {
  .profile-hero__bg {
    background-image: url('mainhero.jpeg');
  }
}

/* Bokeh layer via pseudo-elements */
.profile-hero__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle 280px at 15% 25%, rgba(80,70,50,0.55) 0%, transparent 70%),
    radial-gradient(circle 200px at 75% 15%, rgba(60,55,40,0.45) 0%, transparent 70%),
    radial-gradient(circle 350px at 80% 55%, rgba(50,45,35,0.5) 0%, transparent 70%),
    radial-gradient(circle 180px at 40% 75%, rgba(70,60,45,0.4) 0%, transparent 70%),
    radial-gradient(circle 250px at 5%  70%, rgba(55,50,38,0.5) 0%, transparent 70%),
    radial-gradient(circle 150px at 60% 90%, rgba(65,58,42,0.4) 0%, transparent 70%),
    radial-gradient(circle 320px at 90% 85%, rgba(45,40,30,0.45) 0%, transparent 70%),
    radial-gradient(circle 120px at 30% 10%, rgba(75,65,48,0.35) 0%, transparent 70%);
  filter: blur(40px);
  z-index: 0;
}

.profile-hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle 100px at 20% 40%, rgba(180,150,80,0.12) 0%, transparent 70%),
    radial-gradient(circle 80px  at 70% 60%, rgba(160,130,70,0.10) 0%, transparent 70%),
    radial-gradient(circle 120px at 50% 20%, rgba(140,120,65,0.08) 0%, transparent 70%);
  filter: blur(20px);
  z-index: 0;
}

/* Dark Overlay */
.profile-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.05) 0%,
    rgba(0, 0, 0, 0.25) 40%,
    rgba(0, 0, 0, 0.65) 70%,
    rgba(0, 0, 0, 0.85) 100%
  );
  z-index: 2;
}

/* Content — anchored to right, vertically centered */
.profile-hero__content {
  position: absolute;
  top: 50%;
  right: 3.5rem;
  transform: translateY(-50%);
  z-index: 3;
  text-align: right;
}

/* Name */
.profile-hero__name {
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 2rem;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.6);
  line-height: 1.1;
}

/* Nav links — horizontal */
.profile-hero__nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 2rem;
}

.profile-hero__nav-link {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.15rem;
  font-weight: 600;
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  cursor: pointer;
  padding: 0.45rem 0;
  position: relative;
  transition: color 0.3s ease;
  text-align: right;
  letter-spacing: 0.01em;
}

/* underline on hover / active */
.profile-hero__nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.35s ease;
}

.profile-hero__nav-link:hover {
  color: var(--white);
}

.profile-hero__nav-link:hover::after,
.profile-hero__nav-link.active::after {
  width: 100%;
}

.profile-hero__nav-link.active {
  color: var(--gold);
}

/* ── Drawer (slides up from bottom) ── */
.profile-hero__drawer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 4;
  background: rgba(10, 14, 20, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(201, 168, 76, 0.25);
  transform: translateY(100%);
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  max-height: 55vh;
  overflow-y: auto;
}

.profile-hero__drawer.open {
  transform: translateY(0);
}

.profile-hero__drawer-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 2.5rem 2rem 2.5rem;
  position: relative;
  text-align: right;
}

/* Close button */
.profile-hero__drawer-close {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.95rem;
  transition: background 0.3s, color 0.3s;
}

.profile-hero__drawer-close:hover {
  background: var(--gold);
  color: var(--gray-dark);
  border-color: var(--gold);
}

/* Panels — hidden by default */
.profile-hero__panel {
  display: none;
  animation: phFadeIn 0.4s ease;
}

@keyframes phFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.profile-hero__panel-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  justify-content: flex-end;
  flex-direction: row-reverse;
}

.profile-hero__panel p {
  font-size: 1rem;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 0.85rem;
}

.profile-hero__panel p strong {
  color: var(--gold);
  font-weight: 700;
}

/* Awards List */
.profile-hero__awards-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.profile-hero__awards-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.97rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.88);
  flex-direction: row-reverse;
  text-align: right;
}

.profile-hero__awards-list li i {
  color: var(--gold);
  font-size: 0.9rem;
  margin-top: 0.35rem;
  flex-shrink: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .profile-hero__content {
    top: auto;
    bottom: 2rem;
    right: 1.5rem;
    transform: none;
  }

  .profile-hero__name {
    font-size: 2.4rem;
    margin-bottom: 1.25rem;
  }

  .profile-hero__nav {
    gap: 1.25rem;
  }

  .profile-hero__nav-link {
    font-size: 1rem;
  }

  .profile-hero__drawer-inner {
    padding: 2rem 1.25rem;
  }
}

@media (max-width: 480px) {
  .profile-hero__content {
    right: 1rem;
    bottom: 1.5rem;
  }

  .profile-hero__name {
    font-size: 2rem;
  }

  .profile-hero__nav {
    gap: 1rem;
  }

  .profile-hero__nav-link {
    font-size: 0.9rem;
  }
}


/* ===================================
   POPOVER SYSTEM
   =================================== */
.popover-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 32, 44, 0.75);
  backdrop-filter: blur(8px);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.popover-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  max-width: 900px;
  width: 90%;
  max-height: 85vh;
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  direction: rtl;
}

.popover-container.active {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.popover-header {
  background: linear-gradient(135deg, var(--gray-dark) 0%, var(--navy) 100%);
  padding: 2rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 3px solid var(--gold);
}

.popover-header__title {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--white);
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0;
}

.popover-header__icon {
  width: 50px;
  height: 50px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-dark);
  font-size: 1.4rem;
}

.popover-close {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.3rem;
  transition: all 0.3s ease;
}

.popover-close:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--gray-dark);
  transform: rotate(90deg);
}

.popover-body {
  padding: 2.5rem;
  overflow-y: auto;
  max-height: calc(85vh - 120px);
}

.popover-body::-webkit-scrollbar {
  width: 8px;
}

.popover-body::-webkit-scrollbar-track {
  background: var(--gray-bg);
  border-radius: 10px;
}

.popover-body::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 10px;
}

.popover-body::-webkit-scrollbar-thumb:hover {
  background: var(--gold-light);
}

.popover-content h3 {
  font-size: 1.4rem;
  color: var(--gray-dark);
  margin-bottom: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.popover-content h3 i {
  color: var(--gold);
  font-size: 1.2rem;
}

.popover-content p {
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.popover-content p strong {
  color: var(--gold);
  font-weight: 700;
}

.popover-content ul {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.popover-content ul li {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-light);
  padding: 0.75rem 0 0.75rem 2rem;
  position: relative;
  border-bottom: 1px solid var(--gray-light);
}

.popover-content ul li:last-child {
  border-bottom: none;
}

.popover-content ul li::before {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  background: var(--gold);
  border-radius: 50%;
}

.popover-content ul li i {
  color: var(--gold);
  margin-left: 0.5rem;
  font-size: 1.1rem;
}

/* Timeline in Popover */
.popover-timeline {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.popover-timeline-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.popover-timeline-year {
  flex-shrink: 0;
  background: var(--gold);
  color: var(--gray-dark);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
}

.popover-timeline-content {
  flex: 1;
  background: var(--gray-bg);
  padding: 1.25rem 1.5rem;
  border-radius: 12px;
  border-right: 3px solid var(--gold);
}

.popover-timeline-content h4 {
  font-size: 1.1rem;
  color: var(--gray-dark);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.popover-timeline-content p {
  font-size: 0.95rem;
  color: var(--text-light);
  margin: 0;
  line-height: 1.7;
}

/* Responsive Popover */
@media (max-width: 768px) {
  .popover-container {
    width: 95%;
    max-height: 90vh;
  }

  .popover-header {
    padding: 1.5rem 1.25rem;
  }

  .popover-header__title {
    font-size: 1.4rem;
    gap: 0.75rem;
  }

  .popover-header__icon {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }

  .popover-close {
    width: 38px;
    height: 38px;
    font-size: 1.1rem;
  }

  .popover-body {
    padding: 1.5rem 1.25rem;
  }

  .popover-content h3 {
    font-size: 1.2rem;
  }

  .popover-content p {
    font-size: 0.95rem;
  }

  .popover-timeline-item {
    flex-direction: column;
    gap: 0.75rem;
  }
}

/* Popover Services Grid */
.popover-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.popover-service-item {
  background: var(--gray-bg);
  padding: 1.25rem;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.popover-service-item:hover {
  border-color: var(--gold);
  background: var(--white);
  box-shadow: 0 4px 15px rgba(201, 168, 76, 0.2);
}

.popover-service-item i {
  font-size: 2rem;
  color: var(--gold);
}

.popover-service-item span {
  font-size: 0.95rem;
  color: var(--gray-dark);
  font-weight: 600;
  line-height: 1.5;
}

/* Popover Companies List */
.popover-companies-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.popover-company-item {
  background: var(--gray-bg);
  padding: 1.5rem;
  border-radius: 12px;
  border-right: 4px solid var(--gold);
  transition: all 0.3s ease;
}

.popover-company-item:hover {
  background: var(--white);
  box-shadow: 0 4px 15px rgba(201, 168, 76, 0.2);
  transform: translateX(-5px);
}

.popover-company-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.popover-company-header i {
  color: var(--gold);
  font-size: 1.3rem;
}

.popover-company-header h4 {
  font-size: 1.15rem;
  color: var(--gray-dark);
  font-weight: 700;
  margin: 0;
}

.popover-company-type {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 0.75rem;
  font-style: italic;
}

.popover-company-meta {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--text-light);
}

.popover-company-meta span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.popover-company-meta i {
  color: var(--gold);
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .popover-services-grid {
    grid-template-columns: 1fr;
  }

  .popover-company-meta {
    flex-direction: column;
    gap: 0.5rem;
  }
}

  .popover-body {
    padding: 1.5rem;
    max-height: calc(90vh - 100px);
  }

  .popover-content h3 {
    font-size: 1.2rem;
  }

  .popover-content p {
    font-size: 1rem;
  }

  .popover-timeline-item {
    flex-direction: column;
    gap: 0.75rem;
  }
}


/* ===================================
   ABOUT QUICK NAVIGATION BUTTONS
   =================================== */
.about-quick-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.about-nav-btn {
  background: var(--white);
  border: 2px solid var(--gray-light);
  color: var(--gray-dark);
  padding: 1rem 2rem;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(45, 55, 72, 0.08);
}

.about-nav-btn i {
  font-size: 1.2rem;
  color: var(--gold);
  transition: transform 0.3s ease;
}

.about-nav-btn:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(201, 168, 76, 0.3);
}

.about-nav-btn:hover i {
  color: var(--white);
  transform: scale(1.15);
}

.about-nav-btn:active {
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .about-quick-nav {
    gap: 0.75rem;
  }

  .about-nav-btn {
    padding: 0.85rem 1.5rem;
    font-size: 0.9rem;
  }

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