/* ============================================================
   ISLAM FARAG - PREMIUM HIGH-IMPACT ENGINEERING PORTFOLIO
   Theme: Crisp White, Deep Charcoal/Black, Vibrant Crimson Red
   ============================================================ */

:root {
  --bg-main: #ffffff;
  --bg-subtle: #f8fafc;
  --bg-card: #ffffff;
  --bg-dark: #0f172a;
  --bg-dark-card: #1e293b;
  
  --text-main: #0f172a;
  --text-muted: #334155;
  --text-light: #64748b;
  
  --accent-red: #df1320;
  --accent-red-hover: #b90d17;
  --accent-red-soft: rgba(223, 19, 32, 0.08);
  --accent-red-glow: rgba(223, 19, 32, 0.28);
  --accent-red-border: rgba(223, 19, 32, 0.2);
  
  --accent-green: #10b981;
  --accent-green-soft: rgba(16, 185, 129, 0.1);

  --border-light: #e2e8f0;
  --border-hover: rgba(223, 19, 32, 0.45);
  
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 6px 18px -3px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 16px 36px -8px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 20px 35px -8px rgba(223, 19, 32, 0.16);
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;
  
  --font-en: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-ar: 'Cairo', 'Inter', -apple-system, sans-serif;
  
  --transition: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  --container: 1200px;
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-en);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

[dir="rtl"] body {
  font-family: var(--font-ar);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

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

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

/* Floating WhatsApp Quick Action Button */
.floating-wa-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: #25d366;
  color: #ffffff;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 0.95rem;
  box-shadow: 0 10px 25px -4px rgba(37, 211, 102, 0.5);
  transition: var(--transition);
  animation: pulse-wa 2.5s infinite;
}

[dir="rtl"] .floating-wa-btn {
  right: auto;
  left: 2rem;
}

.floating-wa-btn:hover {
  background: #1eb956;
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 14px 30px -4px rgba(37, 211, 102, 0.65);
  color: #ffffff;
}

@keyframes pulse-wa {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); }
  70% { box-shadow: 0 0 0 12px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Header & Navigation */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition);
}

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

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

/* Fixed Brand Logo & Typography to prevent overlap */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 1.15rem; /* Generous spacing prevents any overlapping */
  text-decoration: none;
}

.brand-icon-3d {
  width: 44px;
  height: 44px;
  min-width: 44px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 3px 8px rgba(223, 19, 32, 0.22));
  transition: transform var(--transition);
}

.brand:hover .brand-icon-3d {
  transform: rotate(-6deg) scale(1.06);
}

.brand-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.brand-title {
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: -0.015em;
  color: var(--text-main);
  line-height: 1.15;
}

.brand-tagline {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--accent-red);
  letter-spacing: 0.05em;
  margin-top: 2px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.65rem;
  list-style: none;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-muted);
  padding: 0.35rem 0;
  position: relative;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-red);
  transition: width var(--transition);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.lang-switch-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  font-weight: 800;
  font-size: 0.88rem;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
}

.lang-switch-btn:hover {
  border-color: var(--accent-red);
  color: var(--accent-red);
  background: var(--accent-red-soft);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.45rem;
  color: var(--text-main);
  cursor: pointer;
  padding: 0.5rem;
}

/* Reusable Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-size: 0.95rem;
  font-weight: 800;
  padding: 0.8rem 1.65rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent-red);
  color: #ffffff;
  box-shadow: 0 6px 18px var(--accent-red-glow);
}

.btn-primary:hover {
  background: var(--accent-red-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px var(--accent-red-glow);
  color: #ffffff;
}

.btn-outline {
  background: #ffffff;
  color: var(--text-main);
  border-color: var(--border-light);
}

.btn-outline:hover {
  border-color: var(--accent-red);
  color: var(--accent-red);
  background: var(--accent-red-soft);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: #25d366;
  color: #ffffff;
}

.btn-whatsapp:hover {
  background: #1eb956;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(37, 211, 102, 0.4);
}

.btn-sm {
  padding: 0.45rem 0.95rem;
  font-size: 0.85rem;
}

/* Section Common Structure */
.section {
  padding: 5.5rem 0;
  position: relative;
}

