/* ===================================== */
/* ============== HEADER =============== */
/* ===================================== */

.header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-height);
  z-index: 1000;

  display: flex;
  align-items: center;

  background: transparent;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  padding: 0 2rem;
  transition: background 0.4s ease,
    box-shadow 0.4s ease,
    backdrop-filter 0.4s ease;
}

.header.scrolled {
  background: rgba(2, 6, 23, 0.95);
  box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.4);
}

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

.logo {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
}

/* ===================================== */
/* ============== NAV ================== */
/* ===================================== */

/* ===== Mobile Drawer Nav ===== */
.nav {
  position: fixed;
  top: 0;
  right: 0;

  height: 100vh;
  width: 75%;

  background: rgba(2, 6, 23, 0.98);
  backdrop-filter: blur(15px);

  display: flex;
  align-items: center;
  justify-content: center;

  transform: translateX(100%);
  transition: transform 0.4s ease;

  z-index: 999;
}

.nav-open .nav {
  transform: translateX(0);
}

.nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.nav-link {
  text-decoration: none;
  color: var(--color-white);
  font-size: 1.8rem;
  transition: var(--transition);
  position: relative;
}

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

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 2px;
  background: var(--color-primary);
  transition: width 0.3s ease;
}

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

.nav-cta {
  background: var(--color-primary);
  color: var(--color-black);
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-sm);
}

.nav-cta:hover,
.nav-cta.active {
  color: var(--color-black);
}

.btn-mobile-nav {
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1000;
}

.icon-mobile-nav {
  font-size: 3rem;
  color: var(--color-white);
}

.close-icon {
  display: none;
}

.nav-open .close-icon {
  display: block;
}

.nav-open .icon-mobile-nav:not(.close-icon) {
  display: none;
}

body.nav-open {
  overflow: hidden;
}

/* ===================================== */
/* ============== HERO ================= */
/* ===================================== */

.hero {
  position: relative;
  min-height: calc(100svh - var(--header-height));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  padding: clamp(4rem, 6vw, 8rem) 0;
  overflow: hidden;
}

.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1.6rem, 2vw, 2.8rem);
  max-width: 80rem;
}

.hero-title {
  font-size: clamp(3.8rem, 5vw, 6rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.5px;
}

.hero-subtitle {
  font-size: clamp(2rem, 2.5vw, 2.8rem);
  font-weight: 600;
  color: var(--color-primary);
  letter-spacing: 0.3px;
}

.hero-text {
  max-width: 60rem;
  font-size: 1.8rem;
  line-height: 1.7;
  opacity: 0.85;
}

.hero strong {
  font-size: 1.8rem;
  font-weight: 500;
  opacity: 0.85;
  letter-spacing: 0.3px;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  width: 100%;
  max-width: 32rem;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 30%,
      rgba(56, 189, 248, 0.15),
      transparent 60%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      rgba(0, 0, 0, 0.2),
      transparent 40%);
  pointer-events: none;
}

/* ===================================== */
/* ============== BUTTONS ============== */
/* ===================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem 2.4rem;

  border-radius: var(--radius-md);
  font-weight: 600;
  text-decoration: none;

  background: var(--color-primary);
  color: var(--color-black);

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    background 0.3s ease;

  position: relative;
  overflow: hidden;
}

.btn::after {
  content: "";
  position: absolute;

  top: 0;
  left: -100%;

  width: 100%;
  height: 100%;

  background: linear-gradient(120deg,
      transparent,
      rgba(255, 255, 255, 0.4),
      transparent);

  transition: left 0.6s;
}

.btn:hover::after {
  left: 100%;
}

.btn:active {
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
}

.btn-secondary:hover {
  background: var(--color-primary);
  color: var(--color-black);
}

/* ======= SECCTION DIVIDER ======= */
.section {
  position: relative;
}

.section:not(:last-child)::after {
  content: "";
  display: block;
  width: 8rem;
  height: 0.1rem;

  margin: 6rem auto 0;

  background: linear-gradient(to right,
      transparent,
      rgba(255, 255, 255, 0.2),
      transparent);
}

/* ========= Scroll Indicator ========== */
.scroll-indicator {
  width: 2px;
  height: 4rem;
  margin-top: 4rem;
  background: rgba(255, 255, 255, 0.03);
  position: relative;
  overflow: hidden;
}

