/* ================================================
   LAYLA AL-QALAM - AUTHOR PORTFOLIO
   RTL | Dark/Light Mode | Responsive 360px-1024px
   ================================================ */

/* ===== CSS VARIABLES ===== */
:root {
  --accent: #b38f00;
  --accent-light: #d4aa00;
  --accent-dark: #8a6e00;
  --accent-glow: rgba(179, 143, 0, 0.2);

  /* Light Mode */
  --bg: #faf8f3;
  --bg-subtle: #f0ece0;
  --bg-dark: #080808;
  /* Always dark sections like footer/banner in some designs */
  --card-bg: #ffffff;
  --card-hover: #ffffff;
  --text: #1a1a1a;
  --text-muted: #666666;
  --text-light: #999999;
  --text-on-dark: #ffffff;
  --border: #e5e0d0;
  --nav-bg: rgba(250, 248, 243, 0.95);
  --header-bg: #faf8f3;
  --footer-bg: #080808;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.12);
  --overlay: rgba(0, 0, 0, 0.85);

  --font-display: 'Playfair Display', serif;
  --font-body: 'Cairo', sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s ease;
  --container-padding: 3em;
}

/* Dark Mode Variables Override */
body.dark-mode {
  --bg: #0f0e0b;
  --bg-subtle: #1a1916;
  --bg-dark: #000000;
  --card-bg: #1e1d18;
  --card-hover: #26241e;
  --text: #f0ebe0;
  --text-muted: #a09880;
  --text-light: #6b6450;
  --text-on-dark: #ffffff;
  --border: #2e2c24;
  --nav-bg: rgba(15, 14, 11, 0.95);
  --header-bg: #0f0e0b;
  --footer-bg: #050505;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.5);
  --overlay: rgba(0, 0, 0, 0.9);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text);
  font-size: 17px;
  line-height: 1.7;
  transition: background-color 0.4s ease, color 0.4s ease;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: var(--font-body);
  border: none;
  outline: none;
}

input,
textarea,
select {
  font-family: var(--font-body);
}

.container {
  max-width: 1500px;
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.section {
  padding: 60px 0;
}

.bg-subtle {
  background-color: var(--bg-subtle);
}

.text-center {
  text-align: center;
}

.mt-lg {
  margin-top: 48px;
}

.mt-xl {
  margin-top: 80px;
}

/* ===== TYPOGRAPHY ===== */
h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font-display);
  line-height: 1.3;
  color: var(--accent);
}

.section-tag {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 900;
  margin-bottom: 16px;
}

.section-title span {
  color: var(--accent);
}

.section-desc {
  color: var(--text-muted);
  text-align: justify;
  font-size: 1.05rem;
  max-width: 100%;
  margin-bottom: 20px;
}

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

.section-header .section-desc {
  margin: 0 auto;
  max-width: 500px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  min-width: 180px;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--accent-glow);
}

.btn-outline {
  border-color: var(--accent);
  color: var(--accent);
  background: transparent;
}

.btn-outline:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}

.btn-sm {
  padding: 13px 28px;
  font-size: 0.95rem;
}

.btn-lg {
  padding: 13px 28px;
  font-size: 0.95rem;
}

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

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: all var(--transition);
}

.navbar.scrolled {
  box-shadow: var(--shadow);
}

.nav-container {
  max-width: 1500px;
  width: 100%;
  margin: 0 auto;
  padding: 1.5em var(--container-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  transition: var(--transition);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--text);
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: 8px;
  transition: all var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
  background: var(--accent-glow);
}

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

.nav-login-btn {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 8px;
  padding: 6px 16px;
  transition: all var(--transition);
  margin-right: 8px;
}

.nav-login-btn:hover {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 12px var(--accent-glow);
}

.dark-toggle,
.rtl-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: white;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all var(--transition);
  font-weight: bold;
}

.dark-toggle:hover,
.rtl-toggle:hover {
  transform: scale(1.1);
  background: var(--accent-glow);
}

.rtl-toggle {
  font-size: 0.8rem;
  font-family: var(--font-body);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== PAGE HERO ===== */
.page-hero {
  padding: 140px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero .section-tag {
  margin-bottom: 16px;
}

.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 16px;
}

.page-hero h1 span {
  color: var(--accent);
}

.page-hero p {
  color: var(--text-on-dark);
  font-size: 1.1rem;
  max-width: 480px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.page-hero-bg {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  z-index: -1;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.page-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.9));
  z-index: 1;
}

.page-hero .container {
  position: relative;
  z-index: 10;
  color: #ffffff;
}

.page-hero h1 span {
  color: var(--accent-light);
}

/* For pages with specific background images */
.about-hero-bg {
  background-image: url('../images/pexels-ron-lach-8086362.jpg');
}

.portfolio-hero-bg {
  background-image: url('../images/pexels-ena-marinkovic-1814213-5843609.jpg');
}

.projects-hero-bg {
  background-image: url('../images/testimonial-bg.png');
}

.contact-hero-bg {
  background-image: url('../images/pexels-asumaani-10770004.jpg');
}

.auth-hero-bg {
  background-image: url('../images/pexels-lakshmi-priya-739225738-18658720.jpg');
}

/* ===== CINEMATIC HERO (INDEX.HTML) ===== */
.hero-cinematic {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding-top: 80px;
  background: var(--bg);
}

.c-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.c-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  /* Dark cinematic overlay */
  z-index: 1;
}

.video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.c-hero-container {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
}

.c-hero-text {
  max-width: 900px;
  position: relative;
  z-index: 5;
  text-align: center;
}

.c-hero-tag {
  display: block;
  font-family: var(--font-body);
  font-size: 1rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2dvh;
}

