/* ==========================================================================
   KAUST Academy Introduction to AI - Styled to match academy.kaust.edu.sa
   ========================================================================== */

/* General Variables - KAUST Academy Color Palette */
:root {
  --primary-navy: #00264c;
  /* Primary dark navy blue */
  --navy-dark: #001a33;
  /* Darker navy for hover states */
  --accent-orange: #E37217;
  /* Orange accent color */
  --accent-teal: #1bc5c9;
  /* Teal accent */
  --accent-yellow: #cccd2b;
  /* Yellow accent */
  --text-navy: #00264c;
  /* Navy text color */
  --text-grey: #555555;
  /* Grey body text */
  --bg-white: #ffffff;
  /* Pure white */
  --bg-cream: #f7f5f2;
  /* Off-white/cream background */
  --bg-light-blue: #eef6ff;
  /* Light blue sections */
  --shadow-hover: 0 10px 30px rgba(0, 38, 76, 0.15);
}

body {
  font-family: "Raleway", "Open Sans", sans-serif;
  color: var(--text-navy);
  background-color: var(--bg-white);
  overflow-x: hidden;
}

a {
  color: var(--primary-navy);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--accent-orange);
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Raleway", sans-serif;
  color: var(--text-navy);
  font-weight: 700;
}

/* --------------------------------------------------------------
# Animations
-------------------------------------------------------------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 40px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-up {
  animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  opacity: 0;
}

.delay-100 {
  animation-delay: 0.1s;
}

.delay-200 {
  animation-delay: 0.2s;
}

.delay-300 {
  animation-delay: 0.3s;
}

/* --------------------------------------------------------------
# Header / Navbar - KAUST Academy Dark Navy Style
-------------------------------------------------------------- */
#header {
  background: var(--primary-navy);
  box-shadow: none;
  height: 100px;
  width: 100%;
  z-index: 997;
  transition: all 0.5s;
}

#header.scrolled {
  box-shadow: 0px 2px 15px rgba(0, 0, 0, 0.1);
}

#header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo Styling */
.logo {
  margin: 0;
  padding: 0;
  line-height: 1;
  display: flex;
  align-items: center;
}

.logo a {
  color: var(--bg-white);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo a:hover {
  color: var(--bg-white);
}

.logo img {
  height: 75px;
  width: auto;
}

/* Navbar Container */
.navbar {
  padding: 0;
}

/* Horizontal list layout */
.navbar ul {
  margin: 0;
  padding: 0;
  display: flex;
  list-style: none;
  align-items: center;
}

.navbar li {
  position: relative;
  margin-left: 30px;
}

/* Link Styling - White on dark navy */
.navbar a,
.navbar a:focus {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  white-space: nowrap;
  transition: 0.3s;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.navbar a:hover,
.navbar .active,
.navbar .active:focus,
.navbar li:hover>a {
  color: var(--bg-white);
}

/* Underline Animation */
.navbar a::after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: var(--accent-orange);
  transition: width 0.3s;
  position: absolute;
  bottom: -5px;
  left: 0;
}

.navbar a:hover::after,
.navbar .active::after {
  width: 100%;
}

/* Hide Mobile Toggle on Desktop */
.mobile-nav-toggle {
  color: var(--bg-white);
  font-size: 28px;
  cursor: pointer;
  display: none;
  line-height: 0;
  transition: 0.5s;
}

/* --------------------------------------------------------------
# Mobile View (Media Query)
-------------------------------------------------------------- */
@media (max-width: 991px) {
  .mobile-nav-toggle {
    display: block;
  }

  .navbar ul {
    display: none;
  }

  .logo a {
    font-size: 16px;
  }
}

/* --------------------------------------------------------------
# Hero Section - KAUST Academy Navy Style with Confetti
-------------------------------------------------------------- */
#hero {
  width: 100%;
  height: 80vh;
  background: var(--primary-navy);
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* Confetti shapes container - full overlay layer (fill mode, gets cropped) */
.hero-confetti {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  min-width: 1400px;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* Confetti shapes - triangles and rectangles */
.confetti-shape {
  position: absolute;
  opacity: 0.8;
}

/* Orange shapes */
.confetti-1 {
  bottom: 30px;
  left: 40px;
  width: 0;
  height: 0;
  border-left: 25px solid transparent;
  border-right: 25px solid transparent;
  border-bottom: 45px solid #D97A2E;
  transform: rotate(18deg);
}

.confetti-2 {
  bottom: 120px;
  left: 150px;
  width: 35px;
  height: 18px;
  background: #D97A2E;
  transform: rotate(-32deg) skewX(10deg);
}

/* Teal shapes */
.confetti-3 {
  bottom: 60px;
  left: 280px;
  width: 0;
  height: 0;
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  border-bottom: 35px solid #4CA7A6;
  transform: rotate(52deg);
}

.confetti-4 {
  bottom: 150px;
  right: 320px;
  width: 28px;
  height: 14px;
  background: #4CA7A6;
  transform: rotate(-65deg) skewY(8deg);
}

/* Yellow-green shapes */
.confetti-5 {
  bottom: 80px;
  right: 200px;
  width: 0;
  height: 0;
  border-left: 22px solid transparent;
  border-right: 22px solid transparent;
  border-bottom: 40px solid #B6BE3F;
  transform: rotate(-28deg);
}

.confetti-6 {
  bottom: 40px;
  right: 80px;
  width: 30px;
  height: 16px;
  background: #B6BE3F;
  transform: rotate(42deg) skewX(-12deg);
}

/* More scattered shapes - varied sizes */
.confetti-7 {
  bottom: 180px;
  left: 80px;
  width: 0;
  height: 0;
  border-left: 18px solid transparent;
  border-right: 18px solid transparent;
  border-bottom: 32px solid #4CA7A6;
  transform: rotate(-48deg);
}

.confetti-8 {
  bottom: 70px;
  left: 480px;
  width: 25px;
  height: 12px;
  background: #D97A2E;
  transform: rotate(72deg) skewY(-15deg);
}

.confetti-9 {
  bottom: 130px;
  right: 500px;
  width: 0;
  height: 0;
  border-left: 16px solid transparent;
  border-right: 16px solid transparent;
  border-bottom: 28px solid #B6BE3F;
  transform: rotate(38deg);
}

.confetti-10 {
  bottom: 200px;
  left: 350px;
  width: 22px;
  height: 11px;
  background: #4CA7A6;
  transform: rotate(-22deg) skewX(18deg);
}

.confetti-11 {
  bottom: 45px;
  right: 400px;
  width: 0;
  height: 0;
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  border-bottom: 36px solid #D97A2E;
  transform: rotate(-58deg);
}

.confetti-12 {
  bottom: 100px;
  right: 100px;
  width: 32px;
  height: 15px;
  background: #B6BE3F;
  transform: rotate(15deg) skewY(10deg);
}

#hero h1 {
  margin: 0;
  font-size: 56px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--bg-white);
  position: relative;
  z-index: 2;
}

