* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Segoe UI', sans-serif;
  background: #f9f9f9;
  color: #222;
  line-height: 1.6;
  transition: background 0.3s, color 0.3s;
}
a {
  color: #0066ff;
  text-decoration: none;
}
.container {
  width: 90%;
  max-width: 1100px;
  margin: auto;
}
.section-title {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  text-align: center;
  position: relative;
}
.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: #0066ff;
  margin: 10px auto 0;
}
.btn {
  display: inline-block;
  background: #ffcc00;
  color: #222;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: bold;
  margin-top: 1rem;
  transition: all 0.3s ease;
}
.btn:hover {
  background: #e6b800;
  transform: translateY(-3px);
}

/* Navbar */
.navbar {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 10;
}
.navbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}
.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #0066ff;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 1rem;
}
.nav-links li a {
  color: #444;
  font-weight: 500;
}
.nav-links li a:hover {
  color: #0066ff;
}
.menu-toggle,
.theme-toggle {
  display: none;
  font-size: 1.4rem;
  background: none;
  border: none;
  cursor: pointer;
}

/* Hero */
.hero {
  background: linear-gradient(to right, #0066ff, #0099ff);
  color: white;
  padding: 6rem 1rem;
  text-align: center;
}
.hero h1 {
  font-size: 2.8rem;
}
.hero .highlight {
  color: #ffcc00;
}
.hero p {
  font-size: 1.2rem;
  margin-top: 1rem;
}

/* Sections */
.skills,
.projects,
.about,
.contact {
  padding: 4rem 1rem;
}
.skills-grid,
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}
.skill-box,
.project-item {
  background: #fff;
  padding: 2rem;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s;
}
.project-item:hover,
.skill-box:hover {
  transform: translateY(-5px);
}

/* About */
.about-inner {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  align-items: center;
}
.about-photo {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border: 4px solid #0066ff;
  border-radius: 8px;
  background: white;
  padding: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.about-text {
  flex: 1;
}

/* Contact */
.contact-form {
  max-width: 600px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-form input,
.contact-form textarea {
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}
.contact-form button {
  background: #0066ff;
  color: white;
  border: none;
  padding: 0.75rem;
  border-radius: 4px;
  cursor: pointer;
}
.contact-form button:hover {
  background: #0050cc;
}
.contact-info {
  text-align: center;
  margin-top: 1.5rem;
  color: #555;
}

/* Footer */
.footer {
  background: #333;
  color: white;
  text-align: center;
  padding: 1.5rem 0;
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Dark Mode */
body.dark {
  background: #121212;
  color: #f1f1f1;
}
body.dark .navbar,
body.dark .skills,
body.dark .projects,
body.dark .about,
body.dark .contact {
  background: #1f1f1f;
}
body.dark .btn {
  background: #ffaa00;
  color: #111;
}
body.dark .footer {
  background: #000;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    background: white;
    position: absolute;
    top: 60px;
    right: 20px;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }
  .nav-links.active {
    display: flex;
  }
  .menu-toggle {
    display: block;
  }
}