.section-head {
  text-align: center;
  max-width: 740px;
  margin: 0 auto 3.25rem;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-red);
  background: var(--accent-red-soft);
  border: 1px solid var(--accent-red-border);
  padding: 0.35rem 0.95rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.85rem;
}

.section-title {
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  font-weight: 900;
  letter-spacing: -0.025em;
  color: var(--text-main);
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.section-sub {
  font-size: 1.08rem;
  color: var(--text-muted);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  padding: 4.5rem 0 5.5rem;
  background: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
  border-bottom: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 3.5rem;
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--accent-red-soft);
  border: 1px solid var(--accent-red-border);
  color: var(--accent-red);
  font-size: 0.88rem;
  font-weight: 800;
  padding: 0.4rem 1.1rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-red);
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.9); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.5; }
  100% { transform: scale(0.9); opacity: 1; }
}

.hero-title {
  font-size: clamp(2.6rem, 5vw, 4.1rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--text-main);
  margin-bottom: 0.85rem;
}

.hero-title .highlight-red {
  color: var(--accent-red);
  position: relative;
}

.hero-sub {
  font-size: clamp(1.2rem, 2.2vw, 1.45rem);
  font-weight: 800;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.hero-desc {
  font-size: 1.125rem;
  color: var(--text-light);
  line-height: 1.75;
  margin-bottom: 2.25rem;
  max-width: 580px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 2.25rem;
}

/* Guarantee Trust Bar (Turnitin, No AI, Full Mark) */
.hero-guarantee-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border-light);
}

.guarantee-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #ffffff;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.guarantee-item:hover {
  border-color: var(--accent-red);
  transform: translateY(-2px);
}

.guarantee-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  padding: 4px;
}

.guarantee-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.guarantee-text strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
}

.guarantee-text span {
  font-size: 0.75rem;
  color: var(--text-light);
  font-weight: 600;
}

/* Hero Media Portrait */
.hero-portrait-card {
  position: relative;
  max-width: 430px;
  margin: 0 auto;
}

.hero-img-frame {
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 4px solid #ffffff;
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.15);
  background: #ffffff;
  position: relative;
}

.hero-img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform var(--transition-smooth);
}

.hero-portrait-card:hover .hero-img-frame img {
  transform: scale(1.03);
}

/* Official Turnitin & Zero AI Badges on Hero Image */
.floating-badge {
  position: absolute;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 0.75rem 1.15rem;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 2;
  transition: transform var(--transition);
}

.floating-badge:hover {
  transform: translateY(-4px);
}

.badge-turnitin {
  top: 1.5rem;
  right: -1.25rem;
}

.badge-no-ai {
  bottom: 2rem;
  left: -1.25rem;
}

[dir="rtl"] .badge-turnitin {
  right: auto;
  left: -1.25rem;
}

[dir="rtl"] .badge-no-ai {
  left: auto;
  right: -1.25rem;
}

.badge-brand-icon {
  width: 38px;
  height: 38px;
  object-fit: contain;
  flex-shrink: 0;
}

.badge-info strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.15;
}

.badge-info span {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-red);
}

/* ============================================================
   STATS BANNER (ANIMATED COUNTERS)
   ============================================================ */
.stats-banner {
  background: #ffffff;
  padding: 2.75rem 0;
  border-bottom: 1px solid var(--border-light);
}

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

.stat-item {
  text-align: center;
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 20%;
  right: 0;
  height: 60%;
  width: 1px;
  background: var(--border-light);
}

[dir="rtl"] .stat-item:not(:last-child)::after {
  right: auto;
  left: 0;
}

.stat-num-row {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 2px;
  margin-bottom: 0.25rem;
}

.stat-num {
  font-size: clamp(2.3rem, 3.8vw, 3.2rem);
  font-weight: 900;
  color: var(--text-main);
  letter-spacing: -0.025em;
  line-height: 1;
}

.stat-plus {
  font-size: 2rem;
  font-weight: 900;
  color: var(--accent-red);
}

.stat-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-muted);
}

/* ============================================================
   STUDENT GRADES & TESTIMONIALS SECTION
   ============================================================ */
.testimonials-section {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.75rem;
}

.testimonial-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

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

.grade-img-box {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: #0f172a;
}

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

.testimonial-card:hover .grade-img-box img {
  transform: scale(1.05);
}

