/* -------- Box-sizing fix -------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* -------- General Page Style -------- */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: linear-gradient(to bottom, #cfd9e6, #9fb9dd);
  min-height: 100vh;
  overflow-x: hidden; /* Prevent horizontal scroll */
}

/* -------- Header -------- */
header {
  height: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(to right, #87CEFA, #1E90FF);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

nav a {
  color: white;
  text-decoration: none;
  margin: 0 20px;
  font-weight: bold;
  font-size: 18px;
}

nav a:hover {
  color: yellow;
}

nav a.active {
  border-bottom: 3px solid yellow;
  padding-bottom: 5px;
}

/* -------- Main Layout -------- */
main {
  padding: 50px 20px;
  padding-top: 120px; /* push content below fixed header */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 50px;
}

/* -------- Hero Section -------- */
.hero {
  text-align: center;
}

.hero-title {
  font-size: 42px;
  margin-bottom: 10px;
}

.hero-subtitle {
  font-size: 18px;
  opacity: 0.8;
}

/* -------- ALL CONTENT BOXES SAME SIZE -------- */
.about-section,
.skills-section,
.why-section,
.contact-box {
  width: 100%;
  max-width: 1100px;
  padding: 30px;
  border-radius: 15px;
  margin: 0 auto;
}

/* White Boxes */
.about-section,
.skills-section,
.why-section {
  background: white;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Contact Box */
.contact-box {
  background: linear-gradient(to right, #87CEFA, #1E90FF);
  color: white;
  text-align: center;
}

/* -------- Skills Styling -------- */
.skills-section {
  text-align: center;
}

.skills {
  margin-top: 20px;
}

.skills span {
  display: inline-block;
  background: #1E90FF;
  color: white;
  padding: 10px 15px;
  margin: 8px;
  border-radius: 20px;
  font-size: 14px;
}

/* -------- Why Section -------- */
.why-section ul {
  list-style: none;
  padding: 0;
}

.why-section li {
  margin: 10px 0;
  font-size: 16px;
}

/* -------- Button -------- */
.cta-button {
  display: inline-block;
  margin-top: 15px;
  background: #1E90FF;
  color: white;
  padding: 12px 25px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}

.cta-button:hover {
  background: #0b61c1;
  transform: translateY(-3px);
}

/* -------- Footer -------- */
footer {
  text-align: center;
  padding: 25px;
  background: #1E90FF;
  color: white;
}

.social-links a {
  margin: 0 12px;
  color: yellow;
  text-decoration: none;
}

.social-links a:hover {
  text-decoration: underline;
}

/* -------- Fade Animation -------- */
.fade-in {
  animation: fadeIn 1s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(25px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* -------- Responsive -------- */
@media (max-width: 800px) {
  .login-container {
    padding: 30px 20px;
    width: 90%;
  }

  nav a {
    margin: 0 10px;
    font-size: 16px;
  }
}