/* Base Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body styles and global font */
body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #0a0a0a;
  color: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
}

/* CSS Variables for theme colors */
:root {
  --dark-bg: #1a1a2e;
  --darker-bg: #0f0f1c;
  --accent: #a29bfe; /* light violet */
  --accent-glow: rgba(162, 155, 254, 0.3);
  --text: #f0f0f0;
}

/* Navbar styles */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.5rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  padding-left: 2.5rem;
}

/* Navigation links styles */
.nav-links {
  display: none;
  flex-direction: column;
  align-items: center;
  position: absolute;
  top: 70px;
  left: 0;
  width: 100%;
  background: rgba(10, 10, 10, 0.95);
}

.nav-links.active {
  display: flex;
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

/* Hero section styles */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12% 5%;
  background: radial-gradient(circle at 75% 30%, var(--accent-glow) 0%, transparent 30%);
}

.hero-content {
  flex: 1;
  padding-right: 5rem;
}

.hero-image {
  flex: 1;
  text-align: center;
}

.hero-title {
  color: var(--accent);
  font-weight: 700;
  font-size: 3.5rem;
}

.hero-subtitle {
  color: #d6a4ff; /* Lavender tone */
  font-weight: 600;
  font-size: 2.5rem;
}

.hero-tagline {
  font-size: 1.2rem;
  color: #ddd;
  margin-top: 1rem;
  line-height: 1.8;
  max-width: 700px;
}

.accent-word {
  color: #b388eb; /* Soft accent (lavender) */
  font-weight: bold;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  max-width: 680px;
  opacity: 0.9;
}

/* Profile image styles */
.profile-img {
  width: 400px;
  height: 400px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent);
  box-shadow: 0 0 50px var(--accent-glow);
  animation: float 3s ease-in-out infinite;
  filter: grayscale(0.2) contrast(1.1);
}

/* Floating animation for profile image */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

/* Call-to-action button styles */
.cta-button {
  display: inline-block;
  padding: 1rem 2rem;
  background: linear-gradient(45deg, #a29bfe, #6c5ce7); /* updated for lavender palette */
  color: #ffffff; /* white text */
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 600;
  box-shadow: 0 0 15px rgba(162, 155, 254, 0.3);
}

/* Skills Section */
.skills {
  padding: 5rem 5%;
  background: var(--darker-bg);
  text-align: center;
}

.skills h2 {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 3rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
  gap: 2rem;
}

.skill-card {
  padding: 2rem;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
}

.skill-card:hover {
  transform: translateY(-10px);
  border-color: var(--accent);
  box-shadow: 0 10px 30px var(--accent-glow);
}

.skill-card i {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

/* Education Section */
#education {
  padding: 5rem 5%;
  background: var(--dark-bg);
  text-align: center;
}

#education h2 {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 2rem;
}

.education-entry {
  margin-bottom: 2rem;
}

.education-entry h3 {
  color: var(--accent);
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.education-entry p {
  font-size: 1rem;
  color: var(--text);
  opacity: 0.9;
}

/* Projects Section */
.projects {
  padding: 5rem 5%;
  background-color: var(--dark-bg);
  text-align: center;
}

.projects h2 {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--accent);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.project-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  backdrop-filter: blur(4px);
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px var(--accent-glow);
}

.project-card h3 {
  color: var(--accent);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.project-card p {
  color: var(--text);
  margin-bottom: 1.5rem;
}

.project-card a {
  display: inline-block;
  padding: 0.5rem 1.2rem;
  background: var(--accent);
  color: white;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 500;
}

.project-card a:hover {
  background: #2788ae;
}

/* Contact Section */
#contact {
  padding: 4rem 5%;
  background: var(--darker-bg);
  text-align: center;
}

#contact h2 {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 2rem;
}

.contact-icons {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.contact-icons a {
  color: var(--text);
  font-size: 2rem;
  transition: all 0.3s ease;
}

.contact-icons a:hover {
  color: var(--accent);
  transform: translateY(-3px);
}

/* Footer styles */
footer {
  background: var(--darker-bg);
  padding: 3rem 5%;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Social links styles */
.social-links {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.social-links a {
  color: var(--text);
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.social-links a:hover {
  color: var(--accent);
  transform: translateY(-3px);
}

/* Responsive styles for mobile devices */
.menu-toggle {
  display: none;
  font-size: 1.8rem;
  color: var(--text);
  cursor: pointer;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(10, 10, 10, 0.95);
    padding: 2rem 0;
    text-align: center;
    z-index: 999;
  }

  .nav-links.show {
    display: flex;
  }

  .nav-links li {
    margin: 1rem 0;
  }

  .menu-toggle {
    display: block;
    font-size: 1.8rem;
    color: var(--text);
    cursor: pointer;
    z-index: 1001;
  }

  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 8rem;
  }

  .hero-content {
    padding-right: 0;
    margin-bottom: 3rem;
  }

  .nav-links {
    display: none;
  }

  .logo {
    font-size: 1.5rem;
    padding-left: 2rem;
  }

  .profile-img {
    width: 280px;
    height: 280px;
  }

  .skills-grid, .projects-grid {
    grid-template-columns: 1fr;
  }

  .contact-icons {
    flex-direction: column;
  }
}