.scroll-indicator::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 40%;
  background: var(--color-primary);
  animation: scrollMove 1.5s infinite;
}

@keyframes scrollMove {
  0% {
    top: -40%;
  }

  100% {
    top: 100%;
  }
}

/* ===================================== */
/* ======= FEATURED PROJECT ============ */
/* ===================================== */

.featured-project {
  background: rgba(255, 255, 255, 0.02);
}

.featured-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin-top: var(--space-lg);
  align-items: center;

  /* padding: 2rem; */
  border-radius: var(--radius-lg);
  transition: box-shadow var(--transition);
}

.featured-grid:hover {
  box-shadow: 0 1.2rem 2.4rem rgba(56, 189, 248, 0.2);
}

.featured-image img {
  width: 100%;
  border-radius: var(--radius-lg);
}

.featured-content {
  padding: 0 2rem 2rem 2rem;
}

.featured-badge {
  display: inline-block;
  background: rgba(56, 189, 248, 0.15);
  color: var(--color-primary);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.featured-title {
  font-size: 2.8rem;
  margin: 1rem 0 1rem 0;
  text-align: left;
}

.featured-text {
  font-size: var(--fs-base);
  opacity: 0.85;
  margin-bottom: var(--space-sm);
  text-align: left;
}

.featured-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.tool {
  padding: 0.6rem 1.2rem;
  font-size: 1.2rem;
  border-radius: 5rem;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.featured-impact {
  list-style: none;
  padding: 0 0 0 1rem;
  margin-bottom: 2rem;
  text-align: left;
  opacity: 0.85;
}

.featured-buttons {
  display: flex;
  gap: 1.4rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===================================== */
/* ======= PROJECT TIMELINE ============ */
/* ===================================== */

.timeline {
  position: relative;
  margin-top: 4rem;
  padding-left: 2rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(255, 255, 255, 0.15);
}

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

.timeline-dot {
  position: absolute;
  left: -0.4rem;
  top: 0.5rem;
  width: 1.4rem;
  height: 1.4rem;
  background: var(--color-primary);
  border-radius: 50%;
}

.timeline-content {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  padding: 2rem;
}

.timeline-content h3 {
  font-size: 1.8rem;
  margin-bottom: 0.6rem;
}

.timeline-content p {
  font-size: 1.4rem;
  opacity: 0.85;
}

.timeline-date {
  display: block;
  font-size: 1.2rem;
  opacity: 0.6;
  margin-top: 0.8rem;
}

/* ===================================== */
/* ============== SKILLS =============== */
/* ===================================== */

/* ============= TOOLKIT ============ */
.toolkit-grid {
  margin: 4rem 0 4rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.toolkit-badge {
  padding: 0.6rem 1.2rem;

  border-radius: 999px;

  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);

  font-size: 1.2rem;
  letter-spacing: 3px;

  transition: var(--transition);
}

.toolkit-badge:hover {
  background: rgba(56, 189, 248, 0.15);
  color: var(--color-primary);

  transform: translateY(-2px);
}

/* ============= SKILLS STATS ============ */
.skills-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 4rem;
  margin-bottom: 6rem;
  text-align: center;
}

.stat h3 {
  font-size: 3rem;
  color: var(--color-primary);
}

.stat p {
  font-size: 1.4rem;
  opacity: 0.8;
}

.skills-grid {
  margin-top: var(--space-lg);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.skill-card {
  position: relative;
  overflow: hidden;

  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.06);

  padding: 3rem;
  border-radius: var(--radius-lg);

  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 1rem 3rem rgba(56, 189, 248, 0.2);
}

.skill-card h3 {
  font-size: 2rem;
  color: var(--color-primary);
  margin-bottom: 1.2rem;
}

.skill-card p {
  font-size: 1.5rem;
  opacity: 0.85;
}

.skill-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left,
      rgba(56, 189, 248, 0.15),
      transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

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

/* ===== Skill Icons ===== */
.skill-icon {
  font-size: 3rem;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
  display: inline-flex;
  justify-content: center;
  align-items: center;

  background: rgba(56, 189, 248, 0.08);
  width: 6rem;
  height: 6rem;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.skill-card:hover .skill-icon {
  background: rgba(56, 189, 248, 0.18);
  transform: scale(1.1);
}

/* ===== Skill Tags ===== */
.skill-tags {
  margin-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.skill-tag {
  font-size: 1.3rem;
  padding: 0.6rem 1.2rem;
  border-radius: 2rem;

  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);

  transition: all 0.3s ease;
}

.skill-tag:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.4);
}

/* ===== Skill Level Colors ===== */
.skill-tag.advanced {
  border-color: rgba(56, 189, 248, 0.6);
  background: rgba(56, 189, 248, 0.12);
}

.skill-tag.intermediate {
  border-color: rgba(255, 255, 255, 0.15);
}

/* ===== Stable Tooltip System ===== */
.skill-tag {
  position: relative;
  cursor: default;
}

.tooltip {
  position: absolute;
  bottom: 140%;
  left: 50%;
  transform: translateX(-50%);

  background: #0b1220;
  color: #fff;

  padding: 0.8rem 1.2rem;
  border-radius: 0.8rem;

  font-size: 1.2rem;
  line-height: 1.4;
  text-align: center;

  width: max-content;
  max-width: 240px;

  opacity: 0;
  visibility: hidden;

  transition: opacity 0.2s ease, transform 0.2s ease;

  border: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 99999;
}

/* Arrow */
.tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: #0b1220 transparent transparent transparent;
}