.grade-tag-pill {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: rgba(16, 185, 129, 0.95);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  box-shadow: var(--shadow-sm);
}

[dir="rtl"] .grade-tag-pill {
  left: auto;
  right: 0.75rem;
}

.testimonial-caption {
  padding: 1.15rem 1.25rem;
  text-align: center;
}

.testimonial-caption strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text-main);
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.testimonial-caption span {
  font-size: 0.8rem;
  color: var(--text-light);
  font-weight: 600;
}

/* ============================================================
   PROJECTS SECTION (ACCURATELY MATCHED PDF DELIVERABLES)
   ============================================================ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.25rem;
}

.project-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  position: relative;
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-red);
  box-shadow: var(--shadow-hover);
}

.project-media-box {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--bg-subtle);
}

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

.project-card:hover .project-media-box img {
  transform: scale(1.08);
}

.project-hover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.78);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  opacity: 0;
  transition: opacity var(--transition);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.95rem;
}

.project-card:hover .project-hover-overlay {
  opacity: 1;
}

.overlay-pdf-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #ffffff;
}

.project-tag-badge {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  background: #ffffff;
  border: 1px solid var(--border-light);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  color: var(--accent-red);
  box-shadow: var(--shadow-sm);
  z-index: 2;
}

[dir="rtl"] .project-tag-badge {
  left: auto;
  right: 0.85rem;
}

.project-content {
  padding: 1.65rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-content h3 {
  font-size: 1.18rem;
  font-weight: 900;
  margin-bottom: 0.6rem;
  color: var(--text-main);
  line-height: 1.35;
}

.project-content p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.35rem;
  flex-grow: 1;
}

.project-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}

.open-pdf-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--accent-red);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.open-pdf-btn:hover {
  text-decoration: underline;
}

/* ============================================================
   MODAL: FULL MULTI-PAGE PDF DOCUMENT VIEWER
   ============================================================ */
.pdf-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.pdf-modal.active {
  display: flex;
  animation: modal-fade 0.3s ease;
}

@keyframes modal-fade {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.modal-dialog {
  background: #ffffff;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 980px;
  height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 1.75rem;
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-subtle);
}

.modal-title-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.modal-title-box i {
  color: var(--accent-red);
  font-size: 1.4rem;
}

.modal-title-box h3 {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--text-main);
}

.modal-close-btn {
  background: none;
  border: none;
  font-size: 1.45rem;
  color: var(--text-light);
  cursor: pointer;
  transition: color var(--transition);
  padding: 0.4rem;
}

.modal-close-btn:hover {
  color: var(--accent-red);
}

.modal-body {
  padding: 0;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  background: #525659;
  position: relative;
}

.modal-pdf-frame {
  width: 100%;
  height: 100%;
  border: none;
  background: #525659;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.75rem;
  border-top: 1px solid var(--border-light);
  background: #ffffff;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ============================================================
   MODAL: TESTIMONIAL IMAGE VIEWER (FULL PREVIEW)
   ============================================================ */
.img-modal {
  position: fixed;
  inset: 0;
  z-index: 2100;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.img-modal.active {
  display: flex;
  animation: modal-fade 0.3s ease;
}

.img-modal-content {
  position: relative;
  max-width: 550px;
  max-height: 90vh;
  background: #ffffff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  padding: 0.5rem;
}

.img-modal-content img {
  width: 100%;
  max-height: calc(90vh - 2rem);
  object-fit: contain;
  border-radius: var(--radius-md);
}

.img-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(15, 23, 42, 0.85);
  color: #ffffff;
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  cursor: pointer;
  z-index: 10;
}

/* ============================================================
   ENGINEERING SOFTWARE & TOOLS CATALOG (COMPREHENSIVE)
   ============================================================ */
.software-categories {
  display: flex;
  flex-direction: column;
  gap: 2.75rem;
}

.software-group {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition);
}

.software-group:hover {
  border-color: var(--accent-red);
}

.software-group-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-light);
}

.software-group-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--accent-red-soft);
  color: var(--accent-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.software-group-header h3 {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--text-main);
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}

