/* ===== TYPOGRAPHY & RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: radial-gradient(circle at top center, #101524 0%, #090b12 50%, #05060a 100%);
  color: #eef2ff;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ===== ANIMATED GRID BACKGROUND ===== */
body::before {
  content: "";
  position: fixed;
  inset: 0;

  background-image:
    linear-gradient(rgba(124, 236, 255, 0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 236, 255, 0.10) 1px, transparent 1px);

  background-size: 50px 50px;

  animation: gridMove 20s linear infinite;

  pointer-events: none;
  z-index: -2;
}

/* Smooth grid movement */
@keyframes gridMove {
  from {
    background-position: 0 0, 0 0;
  }

  to {
    background-position: 50px 50px, 50px 50px;
  }
}


/* ===== ANIMATED GRADIENT GLOW ===== */
/* ===== SUBTLE ANIMATED GRID ===== */
body::before {
  content: "";
  position: fixed;
  inset: 0;

  background-image:
    linear-gradient(rgba(124, 236, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 236, 255, 0.05) 1px, transparent 1px);

  background-size: 60px 60px;

  animation: gridMove 40s linear infinite;

  pointer-events: none;
  z-index: -2;
}

@keyframes gridMove {
  from {
    background-position: 0 0, 0 0;
  }

  to {
    background-position: 60px 60px, 60px 60px;
  }
}


/* ===== SOFT FLOATING GLOW (LESS INTENSE) ===== */
body::after {
  content: "";
  position: fixed;
  inset: 0;

  background:
    radial-gradient(circle at 20% 20%, rgba(124, 236, 255, 0.08), transparent 45%),
    radial-gradient(circle at 80% 30%, rgba(85, 120, 255, 0.06), transparent 55%);

  animation: glowMove 20s ease-in-out infinite alternate;

  pointer-events: none;
  z-index: -1;
}

/* ===== LIVE BACKGROUND (VISIBLE BUT PREMIUM) ===== */
body::after {
  content: "";
  position: fixed;
  inset: 0;

  background:
    radial-gradient(circle at 25% 25%, rgba(124, 236, 255, 0.16), transparent 50%),
    radial-gradient(circle at 75% 60%, rgba(85, 120, 255, 0.14), transparent 55%);

  animation: ambientMove 18s ease-in-out infinite alternate;

  pointer-events: none;
  z-index: -1;
}

/* Smooth premium motion */
@keyframes ambientMove {
  0% {
    transform: translate(0px, 0px) scale(1);
    opacity: 0.85;
  }

  50% {
    transform: translate(-40px, -25px) scale(1.06);
    opacity: 1;
  }

  100% {
    transform: translate(30px, 15px) scale(1.04);
    opacity: 0.9;
  }
}

/* Smooth floating + breathing motion */
@keyframes ambientMove {
  0% {
    transform: translate(0px, 0px) scale(1);
    opacity: 0.7;
  }

  50% {
    transform: translate(-30px, -20px) scale(1.05);
    opacity: 1;
  }

  100% {
    transform: translate(20px, 10px) scale(1.03);
    opacity: 0.8;
  }
}

@keyframes glowMove {
  0% {
    transform: translate(0, 0) scale(1);
  }

  100% {
    transform: translate(-20px, -15px) scale(1.03);
  }
}

/* Smooth floating glow animation */
@keyframes glowMove {
  0% {
    transform: translate(0, 0) scale(1);
  }

  100% {
    transform: translate(-30px, -20px) scale(1.05);
  }
}

