:root {
  --bg-color: #050b14;
  --bg-gradient: linear-gradient(135deg, #050b14 0%, #17103a 100%);
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-hover: rgba(255, 255, 255, 0.08);
  --text-main: #f0f4f8;
  --text-muted: #8892b0;
  --accent-color: #64ffda;
  --accent-color-glow: rgba(100, 255, 218, 0.3);
  --primary-color: #bd34fe;
  --primary-color-glow: rgba(189, 52, 254, 0.3);
  
  --font-main: 'Outfit', sans-serif;
  --font-mono: 'Fira Code', monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background: var(--bg-gradient);
  background-color: var(--bg-color);
  background-attachment: fixed;
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Background Animated Blobs */
body::before, body::after {
  content: '';
  position: fixed;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  z-index: -1;
  filter: blur(100px);
  opacity: 0.5;
  animation: float 20s infinite alternate linear;
}

body::before {
  background: var(--primary-color-glow);
  top: -100px;
  left: -200px;
}

body::after {
  background: var(--accent-color-glow);
  bottom: -100px;
  right: -200px;
  animation-delay: -10s;
}

@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(100px, 100px) scale(1.2); }
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  text-decoration: underline;
  color: var(--primary-color);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Glassmorphism Utilities */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 2rem;
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.glass-panel:hover {
  transform: translateY(-5px);
  background: var(--glass-hover);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  border-color: rgba(255, 255, 255, 0.15);
}

/* Navbar */
header {
  position: fixed;
  top: 0;
  width: 100%;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  background: rgba(5, 11, 20, 0.7);
  z-index: 1000;
  border-bottom: 1px solid var(--glass-border);
  transition: all 0.3s ease;
}

.nav-wrapper {
  width: 100%;
  padding: 0 4rem;
}

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

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  color: #5A77FE;
  text-decoration: none;
  letter-spacing: 1px;
}

.btn-nav {
  display: inline-block;
  padding: 0.6rem 1.4rem;
  border-radius: 8px;
  background: linear-gradient(to right, #5A77FE, #9A52FF);
  color: #fff;
  font-family: var(--font-main);
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.btn-nav:hover {
  opacity: 0.9;
  color: #fff;
  text-decoration: none;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-muted);
  font-weight: 500;
  text-transform: capitalize;
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--accent-color);
}

/* Section Common */
section {
  padding: 100px 0;
  min-height: auto;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 3rem;
  text-align: center;
  position: relative;
}

.section-title span {
  color: var(--accent-color);
}

/* Hero Section */
.hero.text-center {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 80px;
}

