/* ===== RESET & GLOBAL ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden;
  width: 100%;
  background-color: #0b0c1e; /* deep navy base */
  color: #f0f0f0;
  font-family: 'Inter', 'Poppins', sans-serif;
  scroll-behavior: smooth;
}

/* ===== CSS VARIABLES – NEON CYBERPUNK ===== */
:root {
  --gradient-primary: linear-gradient(135deg, #f953c6, #b91d73);
  --gradient-accent: linear-gradient(135deg, #00ff9f, #00cc88);
  --accent-color: #00ff9f;
  --accent-glow: 0 0 15px #00ff9f;
  --glass-bg: rgba(0, 255, 159, 0.1);
  --glass-border: rgba(0, 255, 159, 0.2);
  --card-bg: rgba(10, 20, 30, 0.5);
  --navy-bg: #0b0c1e;
}

/* ===== GLASSMORPHISM REUSABLE ===== */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: 40px;
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.8);
}

.glass-card {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding: 2rem;
}

.glass-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 30px 50px -20px var(--accent-color);
}

/* ===== TYPOGRAPHY & GRADIENTS ===== */
.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.gradient-headline {
  font-size: clamp(2.8rem, 8vw, 5rem);
  font-weight: 700;
  line-height: 1.2;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 1rem;
}

/* Buttons – now using neon accent */
.btn-gradient {
  background: var(--gradient-accent);
  border: none;
  color: #0b0c1e; /* dark text for contrast */
  padding: 0.9rem 2.4rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  transition: box-shadow 0.3s ease, transform 0.2s;
  display: inline-block;
  text-decoration: none;
}

.btn-gradient:hover {
  box-shadow: 0 10px 25px -5px #00ff9f, 0 0 0 2px rgba(255,255,255,0.2);
  transform: scale(1.05);
}

.section-title {
  font-size: 2.8rem;
  margin-bottom: 3rem;
  text-align: center;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ===== NAVBAR (sticky) ===== */
.navbar {
  position: sticky;
  top: 1.5rem;
  z-index: 100;
  width: 90%;
  max-width: 1300px;
  margin: 0 auto 2rem;
  padding: 0.7rem 1.8rem;
  border-radius: 60px;
  background: rgba(11, 12, 30, 0.3);
  backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
}

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

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.5px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  align-items: center;
}

.nav-menu li a {
  text-decoration: none;
  color: #e0e0e0;
  font-weight: 500;
  transition: color 0.2s;
  font-size: 1.1rem;
}

.nav-menu li a:hover {
  color: var(--accent-color);
  text-shadow: var(--accent-glow);
}

.hamburger {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  color: white;
}

/* mobile menu */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }
  .nav-menu {
    position: fixed;
    top: 90px;
    right: -100%;
    flex-direction: column;
    background: rgba(11, 12, 30, 0.9);
    backdrop-filter: blur(20px);
    width: 70%;
    height: auto;
    padding: 2.5rem 1.5rem;
    border-radius: 30px;
    transition: right 0.3s ease;
    box-shadow: -10px 10px 30px rgba(0,0,0,0.5);
    gap: 1.8rem;
    border: 1px solid var(--glass-border);
  }
  .nav-menu.active {
    right: 5%;
  }
}

/* ===== HERO SECTION – with floating skill cards ===== */
.hero-section {
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding: 2rem 5%;
  position: relative;
}

.hero-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  max-width: 1300px;
  margin: 0 auto;
  width: 100%;
  gap: 3rem;
}

.hero-text {
  flex: 1 1 400px;
}

.hero-sub {
  font-size: 1.4rem;
  color: #b0b0b0;
  margin-bottom: 2.5rem;
  max-width: 550px;
}

.hero-photo {
  flex: 1 1 300px;
  display: flex;
  justify-content: center;
  position: relative;
}

/* Morphing avatar */
.photo-animation {
  width: 300px;
  height: 300px;
  background: var(--gradient-primary);
  background-size: 200% 200%;
  border-radius: 42% 58% 70% 30% / 44% 34% 66% 56%;
  animation: morph 8s ease-in-out infinite, float 6s ease-in-out infinite, gradientShift 10s ease infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 25px 40px -10px var(--accent-color);
}