/* ===== NAVIGATION ===== */
nav {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  padding: 20px 8%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(5, 6, 10, 0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  z-index: 1000;
  transition: all 0.4s ease;
}

.logo {
  font-family: 'Orbitron', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 2px;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

nav ul {
  display: flex;
  gap: 40px;
  list-style: none;
}

nav a {
  color: #aeb8d8;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: all 0.3s ease;
}

nav a:hover {
  color: #ffffff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* ===== GLOBAL UTILITIES ===== */
.container {
  width: min(1300px, 92%);
  margin: auto;
  padding: 120px 0 100px;
}

.blue {
  color: #7cecff;
}

/* More refined, subtle glow */
.glow {
  color: #ffffff;
  text-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
}

.subtitle {
  max-width: 700px;
  color: #aeb8d8;
  line-height: 1.8;
  font-size: 18px;
  margin-bottom: 60px;
  font-weight: 300;
}

.back {
  display: inline-block;
  margin-bottom: 40px;
  text-decoration: none;
  color: #aeb8d8;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 12px;
  transition: 0.3s ease;
}

.back:hover {
  color: #ffffff;
  transform: translateX(-5px);
}

/* ===== BUTTONS ===== */
.buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 34px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 1px;
  transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, #ffffff, #d8e0ff);
  color: #05060a;
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.15), inset 0 -2px 5px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 14px 30px rgba(255, 255, 255, 0.25), inset 0 2px 4px rgba(255, 255, 255, 0.7);
  background: #ffffff;
}

.btn-premium {
  display: inline-flex;
  border: 1px solid rgba(124, 236, 255, 0.4);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #ffffff;
  box-shadow: 0 0 15px rgba(124, 236, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.btn-premium::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(124, 236, 255, 0.2), transparent);
  transition: all 0.6s ease;
}

.btn-premium:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 10px 25px rgba(124, 236, 255, 0.3), inset 0 0 10px rgba(124, 236, 255, 0.2);
  border-color: rgba(124, 236, 255, 0.8);
  background: rgba(124, 236, 255, 0.08);
}

.btn-premium:hover::before {
  left: 100%;
}

.btn-secondary {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-secondary:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4);
}

/* ===== HERO SECTION ===== */
.hero {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 140px 6% 60px;
}

.hero h1 {
  font-family: 'Orbitron', -apple-system, sans-serif;
  font-size: clamp(48px, 6vw, 82px);
  line-height: 1.05;
  margin-bottom: 24px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: -1px;
}

.hero p {
  font-size: 20px;
  max-width: 620px;
  color: #aeb8d8;
  margin-bottom: 40px;
  font-weight: 300;
  line-height: 1.6;
}

.hero-image {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-image img {
  width: 100%;
  max-width: 480px;
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
  z-index: 2;
  position: relative;
  aspect-ratio: 4/5;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.hero-image:hover img {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.9), 0 0 50px rgba(124, 236, 255, 0.15);
}

/* Clean up hero animation, make it subtle */
.hero-image::before {
  content: "";
  position: absolute;
  width: 105%;
  height: 105%;
  top: -2.5%;
  left: -2.5%;
  background: radial-gradient(circle, rgba(124, 236, 255, 0.15) 0%, transparent 60%);
  border-radius: 36px;
  animation: breathe 6s ease-in-out infinite;
  z-index: 1;
}

@keyframes breathe {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.6;
  }

  50% {
    transform: scale(1.03);
    opacity: 1;
  }
}

/* Tags and Pills */
.tag,
.stat-tag {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #aeb8d8;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(14px);
}

/* ===== SECTIONS ===== */
section {
  padding: 1px 4%;
}

.section-title {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(36px, 5vw, 56px);
  margin-bottom: 20px;
  text-transform: uppercase;
  font-weight: 700;
  line-height: 1.1;
}

/* ===== BENTO CARDS & GRID ===== */
.grid,
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

/* The Core Bento Grid Component */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  width: 100%;
}

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

.bento-card,
.card,
.project-card,
.about-box,
.contact-box {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  /* Inner rim highlight */
  display: flex;
  flex-direction: column;
}

/* Grid Cell Sizing Rules Removed */

/* Image handling for zero-distortion and perfect cropping */
.card img,
.project-card img,
.bento-card img,
.card video,
.project-card video,
.bento-card video {
  width: 100%;
  height: 100%;
  object-fit: cover !important;
  display: block;
  transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Add aspect ratio constraints if no specific height is set */
.bento-media-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 32px;
}

/* Refined Hover States */
.bento-card:hover,
.card:hover,
.project-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.6),
    0 0 40px rgba(124, 236, 255, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
}

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

.card img,
.project-card img {
  width: 100%;
  height: clamp(300px, 40vh, 420px);
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.card:hover img,
.project-card:hover img {
  transform: scale(1.03);
}

.content,
.project-content {
  padding: 32px;
}

.content h2,
.project-content h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 26px;
  margin-bottom: 12px;
  text-transform: uppercase;
  line-height: 1.2;
}

