* {
  transition:
    color 0.3s ease,
    background-color 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.3s ease;
}


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", sans-serif;
}

body {
  background: #050b1e;
  color: #e6f7ff;
  line-height: 1.6;
}

/* HERO */
.hero {
  padding: 90px 20px;
  text-align: center;
  background: radial-gradient(circle at top, #0a1a3c, #050b1e);
}

.hero h1 {
  font-size: 48px;
  color: #6ddcff;
}

.hero-tagline {
  font-size: 18px;
  margin-top: 12px;
}

.hero-sub {
  font-size: 14px;
  opacity: 0.8;
}

/* SECTIONS */
section {
  padding: 80px 20px;
}

h2 {
  text-align: center;
  margin-bottom: 40px;
  color: #6ddcff;
}

/* ABOUT */
.about-content {
  max-width: 900px;
  margin: auto;
  display: flex;
  gap: 40px;
  align-items: center;
}

.profile-img {
  width: 200px;
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(0,180,255,0.4);
}

/* TIMELINE */
.timeline {
  max-width: 900px;
  margin: auto;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  width: 3px;
  height: 100%;
  background: linear-gradient(#00b4ff, transparent);
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  margin-bottom: 70px;
  opacity: 0;
  transform: translateY(40px);
  transition: 0.8s ease;
}

.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
}

.timeline-item.show {
  opacity: 1;
  transform: translateY(0);
}

.dot {
  width: 14px;
  height: 14px;
  background: #00b4ff;
  border-radius: 50%;
  box-shadow: 0 0 12px #00b4ff;
  margin: 10px 20px;
}

.dot.recent {
  background: #6ddcff;
  box-shadow: 0 0 18px #6ddcff;
}

.card {
  background: #081229;
  padding: 22px;
  border-radius: 16px;
  max-width: 420px;
  border: 1px solid rgba(0,180,255,0.15);
  transition: 0.4s ease;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 16px 40px rgba(0,180,255,0.3);
}

.tech {
  font-size: 13px;
  opacity: 0.8;
}

.badge {
  background: #00b4ff;
  color: #050b1e;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 8px;
}

/* SKILLS */
.skills-grid {
  max-width: 700px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 15px;
}

.skills-grid span {
  padding: 10px;
  text-align: center;
  background: #081229;
  border-radius: 8px;
  border: 1px solid rgba(0,180,255,0.15);
}

/* CONTACT */
.contact {
  text-align: center;
}

.contact p {
  margin-bottom: 20px;
  opacity: 0.85;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 24px;
}

.social-links a {
  color: #6ddcff;
  text-decoration: none;
  font-weight: 500;
  position: relative;
}

/* subtle hover underline */
.social-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 2px;
  background: #6ddcff;
  transition: width 0.3s ease;
}

.social-links a:hover::after {
  width: 100%;
}

/* FOOTER */
.footer {
  text-align: center;
  padding: 20px;
  font-size: 14px;
  opacity: 0.6;
}

/* MOBILE */
@media (max-width: 768px) {
  .about-content {
    flex-direction: column;
    text-align: center;
  }
  .timeline::before {
    left: 20px;
  }
  .timeline-item {
    flex-direction: column !important;
  }
  .card {
    margin-left: 40px;
  }
}


.hero {
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(124,124,255,0.15), transparent 40%),
    radial-gradient(circle at 80% 30%, rgba(0,229,255,0.15), transparent 40%),
    radial-gradient(circle at 50% 80%, rgba(255,110,199,0.12), transparent 40%);
  z-index: 0;
}

.hero * {
  position: relative;
  z-index: 1;
}

.hero h1 {
  background: linear-gradient(90deg, var(--soft-cyan), var(--violet), var(--pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: glowText 6s ease infinite;
}

@keyframes glowText {
  0% { filter: drop-shadow(0 0 8px var(--soft-cyan)); }
  50% { filter: drop-shadow(0 0 14px var(--pink)); }
  100% { filter: drop-shadow(0 0 8px var(--soft-cyan)); }
}

.card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  box-shadow:
    0 8px 30px rgba(0, 229, 255, 0.15),
    inset 0 0 30px rgba(255, 255, 255, 0.05);
  position: relative;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255,255,255,0.15),
    transparent
  );
  opacity: 0;
  transition: opacity 0.4s ease;
}

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

.dot {
  background: linear-gradient(135deg, var(--neon-blue), var(--violet));
  animation: pulse 2.5s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 10px var(--neon-blue); }
  50% { box-shadow: 0 0 22px var(--pink); }
  100% { box-shadow: 0 0 10px var(--neon-blue); }
}