.tool-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.tool-card:hover {
  background: #ffffff;
  border-color: var(--accent-red);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.tool-icon {
  font-size: 1.3rem;
  color: var(--accent-red);
  width: 32px;
  display: flex;
  justify-content: center;
}

.tool-info strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
}

.tool-info span {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-light);
}

/* Reference Citation Styles Banner */
.citation-styles-banner {
  background: var(--bg-subtle);
  border: 1px dashed var(--accent-red-border);
  border-radius: var(--radius-md);
  padding: 1.5rem 2rem;
  margin-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.citation-text h4 {
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.citation-text p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.citation-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.citation-badge {
  background: #ffffff;
  border: 1px solid var(--border-light);
  color: var(--text-main);
  font-weight: 800;
  font-size: 0.85rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
}

/* ============================================================
   SERVICES SECTION (HIGH-IMPACT DELIVERABLES)
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
}

.service-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  border-color: var(--accent-red);
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.service-icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--accent-red-soft);
  color: var(--accent-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.35rem;
  border: 1px solid var(--accent-red-border);
}

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 900;
  margin-bottom: 0.75rem;
  color: var(--text-main);
}

.service-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.35rem;
  flex-grow: 1;
}

.service-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.6rem;
}

.service-points li {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.service-points li i {
  color: var(--accent-red);
  font-size: 0.8rem;
}

/* ============================================================
   ABOUT ME SECTION
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: center;
  gap: 3.5rem;
}

.about-photo-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
}

.about-photo-frame img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
}

.about-info h3 {
  font-size: 1.45rem;
  font-weight: 900;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.about-info p {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1.35rem;
}

.quote-highlight {
  background: var(--bg-subtle);
  border-left: 4px solid var(--accent-red);
  padding: 1.25rem 1.6rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 1.5rem 0;
}

[dir="rtl"] .quote-highlight {
  border-left: none;
  border-right: 4px solid var(--accent-red);
  border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.quote-highlight p {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--text-main);
  font-style: italic;
  margin-bottom: 0.35rem;
}

.quote-highlight span {
  font-size: 0.88rem;
  color: var(--accent-red);
  font-weight: 700;
}

/* ============================================================
   EXPERIENCE SECTION (TIMELINE)
   ============================================================ */
.timeline {
  max-width: 860px;
  margin: 0 auto;
  border-left: 2px solid var(--border-light);
  padding-left: 2.25rem;
}

[dir="rtl"] .timeline {
  border-left: none;
  border-right: 2px solid var(--border-light);
  padding-left: 0;
  padding-right: 2.25rem;
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: calc(-2.25rem - 7px);
  top: 5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid var(--accent-red);
  box-shadow: 0 0 0 3px var(--accent-red-soft);
}

[dir="rtl"] .timeline-item::before {
  left: auto;
  right: calc(-2.25rem - 7px);
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.timeline-header h3 {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--text-main);
}

.timeline-tag {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--accent-red);
  background: var(--accent-red-soft);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
}

.timeline-company {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 0.85rem;
}

.timeline-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.timeline-list li {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
  position: relative;
  padding-left: 1.35rem;
}

[dir="rtl"] .timeline-list li {
  padding-left: 0;
  padding-right: 1.35rem;
}

.timeline-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent-red);
  font-weight: 800;
}

[dir="rtl"] .timeline-list li::before {
  left: auto;
  right: 0;
  content: '◂';
}

/* ============================================================
   CAREER OBJECTIVE
   ============================================================ */
.objective-banner {
  background: var(--bg-dark);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 3.5rem 3rem;
  text-align: center;
  max-width: 960px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.objective-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-red), #ef4444);
}

.objective-banner p {
  font-size: clamp(1.2rem, 2.2vw, 1.45rem);
  line-height: 1.8;
  color: #f1f5f9;
  margin-bottom: 2rem;
  font-weight: 600;
}

.objective-features {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.obj-feat-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #cbd5e1;
}

.obj-feat-item i {
  color: var(--accent-red);
}

