:root {
  --primary: #000000;    /* Black */
  --secondary: #1c1c1c;  /* Dark Grey */
  --accent: #b0b0b0;     /* Light Grey */
  --text: #ffffff;       /* White */
  --dark: #111111;       /* Fixed missing variable */
}

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

body {
  font-family: 'Consolas', 'Monaco', 'Lucida Console','Liberation Mono','DejaVu Sans Mono', monospace;
  line-height: 1.6;
  background: var(--primary);
  color: var(--text);
}

/* =========================
   Header / Nav
========================= */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: var(--dark);
  color: var(--text);
  z-index: 1000;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  margin: auto;
  padding: 1rem;
}

.logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
}

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

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--accent);
}

#menu-toggle {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--text);
}

/* =========================
   Hero
========================= */
.hero{
    background-image: url("students.png");
}
.hero-content p {
  margin: 1rem 0;
  font-size: 1.2rem;
  color: white;
}

.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  background-color: var(--secondary);
  color: var(--text);
  font-size: 1rem;
  cursor: pointer;
  border-radius: 5px;
  transition:  0.3s;
  align-items: center;
}

.btn:hover {
  background: var(--accent);
  color: var(--primary);
}
#formMessage {
    font-weight: bold;
    margin-top: 10px;
    color: darkred;
}

/* =========================
   Sections
========================= */
section {
  padding: 5rem 2rem;
}

.container {
  width: 80%;
  max-width: 800px;
  aspect-ratio: 16/9;
  margin: auto;
  overflow: hidden;
  position: relative;
  margin: 20px auto;
  border-radius: 10px; 
}

h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
  font-weight: 700;
  color: white;
}

/* About */
.about p {
  max-width: 800px;
  margin: auto;
  text-align: center;
  color: var(--text);
}

/* Services */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.service {
  background: var(--secondary);
  padding: 2rem;
  text-align: center;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s;
}

.service:hover {
  transform: translateY(-5px);
}

.service h3 {
  color: var(--accent);
  margin-bottom: 1rem;
}

/* staff */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.staff-grid img {
  width: 100%;
  border-radius: 10px;
  transition: transform 0.3s;
}

.staff-grid img:hover {
  transform: scale(1.05);
}
.item{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    align-items: center;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}
.item.active{
    opacity: 1;
    position: absolute;
}
.section-title{
    text-align: center;
    z-index: 1;
    position: relative;
    margin: 40px 0 20px 0;
}
.caption{
    position: absolute;
    bottom: 10px;
    left: 20px;
    color: rgb(143, 141, 141);
    font-weight: 500;
}


/* Contact */
.contact form {
  max-width: 600px;
  margin: auto;
  display: grid;
  gap: 1rem;
}

.contact input,
.contact textarea {
  padding: 0.75rem;
  border: 1px solid var(--accent);
  border-radius: 5px;
  font-family: inherit;
  background: var(--dark);
  color: var(--text);
}

.contact input::placeholder,
.contact textarea::placeholder {
  color: var(--accent);
}

/* Footer */
footer {
  background: var(--secondary);
  color: var(--text);
  text-align: center;
  padding: 1rem;
}

/* =========================
   Animations
========================= */
html {
  scroll-behavior: smooth;
}

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

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

.slide-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slide-left.show {
  opacity: 1;
  transform: translateX(0);
}

.slide-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slide-right.show {
  opacity: 1;
  transform: translateX(0);
}

/* =========================
   Responsive
========================= */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    gap: 1rem;
    background: var(--dark);
    position: absolute;
    top: 60px;
    right: 0;
    padding: 1rem;
    width: 200px;
  }

  #menu-toggle {
    display: block;
  }
}