/* Hover */
.skill-tag:hover .tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-4px);
}

.skill-tag:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.skill-tag::before {
  content: "";
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%);

  border-width: 6px;
  border-style: solid;
  border-color: #0b1220 transparent transparent transparent;

  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 9999;
}

.skill-tag:hover::before {
  opacity: 1;
}

/* ========== SKILLS CREDIBILITY ======= */
.skills-proof {
  margin-top: 6rem;
  padding-top: 4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);

  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 4rem;
  text-align: center;
}

.proof-item h4 {
  font-size: 2.4rem;
  color: var(--color-primary);
  margin-bottom: 0.8rem;
}

.proof-item p {
  font-size: 1.4rem;
  opacity: 0.8;
}

/* ===================================== */
/* ============= KEY IMPACT ============ */
/* ===================================== */

.impact-section {
  background: var(--color-bg-secondary);
}

.impact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

.impact-card {
  background: rgba(255, 255, 255, 0.03);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: transform 0.3s ease;
}

.impact-card:hover {
  transform: translateY(-0.6rem);
}

.impact-card h3 {
  color: var(--color-primary);
  font-size: var(--fs-xl);
  margin-bottom: var(--space-sm);
}

/* ===================================== */
/* ============== GITHUB =============== */
/* ===================================== */

.github-container {
  margin-top: 4rem;
  display: flex;
  justify-content: center;
}

.github-container img {
  width: 100%;
  border-radius: 1rem;
  opacity: 0.9;
}

.github-text {
  margin-top: 2rem;
  font-size: var(--fs-base);
  opacity: 0.85;
}

.github-link {
  margin-top: 2rem;
  text-align: center;
}


/* ===================================== */
/* ============= PROJECTS ============== */
/* ===================================== */

.project-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-bottom: 3rem;
}

.filter-btn {
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.03);
  color: var(--color-white);
  cursor: pointer;
  font-size: 1.2rem;
  transition: var(--transition);
}

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

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

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(3rem, 4vw, 5rem);
}

/* ===== PROJECT CARD ===== */
.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--color-white);

  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  border-radius: 1.6rem;
  overflow: hidden;

  /* ===== Project Card Stagger ===== */
  opacity: 0;
  transform: translateY(4rem);
  transition: opacity 0.8s ease, transform 0.8s ease;

  border: 1px solid rgba(255, 255, 255, 0.06);
}

.project-card.card-reveal {
  opacity: 1;
  transform: translateY(0);
}

.project-card:hover {
  transform: translateY(-1rem) scale(1.02);
  box-shadow:
    0 1.5rem 4rem rgba(56, 189, 248, 0.15),
    0 0 2.5rem rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(56, 189, 248, 0.5);
}

/* ===== Project Level Tag ===== */
.project-level {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.1rem;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.8);
}

.project-level.advanced {
  color: #22c55e;
  border: 1px solid #22c55e;
}

.project-level.intermediate {
  color: #f59e0b;
  border: 1px solid #f59e0b;
}

.project-level.beginner {
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
}

/* ===== Image ===== */
.project-image {
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 20rem;
  object-fit: cover;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.6s ease;
}

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

