/* ===================================
   RESET & BASE STYLES
   =================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Color Palette - Professional Teal Theme (matching logo) */
  --primary-color: #04687f;
  --primary-dark: #034d5e;
  --primary-light: #0584a0;
  --secondary-color: #06a3c7;
  --accent-color: #f59e0b;

  --text-dark: #1f2937;
  --text-medium: #4b5563;
  --text-light: #6b7280;

  --bg-white: #ffffff;
  --bg-light: #f0f9fb;
  --bg-gray: #e6f4f7;
  --border-color: #d1e9ed;

  /* Typography */
  --font-primary: 'Poppins', sans-serif;
  --font-secondary: 'Merriweather', serif;

  /* Spacing */
  --section-padding: 80px 0;
  --container-padding: 0 20px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);

  /* Transitions */
  --transition: all 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--container-padding);
}

/* ===================================
   NAVIGATION
   =================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--bg-white);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  transition: var(--transition);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.5rem;
  font-weight: 700;
  color: #000000;
}

.logo img {
  height: 40px;
  width: auto;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--primary-color);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background: var(--text-dark);
  transition: var(--transition);
}

/* ===================================
   HERO SECTION
   =================================== */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 50%, #90caf9 100%);
  position: relative;
  overflow: hidden;
  margin-top: 70px;
  padding: 4rem 0 2rem;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(4, 104, 127, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(5, 132, 160, 0.1) 0%, transparent 50%);
  z-index: 1;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  min-height: calc(100vh - 140px);
  position: relative;
  z-index: 2;
}

.hero-left {
  animation: fadeInLeft 1s ease;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-color);
  color: var(--bg-white);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.hero-badge i {
  font-size: 1rem;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.hero-title .highlight {
  color: var(--primary-color);
  position: relative;
  display: inline-block;
}

.hero-title .highlight::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 0;
  right: 0;
  height: 12px;
  background: var(--accent-color);
  opacity: 0.3;
  z-index: -1;
}

.hero-subtitle {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 1rem;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-medium);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.btn-outline {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-outline:hover {
  background: var(--primary-color);
  color: var(--bg-white);
}

.btn i {
  margin-right: 8px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-white);
  padding: 1rem;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.stat-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.stat-item i {
  font-size: 2rem;
  color: var(--primary-color);
}

.stat-info h3 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0;
}

.stat-info p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin: 0;
}

.hero-right {
  position: relative;
  animation: fadeInRight 1s ease;
}

.hero-image-wrapper {
  position: relative;
  width: 100%;
  height: 500px;
}

.floating-card {
  position: absolute;
  background: var(--bg-white);
  padding: 1.5rem;
  border-radius: 15px;
  box-shadow: var(--shadow-xl);
  animation: float 3s ease-in-out infinite;
  transition: var(--transition);
}

.floating-card:hover {
  transform: translateY(-10px) !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.floating-card i {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  display: block;
}

.floating-card h4 {
  font-size: 1.2rem;
  color: var(--text-dark);
  margin-bottom: 0.3rem;
}

.floating-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin: 0;
}

.card-1 {
  top: 20px;
  left: 10%;
  animation-delay: 0s;
}

.card-2 {
  top: 150px;
  right: 10%;
  animation-delay: 0.5s;
}

.card-3 {
  bottom: 150px;
  left: 5%;
  animation-delay: 1s;
}

.hero-quote {
  position: absolute;
  bottom: 20px;
  right: 5%;
  max-width: 300px;
  background: var(--bg-white);
  padding: 1.5rem;
  border-radius: 15px;
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--accent-color);
}

.hero-quote i {
  font-size: 1.5rem;
  color: var(--accent-color);
  margin-bottom: 0.5rem;
}

.hero-quote p {
  font-family: var(--font-secondary);
  font-size: 0.95rem;
  font-style: italic;
  color: var(--text-medium);
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.hero-quote span {
  display: block;
  text-align: right;
  font-weight: 600;
  color: var(--primary-color);
  font-size: 0.9rem;
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  text-align: center;
  animation: bounce 2s infinite;
}

.scroll-indicator span {
  display: block;
  font-size: 0.85rem;
  color: var(--text-medium);
  margin-bottom: 5px;
  font-weight: 500;
}

.scroll-indicator i {
  font-size: 1.5rem;
  color: var(--primary-color);
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ===================================
   BUTTONS
   =================================== */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background: var(--accent-color);
  color: var(--bg-white);
}

.btn-primary:hover {
  background: #d97706;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ===================================
   SECTION HEADERS
   =================================== */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.section-divider {
  width: 80px;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );
  margin: 0 auto 1rem;
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-medium);
}

/* ===================================
   ABOUT SECTION
   =================================== */
.about {
  padding: var(--section-padding);
  background: var(--bg-white);
}

.about-content {
  max-width: 1000px;
  margin: 0 auto;
}

.about-text p {
  font-size: 1.1rem;
  color: var(--text-medium);
  margin-bottom: 1.5rem;
  line-height: 1.8;
  text-align: justify;
}

