/* Reset and Base Styles */
/* Color palette is imported from colors.css */

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

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  line-height: 1.7;
  color: var(--text-color);
  background-color: var(--bg-light);
  font-size: 16px;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navigation */
.navbar {
  background: var(--bg-color);
  box-shadow: var(--shadow-soft);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 20px;
}

.nav-brand a {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-color);
  text-decoration: none;
  letter-spacing: 0.5px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  gap: 4px;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--secondary-color);
  border-radius: 2px;
  transition: all 0.3s;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-menu a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
  position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--primary-color);
}

.nav-menu a.active::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary-color);
}

/* Hero Section */
.hero {
  background: var(--primary-gradient);
  color: var(--text-on-pink);
  padding: 6rem 0;
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 500;
  margin-bottom: 1rem;
  animation: fadeInUp 0.8s ease-out;
  letter-spacing: -1px;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background: var(--bg-color);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background: var(--primary-color);
  color: var(--text-on-pink);
  border-color: var(--primary-color);
}

.btn-secondary {
  background: transparent;
  color: var(--text-on-pink);
  border: 2px solid var(--text-on-pink);
}

.btn-secondary:hover {
  background: var(--bg-color);
  color: var(--primary-dark);
  border-color: var(--bg-color);
}

/* Features Section */
.features {
  padding: 5rem 0;
  background: var(--bg-rose);
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--text-color);
  font-weight: 500;
  letter-spacing: -0.5px;
}

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

.feature-card {
  background: var(--bg-color);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-soft);
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid var(--border-color);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.feature-card p {
  color: var(--text-light);
}

/* Page Header */
.page-header {
  background: var(--primary-gradient);
  color: var(--text-on-pink);
  padding: 2rem 0;
  text-align: center;
  margin-bottom: 1rem;
}

.page-header h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
  letter-spacing: -0.5px;
}

.page-header p {
  font-size: 1rem;
  opacity: 0.9;
}

/* About Section */
.about-content {
  padding: 2rem 0 5rem 0;
}

/* Tabs Container */
.tabs-container {
  max-width: 900px;
  margin: 0 auto;
}

.tabs-list {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 0;
}

.tab-button {
  background: transparent;
  border: none;
  padding: 1rem 1.5rem;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.3s;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  position: relative;
  font-family: inherit;
}

.tab-button:hover {
  color: var(--text-color);
  background: var(--bg-rose);
}

.tab-button.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
  background: transparent;
}

.tabs-content {
  position: relative;
  min-height: 300px;
}

.tab-panel {
  display: none;
  animation: fadeIn 0.3s ease-in;
}

.tab-panel.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tab-panel .section-content {
  background: var(--bg-color);
  padding: 2.5rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-color);
  color: var(--text-color);
  line-height: 1.9;
  font-size: 1.05rem;
}

.tab-panel .section-content p {
  margin: 0;
  white-space: pre-line;
}

.section-intro {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text-color);
  margin-bottom: 1.5rem !important;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
  white-space: pre-line;
}

.section-intro-container {
  margin-bottom: 2rem;
  margin-top: 0;
}

.online-ders-intro-button {
  margin-top: 1.5rem;
  text-align: center;
}

/* Online Ders Link Button */
.online-ders-link {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

/* Poems List Styles */
.poems-list {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  margin-top: 2rem;
}

.poem-item {
  background: var(--bg-rose);
  padding: 2rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.poem-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.poem-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-color);
  margin: 0 0 1.25rem 0;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--primary-color);
}

.poem-text {
  color: var(--text-color);
  line-height: 1.9;
  font-size: 1.05rem;
  white-space: pre-line;
  font-style: italic;
}

.poem-author {
  margin-top: 1.5rem;
  text-align: right;
  color: var(--text-color);
  font-size: 1rem;
  font-style: normal;
  opacity: 0.8;
}

/* Responsive adjustments for poems */
@media (max-width: 768px) {
  .poems-list {
    gap: 2rem;
    margin-top: 1.5rem;
  }

  .poem-item {
    padding: 1.5rem;
  }

  .poem-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
  }

  .poem-text {
    font-size: 1rem;
  }

  .poem-author {
    font-size: 0.9rem;
    margin-top: 1.25rem;
  }
}

/* Theatre Plays List Styles */
.theatre-plays-list {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  margin-top: 2rem;
}

.theatre-play-item {
  background: var(--bg-rose);
  padding: 2rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border-color);
}