.project-content {
  padding: clamp(2rem, 3vw, 3rem);
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  flex-grow: 1;
}

.project-title {
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.3;
}

.project-text {
  font-size: var(--fs-base);
  line-height: 1.7;
  opacity: 0.9;
}

.project-impact {
  list-style: none;
  margin-top: var(--space-md);
  padding: 0;
}

.project-impact li {
  font-size: 1.4rem;
  margin-bottom: 0.6rem;
  opacity: 0.9;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
}

.project-tag {
  font-size: 1.1rem;
  padding: 0.4rem 0.9rem;
  background: rgba(56, 189, 248, 0.15);
  color: var(--color-primary);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 3rem;
}

.project-link {
  margin-top: auto;
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--color-primary);
  transition: transform 0.3s ease;
}

.project-card:hover .project-link {
  transform: translateX(0.6rem);
}

/* ===================================== */
/* ============== CONTACT ============== */
/* ===================================== */

.contact-section {
  padding: clamp(6rem, 8vw, 10rem) 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
}

.contact-info,
.contact-form-wrapper {
  background: rgba(255, 255, 255, 0.03);
  padding: 3rem;
  border-radius: var(--radius-lg);
}

.contact-info p {
  font-size: var(--fs-base);
  line-height: 1.7;
  opacity: 0.85;
}

.contact-info h3,
.contact-form-wrapper h3 {
  font-size: 2.2rem;
  margin-bottom: var(--space-sm);
}

/* ===== CONTACT ACTION BUTTONS ======== */
.contact-links {
  margin-top: var(--space-md);
  display: flex;
  gap: 1.6rem;
  justify-content: center;

  flex-wrap: wrap;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;

  padding: 1rem 1.8rem;

  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);

  font-size: 1.5rem;
  font-weight: 500;
  text-decoration: none;

  color: var(--color-white);

  transition: all 0.3s ease;
}

.contact-link:hover {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.4);
  color: var(--color-primary);
  transform: translateY(-3px);
}

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

input,
select,
textarea {
  width: 100%;
  padding: 1.2rem 1.4rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #0b1220;
  color: var(--color-white);
  font-size: 1.5rem;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

.btn-primary {
  width: 100%;
  border: none;
}

/* ===== Universal Card Hover Depth ===== */
.project-card,
.impact-card,
.contact-info,
.contact-form-wrapper {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.06);

  transition: transform 0.3s ease,
    box-shadow 0.3s ease;
}

.project-card:hover,
.impact-card:hover,
.contact-info:hover,
.contact-form-wrapper:hover {
  transform: translateY(-4px);
}

/* ===================================== */
/* ============== FOOTER =============== */
/* ===================================== */

.footer {
  background: linear-gradient(180deg,
      var(--color-bg-dark),
      #01040c);
  padding: clamp(6rem, 8vw, 10rem) 0 4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);

  opacity: 0;
  transform: translateY(4rem);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.footer-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(4rem, 5vw, 6rem);
  max-width: 110rem;
  margin: 0 auto;
}

/* ===== Left Brand Section ===== */
.footer-brand {
  max-width: 42rem;
}

/* ======== Profile Image ======== */
@keyframes float {
  0% {
    transform: translateY(0);
  }

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

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

.profile-img {
  width: 7rem;
  height: 7rem;
  margin: 0 auto 3rem;

  border-radius: 50%;
  overflow: hidden;
  position: relative;

  background: linear-gradient(135deg, var(--color-primary), #6366f1);
  padding: 4px;

  animation: float 6s ease-in-out infinite;
}

.profile-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;

  box-shadow: 0 2rem 4rem rgba(0, 0, 0, 0.5);
}

/* ======= Subtle Outer Glow ======= */
.profile-img::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.3) 0%, transparent 70%);
  z-index: -1;
}

.footer-tagline {
  margin-top: var(--space-sm);
  font-size: 1.5rem;
  line-height: 1.7;
  opacity: 0.75;
}

/* ===== Social Links ===== */
.social-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin-top: 2.4rem;
}

.footer-link {
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.8);
  transition: transform 0.3s ease, color 0.3s ease;
}

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

/* ===== Right Navigation ===== */
.footer-nav h4 {
  font-size: 1.8rem;
  margin-bottom: 2rem;
  color: var(--color-white);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-bottom: 3rem;
}

.footer-links a {
  text-decoration: none;
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.3s ease;
}

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

