/* ==========================================================================
   ALSTECH - Olagoke Abdulqudus Professional Portfolio Architecture
   Desktop & Mobile Responsive Design System with Rich Motion Animations
   Brand Colors:
   Primary: #070161 (Royal Deep Navy)
   Base: #FFFFFF (Crisp Pure White)
   Accent: #D00013 (Crimson Red Highlight)
   ========================================================================== */

:root {
  /* Color System */
  --primary: #070161;
  --primary-dark: #040040;
  --primary-light: #181096;
  --primary-soft: rgba(7, 1, 97, 0.04);
  --primary-glow: rgba(7, 1, 97, 0.12);

  --accent: #D00013;
  --accent-hover: #B00010;
  --accent-soft: rgba(208, 0, 19, 0.06);
  --accent-glow: rgba(208, 0, 19, 0.2);

  --bg-main: #FFFFFF;
  --bg-surface: #F8FAFC;
  --bg-card: #FFFFFF;

  --text-main: #0F172A;
  --text-muted: #475569;
  --text-light: #64748B;
  --text-white: #FFFFFF;

  --border-light: rgba(7, 1, 97, 0.12);
  --border-accent: rgba(208, 0, 19, 0.25);

  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Desktop Shadows & Borders */
  --shadow-sm: 0 2px 6px rgba(7, 1, 97, 0.04);
  --shadow-md: 0 6px 18px rgba(7, 1, 97, 0.06);
  --shadow-lg: 0 12px 28px rgba(7, 1, 97, 0.09);
  --shadow-hover: 0 10px 24px rgba(7, 1, 97, 0.12);
  --shadow-accent-glow: 0 6px 18px rgba(208, 0, 19, 0.25);

  /* Radii & Transitions */
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 9999px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Accessibility Focus Ring */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

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

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

ul {
  list-style: none;
}

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

/* Desktop Centered Container */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Desktop Vertical Section Padding */
.section-padding {
  padding: 3.5rem 0;
}

.bg-surface {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

/* Ambient Glows */
.ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  z-index: -1;
  pointer-events: none;
  opacity: 0.25;
}

.glow-1 {
  width: 380px;
  height: 380px;
  background: var(--primary-glow);
  top: -50px;
  right: -50px;
}

.glow-2 {
  width: 320px;
  height: 320px;
  background: var(--accent-soft);
  top: 500px;
  left: -50px;
}

/* STAR DIVIDER STYLING & ANIMATIONS */
.star-divider-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin: 0.4rem auto 1.25rem auto;
  max-width: 260px;
  width: 100%;
}

.divider-line {
  flex-grow: 1;
  height: 1px;
  background-color: rgba(7, 1, 97, 0.16);
}

.star-divider-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--accent);
  stroke-width: 2;
  transition: transform 0.4s ease;
}

.star-divider-container:hover .star-divider-icon {
  transform: rotate(180deg) scale(1.2);
}

/* SECTION TAG & DESKTOP HEADER TYPOGRAPHY */
.section-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.section-title {
  font-size: clamp(1.85rem, 3.5vw, 2.5rem);
  color: var(--primary);
  margin-bottom: 0.25rem;
  letter-spacing: -0.5px;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 1.75rem auto;
}

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

.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 60%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.highlight-navy {
  color: var(--primary);
}

/* Desktop Buttons System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-accent {
  background-color: var(--accent);
  color: var(--text-white);
  box-shadow: var(--shadow-sm);
}

.btn-accent:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-accent-glow);
}

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

.btn-outline-navy:hover {
  background-color: var(--primary);
  color: var(--text-white);
  transform: translateY(-2px);
}

.btn-sm {
  font-size: 0.825rem;
  padding: 0.5rem 1.1rem;
}

.btn-lg {
  font-size: 1rem;
  padding: 0.8rem 1.85rem;
}

.btn-block {
  width: 100%;
}

.shadow-glow {
  box-shadow: var(--shadow-accent-glow);
}

/* DESKTOP HEADER & NAVBAR */
.navbar-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 0.9rem 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition);
}

.navbar-header.scrolled {
  padding: 0.7rem 0;
  box-shadow: var(--shadow-sm);
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--primary);
}

.brand-logo-img {
  width: 34px;
  height: 34px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border-light);
}

.accent-dot {
  color: var(--accent);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-muted);
  position: relative;
}

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

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

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

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

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
  padding: 4px;
  z-index: 1001;
}

.mobile-toggle .bar {
  width: 22px;
  height: 2px;
  background-color: var(--primary);
  border-radius: 2px;
  transition: var(--transition);
}

