* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

:root {
  /* Dark cyber background mimicking the reference images */
  --bg-main: #000000;
  --bg-mesh:
    radial-gradient(at 0% 0%, rgba(13, 11, 38, 1) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(109, 0, 26, 0.15) 0px, transparent 50%),
    radial-gradient(at 50% 100%, rgba(15, 32, 67, 0.4) 0px, transparent 50%);

  /* Extreme Liquid Glass Stack */
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-bg-hover: rgba(255, 255, 255, 0.07);
  --glass-border: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.18) 0%,
    rgba(255, 255, 255, 0.03) 100%
  );
  --glass-glow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);

  /* Colors */
  --accent-liquid: #ff3366;
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.65);
}

body {
  font-family: "Poppins", sans-serif;
  background-color: var(--bg-main);
  background-image: var(--bg-mesh);
  background-attachment: fixed;
  color: var(--text-primary);
  overflow-x: hidden;
}

/* Keyframes for Fluid Motion */
@keyframes fluid-float {
  0% {
    transform: translateY(0px) scale(1);
  }
  50% {
    transform: translateY(-12px) scale(1.02);
  }
  100% {
    transform: translateY(0px) scale(1);
  }
}

@keyframes liquid-pulse {
  0% {
    box-shadow:
      0 0 0 0 rgba(255, 51, 102, 0.4),
      var(--glass-glow);
  }
  70% {
    box-shadow:
      0 0 0 15px rgba(255, 51, 102, 0),
      var(--glass-glow);
  }
  100% {
    box-shadow:
      0 0 0 0 rgba(255, 51, 102, 0),
      var(--glass-glow);
  }
}

/* Navbar - Floating Capsule Design */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 5%;
  margin: 20px auto;
  width: 90%;
  max-width: 1200px;
  background: rgba(10, 10, 15, 0.4);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  border-radius: 100px;
  position: sticky;
  top: 20px;
  z-index: 1000;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    var(--glass-glow),
    inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

.logo {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(120deg, #fff, var(--text-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 10px;
}

/* Glass Pill Buttons for Nav Links */
nav ul li a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 14px;
  padding: 8px 18px;
  border-radius: 50px;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  border: 1px solid transparent;
}

nav ul li a:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

/* Hero Section */
.hero {
  min-height: 90vh;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 10%;
  gap: 60px;
}

.hero-text {
  flex: 1;
}

.intro {
  color: var(--accent-liquid);
  font-weight: 600;
  margin-bottom: 12px;
  font-size: 14px;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.hero-text h1 {
  font-size: 76px;
  line-height: 1.05;
  margin-bottom: 25px;
  font-weight: 800;
  letter-spacing: -2px;
  background: linear-gradient(
    180deg,
    #ffffff 30%,
    rgba(255, 255, 255, 0.5) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.description {
  color: var(--text-secondary);
  font-size: 18px;
  line-height: 1.8;
  max-width: 530px;
  margin-bottom: 40px;
}

/* Ultra-Glossy Liquid Action Button */
.btn {
  display: inline-block;
  text-decoration: none;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.03) 100%
  );
  color: var(--text-primary);
  padding: 16px 38px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow:
    var(--glass-glow),
    inset 0 2px 2px rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

/* Internal reflection shine effect */
.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.15),
    transparent
  );
  transition: left 0.6s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn:hover {
  background: var(--text-primary);
  color: #000000;
  border-color: var(--text-primary);
  transform: translateY(-4px);
  box-shadow: 0 15px 30px rgba(255, 255, 255, 0.2);
}

/* Profile Image Floating Container */
.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  animation: fluid-float 7s ease-in-out infinite;
}

.hero-image img {
  width: 270px;
  height: 370px;
  object-fit: cover;
  border-radius: 40px;
  /* High Specular Edge Lighting */
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 10px;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(20px);
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.6),
    inset 0 4px 20px rgba(255, 255, 255, 0.15);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-image img:hover {
  transform: scale(1.04) rotate(2deg);
  border-color: var(--accent-liquid);
  box-shadow: 0 40px 80px rgba(255, 51, 102, 0.15);
}

