/* 
  ========================================================================
  🎨 ABAAD MEDIA - PREMIUM DESIGN SYSTEM
  ========================================================================
*/

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Fonts */
  --font-ar: 'Cairo', sans-serif;
  --font-en: 'Outfit', sans-serif;

  /* Transitions */
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;

  /* Border Radii */
  --radius-xs: 6px;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --radius-full: 9999px;

  /* LIGHT MODE (Default) */
  --bg-color: #f8fafc;
  --bg-panel: #ffffff;
  --bg-panel-trans: rgba(255, 255, 255, 0.8);
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --border-focus: #6366f1;
  
  --primary-color: #4f46e5;
  --primary-hover: #3730a3;
  --primary-glow: rgba(79, 70, 229, 0.15);
  
  --accent-color: #0ea5e9;
  --accent-glow: rgba(14, 165, 233, 0.15);
  
  --gradient-primary: linear-gradient(135deg, #4f46e5 0%, #0ea5e9 100%);
  --gradient-glow: linear-gradient(135deg, rgba(79, 70, 229, 0.1) 0%, rgba(14, 165, 233, 0.1) 100%);
  --gradient-dark: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.1);
  
  --glow-color: rgba(79, 70, 229, 0.2);
}

/* DARK MODE */
[data-theme="dark"] {
  --bg-color: #070913;
  --bg-panel: #0e1225;
  --bg-panel-trans: rgba(14, 18, 37, 0.8);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --border-color: #1e293b;
  --border-focus: #818cf8;
  
  --primary-color: #6366f1;
  --primary-hover: #818cf8;
  --primary-glow: rgba(99, 102, 241, 0.25);
  
  --accent-color: #22d3ee;
  --accent-glow: rgba(34, 211, 238, 0.25);
  
  --gradient-primary: linear-gradient(135deg, #6366f1 0%, #22d3ee 100%);
  --gradient-glow: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(34, 211, 238, 0.15) 100%);
  --gradient-dark: linear-gradient(135deg, #0e1225 0%, #070913 100%);
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 25px 60px rgba(0, 0, 0, 0.6);
  
  --glow-color: rgba(99, 102, 241, 0.4);
}

/* ========================================================================
   🌐 GLOBAL RESET & BASE STYLES
   ======================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-ar);
  line-height: 1.7;
  overflow-x: hidden;
  direction: rtl;
  text-align: right;
  transition: background-color 0.4s ease, color 0.4s ease;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color);
}

/* English Support class */
.en {
  font-family: var(--font-en);
  direction: ltr;
  display: inline-block;
}

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

button, input, select, textarea {
  font-family: inherit;
}

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* ========================================================================
   🧱 REUSABLE UTILITIES & BUTTONS
   ======================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: var(--transition-smooth);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #ffffff;
  box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px var(--primary-glow);
  opacity: 0.95;
}

.btn-secondary {
  background: var(--bg-panel);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: var(--border-color);
  transform: translateY(-2px);
}

.section-title-wrap {
  text-align: center;
  margin-bottom: 4rem;
}

.section-tag {
  display: inline-block;
  padding: 0.35rem 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-color);
  background: var(--primary-glow);
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
  letter-spacing: 0.5px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--text-main);
  position: relative;
}

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

/* Image Container utilities */
.img-wrap {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

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

/* Glow decoration */
.glow-spot {
  position: absolute;
  width: 300px;
  height: 300px;
  background: var(--gradient-glow);
  filter: blur(100px);
  border-radius: var(--radius-full);
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

/* ========================================================================
   Header (Logo & Nav)
   ======================================================================== */
.site-header {
  background-color: var(--bg-panel-trans);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(16px);
  transition: background-color 0.4s ease;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 85px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.6rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-icon-wrap {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}

.nav-wrap {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2.25rem;
}

.nav-link {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text-muted);
  position: relative;
  padding-block: 0.5rem;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  transition: var(--transition-smooth);
}

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

/* Theme Toggle Button */
.theme-toggle-btn {
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  transition: var(--transition-smooth);
}

.theme-toggle-btn:hover {
  border-color: var(--primary-color);
  background: var(--primary-glow);
  transform: rotate(15deg);
}

.theme-toggle-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Hide light/dark icon depending on theme */
.theme-toggle-btn .sun-icon { display: block; }
.theme-toggle-btn .moon-icon { display: none; }

[data-theme="dark"] .theme-toggle-btn .sun-icon { display: none; }
[data-theme="dark"] .theme-toggle-btn .moon-icon { display: block; }

/* Mobile Navigation Hamburger Menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  cursor: pointer;
  border: none;
  background: none;
  z-index: 1010;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--text-main);
  border-radius: var(--radius-full);
  transition: var(--transition-smooth);
}

/* ========================================================================
   🏠 HOME PAGE STYLES
   ======================================================================== */

/* Hero Section */
.hero-section {
  position: relative;
  padding-block: 5rem 7rem;
  overflow: hidden;
}

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

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background-color: #10b981;
  border-radius: 50%;
  animation: pulse-green 2s infinite;
}

.hero-title-main {
  font-size: 3.8rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--text-main);
}