.c-hero-title {
  font-family: var(--font-display);
  font-size: 80px;
  font-weight: 900;
  line-height: 0.95;
  color: rgb(255, 255, 255);
  margin-bottom: 4vh;
  display: flex;
  flex-direction: column;
}

.c-hero-title .line-1 {
  padding-left: 0;
}

.c-hero-title .line-2 {
  padding-left: 8vw;
  color: var(--accent);
  font-style: italic;
}

.c-hero-title .line-3 {
  padding-left: 4vw;
}

[dir="rtl"] .c-hero-title .line-1 {
  padding-left: 0;
  padding-right: 0;
}

[dir="rtl"] .c-hero-title .line-2 {
  padding-left: 0;
  padding-right: 8vw;
}

[dir="rtl"] .c-hero-title .line-3 {
  padding-left: 0;
  padding-right: 4vw;
}

.c-hero-subtitle {
  font-size: 1.25rem;
  line-height: 1.6;
  max-width: 600px;
  color: white;
  margin-bottom: 4vh;
  margin-left: auto;
  margin-right: auto;
  border-top: 3px solid var(--accent);
  padding-top: 1.5rem;
}

[dir="rtl"] .c-hero-subtitle {
  margin-left: 0;
  margin-right: 4vw;
  border-left: none;
  border-right: 3px solid var(--accent);
  padding-left: 0;
  padding-right: 1.5rem;
}

.c-hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  margin: 0 auto;
}

[dir="rtl"] .c-hero-actions {
  margin-left: 0;
  margin-right: 4vw;
}

.c-hero-visuals {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.c-geo {
  position: absolute;
  border: 1px solid var(--border);
  border-radius: 50%;
}

.c-geo-1 {
  width: 60vh;
  height: 60vh;
  top: 10%;
  right: -10%;
  border-color: var(--accent);
  opacity: 0.2;
}

.c-geo-2 {
  width: 90vh;
  height: 90vh;
  bottom: -20%;
  right: 10%;
  opacity: 0.1;
}

.c-geo-3 {
  width: 20vh;
  height: 20vh;
  bottom: 20%;
  left: 30%;
  border-color: var(--accent);
  opacity: 0.15;
}

[dir="rtl"] .c-geo-1 {
  right: auto;
  left: -10%;
}

[dir="rtl"] .c-geo-2 {
  right: auto;
  left: 10%;
}

@media (max-width: 768px) {
  .c-hero-title .line-2 {
    padding-left: 4vw;
  }

  .c-hero-title .line-3 {
    padding-left: 0;
  }

  [dir="rtl"] .c-hero-title .line-2 {
    padding-right: 4vw;
  }

  .c-hero-subtitle {
    margin-left: 0;
    margin-right: 0;
  }

  .c-hero-actions {
    margin-left: 0;
    margin-right: 0;
    flex-wrap: wrap;
  }
}

.scroll-hint {
  text-align: center;
  padding-bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.82rem;
  z-index: 1;
}

.scroll-arrow {
  animation: bounce 2s ease-in-out infinite;
  font-size: 1.2rem;
  color: var(--accent);
}

@keyframes bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(8px);
  }
}

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

.about-text-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-img-col {
  display: flex;
  justify-content: center;
}

.about-card-visual {
  position: relative;
  width: 100%;
  max-width: 360px;
}

.about-card-visual.large {
  max-width: 100%;
}

.about-quote-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 10;
}

.about-quote-card::before {
  content: '"';
  font-family: var(--font-display);
  font-size: 5rem;
  color: var(--accent);
  opacity: 0.3;
  position: absolute;
  top: -10px;
  right: 24px;
  line-height: 1;
}

.about-quote-card p {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: black;
  font-style: italic;
  line-height: 1.6;
}

.about-quote-card span {
  display: block;
  margin-top: 16px;
  color: rgb(0, 0, 0);
  font-weight: 700;
  font-size: 0.9rem;
}

.about-exp-badge {
  background: var(--accent);
  color: #ffffff;
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 10;
}

.about-exp-badge strong,
.about-exp-badge span {
  color: #ffffff;
}

.about-exp-badge strong {
  font-size: 2rem;
  font-family: var(--font-display);
}

.about-exp-badge span {
  font-size: 0.9rem;
  line-height: 1.4;
}

/* Highlights */
.about-highlights {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.highlight-item {
  text-align: center;
  padding: 16px;
  background: var(--bg-subtle);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  flex: 1;
  min-width: 90px;
}

.highlight-item strong {
  display: block;
  font-size: 1.5rem;
  color: var(--accent);
  font-family: var(--font-display);
}

.highlight-item p {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ===== WORK CARDS ===== */
.cards-grid {
  display: grid;
  padding: 30px;
  background-size: cover;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.work-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background-size: cover;
  background-position: center;
  border: 1px solid var(--border);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 400px;
}

.work-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
      rgba(0, 0, 0, 0.88) 0%,
      rgba(0, 0, 0, 0.45) 50%,
      rgba(0, 0, 0, 0.15) 100%);
  z-index: 1;
  transition: var(--transition);
}

.work-card:hover .work-card-overlay {
  background: linear-gradient(to top,
      rgba(0, 0, 0, 0.95) 0%,
      rgba(0, 0, 0, 0.65) 50%,
      rgba(0, 0, 0, 0.25) 100%);
}

.work-card-content {
  position: relative;
  z-index: 2;
  padding: 30px 20px;
  /* REQUESTED 20px SIDE PADDING */
  color: #fff;
}

.work-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform var(--transition);
  transform-origin: right;
}

.work-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

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

.work-card.featured {
  border-color: var(--accent);
  /* Override old gradient so inline background-image shows through */
  background: none;
}

.work-card.featured::before {
  transform: scaleX(1);
}

