:root {
  --bg-color: #1a1f2c;
  --text-color: #e0e0e0;
  --accent-color: #ff6b6b;
  --secondary-bg: #252a3a;
  --nav-bg: #151922;
  --font-main: 'Poppins', sans-serif;
}

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-color);
  color: var(--text-color);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s;
}

ul {
  list-style: none;
}

/* Layout */
.container {
  display: block;
  /* Stack vertically */
  min-height: 100vh;
}

/* Top Navigation */
.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5%;
  background-color: rgba(21, 25, 34, 0.95);
  /* --nav-bg with opacity */
  backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.logo h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
  margin: 0;
}

.top-nav nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  margin: 0;
  padding: 0;
}

.nav-links li {
  margin: 0;
}

.nav-links li a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.3s ease;
  padding: 5px 0;
  position: relative;
}

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

.nav-links li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  bottom: 0px;
  left: 0;
  transition: 0.3s;
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
  width: 100%;
}

.social-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.social-links a {
  color: var(--text-color);
  font-size: 1.2rem;
  transition: 0.3s;
}

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

/* Main Content */
.main-content {
  margin-left: 0 !important;
  padding-top: 80px;
  /* Space for fixed header */
  width: 100%;
}

/* Hero Section */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 8%;

  background: radial-gradient(circle at 70% 50%, #2a3045 0%, var(--bg-color) 60%);
  position: relative;
  gap: 4rem;
}

.hero-text {
  flex: 1;
  max-width: 600px;
}

.hero-text h3 {
  font-size: 2rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.hero-text h1 {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.5rem;
  color: #fff;
}

.hero-text h2 {
  font-size: 2.5rem;
  color: #888;
  margin-bottom: 2rem;
}

.hero-text p {
  color: #aaa;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.cta-buttons {
  display: flex;
  gap: 1.5rem;
}

.btn {
  padding: 12px 30px;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: 0.3s;
  display: inline-block;
}

.btn.primary {
  background-color: var(--accent-color);
  color: #fff;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.btn.secondary {
  border: 1px solid #555;
  color: #fff;
}

.btn:hover {
  transform: translateY(-2px);
}

/* Hero Image Area */
.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  position: relative;
}

