/* ========================
   SECTIONS CSS — Framer-Level Dark Theme
======================== */

/* ========================
   SHARED SECTION STYLES
======================== */
.section-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-title {
  margin-bottom: 60px;
  text-align: left;
}

.section-title h2 {
  font-size: 44px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}

.section-title h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: var(--accent);
  margin-top: 16px;
  border-radius: 2px;
}

/* Wave Background Glows */
.wave-left,
.wave-right {
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(108, 92, 231, 0.08), transparent 65%);
  filter: blur(100px);
  z-index: -1;
  pointer-events: none;
}

.wave-left {
  left: -250px;
  top: 50%;
  transform: translateY(-50%);
}

.wave-right {
  right: -250px;
  top: 50%;
  transform: translateY(-50%);
}

/* ========================
   ABOUT SECTION
======================== */
.about {
  padding: 120px 50px;
  position: relative;
  overflow: hidden;
}

.about-text-hero {
  margin-bottom: 80px;
  max-width: 1000px;
}

.heroic-text {
  font-size: clamp(2rem, 8vw, 3.8rem); /* Fluid typography for better scaling */
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -1.5px;
  color: var(--text-primary);
  margin-bottom: 32px;
}

.highlight-line {
  position: relative;
  display: inline-block;
  color: var(--accent); /* Default color for emphasis */
  padding: 0 4px;
  border-radius: 4px;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  text-decoration: underline 2px rgba(108, 92, 231, 0.3);
  text-underline-offset: 6px;
}

.highlight-line:hover {
  background: var(--accent); /* Same color highlight as requested */
  color: white; /* Change font color as requested */
  text-decoration-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px var(--accent-glow);
}

.heroic-subtext {
  font-size: clamp(1rem, 4vw, 1.25rem); /* Responsive subtext */
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 750px;
}

/* Responsive adjustment for Heroic Text */
/* Media queries consolidated into fluid clamp() above */

.about-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 50px;
}

.info-item {
  background: var(--card-bg);
  padding: 32px;
  border-radius: 20px;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-subtle);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.info-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(108, 92, 231, 0.08), transparent);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
  border-radius: 20px;
}

.info-item:hover {
  transform: translateY(-8px);
  border-color: rgba(108, 92, 231, 0.4);
  box-shadow: 0 20px 60px rgba(108, 92, 231, 0.15),
              0 0 40px rgba(108, 92, 231, 0.08);
}

.info-item:hover::before {
  opacity: 1;
}

.info-icon {
  width: 56px;
  height: 56px;
  background: rgba(108, 92, 231, 0.12);
  border: 1.5px solid rgba(108, 92, 231, 0.25);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: all 0.4s;
  position: relative;
  z-index: 1;
}

.info-icon i {
  font-size: 28px;
  color: var(--accent-light);
  transition: all 0.4s;
}

.info-item:hover .info-icon {
  background: rgba(108, 92, 231, 0.25);
  border-color: var(--accent);
  transform: scale(1.1) rotate(-5deg);
}

.info-item:hover .info-icon i {
  color: var(--text-primary);
}

.info-item h4 {
  font-size: 18px;
  color: var(--accent-light);
  margin: 0 0 10px 0;
  font-weight: 700;
  position: relative;
  z-index: 1;
  transition: all 0.3s;
}

.info-item:hover h4 {
  color: var(--text-primary);
}

.info-item p {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

.info-item:hover p {
  color: var(--text-primary);
}

@media (max-width: 1024px) {
  .about-info {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* ========================
   SKILLS SECTION
======================== */
.skills {
  padding: 120px 50px;
  position: relative;
  overflow: hidden;
}

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

.skill-category {
  background: var(--card-bg);
  padding: 36px;
  border-radius: 20px;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-subtle);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.skill-category::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.04), transparent);
  transition: left 0.6s;
  pointer-events: none;
}

.skill-category:hover::before {
  left: 100%;
}

.skill-category:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(108, 92, 231, 0.12);
  border-color: rgba(108, 92, 231, 0.3);
}

.skill-category h3 {
  font-size: 20px;
  color: var(--accent-light);
  margin-bottom: 22px;
  margin-top: 0;
  font-weight: 700;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1;
}

