* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background: #f9f9f9;
  line-height: 1.6;
  overflow-x: hidden;
  color: #000;
}

i {
  transition: transform 0.3s ease, color 0.3s ease;
}
a:hover i,
.resume-button:hover i,
.box:hover i,
li:hover i {
  transform: rotate(10deg) scale(1.2);
  color: #FFD700;
}
@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

.resume-button:hover i {
  animation: bounce 0.5s ease;
}
header {
  background: #008080;
  padding: 1rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  animation: slideDown 1s ease-in-out;
}

nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  flex-wrap: wrap;
}

nav ul li {
  margin: 0 20px;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease, transform 0.3s ease;
}

nav ul li a:hover {
  color: #FFD700;
  transform: scale(1.1);
}

/* ========== SECTIONS ========== */
section {
  padding: 120px 20px 80px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1s ease, transform 1s ease;
}

section.visible {
  opacity: 1;
  transform: translateY(0);
}

#home {
  background: linear-gradient(to right, #008080, #20B2AA);
  color: #000;
}

#about, #projects, #resume, #contact {
  background: #ffffff;
}

/* ========== CTA BUTTON ========== */
.cta-button {
  margin-top: 20px;
  padding: 12px 24px;
  background: #FFD700;
  color: #000;
  font-weight: bold;
  border: none;
  border-radius: 25px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.cta-button:hover {
  background: #e6c200;
}

/* ========== ABOUT SECTION ========== */
.about-content {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  align-items: flex-start;
  margin-top: 30px;
}

.about-image {
  width: 250px;
  height: 250px;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.about-text {
  flex: 1;
  max-width: 600px;
}

.about-boxes {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 30px;
  justify-content: center;
}

.box {
  background: #ffffff;
  padding: 20px;
  border-left: 5px solid #008080;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  width: 250px;
  animation: fadeInUp 1s ease forwards;
}

.box h3 {
  margin-bottom: 10px;
  color: #008080;
}

.box ul {
  list-style: none;
  padding-left: 0;
}

.box ul li {
  margin-bottom: 5px;
}

/* ========== RESUME ========== */
.resume-button {
  display: inline-block;
  padding: 12px 24px;
  background-color: #FFD700;
  color: #000;
  font-weight: bold;
  border-radius: 25px;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.3s ease;
  margin-top: 20px;
}

.resume-button:hover {
  background-color: #e6c200;
  transform: scale(1.05);
}

.resume-button i {
  margin-right: 8px;
}

/* ========== PROJECTS ========== */
#projects ul {
  list-style: none;
  padding: 0;
}

#projects li {
  margin: 10px 0;
  font-size: 1.1rem;
}

/* ========== CONTACT FORM ========== */
form {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 400px;
  padding: 10px;
  animation: fadeInUp 1.5s ease;
}

form input,
form textarea {
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
  resize: vertical;
  font-size: 1rem;
  width: 100%;
}

form button {
  padding: 12px;
  background: #008080;
  color: #fff;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

form button:hover {
  background: #006666;
}

/* Validation colors */
input:invalid,
textarea:invalid {
  border-color: red;
}

input:valid,
textarea:valid {
  border-color: #008080;
}

/* Form message */
.form-message {
  margin-top: 10px;
  font-weight: bold;
  font-size: 0.95rem;
}

/* ========== ANIMATIONS ========== */
@keyframes slideDown {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .about-content {
    flex-direction: column;
    align-items: center;
  }

  .about-image {
    width: 200px;
    height: 200px;
  }

  nav ul li {
    margin: 10px;
  }
}
.project-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
  margin-top: 30px;
  max-width: 1000px;
}

.project-card {
  background: #fff;
  border-left: 5px solid #008080;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  padding: 20px;
  width: 100%;
  max-width: 400px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.project-card h3 {
  margin-bottom: 10px;
  color: #008080;
  font-size: 1.2rem;
}

.project-card p {
  font-size: 0.95rem;
  color: #000;
}