.card-badge {
  display: inline-block;
  background: rgba(179, 143, 0, 0.85);
  color: #fff;
  border: 1px solid var(--accent);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
  backdrop-filter: blur(4px);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.work-card h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
  color: #fff !important;
  font-family: var(--font-display);
}

.work-card p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 24px;
  line-height: 1.6;
}

.card-link {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
  transition: gap var(--transition);
}

.card-link:hover {
  gap: 12px;
}

/* ===== SKILLS ===== */
.skills-section {
  background: var(--bg-subtle);
}

.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 48px;
}

.skill-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.skill-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 1px;
}

.skill-bar {
  background: var(--border);
  border-radius: 100px;
  height: 8px;
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-dark), var(--accent-light));
  border-radius: 100px;
  width: 0;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== TESTIMONIALS ===== */
.testimonials-section {
  position: relative;
  background-image: url('../images/testimonial-bg.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  /* Parallax effect */
  color: #fff;
  padding: 120px 0;
  overflow: hidden;
}

.testimonials-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  z-index: 1;
}

.testimonials-section .container {
  position: relative;
  z-index: 2;
}

.testimonials-section .section-title {
  color: #fff;
}

.testimonials-slider {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  height: 400px;
}

.testimonial-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 50px;
  text-align: center;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  color: var(--text-on-dark);
  box-shadow: var(--shadow-lg);
}

.testimonial-card.active {
  opacity: 1;
  visibility: visible;
  position: relative;
}

.stars {
  color: var(--accent);
  font-size: 1.2rem;
  margin-bottom: 20px;
  letter-spacing: 4px;
}

.testimonial-card p {
  font-size: 1.05rem;
  color: var(--text-on-dark);
  font-style: italic;
  line-height: 1.8;
  margin-bottom: 24px;
}

.client-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.client-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}

.client-info strong {
  display: block;
  font-size: 0.95rem;
}

.client-info span {
  font-size: 0.82rem;
  color: var(--text-on-dark);
  opacity: 0.7;
}

.slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 32px;
}

.slider-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--card-bg);
  border: 1px solid var(--border);
  color: var(--accent);
  font-size: 1rem;
  transition: all var(--transition);
}

.slider-btn:hover {
  background: var(--accent);
  color: #fff;
}

.slider-dots {
  display: flex;
  gap: 8px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  transition: all var(--transition);
  cursor: pointer;
}

.dot.active {
  background: var(--accent);
  width: 24px;
  border-radius: 4px;
}

/* ===== PROJECTS ===== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.projects-grid.large {
  grid-template-columns: repeat(3, 1fr);
}

.project-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all var(--transition);
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.project-card.large {
  padding: 32px;
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.project-icon {
  font-size: 1.8rem;
}

.project-status {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.project-status.ongoing {
  background: rgba(179, 143, 0, 0.15);
  color: var(--accent);
  border: 1px solid var(--accent);
}

.project-status.completed {
  background: rgba(34, 197, 94, 0.1);
  color: #16a34a;
  border: 1px solid #16a34a;
}

.project-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.project-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  text-align: justify;
  margin-bottom: 16px;
}

.project-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0;
}

.project-progress .progress-bar {
  flex: 1;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.progress-bar {
  background: var(--border);
  border-radius: 100px;
  height: 6px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-dark), var(--accent-light));
  border-radius: 100px;
  width: 0;
  transition: width 1.2s ease;
}

.project-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.project-tags span {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.project-details {
  margin: 12px 0;
}

.detail-item {
  display: flex;
  gap: 8px;
  font-size: 0.85rem;
  margin-bottom: 4px;
}

.detail-item strong {
  color: var(--text);
}

.detail-item span {
  color: var(--text-muted);
}

/* ===== CTA SECTION ===== */
.cta-section {
  padding: 60px 0;
}

.cta-box {
  background: linear-gradient(135deg, var(--card-bg), var(--accent-glow));
  border: 1px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  text-align: center;
}

.cta-box h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 12px;
}

.cta-box p {
  color: var(--text-muted);
  margin-bottom: 28px;
}

/* ===== PORTFOLIO FILTER ===== */
.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  justify-content: center;
}

.filter-btn {
  padding: 9px 20px;
  border-radius: 30px;
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all var(--transition);
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.portfolio-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.portfolio-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.portfolio-card.featured {
  border-color: var(--accent);
  background: linear-gradient(135deg, var(--card-bg), var(--accent-glow));
}

.portfolio-card.hidden {
  display: none;
}

.pcard-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pcard-icon {
  font-size: 1.8rem;
}

.pcard-badge {
  background: var(--accent-glow);
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 700;
}

.portfolio-card h3 {
  font-size: 1rem;
}

.portfolio-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  flex: 1;
}

.pcard-meta span {
  font-size: 0.78rem;
  color: var(--text-light);
}

/* ===== TIMELINE ===== */
.timeline {
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  right: 140px;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  display: flex;
  gap: 32px;
  margin-bottom: 40px;
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  right: 134px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 2px var(--accent);
}

.timeline-date {
  width: 130px;
  flex-shrink: 0;
  text-align: left;
  font-size: 0.82rem;
  color: var(--accent);
  font-weight: 700;
  padding-top: 4px;
}

.timeline-content {
  flex: 1;
  padding-right: 50px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
}

.timeline-content h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.timeline-content p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.timeline-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.timeline-tags span {
  background: var(--accent-glow);
  color: var(--accent);
  border-radius: 20px;
  padding: 2px 10px;
  font-size: 0.72rem;
  font-weight: 700;
}

/* ===== INDUSTRIES GRID ===== */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.industry-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 16px;
  text-align: center;
  transition: all var(--transition);
}