.skill-category h3::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 20px;
  background: var(--accent);
  border-radius: 2px;
  margin-right: 12px;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
  position: relative;
  z-index: 1;
}

.skill-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: rgba(108, 92, 231, 0.08);
  border: 1px solid rgba(108, 92, 231, 0.2);
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.skill-tag i {
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-light);
}

.skill-tag:hover {
  background: rgba(108, 92, 231, 0.2);
  border-color: var(--accent);
  color: var(--text-primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(108, 92, 231, 0.15);
}

@media (max-width: 768px) {
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .skill-category {
    padding: 24px;
  }

  .skill-category h3 {
    font-size: 17px;
  }
}

/* ========================
   EXPERIENCE SECTION
======================== */
.experience {
  padding: 120px 50px;
  position: relative;
  overflow: hidden;
}

.experience-container {
  display: block;
  margin-top: 40px;
}

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

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), rgba(108, 92, 231, 0.2));
}

.timeline-item {
  position: relative;
  padding-bottom: 50px;
  margin-bottom: 40px;
  width: 100%;
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-left: 0;
  margin-right: 52%;
  text-align: right;
  padding-right: 40px;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-left: 52%;
  margin-right: 0;
  text-align: left;
  padding-left: 40px;
}

.timeline-marker {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  width: 20px;
  height: 20px;
  background: var(--accent);
  border: 3px solid var(--bg-primary);
  border-radius: 50%;
  box-shadow: 0 0 20px var(--accent-glow);
  z-index: 10;
  transition: all 0.3s;
}

.timeline-content {
  background: var(--card-bg);
  padding: 28px;
  border-radius: 16px;
  border: 1px solid var(--border-subtle);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.timeline-content::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(108, 92, 231, 0.06), transparent);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.timeline-item:hover .timeline-content {
  transform: translateY(-6px);
  box-shadow: 0 15px 40px rgba(108, 92, 231, 0.12);
  border-color: rgba(108, 92, 231, 0.3);
}

.timeline-item:hover .timeline-content::before {
  opacity: 1;
}

.timeline-item:hover .timeline-marker {
  transform: translateX(-50%) scale(1.2);
  box-shadow: 0 0 30px rgba(108, 92, 231, 0.5);
}

.timeline-content h3 {
  font-size: 20px;
  color: var(--text-primary);
  margin: 0 0 8px 0;
  font-weight: 700;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
}

.timeline-content h3 i {
  font-size: 24px;
  color: var(--accent-light);
  min-width: 24px;
}

.timeline-content h4 {
  font-size: 13px;
  color: var(--accent-light);
  margin: 0 0 14px 0;
  font-weight: 500;
  position: relative;
  z-index: 1;
}

.timeline-content p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}

.score-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(108, 92, 231, 0.1);
  border: 1px solid rgba(108, 92, 231, 0.25);
  color: var(--accent-light);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 14px;
  transition: all 0.3s;
  position: relative;
  z-index: 1;
}

.score-badge:hover {
  background: rgba(108, 92, 231, 0.2);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.score-badge .score-label {
  color: var(--text-primary);
  font-weight: 600;
}

.score-badge i {
  font-size: 14px;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.score-badge:hover i {
  opacity: 1;
}

.achievement-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 193, 7, 0.1);
  border: 1px solid rgba(255, 193, 7, 0.25);
  color: #ffc107;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  margin-top: 12px;
  transition: all 0.3s;
  position: relative;
  z-index: 1;
}

.achievement-tag i {
  font-size: 16px;
}

.achievement-tag span {
  color: var(--text-primary);
  font-weight: 600;
}

.achievement-tag:hover {
  background: rgba(255, 193, 7, 0.2);
  border-color: #ffc107;
  transform: translateY(-2px);
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  position: relative;
  z-index: 1;
  justify-content: flex-end;
}

.timeline-item:nth-child(even) .timeline-tags {
  justify-content: flex-start;
}

.timeline-tags span {
  font-size: 11px;
  background: rgba(108, 92, 231, 0.08);
  color: var(--text-secondary);
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(108, 92, 231, 0.2);
  transition: all 0.3s;
}

