:root {
  --sky-primary: #0ea5e9;
  --sky-dark: #0369a1;
  --sky-light: #e0f2fe;
  --sky-soft: #f0f9ff;
  --white: #ffffff;
  --text-dark: #0f172a;
  --text-muted: #475569;
  --glass-bg: rgba(255, 255, 255, 0.85);
  --shadow-soft: 0 10px 30px rgba(14, 165, 233, 0.12);
  --shadow-hover: 0 18px 40px rgba(3, 105, 161, 0.2);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 85px;
}

body {
  font-family: 'Tajawal', sans-serif;
  background: linear-gradient(180deg, #e0f2fe 0%, #ffffff 18%, #f0f9ff 40%, #ffffff 65%, #e0f2fe 88%, #ffffff 100%);
  color: var(--text-dark);
  line-height: 1.8;
  overflow-x: hidden;
}

nav {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(14, 165, 233, 0.2);
  box-shadow: 0 4px 20px rgba(14, 165, 233, 0.08);
  padding: 12px 20px;
}

.nav-container {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.nav-container a {
  text-decoration: none;
  color: var(--sky-dark);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 20px;
  transition: all 0.3s ease;
  background: rgba(224, 242, 254, 0.5);
}

.nav-container a:hover {
  background: linear-gradient(135deg, var(--sky-primary), var(--sky-dark));
  color: var(--white);
  transform: translateY(-2px);
}

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 120px 20px 60px;
  background: radial-gradient(circle at top center, rgba(14, 165, 233, 0.22) 0%, rgba(255, 255, 255, 0) 70%);
}

.teacher-identity {
  margin-bottom: 22px;
}

.teacher-name {
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  font-weight: 300;
  color: var(--sky-dark);
  letter-spacing: 0.5px;
}

.teacher-role {
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 300;
  color: var(--sky-primary);
  margin-top: 4px;
}

.hero h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.4rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--sky-dark), var(--sky-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 18px;
  line-height: 1.3;
}

.hero p {
  max-width: 750px;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 38px;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 38px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  background: linear-gradient(135deg, var(--sky-primary), var(--sky-dark));
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(14, 165, 233, 0.35);
  transition: all 0.35s ease;
}

.cta-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(3, 105, 161, 0.45);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s ease, transform 1s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.container {
  max-width: 1150px;
  margin: 0 auto;
  padding: 40px 20px;
}

section.portfolio-section {
  background: var(--glass-bg);
  border: 1px solid rgba(14, 165, 233, 0.18);
  border-radius: 26px;
  padding: 45px 35px;
  margin-bottom: 50px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(8px);
}

.section-header {
  text-align: center;
  margin-bottom: 35px;
}

.section-header h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  color: var(--sky-dark);
  font-weight: 800;
  display: inline-block;
  position: relative;
  padding-bottom: 12px;
}

.section-header h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 20%;
  left: 20%;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--sky-light), var(--sky-primary), var(--sky-light));
}

.goals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}

.goal-card {
  background: linear-gradient(145deg, #ffffff, #f0f9ff);
  border: 1px solid rgba(14, 165, 233, 0.22);
  border-radius: 20px;
  padding: 26px 22px;
  position: relative;
  transition: all 0.35s ease;
  box-shadow: 0 6px 18px rgba(14, 165, 233, 0.07);
}

.goal-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--sky-primary);
}

.goal-number {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--sky-primary), var(--sky-dark));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 15px;
}

.goal-card p {
  color: var(--text-dark);
  font-size: 1.02rem;
  font-weight: 500;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
  justify-items: center;
}

.gallery-single {
  display: flex;
  justify-content: center;
}

.img-card {
  width: 100%;
  max-width: 480px;
  background: var(--white);
  border-radius: 18px;
  overflow: hidden;
  border: 2px solid var(--sky-light);
  box-shadow: 0 8px 24px rgba(14, 165, 233, 0.12);
  cursor: zoom-in;
  transition: all 0.35s ease;
  position: relative;
}

.gallery-grid .img-card {
  max-width: 100%;
}

.img-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: var(--shadow-hover);
  border-color: var(--sky-primary);
}

.img-card img {
  width: 100%;
  height: 290px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.gallery-single .img-card img {
  height: auto;
  max-height: 560px;
  object-fit: contain;
  background: #f8fafc;
}

.img-overlay-hint {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(3, 105, 161, 0.85);
  color: var(--white);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0.9;
}

.disclaimer-box {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 2px dashed var(--sky-primary);
  border-radius: 20px;
  padding: 25px 30px;
  text-align: center;
  margin: 40px auto 30px;
  max-width: 900px;
  color: var(--sky-dark);
  font-weight: 700;
  font-size: 1.05rem;
  box-shadow: var(--shadow-soft);
}

footer {
  background: linear-gradient(180deg, rgba(224, 242, 254, 0.4) 0%, #bae6fd 100%);
  padding: 40px 20px 50px;
  text-align: center;
  border-top: 1px solid rgba(14, 165, 233, 0.2);
}

.social-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  margin-bottom: 18px;
}

.social-links a {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--white);
  color: var(--sky-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(3, 105, 161, 0.15);
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: linear-gradient(135deg, var(--sky-primary), var(--sky-dark));
  color: var(--white);
  transform: translateY(-5px);
}

.footer-copy {
  color: var(--sky-dark);
  font-size: 0.95rem;
  font-weight: 500;
}

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(6px);
  justify-content: center;
  align-items: center;
  padding: 25px;
  cursor: zoom-out;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 92%;
  max-height: 90vh;
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  border: 3px solid var(--white);
  cursor: default;
  animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@media (max-width: 768px) {
  nav {
    padding: 8px 10px;
  }
  .nav-container {
    gap: 5px;
  }
  .nav-container a {
    font-size: 0.76rem;
    padding: 5px 8px;
  }
  section.portfolio-section {
    padding: 30px 18px;
  }
  .img-card img {
    height: 230px;
  }
}