.theatre-play-header {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.theatre-play-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-color);
  margin: 0;
}

.theatre-play-date {
  font-size: 1rem;
  color: var(--text-color);
  opacity: 0.7;
  font-style: italic;
}

.theatre-play-description {
  color: var(--text-color);
  line-height: 1.8;
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  white-space: pre-line;
}

/* Carousel Styles */
.theatre-carousel {
  margin-top: 1.5rem;
  position: relative;
}

.carousel-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 0.5rem;
  background: var(--bg-color);
}

.carousel-images {
  position: relative;
  width: 100%;
  min-height: 500px;
  max-height: 800px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-color);
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.carousel-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.carousel-slide:not(.active) video {
  pointer-events: none;
}

.carousel-slide img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 0.5rem;
}

.carousel-slide video,
.carousel-video {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  min-width: 600px;
  min-height: 400px;
  object-fit: contain;
  border-radius: 0.5rem;
  background: #000;
  display: block;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  width: auto;
  height: auto;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: opacity 0.3s ease;
}

.carousel-btn:hover {
  opacity: 0.7;
}

.carousel-btn img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.carousel-prev {
  left: 15px;
}

.carousel-prev img {
  transform: scaleX(-1); /* Flip horizontally for previous button */
}

.carousel-next {
  right: 15px;
}

.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.carousel-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--primary-color);
  background: transparent;
  cursor: pointer;
  transition: background 0.3s ease;
  padding: 0;
}

.carousel-indicator.active {
  background: var(--primary-color);
}

.carousel-indicator:hover {
  background: var(--primary-color);
  opacity: 0.7;
}

/* News Items */
.news-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.6rem;
  margin-top: 2rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.news-item {
  background: var(--bg-rose);
  border-radius: 0.75rem;
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
}

.news-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.news-image-container {
  width: 100%;
  height: 200px;
  min-height: 200px;
  max-height: 200px;
  overflow: hidden;
  background: var(--bg-color);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  box-sizing: border-box;
  contain: layout style paint;
}

.news-image-container a {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.news-image {
  max-width: 100% !important;
  max-height: 100% !important;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  transition: transform 0.3s ease;
  display: block;
  box-sizing: border-box;
}

.news-item:hover .news-image {
  transform: scale(1.05);
}

.news-content {
  padding: 1.2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 60px;
}

.news-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-color);
  margin: 0;
  line-height: 1.4;
}

.news-title a {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.news-title a:hover {
  color: var(--primary-color);
}

/* Responsive adjustments for news items */
@media (max-width: 768px) {
  .news-list {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
  }

  .news-image-container {
    height: 160px;
    min-height: 160px;
    max-height: 160px;
  }

  .news-content {
    padding: 1rem;
    min-height: 50px;
  }

  .news-title {
    font-size: 1.1rem;
  }
}

/* Responsive adjustments for theatre plays */
@media (max-width: 768px) {
  .theatre-plays-list {
    gap: 2rem;
    margin-top: 1.5rem;
  }

  .theatre-play-item {
    padding: 1.5rem;
  }

  .theatre-play-header {
    gap: 0.75rem;
  }

  .theatre-play-title {
    font-size: 1.3rem;
  }

  .theatre-play-date {
    font-size: 0.9rem;
  }

  .theatre-play-description {
    font-size: 1rem;
  }

  .carousel-btn img {
    width: 32px;
    height: 32px;
  }

  .carousel-prev {
    left: 10px;
  }

  .carousel-next {
    right: 10px;
  }

  .carousel-images {
    min-height: 300px;
    max-height: 500px;
  }

  .carousel-slide video,
  .carousel-video {
    min-width: 100%;
    min-height: 300px;
  }
}

/* Legacy styles for other pages */
.about-sections {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  max-width: 900px;
  margin: 0 auto;
}

.about-section {
  background: var(--bg-color);
  padding: 2.5rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-color);
  transition: transform 0.3s, box-shadow 0.3s;
}

.about-section:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.section-heading {
  font-size: 1.75rem;
  margin-bottom: 1.25rem;
  color: var(--text-color);
  font-weight: 500;
  letter-spacing: -0.3px;
}

.section-content {
  color: var(--text-color);
  line-height: 1.9;
  font-size: 1.05rem;
}

.section-content p {
  margin: 0;
  white-space: pre-line;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about-text h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--text-color);
}

.about-text p {
  margin-bottom: 1rem;
  color: var(--text-light);
  line-height: 1.8;
}