.industry-card:hover {
  border-color: var(--accent);
  background: var(--accent-glow);
  transform: translateY(-4px);
}

.industry-card span {
  font-size: 2rem;
  display: block;
  margin-bottom: 8px;
}

.industry-card p {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* ===== CONTACT FORM ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: start;
}

.form-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
}

.form-card h2 {
  margin-bottom: 4px;
}

.form-card>p {
  color: var(--text-muted);
  margin-bottom: 28px;
  font-size: 0.9rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

.form-group label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
}

.form-group input,
.form-group textarea {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 13px 16px;
  color: var(--text);
  font-size: 0.95rem;
  transition: border-color var(--transition);
  text-align: right;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

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

.form-error {
  font-size: 0.78rem;
  color: #ef4444;
  min-height: 16px;
}

.form-success {
  display: none;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid #16a34a;
  border-radius: var(--radius);
  padding: 16px;
  color: #16a34a;
  font-weight: 600;
  text-align: center;
  margin-top: 16px;
  font-size: 0.9rem;
}

.form-success.show {
  display: block;
}

/* Contact Info */
.contact-info-card,
.contact-social-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 20px;
}

.contact-info-card h3,
.contact-social-card h3 {
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.contact-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.contact-icon {
  width: 40px;
  height: 40px;
  background: var(--accent-glow);
  border: 1px solid var(--accent);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.contact-item strong {
  display: block;
  font-size: 0.88rem;
  margin-bottom: 2px;
}

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

.social-links-large {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.social-link-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg);
  transition: all var(--transition);
  font-size: 0.88rem;
  font-weight: 600;
}

.social-link-item:hover {
  border-color: var(--accent);
  background: var(--accent-glow);
  color: var(--accent);
}

.s-icon {
  width: 32px;
  height: 32px;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.availability-badge {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid #16a34a;
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.avail-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #16a34a;
  animation: pulse-green 2s infinite;
  flex-shrink: 0;
}

@keyframes pulse-green {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.4);
  }

  50% {
    box-shadow: 0 0 0 6px rgba(22, 163, 74, 0);
  }
}

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

.availability-badge strong {
  display: block;
  color: #16a34a;
  font-size: 0.88rem;
}

/* ===== FAQ ===== */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: all var(--transition);
}

.faq-item:hover {
  border-color: var(--accent);
}

.faq-item h4 {
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.faq-item p {
  font-size: 0.88rem;
  text-align: justify;
  color: var(--text-muted);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--footer-bg);
  color: var(--text-on-dark);
  padding: 80px 0 40px;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
  gap: 36px;
  margin-bottom: 40px;
}

.footer .nav-logo {
  font-size: 2.2rem;
  margin-bottom: 24px;
  display: inline-block;
  color: #ffffff !important;
}

.footer-brand p {
  color: #ffffff;
  line-height: 1.8;
  text-align: justify;
  margin-bottom: 40px;
  max-width: 420px;
}

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

.social-links a {
  width: 45px;
  height: 45px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-5px);
  box-shadow: 0 10px 20px var(--accent-glow);
}

.footer-links h4,
.footer-services h4,
.footer-contact h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  color: #fff;
  margin-bottom: 30px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
}

.footer-services ul li,
.footer-links ul li {
  margin-bottom: 12px;
}

.footer-services ul li,
.footer-links ul li a {
  color: rgba(255, 255, 255, 0.7) !important;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.footer-links ul li a:hover {
  color: var(--accent-light) !important;
  padding-left: 10px;
}

.footer-contact p {
  color: #ffffff;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 1rem;
}

.footer-bottom {
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  color: #ffffff;
  font-size: 0.9rem;
}

.footer-brand .nav-logo {
  display: inline-block;
  margin-bottom: 14px;
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--text-on-dark);
  text-align: justify;
  opacity: 0.8;
  max-width: 260px;
  margin-bottom: 20px;
}

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

.social-links a {
  width: 36px;
  height: 36px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: all var(--transition);
}

.social-links a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.footer-links h4,
.footer-contact h4 {
  font-size: 0.95rem;
  margin-bottom: 16px;
  color: var(--text-on-dark);
}

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

.footer-links ul li a {
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer-links ul li a:hover {
  color: var(--accent);
}

.footer-contact p {
  font-size: 0.88rem;
  color: white;
  margin-bottom: 10px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: white;
}

.back-top {
  background: var(--accent);
  color: #fff;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  transition: all var(--transition);
}

.back-top:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
}

