* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background-color: #f9f7f4;
  color: #333;
  line-height: 1.6;
}

header {
  position: fixed;
  top: 0;
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 3rem;
  z-index: 1000;
}

header .logo {
  color: #c23c02;
  font-weight: 700;
  font-size: 1.5rem;
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin: 0 15px;
}

nav ul li a {
  text-decoration: none;
  color: #d05a05;
  font-weight: 500;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: #00796b;
}

.hero {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background: linear-gradient(to bottom right, #dbece7, #f9f7f4);
  text-align: center;
  padding-top: 70px;
}

.typing-text {
  font-size: 2rem;
  font-weight: 600;
  color: #818486;
  margin-bottom: 0.5rem;
}

.color-changing-text {
  font-size: 1.2rem;
  animation: colorChange 6s infinite;
}

@keyframes colorChange {
  0% { color: #00796b; }
  25% { color: #4caf50; }
  50% { color: #0288d1; }
  75% { color: #dc5506; }
  100% { color: #00796b; }
}

/* Tools */
#tools {
  max-width: 95%; 
  margin: 3rem auto;
  text-align: center;
}

#tools h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.marquee {
  display: flex;
  gap: 2rem;
  animation: moveRight 30s linear infinite;
  overflow: hidden;
  justify-content: center;
  align-items: center;
  padding: 1rem 0;
}

.marquee .tool {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #f0f8f8;
  padding: 0.5rem 1rem;
  border-radius: 12px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
  font-weight: 600;
  font-size: 1rem;
  flex: 0 0 auto; 
}

.marquee img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

@keyframes moveRight {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@media (max-width: 600px) {
  .marquee {
    flex-wrap: wrap;   
    animation: none;  
    gap: 1rem;        
  }

  .marquee .tool {
    padding: 0.5rem;
    font-size: 0.85rem;
    min-width: 100px;  
  }

  .marquee img {
    width: 40px;
    height: 40px;
  }
}

.about {
  padding: 4rem 2rem;
  text-align: center;
  background: #fff;
}

.about-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 2rem;
}

.about-content p{
    text-align: justify;
    font-family: Arial, Helvetica, sans-serif;
}

.profile-img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  margin-bottom: 1.5rem;
  object-fit: cover;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Schools */
#schools {
  max-width: 95%; 
  margin: 3rem auto;
  text-align: center;
}

#schools h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.schools-marquee {
  display: flex;
  gap: 3rem;
  animation: moveRight 25s linear infinite;
  overflow: hidden;
  justify-content: center;
  align-items: center;
  background-color: #f7f9fb;
  border-radius: 15px;
  padding: 1rem 0;
}

.school-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  background-color: #ffffff;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  font-weight: 600;
  font-size: 1rem;
  flex: 0 0 auto; 
  transition: transform 0.3s;
}

.school-item:hover {
  transform: scale(1.05);
}

.schools-marquee img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

@keyframes moveRight {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

@media (max-width: 600px) {
  .schools-marquee {
    flex-wrap: wrap;  
    animation: none;  
    gap: 1rem;        
  }

  .school-item {
    padding: 0.5rem;
    font-size: 0.85rem;
    min-width: 100px; 
  }

  .schools-marquee img {
    width: 40px;
    height: 40px;
  }
}

.lesson-plans {
  background: #f1f1f1;
  padding: 4rem 2rem;
  text-align: center;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.plan-card {
  background: #fff;
  padding: 2rem;
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.plan-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.plan-card a {
  text-decoration: none;
  color: #00796b;
  font-weight: 600;
}

#projects {
  padding: 60px 20px;
  background-color: #f9f9f9;
  text-align: center;
}

.projects-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.project-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  padding: 20px;
  transition: transform 0.2s ease;
}

.project-card:hover {
  transform: translateY(-5px);
}

.project-link {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 20px;
  background: #0062ff;
  color: white;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
}

/* Academic Section */
.academic-section {
  background-color: #f9f9fb;
  padding: 80px 20px;
  font-family: 'Poppins', sans-serif;
}

.academic-section .container {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.academic-section h2 {
  font-size: 2.2rem;
  color: #222;
  margin-bottom: 10px;
  font-weight: 600;
}

.section-intro {
  font-size: 1rem;
  color: #555;
  margin-bottom: 50px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.project-card {
  background-color: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.project-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.project-info {
  padding: 20px;
}

.project-info h3 {
  font-size: 1.1rem;
  color: #222;
  margin-bottom: 8px;
}

.project-info p {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 15px;
}

.view-btn {
  display: inline-block;
  background-color: #0056d2;
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background-color 0.3s ease;
}

.view-btn:hover {
  background-color: #003c9e;
}


.project-link:hover {
  background: #8e8c89;
}

/* Teaching Philosophy */
#philosophy {
  max-width: 900px;
  margin: 3rem auto;
  text-align: center;
  padding: 2rem 1rem;
}

#philosophy h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.philosophy-container {
  background: rgba(245, 248, 250, 0.9);
  border-left: 5px solid #457b9d;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.philosophy-container p {
  font-size: 1.1rem;
  line-height: 1.8;
  text-align: justify;
}

.philosophy-container strong {
  color: #1d3557;
}

/* Contact */
#contact {
  max-width: 900px;
  margin: 3rem auto;
  text-align: center;
}

#contact h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.contact-container {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

#contact form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#contact input, #contact textarea {
  padding: 0.8rem;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.25);
  color: #1c2541;
  font-size: 1rem;
  outline: none;
  transition: 0.3s;
}

#contact input::placeholder, #contact textarea::placeholder {
  color: rgba(28, 37, 65, 0.7);
}

#contact input:focus, #contact textarea:focus {
  border: 1px solid #457b9d;
  background: rgba(255,255,255,0.35);
}

#contact button {
  padding: 1rem;
  background-color: rgba(91, 39, 20, 0.8);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.3s;
}

#contact button:hover {
  background-color: rgb(112, 116, 118);
  transform: translateY(-2px);
}

.email-contact {
  margin-top: 1.5rem;
  font-weight: bold;
  color: #1c2541;
}

footer {
  background: #c55a02;
  color: #fff;
  text-align: center;
  padding: 1.2rem 0;
}

@media (max-width: 768px) {
  header {
    flex-direction: column;
    padding: 1rem;
  }

  nav ul {
    flex-direction: column;
    align-items: center;
  }

  nav ul li {
    margin: 10px 0;
  }
}