.about-skills h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-color);
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.skill-tag {
  background: var(--primary-color);
  color: var(--text-on-pink);
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--shadow-soft);
}

/* Projects Section */
.projects-content {
  padding: 5rem 0;
  background: var(--bg-rose);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
}

.project-card {
  background: var(--bg-color);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid var(--border-color);
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.project-image {
  height: 200px;
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-placeholder {
  font-size: 4rem;
}

.project-info {
  padding: 1.5rem;
}

.project-info h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-color);
}

.project-info p {
  color: var(--text-light);
  margin-bottom: 1rem;
}

.project-tags {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.tag {
  background: var(--accent-pink);
  color: var(--text-color);
  padding: 0.25rem 0.75rem;
  border-radius: 0.25rem;
  font-size: 0.85rem;
  border: 1px solid var(--border-pink);
}

.project-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

.project-link:hover {
  color: var(--primary-dark);
}

/* Contact Section */
.contact-content {
  padding: 5rem 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-info h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.contact-info p {
  color: var(--text-light);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-item strong {
  color: var(--text-color);
}

.contact-item a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s;
}

.contact-item a:hover {
  color: var(--primary-dark);
}

.contact-form {
  background: var(--bg-light);
  padding: 2rem;
  border-radius: 1rem;
  border: 1px solid var(--border-color);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-color);
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.form-group textarea {
  resize: vertical;
}

/* Landing Page Section */
.landing-page {
  min-height: calc(100vh - 200px);
  padding: 2.5rem 0;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  width: 100%;
}

.landing-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  align-items: center;
  width: 100%;
}

.landing-image-container {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
}

.landing-image {
  width: 100%;
  max-width: 480px;
  height: 515px;
  min-height: 360px;
  border-radius: 1.5rem;
  box-shadow: var(--shadow-lg);
  object-fit: cover;
  display: block;
  background: var(--bg-gray);
}

.landing-bio-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem 0;
}

.landing-title {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  color: var(--text-color);
  font-weight: 500;
  letter-spacing: -0.5px;
  line-height: 1.3;
}

.landing-bio {
  max-width: 100%;
}

.bio-text {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--text-color);
  text-align: left;
  margin-bottom: 1.5rem;
  white-space: pre-line;
  opacity: 0.9;
}

.landing-button-container {
  margin-top: 2rem;
  text-align: center;
  width: 100%;
}

.landing-button {
  display: inline-block;
  padding: 1.25rem 3rem;
  background: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 1.2rem;
  transition: background 0.3s ease, transform 0.2s ease;
  box-shadow: var(--shadow-lg);
  border: none;
  cursor: pointer;
}

.landing-button:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

/* Teacher Intro Section (for other pages) */
.teacher-intro {
  padding: 5rem 0;
  background: var(--bg-color);
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.teacher-image-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.teacher-image {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 1rem;
  box-shadow: var(--shadow-lg);
  object-fit: cover;
}

.teacher-bio-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.bio-title {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-color);
  font-weight: 500;
  letter-spacing: -0.5px;
}

/* Footer */
main {
  flex: 1;
}