.mobile-close-btn {
  display: none;
}

/* HERO SECTION - TYPING ANIMATION & DYNAMIC SLIDES */
.hero-section {
  padding-top: 7.25rem;
  padding-bottom: 3rem;
  position: relative;
  overflow: hidden;
}

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

.hero-content {
  text-align: left;
}

.hero-title {
  font-size: clamp(2.25rem, 4vw, 3rem);
  line-height: 1.15;
  margin-bottom: 0.85rem;
  letter-spacing: -0.5px;
  text-align: left;
  min-height: 2.4em;
}

/* Typing Cursor Effect */
.typing-cursor {
  display: inline-block;
  color: var(--accent);
  font-weight: 300;
  margin-left: 2px;
  animation: blinkCursor 0.85s infinite;
}

@keyframes blinkCursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 1.6rem;
  line-height: 1.6;
  max-width: 540px;
  text-align: left;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-light);
  justify-content: flex-start;
}

.stat-card {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
}

.stat-number-text {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent);
}

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

.stat-divider {
  width: 1px;
  height: 30px;
  background-color: var(--border-light);
}

/* DESKTOP PROFILE VISUAL CARD & FLOATING ANIMATIONS */
.hero-visual {
  position: relative;
  width: 100%;
}

.profile-card-wrapper {
  position: relative;
  z-index: 1;
  max-width: 380px;
  margin: 0 auto;
}

.profile-card-glow {
  position: absolute;
  inset: -6px;
  background: linear-gradient(135deg, var(--primary-glow), var(--accent-glow));
  border-radius: var(--radius-lg);
  filter: blur(14px);
  z-index: -1;
  opacity: 0.4;
}

.pulse-glow {
  animation: pulseGlow 4s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.35; transform: scale(1); }
  50% { opacity: 0.65; transform: scale(1.03); }
}

.profile-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  padding: 1rem;
  position: relative;
}

.profile-image-container {
  position: relative;
  border-radius: calc(var(--radius-lg) - 4px);
  overflow: hidden;
  aspect-ratio: 4 / 4.5;
  background-color: var(--bg-surface);
}

.profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.5s ease;
}

.profile-card:hover .profile-img {
  transform: scale(1.02);
}

.profile-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 65%, rgba(7, 1, 97, 0.65) 100%);
}

.floating-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  border: 1px solid rgba(255, 255, 255, 0.9);
  z-index: 2;
}

.float-anim {
  animation: floatBadge 3.2s ease-in-out infinite;
}

.float-anim-delayed {
  animation: floatBadge 3.2s ease-in-out infinite;
  animation-delay: 1.6s;
}

@keyframes floatBadge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

.mini-badge-logo {
  width: 16px;
  height: 16px;
  object-fit: cover;
  border-radius: 3px;
}

.badge-top-right {
  top: 0.85rem;
  right: 0.6rem;
}

.badge-bottom-left {
  bottom: 0.85rem;
  left: 0.6rem;
}

.profile-info-footer {
  margin-top: 0.75rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.profile-name {
  font-size: 1.05rem;
  color: var(--primary);
}

.profile-tagline {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 0.4rem;
}

/* PERSONAL TAGLINE QUOTE ON DESKTOP */
.personal-tagline-quote {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.3px;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--border-accent);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  width: max-content;
  max-width: 100%;
}

.quote-symbol {
  font-size: 0.75rem;
}

/* ABOUT SECTION */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.75rem;
}

.about-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 1.65rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.about-card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.card-header-icon {
  width: 44px;
  height: 44px;
  background: var(--primary-soft);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.9rem;
}

.about-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.65rem;
}

.about-card p {
  color: var(--text-muted);
  margin-bottom: 0.85rem;
  font-size: 0.925rem;
  line-height: 1.6;
}

.story-highlights {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-light);
}

.story-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
}

.story-chip svg {
  color: var(--accent);
}

/* FOOTBALL GALLERY SLIDER */
.football-gallery {
  margin-top: 1rem;
}

.slider-container {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 16 / 9;
}

.slider-track {
  display: flex;
  height: 100%;
  transition: transform 0.35s ease-in-out;
}

.slide {
  min-width: 100%;
  height: 100%;
}

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

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(7, 1, 97, 0.75);
  color: white;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: var(--transition);
  z-index: 3;
}

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

.prev-btn { left: 8px; }
.next-btn { right: 8px; }

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-top: 0.5rem;
}

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

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