/* ===== ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== MOBILE NAV OVERLAY ===== */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    right: 0;
    left: 0;
    background: var(--nav-bg);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 20px;
    gap: 4px;
    transform: translateY(-110%);
    opacity: 0;
    transition: all var(--transition);
    pointer-events: none;
    z-index: 999;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav-links a {
    display: block;
    padding: 12px 16px;
    font-size: 1rem;
    width: 100%;
    text-align: right;
  }

  /* Hero */
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
    padding: 40px 0 20px;
  }

  .hero-title {
    font-size: clamp(2.2rem, 8vw, 3rem);
  }

  .hero-subtitle {
    margin: 0 auto;
    font-size: 0.95rem;
  }

  .hero-btns {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-visual {
    order: -1;
  }

  .hero-img-wrap {
    width: 260px;
    height: 290px;
  }

  .badge-1,
  .badge-2,
  .badge-3 {
    display: none;
  }

  /* Sections */
  .section-grid,
  .section-grid.reverse {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .section-grid.reverse {
    direction: rtl;
  }

  /* Cards */
  .cards-grid {
    grid-template-columns: 1fr;
  }

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

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

  .projects-grid.large {
    grid-template-columns: 1fr;
  }

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

  .industries-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  /* Contact */
  .contact-grid {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  /* Timeline */
  .timeline::before {
    right: 0;
    width: 0;
  }

  .timeline-item {
    flex-direction: column;
    gap: 8px;
  }

  .timeline-item::before {
    display: none;
  }

  .timeline-date {
    width: auto;
    text-align: right;
  }

  .timeline-content {
    padding-right: 0;
  }

  /* Page Hero */
  .page-hero {
    padding: 110px 0 60px;
  }

  /* About card */
  .about-quote-card {
    padding: 24px;
  }

  .floating-badge {
    display: none;
  }

  .about-card-visual.large {
    max-width: 260px;
  }

  /* CTA */
  .cta-box {
    padding: 40px 24px;
  }
}

/* ===== TABLET (481px - 1024px) ===== */
@media (min-width: 481px) and (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-visual {
    order: -1;
  }

  .hero-btns {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-subtitle {
    margin: 0 auto;
  }

  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .projects-grid.large {
    grid-template-columns: repeat(2, 1fr);
  }

  .industries-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .section-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .section-grid.reverse {
    direction: rtl;
  }

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

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

  .timeline::before {
    right: 120px;
  }

  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    right: 0;
    left: 0;
    background: var(--nav-bg);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 20px;
    gap: 4px;
    transform: translateY(-110%);
    opacity: 0;
    transition: all var(--transition);
    pointer-events: none;
    z-index: 999;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav-links a {
    display: block;
    padding: 12px 16px;
    width: 100%;
    text-align: right;
  }
}

/* Very small screens */
@media (max-width: 400px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-img-wrap {
    width: 220px;
    height: 250px;
  }

  .section {
    padding: 60px 0;
  }

  .about-highlights {
    gap: 12px;
  }

  .highlight-item {
    min-width: 70px;
  }

  .hero-stats {
    gap: 16px;
  }

  .stat span {
    font-size: 1.4rem;
  }

  .filter-bar {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 8px;
  }

  .filter-btn {
    white-space: nowrap;
  }
}

/* ===== GLOBAL NAV DROPDOWN ===== */
.nav-item-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--nav-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 220px;
  list-style: none;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 1000;
}

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

.nav-item-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-menu li {
  margin: 0;
}

.nav-dropdown-menu a {
  display: block;
  padding: 12px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  text-align: left;
}

[dir="rtl"] .nav-dropdown-menu a {
  text-align: right;
}

.nav-dropdown-menu a:hover {
  background: var(--bg-subtle);
  color: var(--accent);
}

/* Mobile reset for dropdown */
@media (max-width: 768px) {
  .nav-dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    background: transparent;
    opacity: 1;
    visibility: visible;
    transform: none;
    padding-left: 20px;
  }
}

/* ===== BENTO BOX UI ===== */
.bento-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(180px, auto);
  gap: 24px;
  padding: 120px 0 60px;
}

.bento-item {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 40px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.bento-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px var(--accent-glow);
  z-index: 2;
}

.span-1-col {
  grid-column: span 1;
}

.span-2-col {
  grid-column: span 2;
}

.span-3-col {
  grid-column: span 3;
}

.span-4-col {
  grid-column: span 4;
}

.span-1-row {
  grid-row: span 1;
}

.span-2-row {
  grid-row: span 2;
}

/* Bento Intro */
.bento-intro {
  background: var(--bg-subtle);
  justify-content: center;
  align-items: flex-start;
}

.bento-intro .bento-tag {
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.bento-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 24px;
  color: var(--text);
}

.bento-intro p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 32px;
  max-width: 400px;
}

/* Bento Stat */
.bento-stat {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.glow-bg {
  background: var(--accent-glow);
  border-color: transparent;
}

.stat-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Bento Case Study */
.bento-case {
  background: var(--card-bg);
  justify-content: space-between;
}

.bento-case h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  margin: 16px 0;
  color: var(--text);
}

.bento-case p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

.bento-link {
  margin-top: auto;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.3s;
}

.bento-link:hover {
  gap: 12px;
}

/* Bento Articles Snippet */
.bento-articles {
  justify-content: flex-start;
}

.article-list {
  list-style: none;
  margin-top: 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.article-list li {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.article-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.article-list a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  transition: color 0.3s;
}

.article-list a:hover {
  color: var(--accent);
}

.article-list span {
  font-size: 0.85rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

/* Marquee */
.bento-marquee {
  background: var(--accent);
  padding: 0;
  align-items: center;
  justify-content: center;
  height: 90px;
}

.marquee-wrapper {
  overflow: hidden;
  width: 100%;
  white-space: nowrap;
}

.marquee-content {
  display: inline-flex;
  gap: 60px;
  list-style: none;
  animation: slideLeft 20s linear infinite;
  align-items: center;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
  padding: 0;
  color: #fff;
}

@keyframes slideLeft {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* Bento CTA */
.bento-cta {
  background: linear-gradient(135deg, var(--bg-subtle) 0%, var(--card-bg) 100%);
  align-items: center;
  text-align: center;
  justify-content: center;
  gap: 20px;
}

.bento-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--text);
}

.bento-cta p {
  font-size: 1.1rem;
  color: var(--text-muted);
}

/* Responsive Bento */
@media (max-width: 1024px) {
  .bento-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .bento-marquee.span-4-col {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .bento-container {
    grid-template-columns: 1fr;
    padding: 100px 0 40px;
  }

  .span-2-col,
  .span-3-col,
  .span-4-col,
  .span-2-row {
    grid-column: span 1;
    grid-row: span 1;
  }

  .bento-item {
    padding: 32px 24px;
  }

  .stat-number {
    font-size: 3.5rem;
  }
}

/* ===== INDEX 2 SPECIFIC DESIGNS ===== */

/* Staggered Projects */
.staggered-projects {
  display: flex;
  flex-direction: column;
  gap: 80px;
  margin-top: 40px;
}

.stag-card {
  display: flex;
  align-items: center;
  gap: 60px;
}

.stag-card.reverse {
  flex-direction: row-reverse;
}

.stag-img {
  flex: 1;
  min-height: 400px;
  background-color: var(--accent-glow);
  background-image: linear-gradient(135deg, var(--bg-subtle), var(--accent-glow));
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.stag-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stag-content span {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}

.stag-content h3 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.8rem);
  line-height: 1.1;
  color: var(--text);
}

.stag-content p {
  color: var(--text-muted);
  text-align: justify;
  font-size: 1.1rem;
  line-height: 1.8;
}

.stag-content a {
  display: inline-flex;
  margin-top: 16px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  font-size: 1.1rem;
  transition: color 0.3s;
}

.stag-content a:hover {
  color: var(--accent);
}

/* Hover List Articles */
.hover-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
  margin-top: 40px;
}