.footer {
  background: var(--secondary-color);
  color: var(--text-on-dark);
  padding: 1.25rem 0;
  margin-top: 0;
  margin-bottom: 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-content p {
  margin: 0;
  font-size: 0.95rem;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.social-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.social-icon {
  width: 32px;
  height: 32px;
  transition: transform 0.3s, opacity 0.3s;
  opacity: 0.9;
  object-fit: contain;
  display: block;
}

.social-icon:hover {
  transform: scale(1.15);
  opacity: 1;
}

.visitor-count {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-on-dark);
  opacity: 0.9;
}

.visitor-label {
  font-weight: 500;
}

.visitor-number {
  font-weight: 600;
  color: var(--primary-light);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  /* Mobile Navigation */
  .mobile-menu-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    flex-direction: column;
    background: var(--bg-color);
    width: 100%;
    text-align: center;
    transition: left 0.3s;
    box-shadow: var(--shadow-lg);
    padding: 2rem 0;
    gap: 0;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-menu li {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
  }

  .nav-menu a {
    display: block;
    padding: 0.5rem 0;
    font-size: 1.1rem;
  }

  .nav-menu a.active::after {
    display: none;
  }

  .nav-menu a.active {
    color: var(--primary-color);
    font-weight: 700;
  }

  /* Hero Section Mobile */
  .hero {
    padding: 4rem 0;
  }

  .hero-title {
    font-size: 2.5rem;
    line-height: 1.2;
  }

  .hero-subtitle {
    font-size: 1.1rem;
    padding: 0 1rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 0 1rem;
  }

  .hero-buttons .btn {
    width: 100%;
    max-width: 300px;
  }

  /* Page Header Mobile */
  .page-header {
    padding: 1.5rem 0;
    margin-bottom: 0.75rem;
  }

  .page-header h1 {
    font-size: 1.75rem;
    padding: 0 1rem;
  }

  .page-header p {
    font-size: 0.9rem;
    padding: 0 1rem;
  }

  /* Sections Mobile */
  .features,
  .about-content {
    padding: 1.5rem 0 3rem 0;
  }

  .about-content,
  .projects-content,
  .contact-content {
    padding: 3rem 0;
  }

  .section-title {
    font-size: 2rem;
    padding: 0 1rem;
    margin-bottom: 2rem;
  }

  /* Landing Page Mobile */
  .landing-page {
    min-height: auto;
    padding: 2rem 0;
  }

  .landing-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 1rem;
  }

  .landing-image {
    max-width: 60%;
    max-height: 300px;
    width: auto;
    height: auto;
    border-radius: 1rem;
    aspect-ratio: 4 / 5;
    margin: 0 auto;
    display: block;
  }

  .landing-title {
    font-size: 1.9rem;
    text-align: left;
    margin-bottom: 1.25rem;
  }

  .bio-text {
    font-size: 1.05rem;
    text-align: left;
    padding: 0;
  }

  /* Teacher Intro Mobile */
  .teacher-intro {
    padding: 3rem 0;
  }

  .intro-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .teacher-image {
    max-width: 100%;
    border-radius: 0.75rem;
  }

  .bio-title {
    font-size: 2rem;
    text-align: center;
  }

  /* Footer Mobile */
  .footer {
    padding: 1rem 0;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .footer-right {
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
  }

  .social-links {
    justify-content: center;
    gap: 1.25rem;
  }

  .social-icon {
    width: 28px;
    height: 28px;
  }

  .visitor-count {
    justify-content: center;
    font-size: 0.85rem;
  }

  /* Grid Layouts Mobile */
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .features-grid,
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* About Section Mobile */
  .about-content {
    padding: 3rem 0;
  }

  .tabs-list {
    gap: 0.25rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .tabs-list::-webkit-scrollbar {
    display: none;
  }

  .tab-button {
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .tabs-content {
    min-height: 200px;
  }

  .tab-panel .section-content {
    padding: 1.75rem;
    font-size: 1rem;
  }

  .about-sections {
    gap: 2rem;
    padding: 0 1rem;
  }

  .about-section {
    padding: 1.75rem;
  }

  .section-heading {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }

  .section-content {
    font-size: 1rem;
  }

  .about-text h2 {
    font-size: 1.75rem;
  }

  .about-text p {
    font-size: 0.95rem;
  }

  /* Projects Mobile */
  .projects-grid {
    padding: 0 1rem;
  }

  .project-card {
    margin: 0 auto;
    max-width: 100%;
  }

  .project-info {
    padding: 1.25rem;
  }

  .project-info h3 {
    font-size: 1.25rem;
  }

  /* Contact Mobile */
  .contact-grid {
    padding: 0 1rem;
  }

  .contact-info h2 {
    font-size: 1.75rem;
  }

  .contact-form {
    padding: 1.5rem;
  }

  /* Container Mobile */
  .container {
    padding: 0 1rem;
  }

  /* Feature Cards Mobile */
  .feature-card {
    padding: 1.5rem;
  }

  .feature-card h3 {
    font-size: 1.25rem;
  }

  /* Skills Mobile */
  .skills-list {
    gap: 0.5rem;
  }

  .skill-tag {
    font-size: 0.85rem;
    padding: 0.4rem 0.9rem;
  }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
  .landing-page {
    padding: 2rem 0;
  }

  .landing-title {
    font-size: 1.75rem;
  }

  .bio-text {
    font-size: 0.95rem;
  }

  .landing-button-container {
    margin-top: 1rem;
    padding: 0 1rem;
  }

  .landing-button {
    font-size: 1.1rem;
    padding: 1rem 2rem;
    width: 100%;
    max-width: 400px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .page-header h1 {
    font-size: 1.75rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .nav-brand a {
    font-size: 1.25rem;
  }

  .container {
    padding: 0 0.75rem;
  }
}