/* EXPERTISE SECTION */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.35rem;
}

.expertise-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.expertise-card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

/* MOTION DESIGN CARD WITH AMBIENT BACKGROUND VIDEO */
.expertise-card-video {
  position: relative;
  background: var(--primary-dark) !important;
  color: var(--text-white);
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.motion-bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.35;
  filter: saturate(1.2) contrast(1.1);
  pointer-events: none;
}

.motion-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(7, 1, 97, 0.88) 0%, rgba(4, 0, 64, 0.82) 100%);
  z-index: 1;
  pointer-events: none;
}

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

.text-white {
  color: var(--text-white) !important;
}

.text-white-muted {
  color: rgba(255, 255, 255, 0.85) !important;
}

.pillar-list-white li {
  color: rgba(255, 255, 255, 0.9) !important;
}

.card-accent-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--primary);
}

.card-accent-bar.accent-red {
  background: var(--accent);
}

.pillar-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--primary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
}

.expertise-card-video .pillar-icon {
  background: rgba(255, 255, 255, 0.12);
}

.als-logo-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.pillar-title {
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.learning-pill {
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-pill);
}

.expertise-card-video .learning-pill {
  color: #FFD1D6;
  background: rgba(208, 0, 19, 0.4);
}

.badge-sub {
  display: inline-block;
  font-size: 0.725rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-pill);
  margin-bottom: 0.45rem;
}

.pillar-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

/* UNIFORM VERTICAL BULLET LIST */
.pillar-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.35rem;
}

.pillar-list li {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pillar-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent);
  display: inline-block;
  flex-shrink: 0;
}

/* FEATURED PROJECTS SECTION */
.project-filters {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}

.filter-btn {
  font-family: var(--font-heading);
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
  color: var(--text-white);
  background: var(--primary);
  border-color: var(--primary);
}

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

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

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

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

.project-media {
  position: relative;
  aspect-ratio: 16 / 9.5;
  overflow: hidden;
  background-color: var(--bg-surface);
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.4s ease;
}

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

.project-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--text-white);
  background: var(--primary);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  z-index: 2;
}

.project-badge.badge-accent {
  background: var(--accent);
}

.project-badge.badge-navy {
  background: var(--primary);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(7, 1, 97, 0.78);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

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

.overlay-btn-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items: center;
  z-index: 3;
}

.live-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--accent);
  color: white;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.825rem;
  padding: 0.5rem 1.15rem;
  border-radius: var(--radius-pill);
  transition: var(--transition);
  box-shadow: var(--shadow-accent-glow);
}

.live-link-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

.view-media-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary);
  border: 1px solid var(--border-light);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.8rem;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition);
}

.view-media-btn:hover {
  background: var(--primary);
  color: white;
}

.project-body {
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

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

.project-title {
  font-size: 1.2rem;
  color: var(--primary);
}

.project-external-link {
  font-family: var(--font-heading);
  font-size: 0.775rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.18rem 0.6rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-accent);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

.project-external-link:hover {
  background: var(--accent);
  color: white;
  transform: translateY(-1px);
}

.project-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 0.85rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: auto;
}

.project-tags span {
  font-size: 0.725rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
}

/* SKILLS MATRIX SECTION */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.35rem;
  margin-bottom: 1.75rem;
}

.skill-category-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.skill-category-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-3px);
}

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

.category-header h3 {
  font-size: 1.15rem;
  color: var(--primary);
}

/* EDUCATION SECTION */
.education-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.35rem;
}

.education-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

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

.edu-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--primary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
}

.edu-level {
  font-size: 0.725rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--accent);
  margin-bottom: 0.2rem;
  display: block;
}

.edu-school {
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.edu-location {
  font-size: 0.825rem;
  color: var(--text-light);
  margin-bottom: 0.65rem;
}

.edu-description {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: auto;
}

/* EXPERIENCE & ACHIEVEMENTS SECTION */
.exp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.column-heading {
  font-size: 1.3rem;
  color: var(--primary);
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.35rem;
}

.column-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2.5px;
  background: var(--accent);
  border-radius: 2px;
}

/* Timeline Dot Animations */
.timeline {
  position: relative;
  padding-left: 1.35rem;
  border-left: 1.5px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.timeline-item {
  position: relative;
}

.timeline-dot {
  position: absolute;
  left: calc(-1.35rem - 5px);
  top: 4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 3px var(--bg-surface);
}

.timeline-dot.dot-accent {
  background: var(--accent);
}

.pulse-dot {
  animation: pulseDot 2.5s infinite;
}

@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 3px var(--bg-surface); }
  50% { box-shadow: 0 0 0 7px rgba(208, 0, 19, 0.25); }
}