.timeline-tags span:hover {
  background: rgba(108, 92, 231, 0.2);
  border-color: var(--accent);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.certifications {
  background: var(--card-bg);
  padding: 36px;
  border-radius: 20px;
  border: 1px solid var(--border-subtle);
  max-width: 900px;
  margin: 60px auto 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.certifications:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(108, 92, 231, 0.12);
  border-color: rgba(108, 92, 231, 0.3);
}

.certifications h3 {
  font-size: 22px;
  color: var(--accent-light);
  margin: 0 0 24px 0;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 12px;
}

.certifications h3 i {
  font-size: 26px;
  color: var(--accent-light);
}

.certifications ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.certifications li {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  position: relative;
  line-height: 1.6;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 12px;
}

.certifications li i {
  font-size: 18px;
  color: var(--accent-light);
  min-width: 18px;
}

.certifications li:hover {
  color: var(--text-primary);
  transform: translateX(4px);
}

.certifications li:hover i {
  color: var(--text-primary);
}

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

  .timeline::before {
    left: 20px;
    transform: translateX(-50%);
  }

  .timeline-item {
    padding-left: 50px;
  }

  .timeline-item:nth-child(odd) .timeline-content,
  .timeline-item:nth-child(even) .timeline-content {
    margin-left: 0;
    margin-right: 0;
    text-align: left;
    padding-left: 20px;
    padding-right: 20px;
  }

  .timeline-item:nth-child(odd) .timeline-tags,
  .timeline-item:nth-child(even) .timeline-tags {
    justify-content: flex-start;
  }

  .timeline-marker {
    left: 20px;
    transform: translateX(-50%);
  }

  .certifications {
    padding: 24px;
  }
}

/* ========================
   SKILLS / BENTO GRID
======================== */
.skills {
  padding: 120px 50px;
  position: relative;
  overflow: hidden;
}

.skills-bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 1400px;
  margin: 0 auto;
}

.skills-header-card {
  grid-column: 2 / 3;
  grid-row: 1 / 3;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
}

.skills-eyebrow {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 16px;
}

.skills-header-card h2 {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.skills-sub {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.skill-bento-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 30px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  position: relative;
}

.skill-bento-card:hover {
  transform: translateY(-5px);
  border-color: rgba(108, 92, 231, 0.3);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.skill-bento-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(108, 92, 231, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.skill-bento-icon i {
  font-size: 24px;
  color: var(--accent-light);
}

.skill-bento-card h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.skill-bento-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 1024px) {
  .skills-bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .skills-header-card {
    grid-column: 1 / -1;
    grid-row: auto;
    text-align: center;
    align-items: center;
    padding: 20px 0 40px;
  }
  .skills {
    padding: 80px 30px;
  }
}

@media (max-width: 600px) {
  .skills-bento-grid {
    grid-template-columns: 1fr;
  }
  .skills {
    padding: 60px 20px;
  }
  .skill-bento-card {
    padding: 24px;
  }
}

/* ========================
   PROJECTS SECTION
======================== */
.projects {
  padding: 120px 50px;
  position: relative;
  overflow: hidden;
}

.projects-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
  margin-bottom: 28px;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  font-family: var(--font);
  transition: all 0.3s;
}

.filter-btn:hover {
  border-color: rgba(108, 92, 231, 0.5);
  color: var(--text-primary);
}

.filter-btn.active {
  background: rgba(108, 92, 231, 0.15);
  border-color: var(--accent);
  color: var(--text-primary);
}

/* Projects V2.1 — Stacking Sidebar Layout */
.projects {
  padding: 0;
  background: var(--bg-primary);
  overflow: visible;
}

.projects-wrapper {
  display: flex;
  min-height: 100vh;
  position: relative;
}

/* Sidebar Styling Refined */
.projects-sidebar {
  width: 35%;
  height: 100vh;
  position: sticky;
  top: 0;
  padding: 100px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid var(--border-subtle);
  background: var(--bg-primary);
  z-index: 10;
}

.projects-filters {
  display: flex;
  gap: 12px;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

/* Sidebar Titles & Nav */
.sidebar-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -3px;
  margin-bottom: 40px;
  color: var(--text-primary);
}

.projects-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Stacking Cards */
.projects-list {
  width: 65%;
  position: relative;
}

.project-showcase {
  height: 100vh;
  display: flex;
  flex-direction: column;
  position: sticky; /* Stacking Effect */
  top: 0;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-subtle);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
              filter 0.5s ease, 
              opacity 0.5s ease;
}