.photo-animation i {
  font-size: 7rem;
  color: rgba(255,255,255,0.9);
  filter: drop-shadow(0 0 10px #ffffff80);
  animation: spinSlow 12s linear infinite;
}

/* Floating skill cards around the avatar */
.floating-card {
  position: absolute;
  background: var(--card-bg);
  backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  border-radius: 40px;
  padding: 0.8rem 1.5rem;
  font-weight: 600;
  color: var(--accent-color);
  box-shadow: 0 10px 20px rgba(0,255,159,0.2);
  white-space: nowrap;
  animation: float 5s ease-in-out infinite;
  z-index: 2;
}

.card1 { top: 10%; left: 5%; animation-delay: 0s; }
.card2 { bottom: 15%; right: 0%; animation-delay: 1s; }
.card3 { top: 30%; right: 10%; animation-delay: 2s; }
.card4 { bottom: 5%; left: 15%; animation-delay: 1.5s; }

@keyframes morph {
  0% { border-radius: 42% 58% 70% 30% / 44% 34% 66% 56%; }
  25% { border-radius: 58% 42% 40% 60% / 54% 46% 54% 46%; }
  50% { border-radius: 30% 70% 50% 50% / 60% 40% 60% 40%; }
  75% { border-radius: 70% 30% 36% 64% / 38% 62% 38% 62%; }
  100% { border-radius: 42% 58% 70% 30% / 44% 34% 66% 56%; }
}
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ===== ABOUT – split screen layout ===== */
.about-section {
  padding: 5rem 5%;
}
.about-split {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  max-width: 1300px;
  margin: 0 auto;
  align-items: center;
}
.about-text {
  flex: 1 1 400px;
}
.about-text p {
  font-size: 1.3rem;
  line-height: 1.8;
}
.about-extra {
  margin-top: 1.8rem;
  color: var(--accent-color);
}
.about-stats {
  flex: 1 1 300px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.stat-card {
  background: var(--card-bg);
  backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  border-radius: 30px;
  padding: 1.8rem 1rem;
  text-align: center;
  transition: transform 0.3s;
}
.stat-card:hover {
  transform: scale(1.05);
  box-shadow: var(--accent-glow);
}
.stat-card h3 {
  font-size: 2.5rem;
  color: var(--accent-color);
}
.stat-card p {
  color: #ccc;
}

/* ===== SERVICES ===== */
.services-section {
  padding: 5rem 5%;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2.5rem;
  max-width: 1300px;
  margin: 0 auto;
}
.service-card {
  text-align: center;
}
.service-icon {
  font-size: 3.5rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 1.2rem;
}

/* ===== PROJECTS – Masonry style ===== */
.projects-section {
  padding: 5rem 5%;
}
.projects-masonry {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1300px;
  margin: 0 auto;
}
.project-card {
  position: relative;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  height: fit-content;
}
.project-card.tall {
  grid-row: span 2; /* makes some cards taller */
}
.project-badge {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  background: var(--gradient-accent);
  padding: 0.3rem 1rem;
  border-radius: 40px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #0b0c1e;
}
.project-img {
  font-size: 4rem;
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--accent-color);
}
.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1.5rem 0;
}
.tech-tags span {
  background: rgba(255,255,255,0.08);
  padding: 0.3rem 1rem;
  border-radius: 30px;
  font-size: 0.9rem;
  border: 1px solid rgba(255,255,255,0.1);
}
.project-link {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 600;
  transition: gap 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.project-link:hover {
  gap: 0.8rem;
  text-shadow: var(--accent-glow);
}

/* ===== BLOG ===== */
.blog-section {
  padding: 5rem 5%;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  max-width: 1300px;
  margin: 0 auto;
}
.blog-card {
  padding: 2rem;
}
.blog-img {
  font-size: 3.5rem;
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--accent-color);
}
.blog-meta {
  color: #aaa;
  font-size: 0.9rem;
  margin: 0.5rem 0;
}
.blog-link {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  margin-top: 1rem;
}
.blog-link:hover {
  text-shadow: var(--accent-glow);
}

/* ===== CODE LAB ===== */
.codelab-section {
  padding: 5rem 5%;
}
.codelab-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  max-width: 1300px;
  margin: 0 auto;
}
.code-snippet pre {
  background: #0d0d1a;
  padding: 1.2rem;
  border-radius: 20px;
  overflow-x: auto;
  font-size: 0.9rem;
  color: #b0f0b0;
  border: 1px solid #2a2a3a;
  margin: 1.2rem 0;
}
.download-btn {
  background: transparent;
  border: 1px solid var(--accent-color);
  color: var(--accent-color);
  padding: 0.6rem 1.5rem;
  border-radius: 40px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.download-btn:hover {
  background: var(--accent-color);
  color: #0b0c1e;
  box-shadow: var(--accent-glow);
}
.upload-area {
  text-align: center;
}
.upload-area input {
  margin: 1.5rem 0 0.5rem;
  color: white;
}
#uploadStatus {
  color: #b0b0b0;
  font-size: 0.9rem;
}

/* ===== CONTACT ===== */
.contact-section {
  padding: 5rem 5%;
}
.contact-form-wrapper {
  max-width: 650px;
  margin: 0 auto;
}
.gradient-border-form {
  background: #0a0a12;
  padding: 2.5rem;
  border-radius: 40px;
  border: 2px solid transparent;
  background-clip: padding-box;
  position: relative;
}
.gradient-border-form::before {
  content: '';
  position: absolute;
  top: -2px; left: -2px; right: -2px; bottom: -2px;
  background: var(--gradient-primary);
  border-radius: 42px;
  z-index: -1;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: xor;
  padding: 2px;
}
.gradient-border-form input,
.gradient-border-form textarea {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid #2a2a3a;
  border-radius: 30px;
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  color: white;
  font-size: 1rem;
  outline: none;
  transition: 0.2s;
}
.gradient-border-form input:focus,
.gradient-border-form textarea:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 15px #00ff9f50;
}
.gradient-border-form button {
  width: 100%;
}

/* ===== FOOTER ===== */
.footer {
  margin: 3rem 5% 2rem;
  padding: 2.5rem 2rem 1.2rem;
  border-radius: 60px 60px 30px 30px;
  background: rgba(11, 12, 30, 0.5);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
}
.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  max-width: 1300px;
  margin: 0 auto;
}
.footer-logo h3 {
  font-size: 2rem;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.footer-social a {
  color: white;
  font-size: 1.8rem;
  margin: 0 1rem;
  transition: 0.2s;
}
.footer-social a:hover {
  color: var(--accent-color);
  transform: translateY(-5px);
  text-shadow: var(--accent-glow);
}
.footer-links a {
  color: #ccc;
  margin: 0 1rem;
  text-decoration: none;
}
.footer-links a:hover {
  color: white;
}
.footer-bottom {
  text-align: center;
  margin-top: 2.5rem;
  color: #aaa;
  font-size: 0.95rem;
}
.photo-animation img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}