/* === Reset & Base === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Lato', sans-serif;
  background-color: #f5f5f5;
  color: #333;
  line-height: 1.6;
  scroll-behavior: smooth;
}

/* === Typography === */
h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  color: #014421;
}

h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

p {
  margin-bottom: 15px;
}

/* === Navigation === */
.navbar {
  background-color: white;
  border-bottom: 3px solid #D35400;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar ul {
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 15px 0;
}

.navbar li {
  margin: 0 20px;
}

.navbar a {
  text-decoration: none;
  color: #014421;
  font-weight: bold;
  transition: color 0.3s ease;
}

.navbar a:hover {
  color: #D35400;
}

/* === Hero Section === */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fdfdfd;
  overflow: hidden;
  flex-direction: column;
  padding: 60px 20px;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('images/bg.png') center/cover no-repeat;
  filter: brightness(0.4) saturate(0.8);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 20px;
  animation: fadeIn 1.2s ease;
}

.profile-wrapper {
  display: inline-block;
  border: 5px solid #F1C40F;
  border-radius: 50%;
  padding: 5px;
  background: white;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
  margin-bottom: 20px;
}

.profile-photo {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 50%;
}

.hero-name {
  font-size: 2.8rem;
  color: #F1C40F;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
  margin-bottom: 10px;
}

.hero-title {
  font-size: 1.4rem;
  font-weight: 400;
  font-style: italic;
  margin-bottom: 20px;
  color: #fdfdfd;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

.tagline {
  font-size: 1.1rem;
  margin-bottom: 30px;
  font-weight: 300;
  line-height: 1.6;
  color: #fdfdfd;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

/* Typewriter effect */
.typewriter {
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid #F1C40F;
  animation: typing 4s steps(60, end), blink 0.75s step-end infinite;
}

@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}

@keyframes blink {
  50% { border-color: transparent }
}

/* Glowing Button */
.btn.glow {
  background-color: #F1C40F;
  color: #014421;
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  box-shadow: 0 0 10px rgba(241, 196, 15, 0.6);
  transition: all 0.3s ease;
}

.btn.glow:hover {
  background-color: #D35400;
  color: white;
  box-shadow: 0 0 20px rgba(211, 84, 0, 0.8);
}

/* === Sections === */
.section {
  padding: 60px 20px;
  background-color: white;
  margin: 40px auto;
  max-width: 1000px;
  border-left: 6px solid #D35400;
  border-radius: 5px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  animation: fadeIn 1s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === Experience Grid === */
.experience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.card {
  background-color: #fff;
  border: 1px solid #ccc;
  padding: 25px;
  border-left: 6px solid #3F51B5;
  border-radius: 5px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* === Project Cards === */
.project-group {
  margin-bottom: 40px;
}

.project-card {
  background-color: #fff;
  border: 1px solid #ccc;
  padding: 20px;
  border-left: 6px solid #014421;
  border-radius: 5px;
  margin-bottom: 20px;
}

/* === Contact Section === */
.contact ul {
  list-style: none;
  padding: 0;
}

.contact li {
  margin-bottom: 10px;
}

.contact a {
  color: #D35400;
  text-decoration: none;
  font-weight: bold;
}

.contact a:hover {
  text-decoration: underline;
}

/* === Footer === */
footer {
  text-align: center;
  padding: 25px;
  background-color: #014421;
  color: white;
  font-size: 0.9rem;
}

/* === Responsive === */

/* Tablets */
@media (max-width: 1024px) {
  .hero {
    height: auto;
    padding: 40px 20px;
  }

  .hero-content {
    max-width: 90%;
  }

  .profile-photo {
    width: 140px;
    height: 140px;
  }

  .section {
    max-width: 90%;
  }

  .experience-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }
}

/* Phones */
@media (max-width: 768px) {
  .hero-name {
    font-size: 2rem;
  }

  .hero-title {
    font-size: 1.1rem;
  }

  .tagline {
    font-size: 0.95rem;
    line-height: 1.4;
  }

  .btn.glow {
    padding: 10px 18px;
    font-size: 0.9rem;
  }

  .profile-photo {
    width: 120px;
    height: 120px;
  }

  .navbar ul {
    flex-direction: column;
    padding: 10px 0;
  }

  .navbar li {
    margin: 8px 0;
  }

  .section {
    padding: 30px 10px;
    margin: 20px 10px;
  }

  .experience-grid {
    grid-template-columns: 1fr;
  }

  footer {
    font-size: 0.8rem;
    padding: 20px 10px;
  }
}

/* Small Phones */
@media (max-width: 480px) {
  .hero-name {
    font-size: 1.6rem;
  }

  .hero-title {
    font-size: 1rem;
  }

  .tagline {
    font-size: 0.85rem;
  }

  .profile-photo {
    width: 100px;
    height: 100px;
  }

  .btn.glow {
    font-size: 0.85rem;
    padding: 8px 16px;
  }
}

/* Large screens */
@media (min-width: 1440px) {
  .hero-content {
    max-width: 1000px;
  }

  .section {
    max-width: 1200px;
    padding: 80px 40px;
  }

  .experience-grid {
    gap: 40px;
  }

  .card {
    padding: 30px;
    font-size: 1.05rem;
  }

  .project-card {
    padding: 30px;
    font-size: 1.05rem;
  }

  .hero-name {
    font-size: 3.2rem;
  }

  .hero-title {
    font-size: 1.6rem;
  }

  .tagline {
    font-size: 1.2rem;
  }

  .btn.glow {
    font-size: 1rem;
    padding: 14px 28px;
  }

  .profile-photo {
    width: 180px;
    height: 180px;
  }

  footer {
    font-size: 1rem;
    padding: 30px;
  }
}