/* Cards underneath get darker/blurred */
.project-showcase:not(:last-child) {
  /* Box shadow that grows as top cards stack might look good */
  box-shadow: 0 -20px 40px rgba(0, 0, 0, 0.2);
}

/* Highlight visual */
.showcase-visual {
  flex: 1;
  min-height: 0;
  width: 100%;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.video-container {
  width: 100%;
  height: 100%;
  position: relative;
  background: #000;
}

.showcase-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.5s, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s;
}

/* Play Overlay */
.play-overlay-v2 {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  color: white;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 5;
}

.play-overlay-v2 i {
  font-size: 64px;
  margin-bottom: 12px;
  transform: scale(0.8);
  transition: transform 0.4s;
}

.play-overlay-v2 span {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.showcase-visual:hover .play-overlay-v2 {
  opacity: 1;
}

.showcase-visual:hover .play-overlay-v2 i {
  transform: scale(1);
}

/* Video State */
.video-container.playing .showcase-img {
  opacity: 0;
}

.video-container.playing video {
  opacity: 1;
}

.video-container.playing .play-overlay-v2 {
  opacity: 0;
  pointer-events: none;
}

.showcase-info {
  flex-shrink: 0;
  height: auto;
  padding: 40px 60px;
  display: flex;
  align-items: center;
  background: var(--bg-primary);
}

.info-content {
  max-width: 640px;
}

.info-tag {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 10px;
  font-weight: 600;
}

.info-content h3 {
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
  color: var(--text-primary);
}

.info-content > p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

/* Tech Pill Tags */
.showcase-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.showcase-tags span {
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  color: var(--text-secondary);
  transition: all 0.3s;
}

.showcase-tags span:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Action Buttons */
.showcase-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  border: 1.5px solid var(--border-strong);
  color: var(--text-primary);
  background: transparent;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.btn-action i {
  font-size: 17px;
}

.btn-action:hover {
  transform: translateY(-3px);
  background: var(--accent);
  border-color: var(--accent);
  color: white;
  box-shadow: 0 8px 24px var(--accent-glow);
}

.btn-action.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.btn-action.primary:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
  box-shadow: 0 8px 24px var(--accent-glow);
}

/* Responsive Stacking */
@media (max-width: 768px) {
  .projects-sidebar {
    width: 100%;
    height: auto;
    position: relative;
    padding: 60px 24px 30px;
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
  }
  .projects-filters {
    margin-bottom: 24px;
    overflow-x: auto;
    padding-bottom: 8px;
  }
  .projects-list { width: 100%; }
  .project-showcase {
    position: relative; /* No stacking on mobile for performance/UX */
    height: auto;
    min-height: 80vh;
  }
  .showcase-visual { height: 40vh; }
  .showcase-info { padding: 40px 24px; height: auto; }
}



.project-number {
  position: absolute;
  top: 30px;
  left: 30px;
  font-size: 18px;
  font-family: var(--font);
  font-weight: 700;
  color: var(--accent);
  z-index: 10;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 5px 12px;
  border-radius: 8px;
}

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

.staggered-grid .project-card:nth-child(3n+2):hover {
  transform: translateY(115px) scale(1.02);
}

.project-image {
  position: relative;
  width: 100%;
  aspect-ratio: 1; /* Squarer look from reference */
  background: #000;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.project-info {
  padding: 20px 0;
}

.project-info h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.project-info p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 60px 30px;
  }
  .staggered-grid .project-card:nth-child(3n+2) {
    transform: none;
  }
  .staggered-grid .project-card:nth-child(even) {
    transform: translateY(60px);
  }
}

@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .staggered-grid .project-card:nth-child(even) {
    transform: none;
  }
}

.project-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
  position: relative;
  z-index: 2;
}

.project-image video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.06);
}

/* Play overlay — appears on hover */
.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(8, 11, 22, 0.55);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.project-image:hover .play-overlay {
  opacity: 1;
  pointer-events: all;
}