#hero h1 span {
  background: var(--accent-orange);
  color: var(--bg-white);
  padding: 4px 12px;
  border-radius: 4px;
  display: inline-block;
}

#hero h2 {
  color: rgba(255, 255, 255, 0.85);
  margin: 20px 0 30px 0;
  font-size: 22px;
  font-weight: 400;
  position: relative;
  z-index: 2;
}

/* Primary Button - Navy Capsule Style */
.btn-get-started {
  font-family: "Raleway", sans-serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 36px;
  border-radius: 50px;
  transition: 0.3s;
  color: var(--bg-white);
  background: var(--primary-navy);
  box-shadow: 0 4px 15px rgba(0, 38, 76, 0.25);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-get-started:hover {
  background: var(--navy-dark);
  color: var(--bg-white);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 38, 76, 0.35);
}

.btn-get-started::after {
  content: "→";
  font-size: 18px;
  transition: transform 0.3s;
}

.btn-get-started:hover::after {
  transform: translateX(4px);
}

/* --------------------------------------------------------------
# Feature Cards (Day Links) - KAUST Academy Card Style
-------------------------------------------------------------- */
.icon-box {
  padding: 40px 30px;
  position: relative;
  overflow: hidden;
  background: var(--bg-white);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease-in-out;
  border-radius: 16px;
  border-bottom: 4px solid transparent;
  z-index: 1;
  height: 100%;
}

.icon-box:hover {
  transform: translateY(-8px);
  border-color: var(--accent-orange);
  box-shadow: var(--shadow-hover);
}

.icon-box i {
  font-size: 48px;
  line-height: 1;
  margin-bottom: 15px;
  color: var(--accent-orange) !important;
  transition: 0.3s;
}

.icon-box h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 15px;
}

.icon-box h3 a {
  color: var(--text-navy);
  transition: 0.3s;
}

.icon-box:hover h3 a {
  color: var(--primary-navy);
}

.icon-box p {
  color: var(--text-grey);
  font-size: 15px;
  line-height: 1.6;
}

/* Section Title Styling */
.section-title p {
  color: var(--accent-orange) !important;
  font-weight: 700 !important;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 13px;
}

.section-title h3 {
  color: var(--text-navy);
  font-size: 32px;
}

/* --------------------------------------------------------------
# Tables (The Schedules) - KAUST Academy Style
-------------------------------------------------------------- */
.table-container {
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
  border-radius: 16px;
  overflow: hidden;
  background: white;
}

.custom-table {
  width: 100%;
  margin-bottom: 0;
  color: var(--text-navy);
  border-collapse: separate;
  border-spacing: 0;
}