.hero-title-main span {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 580px;
}

.hero-btns {
  display: flex;
  gap: 1.25rem;
}

.hero-image-side {
  position: relative;
  z-index: 2;
}

.hero-img-container {
  position: relative;
  border-radius: var(--radius-lg);
  aspect-ratio: 1 / 1;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--bg-panel);
}

.hero-floating-card {
  position: absolute;
  bottom: 30px;
  right: -30px;
  background: var(--bg-panel-trans);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow-md);
  animation: float 4s ease-in-out infinite;
}

.floating-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--gradient-primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.floating-info h4 {
  font-size: 1.1rem;
  font-weight: 700;
}

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

/* Stats Section */
.stats-section {
  padding-block: 2.5rem;
  background: var(--bg-panel);
  border-block: 1px solid var(--border-color);
  position: relative;
  z-index: 5;
}

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

.stat-card {
  padding: 1rem;
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: var(--font-en);
}

.stat-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* Services Grid */
.services-section {
  padding-block: 7rem;
  position: relative;
  overflow: hidden;
}

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

.service-card {
  background-color: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 3rem 2.25rem;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  z-index: 2;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: var(--transition-smooth);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

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

.service-icon-box {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-sm);
  background: var(--primary-glow);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 2rem;
  transition: var(--transition-smooth);
}

.service-card:hover .service-icon-box {
  background: var(--gradient-primary);
  color: #ffffff;
  transform: rotateY(360deg);
}

.service-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Portfolio Section */
.portfolio-preview-section {
  padding-block: 7rem;
  background-color: var(--bg-panel);
  border-block: 1px solid var(--border-color);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.25rem;
}

.portfolio-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  transition: var(--transition-smooth);
}

.portfolio-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.portfolio-img-box {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  position: relative;
}

.portfolio-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.portfolio-item:hover .portfolio-img-box img {
  transform: scale(1.05);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 10%, rgba(15, 23, 42, 0.2) 80%);
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: var(--transition-smooth);
}

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

.portfolio-overlay-info {
  color: #ffffff;
  transform: translateY(15px);
  transition: var(--transition-smooth);
}

.portfolio-item:hover .portfolio-overlay-info {
  transform: translateY(0);
}

.portfolio-category-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  background: var(--gradient-primary);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  display: inline-block;
  margin-bottom: 0.5rem;
}

.portfolio-overlay-info h4 {
  font-size: 1.25rem;
  font-weight: 700;
}

.portfolio-details {
  padding: 1.5rem;
}

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

.portfolio-details p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.portfolio-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
}

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

/* Testimonials Carousel */
.testimonials-section {
  padding-block: 7rem;
  position: relative;
  overflow: hidden;
}

.testimonials-slider-container {
  max-width: 850px;
  margin: 0 auto;
  position: relative;
}

.testimonials-slider {
  overflow: hidden;
}

.testimonials-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
}

.testimonial-slide {
  min-width: 100%;
  padding: 2rem;
  box-sizing: border-box;
}

.testimonial-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 3.5rem 3rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  position: relative;
}

.quote-icon {
  font-size: 4rem;
  color: var(--primary-color);
  opacity: 0.15;
  position: absolute;
  top: 15px;
  right: 30px;
  font-family: Georgia, serif;
}