.tech {
  background: linear-gradient(90deg, var(--soft-cyan), var(--violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.skills-grid span {
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skills-grid span::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(0,229,255,0.25),
    transparent
  );
  transform: translateX(-100%);
  transition: transform 0.4s ease;
}

.skills-grid span:hover::before {
  transform: translateX(100%);
}

.skills-grid span:hover {
  transform: translateY(-6px) scale(1.05);
  box-shadow: 0 12px 30px rgba(0,229,255,0.35);
}
.social-links a {
  font-size: 16px;
  letter-spacing: 0.5px;
}

.social-links a:hover {
  text-shadow: 0 0 10px var(--soft-cyan);
}

section::after {
  content: "";
  display: block;
  width: 60%;
  height: 1px;
  margin: 60px auto 0;
  background: linear-gradient(90deg, transparent, var(--neon-blue), transparent);
  opacity: 0.4;
}

.hero h1 {
  animation: softGlow 4s ease-in-out infinite;
}

@keyframes softGlow {
  0% {
    text-shadow:
      0 0 6px rgba(109, 220, 255, 0.4),
      0 0 16px rgba(109, 220, 255, 0.3);
  }
  50% {
    text-shadow:
      0 0 10px rgba(109, 220, 255, 0.6),
      0 0 26px rgba(0, 180, 255, 0.4);
  }
  100% {
    text-shadow:
      0 0 6px rgba(109, 220, 255, 0.4),
      0 0 16px rgba(109, 220, 255, 0.3);
  }
}


:root {
  --bg-dark: #050b1e;
  --bg-card: rgba(10, 25, 60, 0.65);
  --neon-blue: #00e5ff;
  --soft-cyan: #6ddcff;
  --violet: #7c7cff;
  --pink: #ff6ec7;
  --glass-border: rgba(255, 255, 255, 0.15);
}
.hero h1 {
  transition: text-shadow 0.5s ease, transform 0.5s ease;
}

.hero h1:hover {
  transform: translateY(-2px);
  text-shadow:
    0 0 10px rgba(109,220,255,0.6),
    0 0 24px rgba(109,220,255,0.4);
}

section {
  opacity: 0;
  transform: translateY(30px);
}

section.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.card {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(0,180,255,0.35);
}

.social-links a::after {
  transition: width 0.3s ease;
}
/* ===== FINAL HERO NAME OVERRIDE ===== */
.hero h1 {
  /* single tech color */
  color: #6ddcff;

  /* remove gradients */
  background: none;
  -webkit-text-fill-color: initial;

  font-size: 48px;
  font-weight: 700;
  letter-spacing: 1px;

  /* clean depth using same color family */
  text-shadow:
    0 2px 6px rgba(109, 220, 255, 0.35),
    0 6px 20px rgba(0, 180, 255, 0.25);

  /* smooth interaction only */
  animation: none;
  transition: transform 0.4s ease, text-shadow 0.4s ease;
}

/* subtle premium hover */
.hero h1:hover {
  transform: translateY(-2px);
  text-shadow:
    0 4px 10px rgba(109, 220, 255, 0.45),
    0 10px 30px rgba(0, 180, 255, 0.35);
}
/* EXPANDABLE PROJECT CARDS */
.project-card {
  cursor: pointer;
}

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

.toggle {
  font-size: 22px;
  font-weight: bold;
  color: #6ddcff;
  transition: transform 0.3s ease;
}

/* hidden content */
.expand {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition:
    max-height 0.5s ease,
    opacity 0.4s ease,
    transform 0.4s ease;
}

.project-card.active .expand {
  max-height: 500px;
  opacity: 1;
  transform: translateY(0);
}

.project-card.active .toggle {
  transform: rotate(45deg);
}

.expand ul {
  margin: 10px 0 8px 18px;
}

.expand li {
  font-size: 14px;
  margin-bottom: 6px;
}

.impact {
  font-size: 13px;
  opacity: 0.85;
}
.ball-container {
  position: fixed;
  bottom: 50px;
  left: 0;
  width: 100%;
  height: 100px;
  pointer-events: none; /* so it doesn’t block clicks */
}

.ball {
  width: 20px;
  height: 20px;
  background-color: #3498db; /* blue */
  border-radius: 50%;
  position: absolute;
  bottom: 0;
  animation: bounce 2s infinite ease-in-out, moveRight 6s linear infinite;
}

.ball:nth-child(2) {
  animation-delay: 0.5s;
}
.ball:nth-child(3) {
  animation-delay: 1s;
}

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

@keyframes moveRight {
  0% { left: 0; }
  100% { left: 100%; }
}
.ocean {
  height: 100px;
  width: 100%;
  position: fixed;
  bottom: 0;
  left: 0;
  overflow: hidden;
}

.wave {
  background: url('https://i.ibb.co/7QpKsCX/wave.png') repeat-x;
  position: absolute;
  bottom: 0;
  width: 200%;
  height: 100px;
  animation: wave 10s linear infinite;
}

.wave:nth-child(2) {
  animation: wave 15s linear infinite;
  opacity: 0.5;
  bottom: 10px;
}

@keyframes wave {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}