.content p,
.project-content p {
  color: #aeb8d8;
  line-height: 1.7;
  margin-bottom: 28px;
  font-size: 15px;
  font-weight: 300;
}

/* Dedicated about & contact box paddings */
.about-box,
.contact-box {
  padding: 20px;
}

.about-content {
  display: flex;
  gap: 60px;
  align-items: center;
}

.about-image {
  width: 100%;
  max-width: 320px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  object-fit: cover;
}

.about-text-content {
  flex: 1;
}

.about-text-content p,
.contact-box p {
  color: #aeb8d8;
  margin-top: 24px;
  font-size: 18px;
  line-height: 1.7;
  font-weight: 300;
}

/* ===== FOOTER ===== */
footer {
  text-align: center;
  padding: 40px;
  color: #aeb8d8;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-weight: 300;
  font-size: 14px;
  letter-spacing: 1px;
}

/* Responsive overrides for Bento */
@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    padding-top: 160px;
  }

  .hero>div {
    grid-template-columns: 1fr !important;
    text-align: center;
    gap: 60px !important;
  }

  .hero-image {
    order: -1 !important;
  }

  .hero h1 {
    margin-inline: auto;
  }

  .hero p {
    margin-inline: auto;
  }

  .buttons {
    justify-content: center;
  }

  nav {
    flex-direction: column;
    gap: 20px;
    padding: 20px;
  }

  nav ul {
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .about-content {
    flex-direction: column;
    text-align: center;
  }

  .about-box,
  .contact-box {
    padding: 40px 24px;
  }

  /* Collapse Grid to vertical feed on tablets/mobile */
  .grid,
  .projects-grid {
    grid-template-columns: 1fr !important;
  }

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

  .card img,
  .project-card img {
    height: auto;
    min-height: 250px;
  }
}

@media (max-width: 500px) {
  .bento-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s forwards cubic-bezier(0.165, 0.84, 0.44, 1);
}

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


/* Project Header Overrides */
.project-header {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(48px, 7vw, 90px);
  line-height: 0.95;
  margin-bottom: 22px;
  text-transform: uppercase;
  color: #fff;
}

.project-header .blue {
  font-size: 0.78em;
  margin-top: 14px;
  display: block;
}

.intro-text {
  max-width: 860px;
  color: #b6c2e3;
  font-size: 20px;
  line-height: 1.8;
  margin-bottom: 65px;
}

.bento-card h2 {
  margin-bottom: 16px;
  font-weight: 600;
  /* makes it slightly bold */
  color: #7cecff;
  /* your blue */
  text-shadow: 0 0 12px rgba(124, 236, 255, 0.4);
  /* subtle glow */
}

.project-list {
  margin-top: 16px;
  padding-left: 18px;
  line-height: 1.9;
  font-weight: 500;
  color: #b6c2e3;
}

.project-list li {
  margin-bottom: 10px;
}

.content .tag {
  display: inline-block;
  margin-bottom: 18px;
  letter-spacing: 2px;
}

/* Single Vertical Video Layout */
.single-video {
  max-width: 400px;
  margin: 0 auto 60px auto;
  aspect-ratio: 9 / 16;
  border-radius: 20px;
  overflow: hidden;
}

.single-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blue-glow {
  color: #7cecff;
  text-shadow:
    0 0 10px rgba(124, 236, 255, 0.8),
    0 0 20px rgba(124, 236, 255, 0.6),
    0 0 40px rgba(124, 236, 255, 0.4);
  animation: glowPulse 2.5s ease-in-out infinite alternate;
}

@keyframes glowPulse {
  from {
    text-shadow:
      0 0 8px rgba(124, 236, 255, 0.6),
      0 0 18px rgba(124, 236, 255, 0.4);
  }

  to {
    text-shadow:
      0 0 14px rgba(124, 236, 255, 0.9),
      0 0 30px rgba(124, 236, 255, 0.7),
      0 0 60px rgba(124, 236, 255, 0.4);
  }
}

.success-tick {
  display: flex;
  justify-content: center;
  align-items: center;
}

.success-tick svg {
  display: block;
}

.tick-circle {
  stroke: #7cecff;
  stroke-width: 2;
  stroke-dasharray: 160;
  stroke-dashoffset: 160;
  animation: tickCircle 0.7s ease forwards;
  filter: drop-shadow(0 0 8px rgba(124, 236, 255, 0.5));
}