.timeline-date {
  font-size: 0.725rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--accent);
  margin-bottom: 0.2rem;
}

.timeline-title {
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 0.3rem;
}

.timeline-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Achievements Cards */
.achievements-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.achievement-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 1rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  transition: var(--transition);
}

.achievement-card:hover {
  border-color: var(--border-accent);
  transform: translateX(4px);
}

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

.achieve-info h4 {
  font-size: 0.95rem;
  color: var(--primary);
  margin-bottom: 0.2rem;
}

.achieve-info p {
  font-size: 0.825rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* CONTACT SECTION */
.contact-wrapper {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.75rem;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
}

.contact-info-card h3 {
  font-size: 1.35rem;
  color: var(--primary);
  margin-bottom: 0.6rem;
}

.contact-info-card p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
}

.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

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

.channel-item:hover {
  border-color: var(--border-accent);
  transform: translateX(5px);
}

.channel-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.channel-details {
  display: flex;
  flex-direction: column;
}

.channel-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-light);
}

.channel-val {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--primary);
}

/* Contact Form */
.form-group {
  margin-bottom: 0.85rem;
}

.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.825rem;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.875rem;
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background: var(--bg-surface);
  color: var(--text-main);
  outline: none;
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  background: var(--bg-card);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.form-status {
  margin-top: 0.75rem;
  font-size: 0.825rem;
  font-weight: 600;
  text-align: center;
}

.form-status.success {
  color: #10B981;
}

/* FOOTER */
.footer {
  background: var(--primary-dark);
  color: var(--text-white);
  padding: 2.5rem 0 1.5rem 0;
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.25rem;
}

.footer .brand-logo {
  color: var(--text-white);
  justify-content: center;
}

.footer-quote {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--accent);
  margin-top: 0.2rem;
}

.footer-tagline {
  font-size: 0.825rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-copy {
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  width: 100%;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

/* MEDIA MODALS */
.media-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.media-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 1, 97, 0.85);
  backdrop-filter: blur(8px);
}

.modal-container {
  position: relative;
  z-index: 2001;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  max-width: 850px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}

.modal-close {
  position: absolute;
  top: 0.85rem;
  right: 1rem;
  background: var(--bg-surface);
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--primary);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
}

.modal-close:hover {
  background: var(--accent);
  color: white;
}

.modal-title {
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 1rem;
  padding-right: 2rem;
}

.modal-content img {
  width: 100%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin-bottom: 0.85rem;
}

/* SCROLL TO TOP BUTTON */
.scroll-top-btn {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-accent-glow);
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  z-index: 999;
}

.scroll-top-btn.visible {
  opacity: 1;
  pointer-events: auto;
}

.scroll-top-btn:hover {
  transform: translateY(-3px);
  background: var(--accent-hover);
}

/* ==========================================================================
   ENHANCED SLIDE IN & SLIDE OUT SCROLL ANIMATION CLASSES (60FPS SILKY SMOOTH)
   ========================================================================== */