/* ============================================================
   CONTACT SECTION & WHATSAPP USERNAME INTEGRATION
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3.25rem;
  align-items: flex-start;
}

.contact-details-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2.25rem;
}

.contact-details-box h3 {
  font-size: 1.4rem;
  font-weight: 900;
  margin-bottom: 0.85rem;
}

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

.contact-items-list {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  margin-bottom: 2rem;
}

.contact-row-item {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  padding: 0.95rem 1.15rem;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.contact-row-item:hover {
  border-color: var(--accent-red);
}

.contact-item-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--accent-red-soft);
  color: var(--accent-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-item-text strong {
  display: block;
  font-size: 0.82rem;
  color: var(--text-light);
  text-transform: uppercase;
}

.contact-item-text span {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-main);
}

/* Official Channels: Strictly YouTube and WhatsApp */
.official-channels-grid {
  display: flex;
  gap: 1rem;
}

.official-channel-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: 0.92rem;
  border: 1px solid var(--border-light);
  background: #ffffff;
  color: var(--text-main);
  transition: var(--transition);
}

.official-channel-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.official-channel-btn.btn-yt:hover {
  border-color: #ff0000;
  color: #ff0000;
  background: rgba(255, 0, 0, 0.05);
}

.official-channel-btn.btn-wa-channel:hover {
  border-color: #25d366;
  color: #128c7e;
  background: rgba(37, 211, 102, 0.08);
}

/* Form */
.contact-form-panel {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}

.form-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text-main);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1.1rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-main);
  background: var(--bg-subtle);
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-red);
  background: #ffffff;
  box-shadow: 0 0 0 3px var(--accent-red-soft);
}

.form-group textarea {
  min-height: 130px;
  resize: vertical;
}

.status-alert {
  display: none;
  margin-top: 1rem;
  padding: 0.85rem 1.15rem;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 700;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #065f46;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--bg-dark);
  color: #ffffff;
  padding: 4.5rem 0 2rem;
  border-top: 3px solid var(--accent-red);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.75rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 2rem;
}

.footer-brand h4 {
  font-size: 1.35rem;
  font-weight: 900;
}

.footer-brand p {
  font-size: 0.9rem;
  color: #94a3b8;
  margin-top: 0.35rem;
}

.footer-nav {
  display: flex;
  gap: 1.65rem;
  list-style: none;
}

.footer-nav a {
  font-size: 0.92rem;
  font-weight: 700;
  color: #cbd5e1;
}

.footer-nav a:hover {
  color: var(--accent-red);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.88rem;
  color: #94a3b8;
}

.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #ffffff;
  font-weight: 700;
}

.back-to-top:hover {
  color: var(--accent-red);
}

/* ============================================================
   RESPONSIVENESS (MOBILE & TABLET)
   ============================================================ */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }
  .hero-pill-badge, .hero-cta {
    justify-content: center;
  }
  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-guarantee-bar {
    grid-template-columns: 1fr;
  }
  .badge-turnitin { right: 0.5rem; top: 0.5rem; }
  .badge-no-ai { left: 0.5rem; bottom: 0.5rem; }
  [dir="rtl"] .badge-turnitin { left: 0.5rem; }
  [dir="rtl"] .badge-no-ai { right: 0.5rem; }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-grid, .contact-grid {
    grid-template-columns: 1fr;
  }
  .about-photo-frame {
    max-width: 440px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .mobile-toggle {
    display: block;
  }
  .nav-menu {
    position: fixed;
    top: 82px;
    left: 0;
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid var(--border-light);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.25rem;
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
  }
  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .projects-grid, .services-grid, .stats-grid, .form-split {
    grid-template-columns: 1fr;
  }
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-item::after {
    display: none !important;
  }
  .objective-banner {
    padding: 2.5rem 1.5rem;
  }
  .floating-wa-btn {
    bottom: 1.25rem;
    right: 1.25rem;
    padding: 0.75rem 1.15rem;
    font-size: 0.88rem;
  }
  [dir="rtl"] .floating-wa-btn {
    left: 1.25rem;
  }
  .modal-dialog {
    height: 94vh;
  }
}