.tick-check {
  stroke: #7cecff;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 50;
  stroke-dashoffset: 50;
  animation: tickCheck 0.45s ease forwards 0.65s;
  filter: drop-shadow(0 0 6px rgba(124, 236, 255, 0.45));
}

@keyframes tickCircle {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes tickCheck {
  to {
    stroke-dashoffset: 0;
  }
}

#success-message {
  animation: successPop 0.5s ease;
}

@keyframes successPop {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(0.96);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ===== EXPERIENCE TIMELINE ===== */
.timeline {
  position: relative;
  max-width: 800px;
  margin: auto;
  padding-left: 40px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom,
      rgba(124, 236, 255, 0.15) 0%,
      rgba(124, 236, 255, 0.9) 20%,
      rgba(124, 236, 255, 0.35) 50%,
      rgba(124, 236, 255, 0.9) 80%,
      rgba(124, 236, 255, 0.12) 100%);
  box-shadow: 0 0 10px rgba(124, 236, 255, 0.25);
  overflow: hidden;
}

/* Shimmer effect moving down the line */
.timeline::after {
  content: "";
  position: absolute;
  left: 9px;
  top: 0;
  width: 4px;
  height: 80px;
  background: linear-gradient(to bottom,
      rgba(124, 236, 255, 0),
      rgba(124, 236, 255, 0.95),
      rgba(124, 236, 255, 0));
  filter: blur(1px);
  animation: lineShimmer 2.6s linear infinite;
}

/* Each item */
.timeline-item {
  position: relative;
  margin-bottom: 50px;
}

/* Dot exactly centered on the line */
.timeline-dot {
  position: absolute;
  left: 10px;
  top: 5px;
  width: 14px;
  height: 14px;
  background: #7cecff;
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow:
    0 0 0 4px rgba(124, 236, 255, 0.08),
    0 0 12px rgba(124, 236, 255, 0.9),
    0 0 24px rgba(124, 236, 255, 0.45);
  animation: dotPulse 1.8s ease-in-out infinite;
  z-index: 2;
}

/* Content */
.timeline-content {
  padding-left: 30px;
}

.timeline-content h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 20px;
  margin-bottom: 6px;
}

.timeline-date {
  font-size: 13px;
  color: #aeb8d8;
  display: block;
  margin-bottom: 12px;
}

.timeline-content p {
  color: #b6c2e3;
  line-height: 1.7;
  font-size: 15px;
}

/* Animations */
@keyframes dotPulse {
  0% {
    box-shadow:
      0 0 0 0 rgba(124, 236, 255, 0.22),
      0 0 12px rgba(124, 236, 255, 0.85),
      0 0 22px rgba(124, 236, 255, 0.35);
    transform: translateX(-50%) scale(1);
  }

  50% {
    box-shadow:
      0 0 0 8px rgba(124, 236, 255, 0),
      0 0 18px rgba(124, 236, 255, 1),
      0 0 34px rgba(124, 236, 255, 0.55);
    transform: translateX(-50%) scale(1.08);
  }

  100% {
    box-shadow:
      0 0 0 0 rgba(124, 236, 255, 0),
      0 0 12px rgba(124, 236, 255, 0.85),
      0 0 22px rgba(124, 236, 255, 0.35);
    transform: translateX(-50%) scale(1);
  }
}

@keyframes lineShimmer {
  0% {
    top: -20px;
    opacity: 0;
  }

  15% {
    opacity: 1;
  }

  85% {
    opacity: 1;
  }

  100% {
    top: calc(100% - 40px);
    opacity: 0;
  }
}

/* ===== PREMIUM ABOUT SECTION ===== */
.premium-about-box {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.premium-about-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(124, 236, 255, 0.10), transparent 28%),
    radial-gradient(circle at 85% 75%, rgba(124, 236, 255, 0.08), transparent 26%);
  pointer-events: none;
}

.premium-about-content {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.about-image-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-image-glow {
  position: absolute;
  width: 115%;
  height: 115%;
  border-radius: 28px;
  background: radial-gradient(circle, rgba(124, 236, 255, 0.22) 0%, transparent 65%);
  filter: blur(18px);
  animation: aboutGlowPulse 3.5s ease-in-out infinite;
  z-index: 0;
}

.premium-about-image {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 320px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.45),
    0 0 25px rgba(124, 236, 255, 0.10);
  transition: transform 0.45s ease, box-shadow 0.45s ease;
}

