
body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: #f9f9f9;
  color: #333;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
}

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

.nav-links li a {
  text-decoration: none;
  color: #333;
  font-weight: 600;
}

.hero-section {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  padding: 2rem 5%;
  background: #fff;
}

.hero-wrapper {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.hero-photo img {
  width: 180px;
  height: auto;
}

.hero-content-left {
  max-width: 500px;
}

.hero-content-left h1 {
  font-size: 2.3rem;
  margin-bottom: 1rem;
}

.hero-content-left p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  text-align: justify;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: teal;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
}

#projects, #gallery, #about, #experiences, #skills, #contact {
  padding: 2rem 5%;
}

#projects p,
#about p,
#experiences ul,
#skills ul,
#contact p {
  text-align: justify;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.video-card video {
  width: 100%;
  border-radius: 5px;
}

.video-card h4 {
  text-align: center;
  margin-top: 0.5rem;
}

.video-card h4 a {
  text-decoration: none;
  color: teal;
}

.video-card h4 a:hover {
  text-decoration: underline;
}

#contact form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 400px;
}

#contact input, #contact textarea {
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 5px;
}

footer {
  text-align: center;
  padding: 1rem;
  background: #333;
  color: #fff;
}

footer a {
  color: #00ffff;
  margin: 0 5px;
  text-decoration: none;
}

@media (max-width: 768px) {
  .hero-wrapper {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .hero-photo img {
    width: 120px;
  }
  .hero-content-left h1 {
    font-size: 2rem;
  }
  .nav-links {
    flex-direction: column;
    gap: 1rem;
  }
}


.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.video-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.video-card video {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  border-radius: 5px;
  object-fit: cover;
}

.video-card h4 {
  text-align: center;
  margin-top: 0.5rem;
}

.video-card h4 a {
  text-decoration: none;
  color: teal;
}

.video-card h4 a:hover {
  text-decoration: underline;
}


.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}


.video-card video {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 5px;
}


.education-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
}

.education-text {
  flex: 1 1 300px;
}

.education-photos {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1 1 200px;
}

.education-photos img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}


.edu-card {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 10px;
  padding: 1.5rem;
  gap: 2rem;
  flex-wrap: wrap;
}

.edu-card .edu-image {
  max-width: 200px;
  height: auto;
  border-radius: 10px;
}

.edu-card .edu-content {
  flex: 1 1 300px;
}

.edu-card h3 {
  margin: 0 0 0.5rem;
}

.edu-card h4 {
  margin: 0 0 0.5rem;
  color: teal;
}


.edu-card .edu-content p {
  text-align: justify;
}

@media (max-width: 768px) {
  .edu-card {
    flex-direction: column;
    text-align: center;
  }
  .edu-card .edu-content p {
    text-align: justify;
  }
}


.cta-section {
  text-align: center;
  padding: 2rem;
  background: teal;
  color: #fff;
}

.cta-section .btn {
  background: #fff;
  color: teal;
  margin-top: 1rem;
  padding: 0.7rem 1.5rem;
  border-radius: 30px;
  transition: background 0.3s;
}

.cta-section .btn:hover {
  background: #ddd;
}