/* ===== Newsletter ===== */
.footer-newsletter h4 {
  font-size: 1.8rem;
  margin-bottom: var(--space-sm);
}

.newsletter-form {
  display: flex;
  gap: 1rem;
}

.newsletter-form input {
  flex: 1;
  padding: 1.2rem 1.4rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #0b1220;
  color: var(--color-white);
  font-size: 1.4rem;
}

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

.newsletter-form button {
  padding: 1.2rem 1.8rem;
  border-radius: 1rem;
  border: none;
  font-weight: 600;
  background: var(--color-primary);
  color: var(--color-black);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.newsletter-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 1rem 2rem rgba(56, 189, 248, 0.3);
}

.footer-bottom {
  margin-top: 5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
  font-size: 1.4rem;
  opacity: 0.6;
}

/* =========== Footer Reveal =========== */
.footer.footer-reveal {
  opacity: 1;
  transform: translateY(0);
}

/* ===================================== */
/* ========= BACK TO TOP =============== */
/* ===================================== */

.btn-top {
  position: fixed;
  bottom: 3rem;
  right: 3rem;
  width: 4.8rem;
  height: 4.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: var(--color-black);
  border: none;
  border-radius: 50%;
  font-size: 2rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.2);
  transition: transform 0.3s ease, opacity 0.3s ease;
  z-index: 999;
}

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

.btn-top:hover {
  transform: translateY(-0.4rem);
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--color-primary);
  z-index: 2000;
}

/* ================================== */
/* ========= PROJECT PAGE =========== */
/* ================================== */

.project-page .section {
  padding: 10rem 0;

  opacity: 1;
  transform: none;
}

.project-page .section-title {
  margin-bottom: 3rem;
}

.project-page .section-text {
  max-width: 70rem;
  margin: 0 auto;
  font-size: 1.7rem;
  opacity: 0.9;
}

/* ========= PROJECT HERO =========== */
.project-hero {
  padding: 12rem 0 8rem;
  background: linear-gradient(135deg, var(--color-bg), var(--color-bg-secondary));
}

.project-hero-grid {
  max-width: 80rem;
  margin: 0 auto;
  text-align: center;
}

.project-label {
  text-transform: uppercase;
  font-size: 1.2rem;
  letter-spacing: 2px;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.project-hero-title {
  font-size: clamp(3.2rem, 5vw, 4.8rem);
  margin-bottom: 2rem;
}

.project-hero-subtitle {
  font-size: 1.8rem;
  opacity: 0.85;
  margin-bottom: 3rem;
}

.project-screenshot img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: 0 2rem 4rem rgba(0, 0, 0, 0.4);
}

.project-meta-badges,
.project-meta {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0 2rem 0;
  flex-wrap: wrap;
  opacity: 0.85;
}

.badge {
  padding: 0.5rem 1.2rem;
  border-radius: 5rem;
  font-size: 1.3rem;
  font-weight: 600;
}

.difficulty-advanced {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.5);
  color: var(--color-primary);
}

.badge-sql {
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-white);
}

.project-actions {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

/* ======== PROJECT OVERVIEW ========= */
.project-overview {
  text-align: center;
}

.project-overview .container {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}

.project-overview .section-text {
  max-width: 70rem;
  margin: 0 auto;
  font-size: var(--fs-base);
  line-height: 1.8;
  opacity: 0.9;
}

.project-overview .section-text strong {
  color: var(--color-primary);
}

/* ======== PROJECT ARCHITECTURE ========= */
.architecture-pipeline {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 4rem;
}

.pipeline-step {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.4rem;
  padding: 2rem 2.6rem;
  text-align: center;
  min-width: 14rem;
  backdrop-filter: blur(8px);
}

.pipeline-step ion-icon {
  font-size: 2.2rem;
  color: var(--color-primary);
  margin-bottom: 0.6rem;
}

.pipeline-step h3 {
  font-size: 2rem;
  margin-bottom: 0.3rem;
}

.pipeline-step p {
  font-size: 1.2rem;
  opacity: 0.75;
}

.pipeline-arrow {
  font-size: 2rem;
  color: var(--color-primary);
  transform: rotate(90deg);
  opacity: 0.7;
}

/* ======== DATABASE SCHEMA ========= */
.schema-section {
  text-align: center;
}

.schema-intro {
  max-width: 70rem;
  margin: 0 auto 4rem auto;
  font-size: var(--fs-base);
  line-height: 1.7;
  opacity: 0.85;
  text-align: center;
}

.schema-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 3rem;
  margin-bottom: 4rem;
}