.custom-table thead th {
  background-color: var(--primary-navy);
  color: white;
  border: none;
  padding: 18px 15px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.custom-table tbody tr {
  background-color: white;
  transition: all 0.2s ease-in-out;
}

.custom-table tbody td {
  padding: 16px 15px;
  vertical-align: middle;
  border-bottom: 1px solid #eee;
  border-right: 1px solid #eee;
  color: var(--text-grey);
}

/* Hover Effect on Rows */
.custom-table tbody tr:hover {
  background-color: var(--bg-cream);
  transform: scale(1.002);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
  z-index: 2;
  position: relative;
}

.custom-table tbody tr td:first-child {
  font-weight: 600;
  color: var(--primary-navy);
  border-left: 1px solid #eee;
}

/* Link Button in Table - Navy Capsule */
.table-btn {
  display: inline-block;
  padding: 8px 20px;
  background-color: var(--primary-navy);
  color: white !important;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: 0.3s;
}

.table-btn:hover {
  background-color: var(--accent-orange);
  color: var(--primary-navy) !important;
  transform: translateX(3px);
}

/* --------------------------------------------------------------
# Breadcrumbs - KAUST Academy Navy Style
-------------------------------------------------------------- */
.breadcrumbs {
  margin-top: 80px;
  text-align: center;
  background: var(--primary-navy);
  padding: 60px 0;
  color: white;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}

/* Decorative element */
.breadcrumbs::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(227, 114, 23, 0.15) 0%, transparent 70%);
  border-radius: 50%;
}

/* Breadcrumbs confetti */
.breadcrumbs-confetti {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.bc-shape {
  position: absolute;
  opacity: 0.7;
}

.bc-shape-1 {
  bottom: 15px;
  left: 30px;
  width: 0;
  height: 0;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-bottom: 26px solid #E37217;
  transform: rotate(18deg);
}

.bc-shape-2 {
  top: 20px;
  left: 120px;
  width: 20px;
  height: 10px;
  background: #4CA7A6;
  transform: rotate(-32deg) skewX(10deg);
}

.bc-shape-3 {
  bottom: 25px;
  right: 150px;
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-bottom: 20px solid #B6BE3F;
  transform: rotate(52deg);
}

.bc-shape-4 {
  top: 15px;
  right: 50px;
  width: 18px;
  height: 9px;
  background: #E37217;
  transform: rotate(-65deg) skewY(8deg);
}

.bc-shape-5 {
  bottom: 30px;
  right: 40px;
  width: 0;
  height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-bottom: 24px solid #4CA7A6;
  transform: rotate(-28deg);
}

.bc-shape-6 {
  top: 25px;
  left: 45%;
  width: 16px;
  height: 8px;
  background: #B6BE3F;
  transform: rotate(42deg) skewX(-12deg);
}

.breadcrumbs h2 {
  font-size: 32px;
  font-weight: 700;
  color: white;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.breadcrumbs p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 16px;
  position: relative;
  z-index: 1;
}

/* --------------------------------------------------------------
# Footer - KAUST Academy Style
-------------------------------------------------------------- */
#footer {
  background: var(--bg-cream);
  padding: 40px 0;
  color: var(--text-navy);
  font-size: 14px;
  border-top: 1px solid #e8e6e3;
  margin-top: 50px;
}

#footer .copyright {
  text-align: center;
  font-weight: 600;
  color: var(--text-navy);
}

#footer .copyright span {
  color: var(--primary-navy);
}

#footer .license {
  color: var(--text-grey);
}

#footer .license a {
  color: var(--primary-navy);
  font-weight: 600;
}

#footer .license a:hover {
  color: var(--accent-orange);
}

#footer .credits {
  color: var(--text-grey);
}

/* --------------------------------------------------------------
# Mobile View & Mobile Menu Styling
-------------------------------------------------------------- */
@media (max-width: 991px) {
  .mobile-nav-toggle {
    display: block;
    cursor: pointer;
  }

  .navbar ul {
    display: none;
  }

  #hero h1 {
    font-size: 36px;
  }

  #hero h2 {
    font-size: 18px;
  }
}

/* --------------------------------------------------------------
# Mobile Menu Active State
-------------------------------------------------------------- */
.navbar-mobile {
  position: fixed;
  overflow: hidden;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  background: rgba(0, 38, 76, 0.9);
  transition: 0.3s;
  z-index: 999;
}

.navbar-mobile .mobile-nav-toggle {
  position: absolute;
  top: 15px;
  right: 15px;
  color: var(--bg-white);
}

.navbar-mobile ul {
  display: block !important;
  position: absolute;
  top: 55px;
  right: 15px;
  bottom: 15px;
  left: 15px;
  padding: 10px 0;
  background-color: var(--bg-white);
  overflow-y: auto;
  transition: 0.3s;
  border-radius: 16px;
  box-shadow: 0px 0px 30px rgba(0, 38, 76, 0.25);
  flex-direction: column;
  align-items: flex-start;
}

.navbar-mobile li {
  margin: 0;
  padding: 12px 20px;
  width: 100%;
}

.navbar-mobile a {
  font-size: 16px;
  color: var(--text-navy);
  width: 100%;
}

.navbar-mobile a:hover,
.navbar-mobile .active,
.navbar-mobile li:hover>a {
  color: var(--accent-orange);
}

.navbar-mobile .getstarted {
  margin: 15px;
}

/* --------------------------------------------------------------
# Features Section Background
-------------------------------------------------------------- */
.features {
  background: var(--bg-white);
}