.about-text h3 {
  font-size: 1.8rem;
  color: var(--primary-color);
  margin: 2rem 0 1rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature-item {
  background: var(--bg-light);
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  transition: var(--transition);
  border: 2px solid transparent;
}

.feature-item:hover {
  transform: translateY(-10px);
  border-color: var(--primary-color);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-light)
  );
  color: var(--bg-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.8rem;
}

.feature-item h4 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.feature-item p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* ===================================
   COURSES SECTION
   =================================== */
.courses {
  padding: var(--section-padding);
  background: var(--bg-light);
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.course-card {
  background: var(--bg-white);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.course-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
}

.course-header {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-light)
  );
  color: var(--bg-white);
  padding: 2rem;
  text-align: center;
}

.course-icon {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.5rem;
}

.course-header h3 {
  font-size: 1.3rem;
  line-height: 1.5;
}

.course-body {
  padding: 2rem;
}

.course-body h4 {
  font-size: 1.1rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
  font-weight: 600;
}

.course-body ul {
  list-style: none;
  margin-bottom: 1.5rem;
}

.course-body ul li {
  padding: 0.5rem 0;
  color: var(--text-medium);
  display: flex;
  align-items: center;
  gap: 10px;
}

.course-body ul li i {
  color: var(--secondary-color);
}

/* ===================================
   TEAM SECTION
   =================================== */
.team {
  padding: var(--section-padding);
  background: var(--bg-white);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  max-width: 1000px;
  margin: 0 auto;
}

.team-member {
  text-align: center;
  transition: var(--transition);
}

.member-image {
  position: relative;
  width: 250px;
  height: 250px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.member-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.member-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(37, 99, 235, 0.9),
    rgba(16, 185, 129, 0.9)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.member-image:hover .member-overlay {
  opacity: 1;
}

.member-image:hover img {
  transform: scale(1.1);
}

.member-social {
  display: flex;
  gap: 1rem;
}

.member-social a {
  width: 40px;
  height: 40px;
  background: var(--bg-white);
  color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: var(--transition);
}

.member-social a:hover {
  background: var(--accent-color);
  color: var(--bg-white);
  transform: translateY(-3px);
}

.member-info h3 {
  font-size: 1.5rem;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.member-role {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.member-description {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* ===================================
   CONTACT SECTION
   =================================== */
.contact {
  padding: var(--section-padding);
  background: var(--bg-light);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  max-width: 1100px;
  margin: 0 auto;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-light)
  );
  color: var(--bg-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.2rem;
}

.contact-details h3 {
  font-size: 1.2rem;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.contact-details p {
  color: var(--text-medium);
  line-height: 1.6;
}

.contact-details a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

.contact-details a:hover {
  color: var(--primary-dark);
}

.contact-form-wrapper {
  background: var(--bg-white);
  padding: 2.5rem;
  border-radius: 15px;
  box-shadow: var(--shadow-lg);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 500;
  color: var(--text-dark);
}

.form-group input,
.form-group textarea {
  padding: 12px 16px;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-family: var(--font-primary);
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.form-group textarea {
  resize: vertical;
}

/* ===================================
   MAP SECTION
   =================================== */
.map {
  height: 450px;
}

.map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ===================================
   FOOTER
   =================================== */
.footer {
  background: linear-gradient(135deg, var(--text-dark) 0%, #111827 100%);
  color: var(--bg-white);
  padding: 3rem 0 0;
  position: relative;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-section h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--accent-color);
}

.footer-section p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.75rem;
}

.footer-section ul li a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--transition);
}

.footer-section ul li a:hover {
  color: var(--accent-color);
  padding-left: 5px;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: rgba(255, 255, 255, 0.8);
}

.footer-contact i {
  color: var(--accent-color);
  margin-top: 3px;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--bg-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--accent-color);
  transform: translateY(-3px);
}

.footer-bottom {
  padding: 2rem 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
}

.footer-bottom p {
  margin: 0.5rem 0;
}

.footer-bottom i {
  color: #ef4444;
}

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: var(--bg-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  opacity: 0;
  visibility: hidden;
  z-index: 999;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-5px);
}

/* ===================================
   ANIMATIONS
   =================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 968px) {
  .nav-menu {
    position: fixed;
    top: 70px;
    right: -100%;
    flex-direction: column;
    background: var(--bg-white);
    width: 250px;
    height: calc(100vh - 70px);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }

  .hero-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .hero-image-wrapper {
    height: 400px;
  }

  .floating-card {
    padding: 1rem;
  }

  .floating-card h4 {
    font-size: 1rem;
  }

  .floating-card i {
    font-size: 2rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.4rem;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
  }

  .courses-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 60px 0;
  }

  .hero {
    padding: 4rem 0 3rem;
  }

  .hero-container {
    min-height: auto;
  }

  .hero-left {
    text-align: center;
  }

  .hero-badge {
    display: inline-flex;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .hero-right {
    display: none;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .logo {
    font-size: 1.2rem;
  }

  .logo img {
    height: 30px;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .section-header h2 {
    font-size: 1.8rem;
  }

  .btn {
    padding: 12px 24px;
    font-size: 0.9rem;
  }

  .contact-form-wrapper {
    padding: 1.5rem;
  }
}
