/* ==========================
   RESET & GLOBAL
========================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  color: #f4f4f4;
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

section {
  padding: 60px 20px;
}

.section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 40px;
  color: #ffdd59;
  font-weight: 600;
}

.bg-alt {
  background: rgba(255, 255, 255, 0.05);
}

/* ==========================
   NAVBAR
========================== */
.navbar {
  position: sticky;
  top: 0;
  width: 100%;
  background: rgba(15, 32, 39, 0.95);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 5%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffdd59;
}

.logo span {
  color: #ff7e5f;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav-links li a {
  color: white;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links li a:hover {
  color: #ffdd59;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  font-size: 1.5rem;
  color: #ffdd59;
  cursor: pointer;
}

/* ==========================
   HERO
========================== */
.hero {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  padding: 80px 10%;
  gap: 40px;
  background: linear-gradient(135deg, #1b2b34, #2e4a59, #3a5c6e);
}

.hero-text {
  flex: 1;
}

.hero-text h1 {
  font-size: 2.2rem;
  margin-bottom: 10px;
}

.hero-text h1 span {
  color: #ffdd59;
}

.hero-text h2 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.hero-text p {
  max-width: 600px;
  margin: 10px 0 20px;
}

.hero-buttons .btn {
  display: inline-block;
  margin: 5px;
  padding: 12px 25px;
  border-radius: 30px;
  background: #ff7e5f;
  color: white;
  font-weight: bold;
  transition: all 0.3s ease-in-out;
}

.hero-buttons .btn.secondary {
  background: #ffdd59;
  color: #333;
}

.hero-buttons .btn:hover {
  transform: scale(1.05);
}

.hero-img {
  flex: 1;
  display: flex;
  justify-content: center;
}

.hero-img img {
  width: 220px;
  height: 300px;
  border-radius: 50%;
  border: 4px solid #ffdd59;
  object-fit: cover;
}

/* ==========================
   ABOUT
========================== */
.about-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.about-img img {
  width: 250px;
  border-radius: 12px;
  border: 3px solid #ffdd59;
}

.about-text {
  flex: 1;
  text-align: justify;
}

.about-text p {
  margin-bottom: 15px;
  line-height: 1.6;
}

/* ==========================
   SKILLS
========================== */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.skill {
  background: rgba(255, 255, 255, 0.08);
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  transition: all 0.3s ease;
}

.skill i {
  font-size: 2rem;
  margin-bottom: 10px;
  color: #ffdd59;
}

.skill:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.15);
}

/* ==========================
   EDUCATION TIMELINE
========================== */
.timeline {
  list-style: none;
  max-width: 800px;
  margin: 0 auto;
  border-left: 3px solid #ffdd59;
  padding-left: 20px;
}

.timeline li {
  display: flex;
  align-items: center;
  margin-bottom: 25px;
  gap: 15px;
}

.timeline img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 6px;
  border: 2px solid #ffdd59;
}

.timeline div span {
  display: block;
  font-size: 0.9rem;
  opacity: 0.8;
  margin-bottom: 5px;
}

/* ==========================
   EXPERIENCE
========================== */
.experience-card {
  background: rgba(255, 255, 255, 0.08);
  padding: 20px;
  border-radius: 10px;
  margin: 20px auto;
  max-width: 800px;
}

.experience-card img {
  width: 60px;
  margin-bottom: 10px;
}

.experience-card h3 {
  color: #ffdd59;
  margin-bottom: 10px;
}

.experience-card ul {
  margin-left: 20px;
  list-style: disc;
}

/* ==========================
   PROJECTS
========================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  justify-content: center;
  align-items: stretch;
}

.project {
  background: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project img {
  border-radius: 6px;
  margin-bottom: 15px;
  height: 180px;
  object-fit: cover;
}

/* ==========================
   CONTACT
========================== */
.contact-section {
  text-align: center;
}

.contact-info {
  margin-bottom: 20px;
}

.contact-info p {
  margin: 6px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border-radius: 6px;
  border: none;
  outline: none;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #ccc;
}

.contact-form button {
  width: 100%;
  padding: 14px;
  border-radius: 6px;
  border: none;
  background: #ff7e5f;
  color: white;
  font-weight: bold;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.contact-form button:hover {
  background: #feb47b;
}
/* ==========================
   FOOTER
========================== */
footer {
  text-align: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.6);
  font-size: 0.9rem;
  color: #ccc;
}

.social-links {
  margin-top: 10px;
}

.social-links a {
  margin: 0 8px;
  color: #ffdd59;
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: #ff7e5f;
}


/* ==========================
   RESPONSIVE DESIGN
========================== */
@media (max-width: 768px) {
  .hero {
    flex-direction: column-reverse;
    text-align: center;
    padding: 60px 20px;
  }

  .about-container {
    flex-direction: column;
    text-align: center;
  }

  .about-text {
    text-align: justify;
  }

  .nav-links {
    position: absolute;
    top: 60px;
    right: 0;
    background: rgba(15, 32, 39, 0.95);
    flex-direction: column;
    width: 200px;
    display: none;
    padding: 20px;
    border-radius: 0 0 8px 8px;
  }

  .nav-links.show {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }
}

@media (min-width: 1024px) {
  .skills-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-text h1 {
    font-size: 2.5rem;
  }

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