.schema-image {
  width: 100%;
  max-width: 80rem;
  display: block;
  margin: auto;
  border-radius: var(--radius-md);
}

.schema-details {
  display: grid;
  gap: 3rem;
}

.schema-table {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
}

.schema-table h3 {
  font-size: var(--fs-md);
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.schema-table p {
  font-size: 1.5rem;
  line-height: 1.6;
  opacity: 0.8;
}

/* ======== ANALYSIS WORKFLOW (SQL TECHNIQUES) ========= */
.techniques-section {
  text-align: center;
}

.techniques-grid {
  display: grid;
  gap: 3rem;
  margin-top: 4rem;
}

.technique-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 2.6rem;
  text-align: left;
  transition: transform var(--transition), box-shadow var(--transition);
}

.technique-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 1.2rem 2.4rem rgba(56, 189, 248, 0.25);
}

.technique-card h3 {
  font-size: var(--fs-md);
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.technique-card p {
  font-size: 1.5rem;
  line-height: 1.6;
  opacity: 0.85;
}

/* ======== SQL QUERIES ========= */
.sql-section {
  text-align: center;
}

.query-grid {
  display: grid;
  gap: 3rem;
  margin-top: 4rem;
}

.code-block {
  background: #0b1220 !important;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  overflow-x: auto;
}

.query-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  margin-bottom: 4rem;
  transition: transform var(--transition), box-shadow var(--transition);
}

.query-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 1.2rem 2.4rem rgba(56, 189, 248, 0.25);
}

.query-card h3 {
  font-size: var(--fs-md);
  margin-bottom: 1.4rem;
  color: var(--color-primary);
}

.code-wrapper {
  position: relative;
  margin-top: 1.6rem;
}

.code-header {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.copy-btn {
  position: absolute;
  top: var(--space-xs);
  right: var(--space-xs);
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: var(--color-primary);
  font-size: 1.1rem;
  padding: 0.5rem 1rem;
  border-radius: 0.6rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
  z-index: 2;
}

.copy-btn:hover {
  background: rgba(56, 189, 248, 0.2);
}

.query-description {
  text-align: center;
  font-size: 1.4rem;
  margin-top: var(--space-sm);
  opacity: 0.8;
}

/* ======== SQL OPTIMIZATION ======= */
.optimization-grid {
  display: grid;
  gap: 3rem;
  margin-top: 4rem;
}

.optimization-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 2.6rem;
  transition: transform var(--transition), box-shadow var(--transition);
}

.optimization-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 1.2rem 2.4rem rgba(56, 189, 248, 0.25);
}

.optimization-card h3 {
  font-size: var(--fs-md);
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.optimization-card p {
  font-size: 1.5rem;
  line-height: 1.6;
  opacity: 0.85;
}

/* ======== BUSINESS RECOMMENDATIONS ========= */
.recommendation-grid {
  display: grid;
  gap: 3rem;
  margin-top: 4rem;
}

.recommendation-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 2.6rem;
  transition: transform var(--transition), box-shadow var(--transition);
}

.recommendation-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 1.2rem 2.4rem rgba(56, 189, 248, 0.25);
}

.recommendation-card h3 {
  font-size: var(--fs-md);
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.recommendation-card p {
  font-size: 1.5rem;
  line-height: 1.6;
  opacity: 0.85;
}

/* ======== KEY INSIGHTS ========= */
.insights-section {
  text-align: center;
}

.insights-grid {
  display: grid;
  gap: 3rem;
  margin-top: 4rem;
}

.insight-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 2.6rem;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}

.insight-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 1.2rem 2.4rem rgba(56, 189, 248, 0.25);
}

.insight-number {
  display: block;
  font-size: 3.6rem;
  font-weight: 700;
  margin-bottom: var(--space-xs);
  color: var(--color-primary);
  letter-spacing: 0.05rem;
}

.insight-card h3 {
  font-size: var(--fs-md);
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.insight-card p {
  font-size: 1.5rem;
  line-height: 1.6;
  opacity: 0.85;
}

.insight-card strong {
  color: var(--color-primary);
}

/* ======== VISUALIZATION RESULTS ========= */
.visualization-grid {
  display: grid;
  gap: 3rem;
  margin-top: 4rem;
}

.viz-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}