.testimonial-rating {
  color: #f59e0b;
  font-size: 1.15rem;
  margin-bottom: 1.5rem;
}

.testimonial-text {
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.8;
  color: var(--text-main);
  margin-bottom: 2rem;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.author-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--primary-color);
}

.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-meta {
  text-align: right;
}

.author-meta h4 {
  font-size: 1.1rem;
  font-weight: 700;
}

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

.slider-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.slider-btn {
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  transition: var(--transition-smooth);
}

.slider-btn:hover {
  background: var(--primary-color);
  color: #ffffff;
  border-color: var(--primary-color);
}

.slider-dots {
  display: flex;
  gap: 0.5rem;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-color);
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.slider-dot.active {
  background: var(--primary-color);
  width: 25px;
  border-radius: var(--radius-full);
}

/* Call to Action (CTA) */
.cta-section {
  padding-block: 6rem;
  background: var(--gradient-dark);
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.cta-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 2;
}

.cta-section h2 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.cta-section p {
  font-size: 1.2rem;
  color: #94a3b8;
  max-width: 600px;
  margin-bottom: 2.5rem;
}

/* ========================================================================
   📄 ABOUT PAGE STYLES
   ======================================================================== */
.about-section {
  padding-block: 5rem 7rem;
}

.about-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  margin-bottom: 6rem;
}

.about-img-frame {
  position: relative;
  border: 4px solid var(--bg-panel);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.about-experience-badge {
  position: absolute;
  top: 30px;
  left: -20px;
  background: var(--gradient-primary);
  color: #ffffff;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-sm);
  text-align: center;
  box-shadow: var(--shadow-md);
}

.about-experience-badge h3 {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
  font-family: var(--font-en);
}

.about-experience-badge p {
  font-size: 0.8rem;
  font-weight: 700;
}

.about-details-content h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
}

.about-details-content p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.value-item {
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.value-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.value-item h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.value-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

/* Timeline Showcase */
.timeline-section {
  padding-block: 5rem;
  border-top: 1px solid var(--border-color);
}

.timeline-container {
  position: relative;
  max-width: 800px;
  margin: 4rem auto 0 auto;
}

.timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 50%;
  width: 4px;
  background: var(--border-color);
  transform: translateX(50%);
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 2rem;
  box-sizing: border-box;
}

.timeline-item:nth-child(odd) {
  right: 0;
  text-align: left;
  padding-left: 3rem;
}

.timeline-item:nth-child(even) {
  right: 50%;
  text-align: right;
  padding-right: 3rem;
}

.timeline-node {
  position: absolute;
  top: 2.25rem;
  right: -8px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg-color);
  border: 4px solid var(--primary-color);
  z-index: 5;
}

.timeline-item:nth-child(odd) .timeline-node {
  right: auto;
  left: -12px;
}

.timeline-item:nth-child(even) .timeline-node {
  right: -12px;
}

.timeline-content-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.timeline-year {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--gradient-primary);
  color: #ffffff;
  font-family: var(--font-en);
  font-weight: 700;
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
}

.timeline-content-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-align: right;
}

.timeline-item:nth-child(odd) .timeline-content-card h3 {
  text-align: right;
}

.timeline-content-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  text-align: right;
}

/* Team Showcase */
.team-section {
  padding-block: 5rem;
  border-top: 1px solid var(--border-color);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  margin-top: 3.5rem;
}

.team-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-align: center;
  transition: var(--transition-smooth);
}

.team-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
}

.team-avatar-box {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  position: relative;
  background-color: var(--border-color);
}

.team-avatar-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.team-card:hover .team-avatar-box img {
  transform: scale(1.05);
}

.team-info {
  padding: 1.25rem;
}