.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.slide-in-up {
  opacity: 0;
  transform: translateY(45px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

/* Active State triggered by IntersectionObserver */
.slide-in-left.appear,
.slide-in-right.appear,
.slide-in-up.appear {
  opacity: 1;
  transform: translate(0, 0);
}

/* ==========================================================================
   STRICT MOBILE ONLY RESPONSIVE STYLING (PROMINENT PROFESSIONAL SIZES)
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-container {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    text-align: left;
  }

  .hero-visual {
    order: -1;
    width: 100%;
    max-width: 360px;
    margin: 0 auto 0.5rem auto;
  }

  .hero-content {
    order: 1;
    width: 100%;
    text-align: left;
    padding-left: 0.25rem;
  }

  .hero-title {
    text-align: left;
    font-size: 1.85rem;
    min-height: 2.2em;
  }

  .hero-subtitle {
    margin-left: 0;
    margin-right: auto;
    text-align: left !important;
  }

  .hero-cta-group {
    justify-content: flex-start;
  }

  .hero-stats {
    justify-content: flex-start;
  }

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

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

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

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

  .container {
    padding: 0 1rem;
    width: 100%;
    overflow: hidden;
  }

  .navbar-header {
    padding: 0.65rem 0;
  }

  .brand-logo {
    font-size: 1.15rem;
    gap: 0.5rem;
  }

  .brand-logo-img {
    width: 30px;
    height: 30px;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 280px;
    height: 100vh;
    background: #FFFFFF;
    box-shadow: -5px 0 25px rgba(7, 1, 97, 0.15);
    padding: 4rem 1.25rem 2rem 1.25rem;
    transition: right 0.3s ease;
    z-index: 999;
    border-left: 1px solid var(--border-light);
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    width: 100%;
  }

  .nav-link {
    font-size: 0.95rem;
    width: 100%;
    padding: 0.45rem 0;
    border-bottom: 1px solid var(--border-light);
  }

  .mobile-toggle {
    display: flex;
  }

  /* Hamburger transform when open */
  .mobile-toggle.open .bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }
  .mobile-toggle.open .bar:nth-child(2) {
    opacity: 0;
  }
  .mobile-toggle.open .bar:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  /* Hero Mobile Section */
  .hero-section {
    padding-top: 5.25rem;
    padding-bottom: 2rem;
  }

  .hero-title {
    font-size: 1.55rem;
    line-height: 1.22;
    margin-bottom: 0.65rem;
    text-align: left;
    min-height: 2.2em;
  }

  .hero-subtitle {
    font-size: 0.925rem;
    line-height: 1.55;
    margin-bottom: 1.25rem;
    text-align: left !important;
  }

  /* Professional Standard Mobile Buttons */
  .btn {
    font-size: 0.85rem;
    padding: 0.55rem 1.1rem;
  }

  .btn-lg {
    font-size: 0.875rem;
    padding: 0.6rem 1.2rem;
  }

  .hero-cta-group {
    flex-direction: row;
    justify-content: flex-start;
    width: 100%;
    gap: 0.65rem;
  }

  .hero-cta-group .btn {
    flex: 1;
    min-width: 130px;
  }

  /* Standard Section Titles & Subtitles */
  .section-tag {
    font-size: 0.725rem;
    letter-spacing: 1.5px;
  }

  .section-title {
    font-size: 1.45rem;
  }

  .section-subtitle {
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 1.1rem;
  }

  /* Stacked Cards with Crisp Professional Mobile Typography */
  .expertise-grid, .skills-grid, .exp-grid, .education-grid, .projects-grid, .about-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  .about-card, .expertise-card, .skill-category-card, .education-card, .contact-wrapper, .project-card {
    padding: 1.15rem !important;
    border-radius: var(--radius-md) !important;
  }

  .about-card h3, .pillar-title, .project-title, .edu-school, .timeline-title, .contact-info-card h3 {
    font-size: 1.1rem !important;
  }

  .about-card p, .pillar-desc, .project-desc, .edu-description, .timeline-desc, .contact-info-card p, .pillar-list li {
    font-size: 0.875rem !important;
    line-height: 1.55 !important;
  }

  /* HERO PROFILE CARD WIDE MOBILE DISPLAY (ALMOST FULL WIDTH) */
  .hero-visual {
    width: 100%;
  }

  .profile-card-wrapper {
    width: 100%;
    max-width: 95%;
    margin: 0 auto;
  }

  .badge-top-right {
    top: 0.6rem;
    right: 0.5rem;
    font-size: 0.675rem;
    padding: 0.25rem 0.6rem;
  }

  .badge-bottom-left {
    bottom: 0.6rem;
    left: 0.5rem;
    font-size: 0.675rem;
    padding: 0.25rem 0.6rem;
  }

  /* Crisp Mobile Tagline Quote */
  .personal-tagline-quote {
    font-size: 0.65rem !important;
    padding: 0.2rem 0.6rem !important;
    letter-spacing: 0.2px !important;
    margin-top: 0.25rem;
    border-width: 1px;
  }

  .quote-symbol {
    font-size: 0.7rem !important;
  }

  /* Hero Stats Grid */
  .hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.5rem;
    padding-top: 0.85rem;
    text-align: left;
  }

  .stat-divider {
    display: none;
  }

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

  .stat-label {
    font-size: 0.725rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 0.85rem;
  }

  .hero-title {
    font-size: 1.45rem;
  }

  .section-title {
    font-size: 1.3rem;
  }

  .about-card, .expertise-card, .skill-category-card, .education-card, .contact-wrapper {
    padding: 1rem !important;
  }

  .project-body {
    padding: 1rem !important;
  }

  .channel-item {
    padding: 0.65rem 0.75rem;
  }

  .channel-val {
    font-size: 0.8rem;
    word-break: break-all;
  }

  .scroll-top-btn {
    bottom: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
  }
}
