:root {
  --bg-color: #f7f9fc;
  --text-color: #2b2b2b;
  --nav-bg: rgba(255, 255, 255, 0.9);
  --card-bg: #ffffff;
  --primary-pink: #ff6b8b;
  --primary-blue: #4da6ff;
  --primary-green: #2ecc71;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] {
  --bg-color: #121212;
  --text-color: #f1f1f1;
  --nav-bg: rgba(18, 18, 18, 0.9);
  --card-bg: #1e1e1e;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Montserrat", sans-serif;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  transition: background 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}

/* 3D Moving Background Layer */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle,
    rgba(255, 107, 139, 0.08) 0%,
    rgba(77, 166, 255, 0.08) 50%,
    rgba(46, 204, 113, 0.08) 100%
  );
  z-index: -1;
  animation: backgroundShift 10s ease infinite alternate;
}

@keyframes backgroundShift {
  0% { transform: scale(1) rotate(0deg); }
  100% { transform: scale(1.1) rotate(5deg); }
}

/* Navigation Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--nav-bg);
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: var(--shadow);
}

.navbar {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--primary-pink);
}

.logo span {
  color: var(--primary-blue);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 25px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 700;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--primary-pink);
}

.theme-toggle {
  cursor: pointer;
  font-size: 1.2rem;
  background: var(--card-bg);
  padding: 10px;
  border-radius: 50%;
  box-shadow: var(--shadow);
  transition: transform 0.3s;
}

.theme-toggle:hover {
  transform: scale(1.1);
}

/* Hero Section Styles */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 140px 10% 60px 10%;
  overflow: hidden;
}

/* Background Image Layer with Dark Tint Overlay */
.hero-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Replace 'your-image.jpg' with your actual image path */
  background: linear-gradient(
      rgba(18, 18, 18, 0.65), 
      rgba(18, 18, 18, 0.65)
    ), 
    url('powerpuffgirls.jpg') center/cover no-repeat;
  z-index: 0;
}

/* Flex Container: Places text on the left, image on the right */
.hero-container {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  gap: 40px;
  z-index: 2;
}

.hero-content {
  flex: 1;
  text-align: left;
  color: #f1f1f1;
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 20px;
}

.highlight-name {
  background: linear-gradient(
    45deg,
    var(--primary-pink),
    var(--primary-blue),
    var(--primary-green)
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  max-width: 500px;
}

.btn-powerpuff {
  background: linear-gradient(135deg, var(--primary-pink), var(--primary-blue));
  color: white;
  padding: 12px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(255, 107, 139, 0.4);
  transition: transform 0.3s, box-shadow 0.3s;
  display: inline-block;
}

.btn-powerpuff:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 30px rgba(77, 166, 255, 0.6);
}

/* Profile Picture on the Right */
.hero-profile-wrapper {
  flex-shrink: 0;
}

.hero-profile-pic {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  object-fit: cover;
  border: 6px solid var(--card-bg);
  box-shadow: 
    0 0 25px rgba(255, 107, 139, 0.5),
    0 0 50px rgba(77, 166, 255, 0.3);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.hero-profile-pic:hover {
  transform: scale(1.05) rotate(2deg);
  box-shadow: 
    0 0 35px rgba(255, 107, 139, 0.8),
    0 0 70px rgba(77, 166, 255, 0.5);
}

/* 3D Orbs Graphic Background */
.hero-3d-graphic {
  position: absolute;
  width: 300px;
  height: 300px;
  right: 10%;
  top: 30%;
  transform-style: preserve-3d;
  animation: float3d 6s ease-in-out infinite;
  z-index: 1;
}

.glow-orb {
  position: absolute;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  filter: blur(20px);
}

.glow-orb.pink { background: var(--primary-pink); top: 0; left: 50px; }
.glow-orb.blue { background: var(--primary-blue); bottom: 0; left: 0; }
.glow-orb.green { background: var(--primary-green); bottom: 20px; right: 0; }

@keyframes float3d {
  0%, 100% { transform: translateY(0) rotateX(0deg); }
  50% { transform: translateY(-20px) rotateX(15deg); }
}

/* Sections General */
.content-section {
  padding: 100px 10%;
  min-height: 80vh;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 50px;
  font-weight: 900;
}

.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: var(--primary-pink);
  margin: 10px auto 0;
  border-radius: 2px;
}

/* About Section */
.about-bio {
  max-width: 800px;
  margin: 0 auto 40px auto;
  text-align: center;
  font-size: 1.1rem;
  line-height: 1.8;
  background: var(--card-bg);
  padding: 25px;
  border-radius: 15px;
  box-shadow: var(--shadow);
  border-left: 5px solid var(--primary-pink);
}

.about-bio strong {
  color: var(--primary-pink);
}

.about-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.about-card {
  background: var(--card-bg);
  padding: 40px;
  border-radius: 20px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  transform-style: preserve-3d;
}

.about-card i {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.pink-icon { color: var(--primary-pink); }
.blue-icon { color: var(--primary-blue); }
.green-icon { color: var(--primary-green); }

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.project-card {
  background: var(--card-bg);
  height: 180px;
  border-radius: 20px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
  transition: transform 0.4s, border-color 0.4s;
  border: 2px solid transparent;
}

.project-card a{
  text-decoration: none;
}

.project-card:hover {
  transform: scale(1.05);
  border-color: var(--primary-blue);
}

/* Achievements */
.achievements-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.achievement-item {
  background: var(--card-bg);
  padding: 20px 30px;
  border-radius: 15px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 20px;
  transition: transform 0.3s;
}

.achievement-item:hover { transform: translateX(10px); }

.badge {
  background: var(--primary-green);
  color: white;
  padding: 10px 15px;
  border-radius: 50%;
  font-weight: 900;
}

/* Skills Grid */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  text-align: center;
}

.skill-box {
  background: var(--card-bg);
  padding: 20px;
  border-radius: 15px;
  box-shadow: var(--shadow);
  font-weight: 700;
  transition: transform 0.3s, background 0.3s, color 0.3s;
}

.skill-box:hover {
  transform: translateY(-5px);
  background: var(--primary-pink);
  color: white;
}

/* Contact Section & Form */
.social-icons {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-bottom: 25px;
}

.social-icons a {
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  color: var(--text-color);
  background: var(--card-bg);
  border: 2px solid var(--primary-blue);
  border-radius: 50%;
  font-size: 20px;
  transition: 0.35s ease;
  box-shadow: var(--shadow);
}

.social-icons a:hover {
  background: var(--primary-blue);
  color: white;
  transform: translateY(-5px) scale(1.08);
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  background: var(--card-bg);
  border: 2px solid transparent;
  padding: 15px;
  border-radius: 10px;
  color: var(--text-color);
  box-shadow: var(--shadow);
  outline: none;
  transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary-blue);
}

footer {
  text-align: center;
  padding: 30px;
  background: var(--card-bg);
  margin-top: 50px;
  font-weight: 700;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .hero-container {
    flex-direction: column-reverse;
    text-align: center;
  }

  .hero-content {
    text-align: center;
  }

  .hero-profile-pic {
    width: 200px;
    height: 200px;
  }

  .hero-content p {
    margin: 0 auto 30px auto;
  }
}