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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: #f6f9fb;
  color: #222;
}

.navbar {
  background: #2a324b;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 2px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-link {
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.2s;
  position: relative;
}

.nav-link.active,
.nav-link:hover {
  color: #ff8c42;
  border-bottom: 2px solid #ff8c42;
}

.section {
  max-width: 900px;
  margin: 3rem auto;
  padding: 2rem;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 2px 8px rgba(44, 62, 80, 0.07);
}

/* Home Section */
.home-section h1 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.home-section p {
  font-size: 1.22rem;
  line-height: 1.6;
}

.quick-links {
  margin-top: 1.5rem;
}

.btn {
  display: inline-block;
  background: #ff8c42;
  color: #fff;
  padding: 0.5rem 1.3rem;
  border-radius: 25px;
  margin-right: 1rem;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s;
}

.btn:hover {
  background: #ff6f20;
}

/* About Section */
.about-section .about-grid {
  display: flex;
  gap: 2rem;
  align-items: center;
  margin-bottom: 1.5rem;
}

.profile-img-container {
  flex-shrink: 0;
}

.profile-img {
  width: 140px;
  height: 140px;
  border-radius: 70px;
  object-fit: cover;
  border: 3px solid #ff8c42;
}

.about-extra {
  margin-top: 1.5rem;
}

.about-extra h3 {
  color: #ff8c42;
  margin-bottom: 0.5rem;
}

/* Education Section */
.education-section ul {
  list-style: disc inside;
  padding-left: 1rem;
}

.education-section strong {
  color: #2a324b;
}

/* Skills Section */
.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.skill {
  background: #ff8c42;
  color: #fff;
  padding: 0.5rem 1.2rem;
  border-radius: 25px;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  box-shadow: 0 1px 4px rgba(44,62,80,0.07);
}

/* Languages and Soft Skills ALWAYS ON DIFFERENT ROWS */
.skills-extra {
  margin-top: 1.7rem;
}

.skills-extra-row {
  width: 100%;
  display: block;
}

.skills-extra-column {
  margin-bottom: 1.2rem;
}

.skills-extra h3 {
  margin-bottom: 0.4rem;
  color: #ff8c42;
}

.skills-extra ul {
  list-style: disc inside;
  margin-bottom: 0.6rem;
}

/* Projects Section Card Layout */
.project-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.project-card {
  background: #f6f9fb;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(44,62,80,0.09);
  padding: 1.2rem 1rem 1.7rem 1rem;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 200px;
  transition: transform 0.14s;
}

.project-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 6px 18px rgba(44,62,80,0.13);
}

.project-card h3 {
  margin-bottom: 0.5rem;
  color: #ff8c42;
}

.project-card p {
  flex-grow: 1;
}

/* Project Section Buttons */
.project-buttons {
  margin-top: 1.2rem;
  display: flex;
  gap: 1rem;
}

.project-btn {
  background: #2a324b;
  color: #fff;
  padding: 0.45rem 1.35rem;
  border-radius: 23px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
  border: none;
  box-shadow: 0 1px 4px rgba(44,62,80,0.09);
  display: inline-block;
}

.project-btn:hover {
  background: #ff8c42;
  color: #fff;
}

.live-btn {
  background: #ff8c42;
  color: #fff;
}
.live-btn:hover {
  background: #2a324b;
  color: #fff;
}

.source-btn {
  background: #2a324b;
  color: #fff;
}
.source-btn:hover {
  background: #ff8c42;
  color: #fff;
}

/* Contact Section */
.contact-section .email {
  font-weight: 600;
  color: #ff8c42;
  font-size: 1.1rem;
}

.social-links {
  margin: 1rem 0;
}

.social-links a {
  color: #2a324b;
  text-decoration: underline;
  font-weight: 500;
  margin-right: 0.5rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-top: 1rem;
  max-width: 400px;
}

.contact-form input, .contact-form textarea {
  padding: 0.5rem;
  border-radius: 6px;
  border: 1px solid #ddd;
  font-size: 1rem;
}

.contact-form button {
  background: #ff8c42;
  color: #fff;
  padding: 0.5rem 1.2rem;
  border-radius: 20px;
  border: none;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.contact-form button:hover {
  background: #ff6f20;
}

#form-status {
  color: #2a324b;
  font-size: 0.98rem;
  margin-top: 0.5rem;
}

/* Footer */
.footer {
  background: #2a324b;
  color: #fff;
  text-align: center;
  padding: 1rem 0;
  font-size: 1rem;
  margin-top: 2rem;
  border-radius: 0 0 15px 15px;
}

.footer a {
  color: #ff8c42;
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 900px) {
  .section {
    max-width: 98vw;
    padding: 1rem;
  }
}

@media (max-width: 700px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
  }
  .nav-links {
    flex-wrap: wrap;
    gap: 1rem;
  }
  .about-section .about-grid {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
  .profile-img {
    width: 100px;
    height: 100px;
    border-radius: 50px;
  }
}

  .home-content h1 {
    animation: fadeInUp 1.2s ease-out forwards;
    opacity: 0;
  }

  @keyframes fadeInUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
  }

.section-hidden {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.revealed {
  opacity: 1;
  transform: translateY(0);
}

#scrollToTopBtn {
  display: none;
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 99;
  font-size: 18px;
  border: none;
  outline: none;
  background-color: #ff8c42;
  color: white;
  cursor: pointer;
  padding: 12px 16px;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
#scrollToTopBtn:hover {
  background-color: #2a324b;
}