.hover-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  transition: padding 0.3s ease, background 0.3s;
}

.hover-item:hover {
  background: var(--bg-subtle);
  padding: 32px 24px;
}

.hi-text {
  display: flex;
  align-items: center;
  gap: 32px;
}

.hi-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--accent);
}

.hi-text h3 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2rem);
  transition: color 0.3s;
  margin: 0;
}

.hover-item:hover .hi-text h3 {
  color: var(--accent);
}

.hi-meta {
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Giant Quote Testimonials */
.giant-quote-section {
  padding: 120px 0;
  text-align: center;
  background: var(--bg);
}

.giant-quote-wrapper {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  padding: 0 20px;
}

.gq-mark {
  display: block;
  font-family: var(--font-display);
  font-size: 8rem;
  line-height: 0;
  color: var(--accent-glow);
  margin-bottom: 40px;
}

.gq-text {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 40px;
}

.gq-author {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.gq-author strong {
  font-size: 1.2rem;
  color: var(--accent);
}

.gq-author span {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Geometric Split Contact */
.geo-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 600px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.geo-info {
  background: var(--bg-subtle);
  padding: 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid var(--border);
}

[dir="rtl"] .geo-info {
  border-right: none;
  border-left: 1px solid var(--border);
}

.geo-info h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 24px;
  color: var(--text);
}

.geo-info p {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.geo-details p {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}

.geo-form {
  padding: 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--card-bg);
}

.geo-form .form-group {
  margin-bottom: 24px;
}

.geo-form .form-group input,
.geo-form .form-group textarea {
  width: 100%;
  border-radius: 0;
  border: none;
  border-bottom: 2px solid var(--border);
  padding: 16px 0;
  background: transparent;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.3s;
}

.geo-form .form-group input:focus,
.geo-form .form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.geo-form .btn {
  border-radius: 0;
  padding: 20px;
  font-size: 1.1rem;
}

@media (max-width: 768px) {

  .stag-card,
  .stag-card.reverse {
    flex-direction: column;
    gap: 32px;
  }

  .stag-img {
    min-height: 250px;
    width: 100%;
  }

  .hover-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .hi-text {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .geo-contact-grid {
    grid-template-columns: 1fr;
  }

  .geo-info {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 50px 24px;
  }

  .geo-form {
    padding: 50px 24px;
  }
}

/* ===== EXTRA SECTIONS (NEWSLETTER & LOGOS) ===== */
.newsletter-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  background: var(--card-bg);
  padding: 60px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.nl-content {
  flex: 1;
}

.nl-content p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-top: 16px;
}

.nl-form {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nl-form form {
  display: flex;
  gap: 16px;
  width: 100%;
}

.nl-form input {
  flex: 1;
  padding: 16px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
}

.nl-form input:focus {
  outline: none;
  border-color: var(--accent);
}

.nl-disclaimer {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.featured-logos-section {
  padding: 60px 0;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.logos-title {
  text-align: center;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 32px;
  font-weight: 700;
}

.logos-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 60px;
}

.logo-item {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--text);
  opacity: 0.4;
  transition: opacity 0.3s, color 0.3s;
  cursor: default;
}

.logo-item:hover {
  opacity: 1;
  color: var(--accent);
}

@media (max-width: 768px) {
  .newsletter-wrapper {
    flex-direction: column;
    padding: 40px 24px;
    text-align: center;
  }

  .nl-form form {
    flex-direction: column;
  }

  .logos-grid {
    gap: 32px;
  }

  .logo-item {
    font-size: 1.4rem;
  }
}

/* ===== INDEX2 UNIQUE: MEDIA & SERVICES ===== */
.srv-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.srv-list li {
  background: var(--bg);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  border: 1px solid var(--border);
  color: var(--text);
}

.grid-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.media-highlight-card {
  display: flex;
  background: var(--text);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.mh-visual {
  flex: 2;
  background-color: var(--accent-glow);
  background-image: rgba(0, 0, 0, 0.295);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mh-visual .play-btn {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  transition: transform 0.3s;
}

.mh-visual .play-btn:hover {
  transform: scale(1.1);
}

.mh-content {
  flex: 1;
  padding: 80px 60px;
  background: black;
}

.mh-tag {
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.mh-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--bg);
  margin: 16px 0 24px;
  line-height: 1.1;
}

.mh-desc {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 32px;
}

/* ===== ABOUT UNIQUE: PROCESS & VALUES ===== */
.process-timeline {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  margin-top: 40px;
  position: relative;
}

.process-timeline::before {
  content: '';
  position: absolute;
  top: 30px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border);
  z-index: 1;
}

.pt-step {
  flex: 1;
  position: relative;
  z-index: 2;
}

.pt-num {
  width: 60px;
  height: 60px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 24px;
}

.pt-step h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: 12px;
  color: var(--text);
}

.pt-step p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 40px;
}

.value-card {
  padding: 40px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform 0.3s, box-shadow 0.3s;
}

.value-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px var(--accent-glow);
}