/* Persistent overlay for touch devices where hover isn't possible */
@media (hover: none) {
  .play-overlay {
    opacity: 1;
    visibility: visible;
    background: rgba(8, 11, 22, 0.4);
    pointer-events: all;
  }
}

.play-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px var(--accent-glow);
}

.play-btn i {
  font-size: 28px;
  color: white;
  margin-left: 3px; /* optical center for play icon */
}

.play-btn:hover {
  transform: scale(1.12);
  box-shadow: 0 8px 30px rgba(108, 92, 231, 0.5);
}

.play-label {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Active state — video is playing */
.project-image.video-active img {
  opacity: 0;
  transform: scale(1);
}

.project-image.video-active video {
  opacity: 1;
}

.project-image.video-active .play-overlay {
  opacity: 0;
  pointer-events: none;
}

/* Pause indicator on hover while playing */
.project-image.video-active:hover .play-overlay {
  opacity: 1;
  pointer-events: all;
}

.project-image.video-active .play-btn i::before {
  content: "\eb47"; /* bx-pause icon unicode */
}

.project-info {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-info h3 {
  font-size: 20px;
  color: var(--text-primary);
  margin-bottom: 10px;
  margin-top: 0;
  font-weight: 700;
}

.project-info p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 14px;
  flex: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.project-tags span {
  font-size: 11px;
  background: rgba(108, 92, 231, 0.08);
  color: var(--accent-light);
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(108, 92, 231, 0.2);
  transition: all 0.3s;
}

.project-tags span:hover {
  background: rgba(108, 92, 231, 0.2);
  border-color: var(--accent);
  color: var(--text-primary);
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-light);
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  transition: all 0.3s;
  margin-right: 16px;
}

.project-link:hover {
  gap: 10px;
  color: var(--text-primary);
}

/* ========================
   CONTACT SECTION
======================== */
.contact {
  padding: 120px 50px;
  position: relative;
  overflow: hidden;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-top: 40px;
}

.contact-info h3 {
  font-size: 26px;
  color: var(--text-primary);
  margin-bottom: 14px;
  font-weight: 700;
}

.contact-info p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 32px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.contact-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  transition: transform 0.3s;
}

.contact-item:hover {
  transform: translateX(4px);
}

.contact-item i {
  font-size: 26px;
  color: var(--accent-light);
  margin-top: 4px;
}

.contact-item h4 {
  font-size: 16px;
  color: var(--text-primary);
  margin: 0 0 4px 0;
  font-weight: 600;
}

.contact-item a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s;
  font-size: 14px;
}

.contact-item a:hover {
  color: var(--accent-light);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

#formMessage {
  margin-top: 14px;
  padding: 12px;
  border-radius: 10px;
  text-align: center;
  font-weight: 500;
  border-left: 3px solid;
  animation: slideDown 0.3s ease-out;
}

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

.form-group {
  display: flex;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 16px 20px;
  border-radius: 20px; /* Pill-shaped like chatbot */
  font-size: 14px;
  font-family: var(--font);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

.btn-submit {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 16px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-submit:hover {
  transform: scale(1.05) translateY(-2px);
  box-shadow: 0 8px 25px var(--accent-glow);
  background: var(--accent-light);
}

/* ========================
   ABOUT & SERVICES (wendoj Style)
======================== */
.about-hero {
  margin-bottom: 100px;
}

.heroic-text {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-primary);
  letter-spacing: -2px;
  margin-bottom: 24px;
}

.highlight-line {
  color: var(--accent);
  position: relative;
  display: inline-block;
}

.highlight-line::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--accent);
  opacity: 0.3;
}

.heroic-subtext {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 800px;
  line-height: 1.6;
}

.services-section {
  margin-top: 80px;
}

.services-header {
  margin-bottom: 40px;
}

.services-header h3 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 12px;
}

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

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  background: transparent;
  padding: 20px 0;
}

.service-card {
  background: var(--card-bg);
  padding: 40px 32px;
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  box-shadow: var(--card-shadow);
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent);
  box-shadow: 0 20px 40px rgba(108, 92, 231, 0.12);
}

.service-card i {
  font-size: 28px;
  color: var(--accent);
  margin-bottom: 20px;
}

.grid-heading {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 24px;
  letter-spacing: -2.5px;
}

