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

/* === BODY === */
body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
}

/* === NAVBAR === */
header {
  background: #0a1a3c;
  padding: 15px 20px;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #fff;
}
.logo span {
  color: #f39c12;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
}
.nav-links li a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}
.nav-links li a:hover {
  color: #f39c12;
}
.menu-toggle {
  display: none;
  font-size: 1.8rem;
  color: #fff;
  cursor: pointer;
}
/* === HERO BACKGROUND ANIMATION === */
.home {
  background: linear-gradient(-45deg, #0a1a3c, #223a70, #1c3c60, #0a1a3c);
  background-size: 400% 400%;
  animation: gradientBG 10s ease infinite;
  color: #fff;
  text-align: center;
}

@keyframes gradientBG {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* === HERO ANIMATIONS === */
.animate-text {
  animation: fadeInLeft 2s ease-in-out;
}
.animate-img {
  animation: fadeInRight 2s ease-in-out;
}

@keyframes fadeInLeft {
  0% { opacity: 0; transform: translateX(-50px); }
  100% { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
  0% { opacity: 0; transform: translateX(50px); }
  100% { opacity: 1; transform: translateX(0); }
}

/* === BUTTON HOVER EFFECT === */
.btn-hero {
  position: relative;
  overflow: hidden;
  z-index: 1;
}
.btn-hero::after {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: all 0.4s ease;
  z-index: -1;
}
.btn-hero:hover::after {
  left: 0;
}


/* === SECTIONS === */
.section {
  padding: 80px 20px;
  min-height: 100vh;
}
.home {
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(to right, #0a1a3c, #223a70);
  color: #fff;
  text-align: center;
}
.home h1 {
  font-size: 2.5rem;
}
.home h1 span {
  color: #f39c12;
}
.btn {
  display: inline-block;
  background: #f39c12;
  color: #fff;
  padding: 10px 20px;
  margin-top: 15px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
}
.btn:hover {
  background: #d35400;
}

.about {
  padding: 50px 20px;
  background: #f9f9f9;
  text-align: center;
}

.about-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 30px;
}

.about-img img {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.about-text {
  max-width: 600px;
  text-align: left;
}

.about, .contact {
  text-align: center;
}
.about h2, .contact h2 {
  margin-bottom: 20px;
  font-size: 2rem;
  color: #0a1a3c;
}
.about-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 30px;
  text-align: left;
}

.about-details h3 {
  margin-bottom: 15px;
  color: #f39c12;
}

.about-details ul {
  list-style: none;
  padding-left: 0;
}

.about-details ul li {
  margin-bottom: 10px;
  font-size: 1rem;
}

.skill-list li {
  background: #f4f4f4;
  padding: 8px 12px;
  border-radius: 5px;
}

/* === PROJECTS SECTION === */
.projects {
  background: #f9f9f9;
  text-align: center;
}

.projects h2 {
  margin-bottom: 30px;
  font-size: 2rem;
  color: #0a1a3c;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.project-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
}

.project-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.project-info {
  padding: 15px;
}

.project-info h3 {
  margin-bottom: 10px;
  color: #0a1a3c;
}

.project-info p {
  font-size: 0.95rem;
  margin-bottom: 10px;
}


/* === FORM === */
form {
  max-width: 500px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
form input, form textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}
.form-message {
  margin-top: 10px;
  color: green;
  font-weight: bold;
}

/* === FOOTER === */
/* === FOOTER === */
footer {
  background: #0a1a3c;
  color: #fff;
  text-align: center;
  padding: 20px;
}

.footer-links {
  margin-bottom: 10px;
}

.footer-links a {
  color: #fff;
  margin: 0 10px;
  text-decoration: none;
  font-weight: 500;
}

.footer-links a:hover {
  color: #f39c12;
}

.social-icons {
  margin-bottom: 10px;
}

.social-icons a {
  color: #fff;
  margin: 0 8px;
  font-size: 1.4rem;
  transition: color 0.3s ease;
}

.social-icons a:hover {
  color: #f39c12;
}


/* === RESPONSIVE === */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    background: #0a1a3c;
    position: absolute;
    top: 60px;
    right: 0;
    width: 200px;
    padding: 15px;
  }
  .nav-links.show {
    display: flex;
  }
  .menu-toggle {
    display: block;
  }
}