.img-wrapper {
  position: relative;
  width: 350px;
  height: 350px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.placeholder-img {
  width: 320px;
  height: 320px;
  background-color: transparent;
  z-index: 2;
  background-image: url('images/profile_nobg.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: bottom center;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  background-position: center top;
  /* Adjust position */
}

.circle-bg {
  position: absolute;
  width: 350px;
  height: 350px;
  border: 2px solid var(--accent-color);
  border-radius: 50%;
  opacity: 0.5;
  z-index: 1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.circle-bg::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid var(--accent-color);
  top: -20px;
  left: -20px;
  opacity: 0.3;
}

/* Tech Stack Banner */
.tech-stack {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.tech-stack span {
  background: #1f2533;
  padding: 8px 16px;
  border-radius: 20px;
  color: #ccc;
  font-size: 0.85rem;
  font-weight: 500;
  transition: 0.3s;
  border: 1px solid rgba(255, 255, 255, 0.05);
  cursor: default;
}



.tech-stack span:hover {
  color: var(--accent-color);
  transform: translateY(-3px);
  background: #252a38;
}

/* About Section */
.about {
  padding: 6rem 8%;
}

.about-content {
  display: flex;
  gap: 4rem;
}

.services {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.service-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  background-color: var(--secondary-bg);
  border-radius: 10px;
  transition: 0.3s;
}

.service-item:hover {
  transform: translateX(10px);
  background-color: #2d3345;
}

.service-item i {
  font-size: 1.5rem;
  color: var(--accent-color);
}

.service-item h3 {
  font-size: 1.1rem;
  font-weight: 500;
  color: #fff;
  margin: 0;
}

.bio {
  flex: 1;
}

.bio h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: #fff;
}

.bio p {
  color: #aaa;
  line-height: 1.8;
  margin-bottom: 3rem;
  text-align: justify;
}

.stats {
  display: flex;
  gap: 4rem;
}

.stat-item h3 {
  font-size: 2.5rem;
  color: var(--accent-color);
  margin-bottom: 0.5rem;
}

.stat-item p {
  color: #fff;
  font-size: 0.9rem;
  margin: 0;
}

/* Education Section */
.education {
  padding: 6rem 8%;
  background-color: var(--bg-color);
  /* Matches body bg */
}

/* Currently Learning Section */
.learning {
  padding: 6rem 8%;
  background-color: var(--bg-color);
  /* Match main background */
  text-align: center;
}

.learning h2 {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--text-color);
  font-family: 'Poppins', sans-serif;
  /* Standard font */
  font-weight: 700;
}

.learning-container {
  max-width: 800px;
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 3rem;
  background-color: var(--secondary-bg);
  /* Use secondary background */
  border-radius: 10px;
  text-align: left;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.learning-list {
  list-style: none;
  padding: 0;
}

.learning-list li {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: var(--text-color-secondary);
  display: flex;
  align-items: center;
  gap: 15px;
  font-family: 'Poppins', sans-serif;
  /* Standard font */
}

.learning-list li i {
  color: var(--accent-color);
  /* Use accent color */
  font-size: 1.2rem;
}

.learning-list li:hover {
  transform: translateX(10px);
  transition: 0.3s;
  color: var(--text-color);
}

.learning-list li:hover i {
  color: var(--accent-color);
}

.education h2 {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: #fff;
  text-align: center;
}

.education-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.edu-card {
  background-color: var(--secondary-bg);
  padding: 2rem;
  border-radius: 10px;
  transition: 0.3s;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.edu-card:hover {
  transform: translateY(-5px);
  background-color: #2d3345;
  border-color: var(--accent-color);
}

.edu-card i {
  font-size: 2rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.edu-card h3 {
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.edu-card .year {
  display: inline-block;
  color: #888;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  background: #151922;
  padding: 5px 10px;
  border-radius: 5px;
}

.edu-card p {
  color: #aaa;
  margin-bottom: 0.5rem;
}

.edu-card .grade {
  color: var(--accent-color);
  font-weight: 600;
}

.cert-list {
  list-style: disc;
  padding-left: 20px;
  color: #aaa;
  margin-top: 1rem;
}

.cert-list li {
  margin-bottom: 0.5rem;
}

/* Projects Section */
.projects {
  padding: 6rem 8%;
  background-color: #171b26;
}

.projects h2 {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  text-align: center;
  color: #fff;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.project-card {
  background-color: var(--secondary-bg);
  border-radius: 10px;
  padding: 2rem;
  transition: 0.3s;
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.project-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  border-color: var(--accent-color);
}

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

.project-info h3 {
  margin-bottom: 1rem;
  color: #e6f1ff;
  font-size: 1.4rem;
  font-weight: 600;
}

.project-info p {
  color: #8892b0;
  font-size: 1rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
  flex-grow: 1;
}

.project-tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.project-tech-list span {
  font-size: 0.8rem;
  color: #ccd6f6;
  font-family: monospace;
}

.project-links {
  display: flex;
  gap: 1rem;
  margin-top: auto;
  justify-content: flex-start;
  /* Align links to left */
}

.project-links a {
  color: var(--accent-color);
  font-size: 0.9rem;
  transition: 0.3s;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
}

.project-links a:hover {
  margin-right: 5px;
  /* Slight movement on hover */
}

.project-links a i {
  transition: 0.3s;
}

.project-links a:hover i {
  transform: translateX(5px);
}

.project-tech-list span {
  font-size: 0.8rem;
  color: #ccd6f6;
  font-family: monospace;
}

/* Contact Section */
.contact {
  padding: 6rem 8%;
  background-color: #171b26;
  text-align: center;
}

.contact h2 {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: #fff;
}

.contact-container {
  display: flex;
  justify-content: center;
}

.contact-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  width: 100%;
  max-width: 1000px;
}

.contact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  background-color: var(--secondary-bg);
  padding: 2rem;
  border-radius: 10px;
  width: 250px;
  transition: 0.3s;
  text-align: center;
}

.contact-item:hover {
  transform: translateY(-5px);
  background-color: #2d3345;
}

.contact-item i {
  font-size: 2rem;
  color: var(--accent-color);
}

.contact-item h3 {
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.contact-item p {
  color: #aaa;
  font-size: 0.95rem;
  margin: 0;
}

/* Skills Progress Bars */
.skills-container {
  margin-top: 3rem;
}

.skill-item {
  margin-bottom: 1.5rem;
}

.skill-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: #fff;
  font-weight: 500;
}

.skill-bar-bg {
  width: 100%;
  height: 8px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.skill-bar-fill {
  height: 100%;
  background-color: var(--accent-color);
  border-radius: 4px;
  transition: width 1s ease-in-out;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #fff;
}

/* Responsive Design */
@media (max-width: 900px) {
  .nav-links {
    display: none;
    /* Hide default nav */
    position: absolute;
    top: 80px;
    right: 0;
    width: 100%;
    background-color: var(--nav-bg);
    flex-direction: column;
    align-items: center;
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    gap: 1.5rem;
  }

  .nav-links.active {
    display: flex;
    /* Show when active */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  }

  .top-nav nav {
    flex: none;
  }

  .menu-toggle {
    display: block;
  }

  .social-links {
    display: none;
  }

  .hero {
    flex-direction: column-reverse;
    padding-top: 8rem;
    text-align: center;
  }

  .hero-text {
    align-items: center;
    display: flex;
    flex-direction: column;
  }

  .cta-buttons {
    justify-content: center;
  }

  .about-content {
    flex-direction: column;
  }

  .contact-info {
    flex-direction: column;
    align-items: center;
  }

  .contact-item {
    width: 100%;
    max-width: 400px;
  }
}

/* Mobile Devices (Phones) */
@media (max-width: 600px) {
  .hero-text h1 {
    font-size: 2.5rem;
  }

  .hero-text h2 {
    font-size: 1.8rem;
  }

  .hero-text h3 {
    font-size: 1.5rem;
  }

  .about,
  .education,
  .projects,
  .contact,
  .hero {
    padding: 4rem 5%;
  }

  .education-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .img-wrapper,
  .circle-bg {
    width: 280px;
    height: 280px;
  }

  .placeholder-img {
    width: 250px;
    height: 250px;
  }

  .skills-container {
    padding: 0 1rem;
  }
}

/* Small Screens */
@media (max-width: 400px) {
  .hero-text h1 {
    font-size: 2rem;
  }

  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .contact-item {
    width: 100%;
    padding: 1.5rem;
  }

  .project-info h3 {
    font-size: 1.1rem;
  }
}