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

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  line-height: 1.6;
  background: #f0f4f8; 
  color: #1f2d3d;      
  padding-top: 60px;
}

.social-icons {
  text-align: center;
  margin: 40px 0;
}

.social-icons a {
  display: inline-block;
  margin: 0 15px;
  color: #040404;
  font-size: 24px;
  transition: transform 0.3s, color 0.3s;
}

.social-icons a:hover {
  color: #ffcc00;
  transform: scale(1.3) rotate(5deg);
  text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}


.navbar {
  background: linear-gradient(135deg, #3498db, #1d6fa5);
  padding: 15px 20px;
  position: fixed;
  top: 0;
  z-index: 1000;
  width: 100%;
  box-shadow: 0 3px 15px rgba(0,0,0,0.2);
}

.navbar ul {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.navbar a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

.navbar a:hover {
  color: #ffdd57;
}

.section {
  padding: 70px 20px;
  max-width: 1200px;
  margin: 30px auto;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform 0.3s, box-shadow 0.3s;
}

.section:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.section h1,
.section h2 {
  text-align: center;
  margin-bottom: 40px;
  color: #0d1f33;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.05);
}

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

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

.about-info {
  max-width: 500px;
  font-size: 17px;
  line-height: 1.8;
  background: #f7faff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.carousel {
  position: relative;
  overflow: hidden;
  width: 100%;           
  max-width: 500px;       
  aspect-ratio: 16/9;    
  margin: auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border: 1px solid #e1e7ef;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.carousel img {
  width: 100%;
  height: 100%;
  flex-shrink: 0;
  border-radius: 12px;
  object-fit: cover;
}

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

.project-card {
  background: #f9faff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.project-card img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 15px;
  border: 1px solid #e0e7f0;
}

.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  overflow: auto;
  background: rgba(0,0,0,0.6);
  padding: 50px 20px;
}

.modal-content {
  background: white;
  margin: auto;
  padding: 30px;
  border-radius: 12px;
  max-width: 700px;
  position: relative;
}

.close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  cursor: pointer;
  color: #2c3e50;
}

.close:hover {
  color: #e74c3c;
}

.button {
  display: inline-block;
  padding: 12px 25px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #3498db, #2980b9);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.button:hover {
  background: linear-gradient(135deg, #2980b9, #3498db);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

.button:active {
  transform: translateY(0);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.video-container {
  position: relative;
  width: 100%;
  margin: auto;
  aspect-ratio: 2560 / 1392;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  border: 1px solid #e1e7ef;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

footer {
  text-align: center;
  padding: 25px 15px;
  background: #3498db;
  color: #ffffff;
  font-size: 14px;
  letter-spacing: 0.5px;
  box-shadow: 0 -3px 10px rgba(0,0,0,0.1);
}

footer a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  margin-left: 5px;
}

footer a:hover {
  color: #f1c40f;
}

@media (max-width: 900px) {
  .about-container {
    flex-direction: column;
    text-align: center;
  }
  .profile-img {
    width: 160px;
    height: 160px;
  }
  .navbar ul {
    gap: 12px;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 15px;
  }
  .section {
    padding: 50px 15px;
  }
  .projects-grid {
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .video-container {
    aspect-ratio: auto; 
    height: 60vh;        
  }
}
