

header {
  background: #020617;
  padding: 30px;
  text-align: center;
}

section {
  padding: 30px;
}

section {
  position: relative;
  padding: 40px 20px;
  margin: 60px 30px;
  border-radius: 18px;

  background: rgba(2, 6, 23, 0.75);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(56, 189, 248, 0.15);
  box-shadow: 0 0 40px rgba(0, 229, 255, 0.08);
}

h1, h2 {
  color: #38bdf8;
}

.project {
  background: #020617;
  padding: 15px;
  margin-bottom: 15px;
  border-radius: 8px;
}

a {
  color: #22c55e;
  text-decoration: none;
}

.contact {
  background-color: #020617;
  margin: 30px;
  padding: 30px;
  border-radius: 12px;
}

.contact a {
  color: #38bdf8;
  text-decoration: none;
  font-weight: bold;
}

.social-links {
  margin-top: 15px;
}

.social-links a {
  display: inline-block;
  margin-right: 15px;
  padding: 10px 16px;
  background: #0f172a;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: #38bdf8;
  color: #020617;
  transform: translateY(-3px);
}

.resume {
  background: #22c55e !important;
  color: #020617 !important;
}

/* HERO */
.hero {
  text-align: center;
  padding: 70px 20px;
  background: transparent;
}

.profile-tilt {
  width: 180px;
  height: 180px;
  margin: 0 auto 20px;
  perspective: 800px;
  margin-bottom: 8px;
  transform: translateY(6px);
}

.profile-img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 4px solid #38bdf8;
  box-shadow: 0 0 25px #38bdf8;
  margin-bottom: 20px;
  object-fit: cover;

  transition: 
    transform 0.35s ease,
    box-shadow 0.35s ease;

  transform-style: preserve-3d;

  box-shadow:
    0 0 0 rgba(0,255,255,0.0);

  animation: pulse 3s infinite;

  background: linear-gradient(
    135deg,
    rgba(255,255,255,0.2),
    rgba(255,255,255,0.05)
  );
  backdrop-filter: blur(6px);
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 15px #38bdf8;
  }
  50% {
    box-shadow: 0 0 35px #38bdf8;
  }
  100% {
    box-shadow: 0 0 15px #38bdf8;
  }
}

.profile-tilt:hover .profile-img {
  transform:
    scale(1.08)
    rotateX(8deg)
    rotateY(-8deg);

  box-shadow:
    0 0 20px rgba(0,255,255,0.6),
    0 0 40px rgba(0,255,255,0.25);
}

.hero h1 {
  font-size: 42px;
  color: #38bdf8;
  text-shadow: 0 0 15px #38bdf8;
}

.tagline {
  font-size: 16px;
  color: #94a3b8;
  margin-top: 10px;
}

#typing {
  color: #38bdf8;
  text-shadow: 0 0 12px rgba(56, 189, 248, 0.6);
}

.cursor {
  color: #38bdf8;
  font-weight: bold;
  animation: blink 1s infinite;
}

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

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

.project-card {
  display: flex;
  flex-direction: column;
  
  background: rgba(255, 255, 255, 0.08); /* glass */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  
  border-radius: 16px;
  padding: 20px;
  
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  
  transition: all 0.3s ease;
}

.project-:hover {
  transform: translateY(-8px);
  border-color: #00e5ff;
  box-shadow: 0 0 30px rgba(0, 229, 255, 0.5);
}

.tilt- {
  transform-style: preserve-3d;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  will-change: transform;
}

.tilt-::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    circle at top left,
    rgba(255,255,255,0.12),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.tilt-:hover::after {
  opacity: 1;
}

.project-links {
    margin-top: 15px;
    display: flex;
    gap: 15px;
}

.project-links a {
  color: #00e5ff;
  font-weight: 600;
  transition: text-shadow 0.3s ease;
}

.project-links a:hover {
  text-shadow: 0 0 10px #00e5ff;
}

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

/* Animated gradient overlay */
.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(56, 189, 248, 0.15),
    transparent 60%
  );
  animation: rotateGlow 10s linear infinite;
}

@keyframes rotateGlow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(180deg);
  }
}

/* Keep content above glow */
.hero * {
  position: relative;
  z-index: 1;
}

.hero h1 {
  animation: slideDown 1s ease forwards;
  margin-top: 6px;
}

.tagline {
  animation: fadeIn 2s ease forwards;
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.project-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;      /* forces square */
  object-fit: cover;

  border-radius: 14px;
  margin-bottom: 15px;

  box-shadow: 0 0 15px rgba(0, 229, 255, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover .project-thumb {
  transform: scale(1.02);
  box-shadow: 0 0 30px rgba(0, 229, 255, 0.7);
}

#skills {
  margin: 60px 20px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
  margin-top: 25px;
}

.skill-card {
  background: rgba(15, 23, 42, 0.6);
  border-radius: 16px;
  padding: 25px;
  text-align: center;

  border: 1px solid rgba(56, 189, 248, 0.2);
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.15);

  transition: all 0.3s ease;
}

.skill-card h3 {
  color: #38bdf8;
  margin: 12px 0 6px;
}

.skill-card p {
  font-size: 14px;
  color: #94a3b8;
}

.skill-card:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 0 30px rgba(0, 229, 255, 0.5);
  border-color: #00e5ff;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;

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

  padding: 15px 30px;
  background: rgba(2, 6, 23, 0.9);
  backdrop-filter: blur(10px);

  border-bottom: 1px solid rgba(56, 189, 248, 0.2);
}

.nav-logo {
  color: #38bdf8;
  font-weight: bold;
  font-size: 20px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 25px;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: #e5e7eb;
  text-decoration: none;
  font-weight: 600;
  position: relative;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0%;
  height: 2px;
  background: #38bdf8;
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: #38bdf8;
}

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

html {
  scroll-behavior: smooth;
}

/* Hamburger */
.hamburger {
  display: none;
  font-size: 28px;
  color: #38bdf8;
  cursor: pointer;
}

/* Mobile Styles */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 65px;
    right: 20px;

    flex-direction: column;
    gap: 15px;

    background: rgba(2, 6, 23, 0.95);
    backdrop-filter: blur(10px);

    padding: 20px;
    border-radius: 12px;

    display: none;
  }

  .nav-links.show {
    display: flex;
  }
}

body::before,
body::after {
  content: "";
  position: fixed;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,229,255,0.15), transparent 70%);
  z-index: -1;
  animation: floatGlow 20s infinite alternate;
}

body::before {
  top: -150px;
  left: -150px;
}

body::after {
  bottom: -150px;
  right: -150px;
  animation-delay: 5s;
}

@keyframes floatGlow {
  from {
    transform: translateY(0px) translateX(0px);
  }
  to {
    transform: translateY(60px) translateX(40px);
  }
}

.neon-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;

  background: rgba(0, 229, 255, 0.9);
  box-shadow:
    0 0 10px rgba(0, 229, 255, 0.8),
    0 0 25px rgba(0, 229, 255, 0.6),
    0 0 45px rgba(0, 229, 255, 0.4);

  transform: translate(-50%, -50%);
  transition: transform 0.08s ease-out;
}

/* Disable on mobile */
@media (max-width: 768px) {
  .neon-cursor {
    display: none;
  }
}

body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  color: #e5e7eb;

  background: linear-gradient(
    120deg,
    #020617,
    #001f3f,
    #020617
  ) !important;
  background-size: 400% 400%;
  animation: bgMove 18s ease infinite;
}

@keyframes bgMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