.about-image-wrap:hover .premium-about-image {
  transform: translateY(-8px) scale(1.02);
  box-shadow:
    0 28px 60px rgba(0, 0, 0, 0.55),
    0 0 35px rgba(124, 236, 255, 0.18);
}

.premium-about-text .section-title {
  margin-bottom: 18px;
}

.premium-about-text p {
  color: #b6c2e3;
  font-size: 17px;
  line-height: 1.85;
  margin-bottom: 18px;
  max-width: 720px;
}

.premium-about-text p:last-child {
  margin-bottom: 0;
}

@keyframes aboutGlowPulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.7;
  }

  50% {
    transform: scale(1.06);
    opacity: 1;
  }
}

/* Responsive */
@media (max-width: 900px) {
  .premium-about-content {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .premium-about-text p {
    margin-left: auto;
    margin-right: auto;
  }

  .about-image-wrap {
    order: -1;
  }
}

/* ===== PROJECT DISCLAIMER MODAL ===== */
.project-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 6, 14, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 3000;
}

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

.project-modal {
  position: relative;
  width: min(680px, 100%);
  border-radius: 28px;
  padding: 36px;
  background: linear-gradient(145deg, rgba(16, 21, 36, 0.96), rgba(9, 11, 18, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.55),
    0 0 30px rgba(124, 236, 255, 0.08);
  color: #eef2ff;
}

.project-modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  border: none;
  background: transparent;
  color: #ffffff;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.project-modal-close:hover {
  opacity: 1;
  transform: scale(1.08);
}

body.modal-open {
  overflow: hidden;
}

/* ===== HOMEPAGE RESPONSIVE HELPERS ===== */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 50px;
}

.work-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 30px;
  align-items: start;
}

.work-main {
  display: grid;
  gap: 30px;
}

.work-subgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.work-mini-stack {
  display: grid;
  gap: 30px;
}

.work-sidebar {
  position: sticky;
  top: 110px;
  display: grid;
  gap: 30px;
}

.contact-name-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* ===== TABLET ===== */
@media (max-width: 1024px) {
  .work-layout {
    grid-template-columns: 1fr;
  }

  .work-sidebar {
    position: static;
  }
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  nav {
    padding: 16px 20px;
  }

  nav ul {
    gap: 14px;
  }

  nav a {
    font-size: 11px;
    letter-spacing: 1.5px;
  }

  .hero {
    padding: 140px 20px 50px;
  }

  .hero h1 {
    font-size: clamp(34px, 9vw, 54px);
  }

  .hero p {
    font-size: 16px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 30px;
  }

  .work-layout,
  .work-subgrid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .work-main,
  .work-mini-stack,
  .work-sidebar {
    gap: 20px;
  }

  .work-sidebar {
    position: static;
  }

  .work-sidebar-title {
    font-size: 30px !important;
  }

  .work-tall-card {
    min-height: auto !important;
  }

  .project-card,
  .card,
  .bento-card,
  .about-box,
  .contact-box {
    border-radius: 24px;
  }

  .content,
  .project-content {
    padding: 22px;
  }

  .project-content h3,
  .content h2 {
    font-size: 22px;
  }

  .project-content p,
  .content p {
    font-size: 14px;
    line-height: 1.6;
  }

  .project-card img,
  .card img {
    height: auto;
    min-height: 220px;
  }

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

  #contact form button.btn {
    width: 100%;
  }
}

/* ===== SMALL PHONES ===== */
@media (max-width: 480px) {
  .container {
    width: min(92%, 100%);
  }

  .hero {
    padding: 130px 16px 40px;
  }

  .hero h1 {
    font-size: 28px;
  }

  .section-title {
    font-size: 28px;
  }

  .project-content h3,
  .content h2,
  .work-sidebar-title {
    font-size: 20px !important;
  }

  .project-content p,
  .content p {
    font-size: 13px;
  }

  .project-card img,
  .card img {
    min-height: 190px;
  }

  .buttons {
    gap: 12px;
  }

  .btn {
    width: 100%;
  }
}