.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.hero-content-new {
  max-width: 800px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-title-new {
  font-size: clamp(4rem, 10vw, 6rem);
  font-weight: 800;
  line-height: 1;
  margin-top: 80px;
  margin-bottom: 0.5rem;
  color: #ffffff;
  letter-spacing: -1px;
}

.hero-role-new {
  font-size: clamp(3rem, 7vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 2rem;
  background: linear-gradient(to right, #6EACFE, #E378FF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -1px;
}

.hero-desc-new {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 650px;
  text-align: center;
  margin-bottom: 3rem;
  line-height: 1.8;
}

.hero-cta-new {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 4rem;
}

.btn-gradient {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 8px;
  background: linear-gradient(to right, #5A77FE, #9A52FF);
  color: #fff;
  font-family: var(--font-main);
  font-weight: 500;
  font-size: 1.1rem;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.btn-gradient:hover {
  opacity: 0.9;
  color: #fff;
  text-decoration: none;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 8px;
  border: 1px solid #fff;
  color: #fff;
  background: transparent;
  font-family: var(--font-main);
  font-weight: 500;
  font-size: 1.1rem;
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease;
}

.btn-outline:hover {
  background: #fff;
  color: var(--bg-color);
  text-decoration: none;
}

.btn-glass {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 1rem 2rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-main);
  font-family: var(--font-main);
  font-weight: 500;
  font-size: 1.1rem;
  text-decoration: none;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  text-decoration: none;
  color: #fff;
}

.hero-socials {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.hero-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  color: #fff;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.hero-socials a:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
}

/* Experience */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: linear-gradient(to bottom, #5A77FE, #9A52FF);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -39px;
  top: 30px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #5A77FE;
  z-index: 1;
}

.exp-date {
  font-family: var(--font-mono);
  color: var(--accent-color);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.exp-title {
  font-size: 1.5rem;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.exp-company {
  color: var(--primary-color);
  font-weight: 600;
}

.exp-desc {
  color: var(--text-muted);
  margin-top: 1rem;
}

.exp-desc ul {
  list-style-type: disc;
  padding-left: 20px;
}

.exp-desc li {
  margin-bottom: 0.5rem;
}

/* Skills */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.skill-category {
  padding: 1.5rem;
  border-radius: 12px;
}

.skill-category h3 {
  color: var(--text-main);
  margin-bottom: 1rem;
  font-size: 1.2rem;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 0.5rem;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.skill-tag {
  background: rgba(100, 255, 218, 0.1);
  color: var(--accent-color);
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-family: var(--font-mono);
}

/* Projects */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.project-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.project-title {
  font-size: 1.4rem;
  color: var(--text-main);
}

.project-links a {
  color: var(--text-muted);
  margin-left: 1rem;
  font-size: 1.2rem;
}

.project-links a:hover {
  color: var(--accent-color);
}

.project-desc {
  color: var(--text-muted);
  flex-grow: 1;
  margin-bottom: 1.5rem;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem;
  border-top: 1px solid var(--glass-border);
  margin-top: 4rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

footer .social-icons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

footer .social-icons a {
  color: var(--text-muted);
  font-size: 1.5rem;
  transition: transform 0.3s ease, color 0.3s ease;
}

footer .social-icons a:hover {
  color: var(--accent-color);
  transform: translateY(-3px);
}

@media (max-width: 1024px) {
  .nav-wrapper {
    padding: 0 2rem;
  }

  .hero-title-new {
    margin-top: 60px;
    font-size: clamp(3rem, 8vw, 4.5rem);
  }

  .hero-role-new {
    font-size: clamp(2rem, 6vw, 3rem);
  }
}

@media (max-width: 768px) {
  /* Navbar */
  .nav-wrapper {
    padding: 0 1.5rem;
  }

  .btn-nav {
    display: none;
  }

  /* Hero Layout */
  .hero.text-center {
    padding: 100px 1.2rem 60px;
  }

  .hero-title-new {
    font-size: 2.5rem;
    margin-top: 40px;
  }

  .hero-role-new {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
  }

  .hero-desc-new {
    font-size: 0.95rem;
    margin-bottom: 2rem;
    padding: 0 0.5rem;
  }

  /* CTA Fix */
  .hero-cta-new {
    flex-direction: column;
    width: 100%;
    gap: 1rem;
    margin-bottom: 2.5rem;
  }

  .btn-gradient,
  .btn-outline {
    width: 100%;
    font-size: 0.95rem;
    padding: 0.9rem;
  }

  /* Social icons */
  .hero-socials {
    gap: 0.8rem;
  }

  .hero-socials a {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .hero-title-new {
    font-size: 2.2rem;
  }

  .hero-role-new {
    font-size: 1.5rem;
  }

  .hero-desc-new {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  .hero.text-center {
    padding-top: 90px;
  }
}

/* ===== HAMBURGER ===== */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: 0.3s;
}

/* ===== MOBILE NAV ===== */
@media (max-width: 768px) {

  .nav-container {
    position: relative;
  }

  .hamburger {
    display: flex;
  }

  .btn-nav {
    display: none;
  }

  .nav-links {
    position: absolute;
    top: 80px;
    right: 0;
    width: 100%;
    flex-direction: column;
    background: rgba(5, 11, 20, 0.95);
    backdrop-filter: blur(20px);
    padding: 1.5rem 0;
    align-items: center;
    gap: 1.5rem;

    /* hidden by default */
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: all 0.3s ease;
  }

  .nav-links.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-links a {
    font-size: 1.1rem;
    color: #fff;
  }
}

/* ===== HAMBURGER ANIMATION ===== */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}