/* Reset & basic */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior:smooth;
}

body {
  font-family: 'Roboto', sans-serif;
  background: #f0f0f0;
  color: #333;
  scroll-behavior: smooth;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Navbar */
header {
  position: fixed;
  width: 100%;
  top: 0;
  background: #fff;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: auto;
  padding: 1rem;
}

.brand {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: #FF6B6B;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.2rem;
}

.nav-links li a {
  font-weight: 500;
  color: #333;
}

.nav-links li a:hover {
  color: #4ECDC4;
}

.toggle {
  display: none;
  cursor: pointer;
  font-size: 1.5rem;
}

/* Hero */
.hero {
  height: 100vh;
  background: linear-gradient(135deg, #FF6B6B, #4ECDC4);
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 1rem;
}

.hero h1 span {
  color: #FFE66D;
}

.hero .btn {
  margin-top: 1rem;
  padding: 0.7rem 2rem;
  border-radius: 50px;
  font-weight: bold;
  background: #FFE66D;
  color: #333;
  border: none;
  transition: all 0.3s ease;
}

.hero .btn:hover {
  transform: scale(1.1);
  background: #FF6B6B;
  color: #fff;
}

/* Sections */
section {
  padding: 80px 20px;
  max-width: 1200px;
  margin: auto;
}

h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
  color: #FF6B6B;
}

/* About */
.about-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
}

.about img {
  max-width: 250px;
  border-radius: 15px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.about-text {
  flex: 1;
}

.about-facts li {
  margin: 0.5rem 0;
  font-weight: 500;
}

/* Projects */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 25px rgba(0,0,0,0.2);
}

.project-card img {
  width: 100%;
  border-radius: 15px 15px 0 0;
  margin-bottom: 0.5rem;
}

/* Skills */
.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.skill h3 {
  margin-bottom: 0.5rem;
}

.skill-bar {
  background: #e0e0e0;
  height: 15px;
  border-radius: 10px;
}

.skill-bar span {
  display: block;
  height: 100%;
  background: #4ECDC4;
  border-radius: 10px;
  transition: width 1s ease;
}

/* Contact */
.contact form {
  max-width: 600px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact input, .contact textarea {
  padding: 0.8rem;
  border-radius: 10px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

.contact .btn {
  padding: 0.8rem;
  border-radius: 50px;
  border: none;
  background: #FF6B6B;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.contact .btn:hover {
  background: #4ECDC4;
  transform: scale(1.05);
}

/* Footer */
footer {
  background: #fff;
  text-align: center;
  padding: 1rem;
  margin-top: 2rem;
}

footer .social-links a {
  margin: 0 0.5rem;
  color: #FF6B6B;
  font-weight: 500;
}

footer .social-links a:hover {
  color: #4ECDC4;
}

/* Responsive */
@media (max-width: 768px) {
  .about-container {
    flex-direction: column;
  }

  .toggle {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    gap: 0;
    background: #fff;
    position: absolute;
    top: 60px;
    right: 0;
    width: 200px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  }

  .nav-links.show {
    display: flex;
  }

  .nav-links li {
    padding: 1rem;
  }
}