/* Sections Configuration */
section {
  padding: 120px 10%;
}

section h2 {
  text-align: center;
  font-size: 46px;
  font-weight: 800;
  letter-spacing: -1.5px;
  color: var(--text-primary);
  margin-bottom: 60px;
}

/* The About Block Container */
.about p {
  max-width: 850px;
  margin: auto;
  text-align: center;
  line-height: 2;
  color: var(--text-secondary);
  font-size: 18px;
  padding: 50px;
  background: var(--glass-bg);
  border-image: var(--glass-border) 1;
  border: 1px solid transparent;
  border-radius: 32px; /* Set layout geometry via layer containment style background clip tricks */
  background-clip: padding-box;
  position: relative;
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  box-shadow:
    var(--glass-glow),
    inset 0 4px 30px rgba(255, 255, 255, 0.03);
}

/* Fix for nested radius workaround on complex borders */
.about p,
.education-card,
.project-card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}

/* Education Track */
.education-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-width: 850px;
  margin: 0 auto;
}

.education-card {
  padding: 35px;
  background: var(--glass-bg);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border-radius: 24px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--glass-glow);
}

.education-card:hover {
  background: var(--glass-bg-hover);
  border-color: rgba(255, 255, 255, 0.25);
  transform: scale(1.01) translateY(-2px);
}

.education-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
}

.education-card span {
  display: inline-block;
  font-size: 14px;
  color: var(--accent-liquid);
  margin-bottom: 15px;
  font-weight: 600;
  letter-spacing: 1px;
}

/* Glass Pill Grid Layout Items (Skills) */
.skill-container,
.other.skill-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  max-width: 950px;
  margin: 0 auto;
}

.skill-card,
.other.skill-container .other.skill-card,
div[class*="skill-card"] {
  padding: 12px 30px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: var(--text-secondary);
  border-radius: 100px;
  font-weight: 500;
  font-size: 15px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.1);
}

.skill-card:hover,
div[class*="skill-card"]:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-6px);
  box-shadow:
    0 12px 24px rgba(0, 0, 0, 0.4),
    inset 0 1px 4px rgba(255, 255, 255, 0.2);
}

/* Projects Showcase Grid (Glassmorphism Cards matching your attached image) */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 35px;
}

.project-card {
  padding: 40px;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(40px) brightness(80%);
  -webkit-backdrop-filter: blur(40px) brightness(80%);
  border-radius: 32px;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow:
    var(--glass-glow),
    inset 0 1px 1px rgba(255, 255, 255, 0.05);
}

.project-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(255, 255, 255, 0.03);
}

.project-card h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 15px;
  letter-spacing: -0.5px;
}

.project-card p {
  color: var(--text-secondary);
  line-height: 1.8;
}

.project-card a {
  display: inline-block;
  margin-top: 20px;
  padding: 8px 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
}

.project-card a:hover {
  background: var(--text-primary) !important;
  color: #000000 !important;
  border-color: var(--text-primary);
}

/* Contact Area */
.contact p {
  margin-bottom: 20px;
  color: var(--text-secondary);
  font-size: 19px;
  font-weight: 400;
}

/* Footer Element */
footer {
  background: rgba(5, 5, 8, 0.8);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.4);
  text-align: center;
  padding: 35px;
  font-size: 13px;
  letter-spacing: 0.5px;
}

/* Mobile responsive alignment */
@media (max-width: 768px) {
  nav {
    border-radius: 24px;
    padding: 15px;
    top: 10px;
  }

  nav ul {
    width: 100%;
    justify-content: center;
  }

  .hero-text h1 {
    font-size: 48px;
  }

  section h2 {
    font-size: 34px;
  }

  .about p {
    padding: 30px;
  }
}