.grid-subtext {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.service-icon {
  font-size: 24px;
  color: var(--accent);
  margin-bottom: 20px;
}

.service-card h4 {
  font-size: 18px;
  margin-bottom: 12px;
  font-weight: 600;
}

.service-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .grid-heading { font-size: 2.22rem; }
  .services-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto; /* Allow items to grow on mobile */
  }
}

/* ========================
   FOOTER SECTION (REFINED)
======================== */
.footer {
  padding: 60px 50px;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-primary);
  position: relative;
  z-index: 1000; /* Ensure visibility above sticky sections */
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.footer-divider {
  width: 1px;
  height: 24px;
  background: var(--border-subtle);
  margin: 0 10px;
}

.footer-center {
  display: flex;
  align-items: center;
  gap: 15px;
}

.footer-center p {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
  margin: 0;
}

.name-accent {
  color: var(--text-primary);
  font-weight: 700;
}

.local-time {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-muted);
}

.time-label {
  font-weight: 500;
}

#live-clock {
  font-weight: 700;
  color: var(--text-primary);
}

.timezone {
  font-size: 12px;
  opacity: 0.6;
}

.footer-socials-minimal {
  display: flex;
  gap: 20px;
}

.footer-socials-minimal a {
  color: var(--text-muted);
  font-size: 20px;
  transition: all 0.3s;
}

.footer-socials-minimal a:hover {
  color: var(--text-primary);
  transform: translateY(-2px);
}

@media (max-width: 991px) {
  .footer-divider { display: none; }
  .footer-content {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }
}

.btn-submit {
  background: var(--accent);
  color: white;
  border: none;
  padding: 14px 36px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  align-self: flex-start;
}

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

/* Legacy footer duplicate removed to fix theme issues */

/* ========================
   RESPONSIVE — SECTIONS
======================== */
@media (max-width: 1200px) {
  .about,
  .experience,
  .skills,
  .projects,
  .contact {
    padding: 100px 40px;
  }


}