.vc-icon {
  font-size: 3rem;
  margin-bottom: 24px;
}

.value-card h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  margin-bottom: 16px;
  color: var(--text);
}

.value-card p {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .media-highlight-card {
    flex-direction: column;
  }

  .mh-visual {
    min-height: 300px;
  }

  .mh-content {
    padding: 40px 24px;
  }

  .process-timeline {
    flex-direction: column;
    gap: 40px;
  }

  .process-timeline::before {
    top: 0;
    bottom: 0;
    left: 30px;
    width: 1px;
    height: auto;
  }

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

/* ===== PORTFOLIO UNIQUE: INDUSTRY & MATRIX ===== */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 40px;
}

.ind-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  transition: transform 0.3s, border-color 0.3s;
}

.ind-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
}

.ind-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 24px;
}

.ind-card h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  margin-bottom: 16px;
  color: var(--text);
}

.ind-card p {
  font-size: 1.05rem;
  color: var(--text-muted);
  text-align: justify;
  line-height: 1.6;
}

.matrix-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 40px;
}

.mat-card {
  text-align: center;
  padding: 40px;
  background: var(--bg-subtle);
  border-radius: var(--radius-lg);
  border-top: 4px solid var(--accent);
}

.mat-percent {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 900;
  color: var(--text);
  line-height: 1;
  margin-bottom: 24px;
}

.mat-percent span {
  font-size: 2rem;
  color: var(--accent);
}

.mat-card h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin-bottom: 16px;
  color: var(--text);
}

.mat-card p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===== PROJECTS UNIQUE: ROI & METHODOLOGY ===== */
.roi-wrapper {
  display: flex;
  align-items: center;
  gap: 60px;
  background: #8a6e00;
  color: #fff;
  padding: 60px;
  border-radius: var(--radius-lg);
}

.roi-image {
  flex: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 100%;
  min-height: 400px;
}

.roi-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0%;
}

.roi-content {
  flex: 1.2;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.roi-text h2 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  margin-bottom: 16px;
  line-height: 1.1;
  color: #fff;
}

.roi-text h2 span {
  color: var(--bg);
}

.roi-text p {
  font-size: 1.15rem;
  text-align: justify;
  line-height: 1.8;
  opacity: 0.9;
}

.roi-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.roi-stat {
  background: rgba(0, 0, 0, 0.1);
  padding: 32px;
  border-radius: var(--radius);
  text-align: center;
}

.roi-stat h3 {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 8px;
  color: #fff;
}

.roi-stat p {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.8;
  color: #fff;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.meth-card {
  padding: 40px 32px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}

.meth-icon {
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 900;
  color: var(--accent-glow);
  position: absolute;
  top: -10px;
  right: 10px;
  line-height: 1;
  opacity: 0.3;
}

.meth-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: 16px;
  color: var(--text);
  position: relative;
  z-index: 2;
}

.meth-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  position: relative;
  z-index: 2;
}

/* ===== CONTACT UNIQUE: FAQ & AVAILABILITY ===== */
.faq-accordion {
  max-width: 800px;
  margin: 40px auto 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-toggle {
  display: none;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 32px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  background: var(--bg);
  transition: background 0.3s;
}

.faq-question:hover {
  background: var(--bg-subtle);
}

.faq-icon {
  font-size: 1.5rem;
  color: var(--accent);
  transition: transform 0.3s;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  background: var(--card-bg);
}

.faq-answer p {
  padding: 0 32px 24px;
  color: var(--text-muted);
  line-height: 1.8;
  margin: 0;
}

.faq-toggle:checked~.faq-question .faq-icon {
  transform: rotate(45deg);
}

.faq-toggle:checked~.faq-answer {
  max-height: 300px;
  padding-top: 16px;
}

.avail-wrapper {
  display: flex;
  align-items: center;
  gap: 60px;
}

.avail-text {
  flex: 1;
}

.avail-text .section-title {
  margin-bottom: 24px;
}

.avail-zones {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.zone-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 40px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-left: 4px solid var(--accent);
}

.zone-card h4 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--text);
  margin: 0;
}

.zone-card p {
  font-family: monospace;
  font-size: 1.2rem;
  color: var(--text-muted);
  margin: 0;
}

@media (max-width: 768px) {

  .industry-grid,
  .matrix-grid,
  .method-grid {
    grid-template-columns: 1fr;
  }

  .roi-wrapper {
    flex-direction: column;
    padding: 40px 24px;
    text-align: center;
  }

  .roi-image {
    min-height: 300px;
    width: 100%;
  }

  .roi-stats {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .roi-text h2 {
    font-size: 2.5rem;
  }

  .avail-wrapper {
    flex-direction: column;
  }

  .zone-card {
    flex-direction: column;
    text-align: center;
    gap: 8px;
    padding: 24px;
  }

  .faq-question {
    padding: 20px;
    font-size: 1.1rem;
  }
}

/* ===== AUTH & STATUS PAGES ===== */
.auth-section {
  min-height: calc(100vh - 70px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 20px 80px;
  position: relative;
  overflow: hidden;
  background-image: url('../images/pexels-lakshmi-priya-739225738-18658720.jpg');
  background-size: cover;
  background-position: center;
}

.auth-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.auth-card {
  width: 100%;
  max-width: 480px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  box-shadow: var(--shadow-lg);
  text-align: center;
  position: relative;
  z-index: 2;
}

.auth-card h2 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  margin-bottom: 8px;
}

.auth-card>p {
  color: var(--text-muted);
  margin-bottom: 32px;
  font-size: 0.95rem;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: left;
}

.auth-form label {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text);
}