.viz-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 1.2rem 2.4rem rgba(56, 189, 248, 0.25);
}

.viz-card img {
  width: 100%;
  border-radius: 0.8rem;
  margin-bottom: var(--space-sm);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.viz-card p {
  font-size: 1.5rem;
  line-height: 1.6;
  opacity: 0.85;
}

/* ======== BUSINESS IMPACT ========= */
.impact-summary-section {
  text-align: center;
}

.impact-summary-badge {
  display: inline-block;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.5);
  padding: 0.6rem 1.4rem;
  border-radius: 5rem;
  font-size: 1.3rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.impact-summary-grid {
  display: grid;
  gap: 3rem;
  margin-top: 4rem;
}

.impact-summary-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 2.6rem;
  text-align: left;
  transition: transform var(--transition), box-shadow var(--transition);
}

.impact-summary-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 1.2rem 2.4rem rgba(56, 189, 248, 0.25);
}

.impact-summary-card h3 {
  font-size: var(--fs-md);
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.impact-summary-card p {
  font-size: 1.5rem;
  line-height: 1.6;
  opacity: 0.85;
}

/* ========= METRICS CARDS =========== */
.metric-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 3rem;
  border-radius: var(--radius-lg);
  text-align: center;
  margin-bottom: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.metric-card:hover {
  transform: translateY(-0.6rem);
  box-shadow: 0 1rem 3rem rgba(56, 189, 248, 0.25);
}

.metric-card h3 {
  font-size: 3.2rem;
  margin-bottom: 1rem;
}

/* ============================================== */
/* ============= PROJECT LEARNING =============== */
/* ============================================== */

/* ============= KEY TAKEAWAYS =============== */
.learning-grid {
  display: grid;
  gap: 3rem;
  margin-top: 4rem;
}

.learning-item {
  background: rgba(255, 255, 255, 0.04);
  padding: 2.6rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.05);

  transition: transform var(--transition), box-shadow var(--transition);
}

.learning-item:hover {
  transform: translateY(-4px);
  box-shadow:
    0 1rem 2rem rgba(56, 189, 248, 0.15),
    0 0 0 1px rgba(0, 0, 0, 0.25);
}

.learning-item h3 {
  color: var(--color-primary);
  margin-bottom: 1rem;
  font-size: 1.8rem;
}

.learning-item__icon {
  width: 4.8rem;
  height: 4.8rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);

  margin: 0 auto 1.6rem auto;
}

.learning-item__icon ion-icon {
  font-size: 2.2rem;
  color: var(--color-primary);
}

.learning-item p {
  font-size: 1.5rem;
  line-height: 1.6;
  opacity: 0.9;
}

/* ============================================== */
/* ============ PROJECT RESOURCES =============== */
/* ============================================== */

.resources-grid {
  display: grid;
  gap: 3rem;
  margin-top: 4rem;
}

.resource-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 2.6rem;
  text-decoration: none;
  color: inherit;
  transition: transform var(--transition), box-shadow var(--transition);
}

.resource-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 1rem 2rem rgba(56, 189, 248, 0.25);
}

.resource-card ion-icon {
  font-size: var(--fs-lg);
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.resource-card h3 {
  font-size: var(--fs-md);
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.resource-card p {
  font-size: 1.5rem;
  line-height: 1.6;
  opacity: 0.85;
}

.resource-card .btn-secondary {
  margin-top: var(--space-md);
}

/* ============================================== */
/* ===== PROJECT NAVIGATION (NEXT / PREV) ======= */
/* ============================================== */

.project-navigation {
  padding: 8rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.project-nav-grid {
  display: grid;
  gap: 3rem;
  grid-template-columns: 1fr 1fr;
}

.project-nav {
  display: block;
  padding: 3rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.04);
  text-decoration: none;
  color: var(--color-white);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-nav:hover {
  transform: translateY(-4px);
  box-shadow: 0 1rem 2rem rgba(56, 189, 248, 0.25);
}

.nav-label {
  font-size: 1.3rem;
  opacity: 0.7;
  display: block;
  margin-bottom: 0.6rem;
}

.project-nav h3 {
  font-size: var(--fs-base);
  color: var(--color-primary);
}