/* Refined spacing, readable document previews and responsive navigation. */
html { scroll-padding-top: 116px; }
.nav-container { max-width: 1440px; min-height: 96px; height: auto; padding-block: 14px; gap: 28px; }
.brand { flex: 0 0 auto; gap: 16px; padding-inline-end: 24px; border-inline-end: 1px solid var(--border-light); }
.brand-icon-3d { width: 48px; height: 48px; min-width: 48px; filter: none; }
.brand-info { gap: 5px; }
.brand-title { line-height: 1.5; font-size: 1.22rem; white-space: nowrap; }
.brand-tagline { margin: 0; line-height: 1.6; letter-spacing: 0; font-size: .72rem; font-weight: 600; color: var(--text-light); white-space: nowrap; }
.nav-container > nav { flex: 1; min-width: 0; }
.nav-menu { justify-content: center; gap: clamp(12px, 1.3vw, 22px); }
.nav-link { white-space: nowrap; font-size: .83rem; padding-block: 10px; }
.nav-actions { flex-shrink: 0; gap: 12px; }
.lang-switch-btn { min-height: 44px; padding: 8px 14px; font-family: inherit; }
.nav-actions .btn-sm { padding: 10px 16px; font-size: .8rem; white-space: nowrap; }
.hero { background: radial-gradient(ellipse at 12% 20%, #fff1f2 0, transparent 48%), linear-gradient(180deg,#fafbfe,#fff); padding-block: 80px; }
.hero-grid { gap: 64px; }
.hero-title { font-size: clamp(2.3rem, 4.3vw, 3.8rem); line-height: 1.5; letter-spacing: -.025em; }
.hero-sub { line-height: 1.9; }
.hero-desc { line-height: 2; color: #536174; }
.hero-cta { gap: 12px; }
.hero-cta .btn { font-size: .86rem; padding: 13px 18px; }
.hero-portrait-card { box-shadow: 0 24px 70px -30px rgba(15,23,42,.25); }
.section { padding-block: 88px; }
.section-head { max-width: 780px; margin-inline: auto; margin-bottom: 42px; }
.section-title { line-height: 1.6; font-size: clamp(1.6rem,3vw,2.35rem); }
.section-sub { line-height: 1.9; }
#projects { background: #f6f8fb; border-block: 1px solid #e9edf3; }
.projects-grid { gap: 28px; align-items: stretch; }
.project-card { display: flex; flex-direction: column; border: 1px solid #e1e7ef; box-shadow: 0 4px 18px rgba(15,23,42,.035); }
.project-media-box { height: 310px; padding: 24px 28px 0; background: #e9edf3; border-bottom: 1px solid #e1e7ef; }
.project-media-box img { width: 100%; height: 100%; object-fit: contain; object-position: center top; filter: drop-shadow(0 4px 8px rgba(15,23,42,.12)); }
.project-card:hover .project-media-box img { transform: none; }
.project-tag-badge { top: auto; bottom: 12px; inset-inline: 12px; width: fit-content; max-width: calc(100% - 24px); font-size: .69rem; padding: 5px 10px; background: #fff; color: #334155; border: 1px solid #e2e8f0; }
.project-content { flex: 1; display: flex; flex-direction: column; padding: 25px; }
.project-content h3 { font-size: 1.04rem; line-height: 1.8; }
.project-content p { line-height: 1.9; font-size: .87rem; margin-bottom: 24px; }
.project-meta-row { margin-top: auto; }
.open-pdf-btn { font-family: inherit; text-align: start; line-height: 1.7; }
.floating-wa-btn { animation: none; box-shadow: 0 8px 24px rgba(15,23,42,.16); }
a:focus-visible, button:focus-visible { outline: 3px solid #df1320; outline-offset: 5px; }
@media (max-width: 1240px) {
 .nav-container { gap: 20px; }
 .brand { padding-inline-end: 0; border: 0; }
 .nav-actions .d-none-mobile { display: none; }
}
@media (max-width: 1080px) {
 .nav-container { min-height: 88px; }
 .mobile-toggle { display: block; min-width: 44px; min-height: 44px; }
 .nav-container > nav { flex: 0; margin-inline-start: auto; }
 .nav-menu { position: absolute; top: 100%; inset-inline: 0; width: 100%; max-height: calc(100dvh - 88px); overflow-y: auto; background: white; flex-direction: column; padding: 22px; gap: 5px; border-bottom: 1px solid var(--border-light); box-shadow: var(--shadow-md); transform: translateY(-12px); opacity: 0; visibility: hidden; pointer-events: none; }
 .nav-menu.active { transform: none; opacity: 1; visibility: visible; pointer-events: auto; }
 .nav-link { display: block; padding: 10px 24px; font-size: .94rem; }
}
@media (max-width: 768px) {
 .nav-container { padding-inline: 20px; gap: 12px; min-height: 84px; }
 .brand { gap: 11px; }
 .brand-icon-3d { width: 40px; height: 40px; min-width: 40px; }
 .brand-title { font-size: 1.05rem; }
 .brand-tagline { font-size: .65rem; }
 .nav-actions { gap: 8px; }
 .lang-switch-btn { font-size: .75rem; padding-inline: 10px; gap: 6px; }
 .hero { padding-block: 48px; }
 .hero-grid { gap: 40px; }
 .hero-cta .btn { width: 100%; justify-content: center; }
 .section { padding-block: 58px; }
 .project-media-box { height: 320px; }
 .section-title { line-height: 1.7; }
 .floating-wa-btn span { display: none; }
 .floating-wa-btn { width: 52px; height: 52px; justify-content: center; padding: 0; }
}
@media (prefers-reduced-motion: reduce) {
 html { scroll-behavior: auto; }
 *, *::before, *::after { animation: none !important; transition: none !important; }
}
.hero-grid > *, .about-grid > *, .contact-grid > * { min-width: 0; }
.footer-nav { flex-wrap: wrap; }
@media (max-width: 1024px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 768px) {
 .hero-portrait-card, .hero-portrait-col, .hero-img-frame { max-width: 100%; }
 .hero-guarantee-bar { min-width: 0; }
 .hero-pill-badge { max-width: 100%; }
 .hero-title { overflow-wrap: anywhere; }
 .hero-sub { font-size: 1.05rem; }
 .footer-nav { gap: 12px 20px; }
}
@media (max-width: 480px) {
 .tools-grid { grid-template-columns: minmax(0,1fr); }
 .tool-card, .tool-info { min-width: 0; }
 .tool-info strong { overflow-wrap: anywhere; }
}

.software-logo { width:36px; height:36px; object-fit:contain; }
.tool-icon:has(.software-logo) { background:#fff; }
.document-count { font-family:Inter,sans-serif; font-size:.72rem; color:var(--text-light); margin-bottom:10px; }
.project-tag-badge { line-height:1.7; }

:root { --accent-red:#b18434; --accent-red-hover:#8f6724; --accent-red-soft:#b1843414; --accent-red-border:#b1843440; --accent-red-glow:#b1843430; --radius-lg:16px; }
.hero { background:radial-gradient(ellipse at 15% 30%,#243b5b,transparent 55%),#101e32; color:#fff; padding-block:100px; }
.hero-title,.hero-sub { color:#fff; }
.hero-title .highlight-red { color:#e5bc6d; }
.hero-desc { color:#c3cfdf; }
.hero-pill-badge { color:#f3d79e; background:#ffffff0a; border-color:#ffffff26; }
.hero-guarantee-bar { border-color:#ffffff26; }
.guarantee-item { background:#fff; border-radius:12px; padding:12px; }
.hero .btn-outline { color:white; border-color:#ffffff50; }
.hero-portrait-card { border:1px solid #ffffff30; }
#projects { background:#f4f2ed; }
.projects-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
.project-card { display:grid; grid-template-columns:190px minmax(0,1fr); border-radius:16px; }
.project-media-box { height:100%; min-height:340px; padding:20px 14px 50px; border:0; background:#e4e8ed; }
.project-content { padding:25px; }
.project-tag-badge { font-size:.62rem; inset-inline:8px; max-width:calc(100% - 16px); }
.project-content h3 { font-size:1.08rem; }
.badge-tag { border-radius:6px; }
.footer { background:#101e32; }
@media(max-width:1050px) { .project-card { display:flex; } .project-media-box { height:300px; min-height:0; } }
@media(max-width:768px) { .projects-grid { grid-template-columns:minmax(0,1fr); } .hero { padding-block:56px; } }
.hero .btn-outline { background:transparent; color:#fff; border-color:#ffffff60; }
.hero .btn-outline:hover { background:#ffffff12; }
.project-media-box { aspect-ratio:auto; min-width:0; }
@media(min-width:1051px) {
 .project-media-box { height:auto; min-height:360px; }
 .project-media-box img { height:300px; }
 .project-content { min-width:0; }
}