.auth-form input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  outline: none;
  transition: border-color var(--transition);
}

.auth-form input:focus {
  border-color: var(--accent);
}

.auth-footer {
  margin-top: 24px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.auth-footer a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: underline;
}

.status-section {
  min-height: calc(100vh - 70px - 80px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 20px;
}

.status-code {
  font-family: var(--font-display);
  font-size: clamp(8rem, 15vw, 12rem);
  font-weight: 900;
  color: var(--accent-glow);
  line-height: 1;
  margin-bottom: -20px;
}

.status-section h2 {
  font-size: 2.5rem;
  margin-bottom: 16px;
  position: relative;
  z-index: 2;
}

.status-section p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 500px;
  margin: 0 auto 32px;
}

@media (max-width: 768px) {
  .auth-card {
    padding: 40px 24px;
  }
}

/* ===== BACK TO TOP ===== */
.back-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--accent);
  color: #ffffff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  text-decoration: none;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  border-radius: 0;
  transform: rotate(45deg);
  /* Diamond shape */
  border: 1px solid rgba(255, 255, 255, 0.2);
}

@media (max-width: 1024px) {
  :root {
    --container-padding: 2em;
  }
}

@media (max-width: 768px) {
  :root {
    --container-padding: 1.5em;
  }

  .nav-container {
    padding: 1em var(--container-padding);
  }
}

@media (max-width: 480px) {
  :root {
    --container-padding: 1.25em;
  }

  .back-top {
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
  }

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

.back-top span {
  transform: rotate(-45deg);
  /* Reset icon rotation */
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-top.show {
  opacity: 1;
  visibility: visible;
  bottom: 40px;
}

.back-top:hover {
  background: #ffffff;
  color: var(--accent) !important;
  transform: rotate(45deg) translateY(-5px) scale(1.1);
  box-shadow: 0 15px 40px var(--accent-glow);
}

/* ===== SCROLL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

.reveal-zoom {
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal-zoom.active {
  opacity: 1;
  transform: scale(1);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: all 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: all 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

[dir="rtl"] .reveal-left {
  transform: translateX(30px);
}

[dir="rtl"] .reveal-left.active {
  transform: translateX(0);
}

[dir="rtl"] .reveal-right {
  transform: translateX(-30px);
}

[dir="rtl"] .reveal-right.active {
  transform: translateX(0);
}

/* ===== PROFESSIONAL HERO (INDEX2.HTML) ===== */
.pro-hero {
  min-height: 90vh;
  display: flex !important;
  align-items: stretch !important;
  padding: 0 !important;
  background: var(--bg);
  overflow: hidden;
  position: relative;
}

.pro-hero-content {
  flex: 1.2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10% 8%;
  position: relative;
  z-index: 10;
}

.pro-hero-visual {
  flex: 1;
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.pro-hero-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--bg) 0%, transparent 40%);
}

.pro-hero-tag {
  font-size: 0.9rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
  display: block;
  font-weight: 700;
}

.pro-hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5.5rem);
  line-height: 1.1;
  margin-bottom: 32px;
  color: var(--text);
}

.pro-hero-title span {
  display: block;
  color: var(--accent);
  font-style: italic;
}

.pro-hero-desc {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 100%;
  text-align: justify;
  margin-bottom: 48px;
  line-height: 1.6;
}

@media (max-width: 1024px) {
  .pro-hero {
    flex-direction: column;
  }

  .pro-hero-visual {
    height: 50vh;
  }

  .pro-hero-visual::after {
    background: linear-gradient(to top, var(--bg) 0%, transparent 40%);
  }

  .pro-hero-content {
    padding: 60px 5%;
    text-align: center;
    align-items: center;
  }
}

/* ===== CASE STUDIES PAGES ===== */
.cs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.cs-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
}

.cs-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.cs-img {
  height: 250px;
  background-size: cover;
  background-position: center;
}

.cs-info {
  padding: 30px;
}

.cs-cat {
  display: inline-block;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 15px;
}

.cs-info h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--text);
}

.cs-info p {
  color: var(--text-muted);
  font-size: 0.95rem;
  text-align: justify;
  line-height: 1.6;
  margin-bottom: 25px;
}

.cs-stats {
  display: flex;
  gap: 30px;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

.cs-stat strong {
  display: block;
  font-size: 1.2rem;
  color: var(--accent);
}

.cs-stat span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.method-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.m-step {
  text-align: center;
}

.m-num {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--accent-glow);
  -webkit-text-stroke: 1px var(--accent);
  margin-bottom: 20px;
}

.m-step h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--text);
}

.m-step p {
  color: var(--text-muted);
  line-height: 1.6;
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.impact-card {
  padding: 40px;
  background: var(--bg-subtle);
  border-radius: var(--radius-lg);
  text-align: center;
  border: 1px solid var(--border);
}

.i-val {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 10px;
  font-weight: 900;
}

.i-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cs-cta-wrapper {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  padding: 80px;
  border-radius: var(--radius-lg * 2);
  text-align: center;
  color: #fff;
}

.cs-cta-content .section-title {
  color: #fff !important;
}

.cs-cta-content .section-title span {
  color: rgba(255, 255, 255, 0.7);
}

.cs-cta-content p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 40px;
  opacity: 0.9;
}

@media (max-width: 991px) {
  .cs-grid {
    grid-template-columns: 1fr;
  }

  .method-steps {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 576px) {
  .impact-grid {
    grid-template-columns: 1fr;
  }

  .cs-cta-wrapper {
    padding: 40px 20px;
  }
}