/* style.css */
body {
  font-family: 'Inter', sans-serif;
  margin: 0;
  color: #fff;
  background: linear-gradient(135deg, #1e3c72, #2a5298);
  overflow-x: hidden;
}
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 15px 0;
}
.nav-wrap {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}
.logo {
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo .dot {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #ff512f, #dd2476);
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
}
nav a {
  color: #ddd;
  text-decoration: none;
  margin: 0 10px;
  transition: color 0.3s;
}
nav a:hover, nav a.active {
  color: #fff;
}
.hero-section {
  padding-top: 120px;
  background: linear-gradient(135deg, #ff512f, #f09819);
  color: #fff;
  text-align: center;
}
.hero {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 30px;
}
.hero-card {
  max-width: 500px;
}
.name {
  font-size: 2.5rem;
  font-weight: 800;
}
.title {
  font-size: 1.2rem;
  margin-bottom: 15px;
}
.description {
  font-size: 1rem;
  margin-bottom: 20px;
}
.btn {
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: transform 0.3s;
}
.btn-primary {
  background: linear-gradient(135deg, #00b4db, #0083b0);
  color: #fff;
}
.btn-gradient {
  background: linear-gradient(135deg, #ff512f, #dd2476);
  color: #fff;
}
.btn:hover {
  transform: scale(1.05);
}
.photo img {
  border-radius: 20px;
  max-width: 300px;
  box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.4);
}
section {
  padding: 60px 20px;
}
.section-title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 40px;
}
.skills-grid, .projects-grid, .education-grid, .contact-grid {
  display: grid;
  gap: 20px;
}
.skills-grid {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.projects-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.timeline {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
footer {
  text-align: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.2);
  margin-top: 20px;
}

/* script.js */
document.getElementById('year').textContent = new Date().getFullYear();

const sections = document.querySelectorAll('section');
const navLinks = document.querySelectorAll('nav a');
const observer = new IntersectionObserver(entries => {
  entries.forEach(entry => {
    if (entry.isIntersecting) {
      navLinks.forEach(link => link.classList.remove('active'));
      document.querySelector(`nav a[href="#${entry.target.id}"]`).classList.add('active');
    }
  });
}, { threshold: 0.5 });

sections.forEach(section => observer.observe(section));

document.querySelectorAll('a[href^="#"]').forEach(anchor => {
  anchor.addEventListener('click', function (e) {
    e.preventDefault();
    document.querySelector(this.getAttribute('href')).scrollIntoView({
      behavior: 'smooth'
    });
  });
});