@media (max-width: 900px) {
  .section-title h2 {
    font-size: 34px;
  }

  .about-info {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .projects-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
  }

  .contact-container {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer-content {
    flex-direction: column;
    gap: 16px;
  }

  .about,
  .experience,
  .skills,
  .projects,
  .contact {
    padding: 80px 30px;
  }



  .wave-left,
  .wave-right {
    opacity: 0.4;
  }
}

@media (max-width: 768px) {
  .section-title h2 {
    font-size: 28px;
  }

  .section-title h2::after {
    width: 40px;
  }

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

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

  .project-image {
    height: 200px;
  }

  .about,
  .experience,
  .skills,
  .projects,
  .contact {
    padding: 60px 20px;
  }


}

@media (max-width: 600px) {
  .section-title h2 {
    font-size: 24px;
  }

  .info-item {
    padding: 20px;
  }

  .skill-category {
    padding: 18px;
  }

  .skill-tag {
    padding: 5px 10px;
    font-size: 10px;
  }

  .project-info {
    padding: 18px;
  }

  .project-info h3 {
    font-size: 16px;
  }

  .form-group input,
  .form-group textarea {
    padding: 10px 12px;
    font-size: 13px;
  }

  .btn-submit {
    padding: 10px 24px;
    font-size: 13px;
  }

  .about,
  .experience,
  .skills,
  .projects,
  .contact {
    padding: 48px 16px;
  }



  .wave-left,
  .wave-right {
    display: none;
  }
}

@media (max-width: 400px) {
  .section-title h2 {
    font-size: 20px;
  }

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

  .contact-item i {
    margin-top: 0;
  }
}

/* ========================
   COMPREHENSIVE MOBILE RESPONSIVE
   Covers all sections at 768px and 480px
======================== */

@media (max-width: 768px) {

  /* ── SHARED ── */
  .section-title { margin-bottom: 36px; }
  .section-title h2 { font-size: clamp(1.6rem, 7vw, 2rem); }

  /* ── ABOUT ── */
  .about { padding: 80px 20px; }
  .about-text-hero { margin-bottom: 40px; }
  .about-info { grid-template-columns: 1fr; gap: 14px; margin-top: 30px; }
  .info-item { padding: 24px; }

  /* ── SKILLS BENTO ── */
  .skills { padding: 80px 20px; }
  .skills-bento-grid {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }
  .skills-header-card {
    grid-column: 1 / -1 !important;
    grid-row: auto !important;
    padding: 28px;
    text-align: center;
    align-items: center;
  }
  .skills-header-card h2 { font-size: clamp(2rem, 10vw, 2.8rem); }
  .skill-bento-card { padding: 24px; }

  /* ── PROJECTS — full mobile reflow ── */
  .projects { padding: 0; }
  .projects-wrapper { flex-direction: column; min-height: unset; }

  .projects-sidebar {
    width: 100% !important;
    height: auto !important;
    position: relative !important;
    top: auto !important;
    padding: 60px 20px 24px !important;
    border-right: none !important;
    border-bottom: 1px solid var(--border-subtle);
  }

  .projects-filters {
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
  }

  .projects-nav { gap: 10px; }

  .sidebar-title {
    font-size: clamp(1.8rem, 8vw, 2.4rem);
    letter-spacing: -1.5px;
    margin-bottom: 24px;
  }

  .projects-list { width: 100% !important; }

  /* Disable the stacking sticky cards on mobile - use normal scroll */
  .project-showcase {
    position: relative !important;
    top: auto !important;
    height: auto !important;
    min-height: unset !important;
    border-bottom: 1px solid var(--border-subtle);
  }

  .showcase-visual {
    height: 220px !important;
    flex: none !important;
  }

  .showcase-info {
    padding: 24px 20px !important;
    height: auto !important;
    flex-shrink: 0;
  }

  .info-content h3 { font-size: 1.1rem; }
  .info-content > p { font-size: 13px; }

  .showcase-tags { gap: 6px; }
  .showcase-tags span { font-size: 10px; padding: 5px 10px; }

  .showcase-actions { flex-wrap: wrap; gap: 8px; margin-top: 14px; }
  .btn-action { font-size: 12px; padding: 8px 14px; }

  /* ── EXPERIENCE ── */
  .experience { padding: 80px 20px; }
  .timeline::before { left: 12px; transform: none; }

  .timeline-item {
    padding-left: 36px;
    padding-bottom: 30px;
  }

  .timeline-item:nth-child(odd) .timeline-content,
  .timeline-item:nth-child(even) .timeline-content {
    margin-left: 0;
    margin-right: 0;
    text-align: left;
    padding-left: 16px;
    padding-right: 16px;
  }

  .timeline-item:nth-child(odd) .timeline-tags,
  .timeline-item:nth-child(even) .timeline-tags {
    justify-content: flex-start;
  }

  .timeline-marker {
    left: 12px;
    transform: none;
  }

  .certifications { padding: 24px; }

  /* ── CONTACT ── */
  .contact { padding: 80px 20px; }
  .contact-container {
    grid-template-columns: 1fr !important;
    gap: 32px;
  }
  .contact-info h3 { font-size: 1.4rem; }
  .contact-links { gap: 16px; }

  /* ── FOOTER ── */
  .footer-content {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  .footer-divider { display: none; }
  .footer-socials-minimal { justify-content: center; }
  .local-time { justify-content: center; }
}

@media (max-width: 480px) {

  /* ── ABOUT ── */
  .about { padding: 60px 16px; }
  .heroic-text { letter-spacing: -1px; }

  /* ── PROJECTS ── */
  .projects-sidebar { padding: 50px 16px 20px !important; }
  .showcase-visual { height: 180px !important; }
  .showcase-info { padding: 20px 16px !important; }

  /* ── SKILLS ── */
  .skills { padding: 60px 16px; }
  .skill-bento-card { padding: 20px; }

  /* ── EXPERIENCE ── */
  .experience { padding: 60px 16px; }
  .timeline-content { padding: 20px; }
  .timeline-content h3 { font-size: 16px; }

  /* ── CONTACT ── */
  .contact { padding: 60px 16px; }
  .form-group input,
  .form-group textarea {
    padding: 12px 14px;
    font-size: 13px;
  }
  .btn-submit { padding: 12px 28px; font-size: 14px; }

  /* ── GLOBAL ── */
  .wave-left, .wave-right { display: none; }
}