:root {
  --primary: #9b59b6; /* Amethyst Purple */
  --secondary: #3498db; /* Blue */
  --accent: #e74c3c; /* Alizarin Red */
  --bg-light: #fdfdfd;
  --bg-alt: #f8f9fa;
  --text-main: #2c3e50;
  --text-muted: #7f8c8d;
  --white: #ffffff;
  --glass: rgba(255, 255, 255, 0.7);
  --shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

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

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-main);
  background-color: var(--bg-light);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
}

section {
  padding: 100px 20px;
}

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

/* Nav */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 20px 0;
  background: var(--glass);
  backdrop-filter: blur(10px);
  z-index: 1000;
  transition: 0.3s;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
}

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

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary);
  cursor: pointer;
}

/* Hero */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('img/bg-masthead.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
  overflow: hidden;
  color: var(--white);
}

.hero::before {
  display: none; /* Remove previous gradient circle */
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: 20px;
  background: linear-gradient(90deg, #ffffff, #f0f0f0);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.hero p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin: 0 auto 30px;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.btn {
  display: inline-block;
  padding: 15px 40px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
  cursor: pointer;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(155, 89, 182, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(155, 89, 182, 0.4);
}

/* About */
.about {
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: center;
}

.about img {
  width: 100%;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.about h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--primary);
}

/* Programs */
.programs {
  background: var(--bg-alt);
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 2.5rem;
}

.program-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 40px;
  transition: 0.3s;
}

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

.program-card:nth-child(even) .program-image {
  order: 2;
}

.program-image {
  height: 400px;
  background-size: cover;
  background-position: center;
}

.program-content {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.program-content h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: var(--secondary);
}

/* Certs */
.certs {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  text-align: center;
}

.certs h2 {
  margin-bottom: 40px;
}

.cert-list {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.cert-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 15px;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  flex: 1;
  min-width: 250px;
  max-width: 350px;
}

/* Contact */
.contact {
  text-align: center;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.contact-item {
  padding: 40px;
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow);
  transition: 0.3s;
}

.contact-item i {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 20px;
}

.contact-item h4 {
  margin-bottom: 10px;
}

/* Footer */
footer {
  padding: 40px 0;
  text-align: center;
  background: var(--white);
  border-top: 1px solid #eee;
  color: var(--text-muted);
}

@media (max-width: 992px) {
  section {
    padding: 60px 20px;
  }
  .about-grid, .program-card {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .program-card:nth-child(even) .program-image {
    order: 0;
  }
  .hero h1 {
    font-size: 2.8rem;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  /* Mobile Nav */
  .nav-toggle {
    display: block;
  }
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 250px;
    background: var(--white);
    flex-direction: column;
    padding: 100px 40px;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .nav-links.active {
    right: 0;
  }
}

@media (max-width: 576px) {
  .hero h1 {
    font-size: 2.2rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .cert-list {
    gap: 20px;
  }
}