.team-name {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.team-role {
  font-size: 0.85rem;
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.team-socials {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
}

.team-social-link {
  color: var(--text-muted);
  font-size: 1rem;
}

.team-social-link:hover {
  color: var(--primary-color);
}

/* ========================================================================
   📂 PORTFOLIO DEDICATED PAGE STYLES
   ======================================================================== */
.portfolio-tabs-container {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
}

.portfolio-tab {
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 0.6rem 1.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.portfolio-tab:hover,
.portfolio-tab.active {
  background: var(--primary-color);
  color: #ffffff;
  border-color: var(--primary-color);
  box-shadow: 0 4px 15px var(--primary-glow);
}

/* Lightbox Modal Structure */
.lightbox {
  position: fixed;
  inset: 0;
  background-color: rgba(7, 9, 19, 0.95);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox-content {
  max-width: 900px;
  width: 100%;
  position: relative;
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.lightbox.active .lightbox-content {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: -45px;
  left: 0;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 2.2rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.lightbox-close:hover {
  color: var(--primary-color);
  transform: scale(1.1);
}

.lightbox-media {
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #000000;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.lightbox-media img,
.lightbox-media video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.lightbox-caption {
  color: #ffffff;
  margin-top: 1.25rem;
  text-align: right;
}

.lightbox-caption h3 {
  font-size: 1.4rem;
  font-weight: 700;
}

.lightbox-caption p {
  color: #94a3b8;
  font-size: 0.95rem;
  margin-top: 0.25rem;
}

/* ========================================================================
   📞 CONTACT PAGE STYLES
   ======================================================================== */
.contact-grid-main {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 4rem;
  margin-bottom: 6rem;
  align-items: start;
}

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

.contact-card-v2 {
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  transition: var(--transition-smooth);
}

.contact-card-v2:hover {
  transform: translateY(-5px);
  border-color: var(--primary-color);
  box-shadow: var(--shadow-md);
}

.contact-icon-box {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: var(--primary-glow);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.contact-details-box h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.contact-details-box p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.contact-link {
  color: var(--primary-color);
  font-weight: 700;
  font-size: 1.05rem;
}

.contact-link:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

/* Styled Interactive SVG Map */
.contact-map-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.contact-map-mock {
  width: 100%;
  height: 100%;
  background: var(--bg-color);
  border-radius: var(--radius-sm);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
}

.map-glow-pin {
  position: relative;
  width: 20px;
  height: 20px;
}

.map-pin-dot {
  width: 12px;
  height: 12px;
  background: var(--primary-color);
  border-radius: 50%;
  position: absolute;
  top: 4px;
  left: 4px;
  border: 2px solid #ffffff;
  z-index: 2;
}

.map-pin-pulse {
  width: 100%;
  height: 100%;
  background: var(--primary-color);
  border-radius: 50%;
  position: absolute;
  top: 0;
  left: 0;
  animation: pulse-pin 2s infinite;
  opacity: 0.6;
}

/* Contact Form Styling */
.contact-form-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 3.5rem 3rem;
  box-shadow: var(--shadow-md);
}

.contact-form-card h2 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.contact-form-card p {
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group.full-width {
  grid-column: span 2;
}

.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.form-input {
  width: 100%;
  padding: 0.9rem 1.25rem;
  background-color: var(--bg-color);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.form-input:focus {
  outline: none;
  border-color: var(--border-focus);
  background-color: var(--bg-panel);
  box-shadow: 0 0 0 4px var(--primary-glow);
}

textarea.form-input {
  resize: vertical;
  min-height: 150px;
}

/* Form validation styles */
.form-input.invalid {
  border-color: #ef4444;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15);
}

.error-message {
  color: #ef4444;
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 0.35rem;
  display: none;
}

.error-message.active {
  display: block;
}

/* Success Modal Styling */
.success-modal {
  position: fixed;
  inset: 0;
  background-color: rgba(7, 9, 19, 0.85);
  backdrop-filter: blur(8px);
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.success-modal.active {
  display: flex;
  opacity: 1;
}

.success-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 4rem 3rem;
  max-width: 500px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.success-modal.active .success-card {
  transform: translateY(0);
}

.success-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #10b981;
  color: #ffffff;
  font-size: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem auto;
  box-shadow: 0 10px 20px rgba(16, 185, 129, 0.2);
}

.success-card h3 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.success-card p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* FAQ Accordion Section */
.faq-section {
  padding-block: 5rem;
  border-top: 1px solid var(--border-color);
}

.faq-container {
  max-width: 800px;
  margin: 4rem auto 0 auto;
}

.faq-item {
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.faq-header {
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.faq-header h3 {
  font-size: 1.15rem;
  font-weight: 700;
}

.faq-chevron {
  font-size: 1.25rem;
  color: var(--primary-color);
  transition: var(--transition-smooth);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-content-inner {
  padding: 0 2rem 2rem 2rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Accordion Open State */
.faq-item.active {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-sm);
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
}

/* ========================================================================
   Footer
   ======================================================================== */
.site-footer {
  background-color: var(--bg-panel);
  border-top: 1px solid var(--border-color);
  padding-block: 5rem 2.5rem;
  color: var(--text-muted);
  position: relative;
  z-index: 5;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.5fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand .footer-logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.8rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.25rem;
}

.footer-brand p {
  line-height: 1.8;
  font-size: 0.95rem;
}

.footer-heading {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 1.5rem;
  position: relative;
}

.footer-heading::after {
  content: '';
  display: block;
  width: 30px;
  height: 3px;
  background: var(--primary-color);
  margin-top: 0.5rem;
  border-radius: var(--radius-full);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer-link {
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-link::before {
  content: '←';
  color: var(--primary-color);
  transition: var(--transition-fast);
}

.footer-link:hover {
  color: var(--primary-color);
  transform: translateX(-4px);
}

.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-contact-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-xs);
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.footer-contact-text {
  display: flex;
  flex-direction: column;
}

.footer-contact-text span:first-child {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.footer-contact-text a {
  font-weight: 600;
  color: var(--text-main);
}

.footer-contact-text a:hover {
  color: var(--primary-color);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}

.social-links-footer {
  display: flex;
  gap: 1rem;
}

.social-btn-footer {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-xs);
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  transition: var(--transition-smooth);
}

.social-btn-footer:hover {
  background: var(--primary-color);
  color: #ffffff;
  border-color: var(--primary-color);
  transform: translateY(-3px);
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 46px;
  height: 46px;
  background: var(--gradient-primary);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  border: none;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px var(--primary-glow);
}

/* ========================================================================
   💫 KEYFRAME ANIMATIONS & OBSERVER CLASSES
   ======================================================================== */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes pulse-green {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

@keyframes pulse-pin {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(3.5); opacity: 0; }
}

/* Scroll trigger animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ========================================================================
   📱 RESPONSIVE MEDIA QUERIES
   ======================================================================== */
@media (max-width: 1024px) {
  .hero-title-main {
    font-size: 3.2rem;
  }
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  
  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-desc {
    margin-inline: auto;
  }

  .hero-image-side {
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
  }

  .hero-floating-card {
    right: 0;
    bottom: -15px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .about-row {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-img-frame {
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
  }

  .contact-grid-main {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
  
  .timeline-line {
    right: 20px;
  }
  
  .timeline-item {
    width: 100%;
    padding-inline: 0 0 !important;
  }
  
  .timeline-item:nth-child(odd) {
    right: 0;
    padding-right: 40px !important;
  }
  
  .timeline-item:nth-child(even) {
    right: 0;
    padding-right: 40px !important;
  }
  
  .timeline-node {
    right: 12px !important;
    left: auto !important;
  }
}

@media (max-width: 768px) {
  /* Navigation Mobile Toggle */
  .menu-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 85px;
    right: -100%;
    width: 100%;
    height: calc(100vh - 85px);
    background-color: var(--bg-panel);
    flex-direction: column;
    align-items: center;
    padding-top: 3rem;
    gap: 2.25rem;
    transition: var(--transition-smooth);
    border-top: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
  }

  .nav-menu.active {
    right: 0;
  }
  
  .theme-toggle-btn {
    margin-left: 1.5rem;
  }

  .hero-title-main {
    font-size: 2.6rem;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }
  
  .form-group.full-width {
    grid-column: span 1;
  }

  .contact-form-card {
    padding: 2.5rem 1.75rem;
  }

  .testimonial-card {
    padding: 2.5rem 1.5rem;
  }

  .testimonial-text {
    font-size: 1.15rem;
  }
  
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .hero-btns {
    flex-direction: column;
    width: 100%;
  }

  .hero-btns .btn {
    width: 100%;
  }

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

  .team-grid {
    grid-template-columns: 1fr;
    max-width: 280px;
    margin-inline: auto;
  }
}
