/* =========================================
   VARIABLES & GLOBALS
   ========================================= */
:root {
  --primary: #facc15;
  --secondary: #eab308;
  --accent-blue: #fef08a;
  --accent-purple: #1e293b;
  --dark: #000000;
  --light: #fefce8;
  --white: #ffffff;
  --text: #0f172a;
  --text-light: #475569;
  
  /* Gradients */
  --bg-gradient: linear-gradient(135deg, #f8fafc 0%, #fefce8 100%);
  --primary-gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  --blue-gradient: linear-gradient(135deg, var(--accent-blue) 0%, var(--primary) 100%);
  --purple-gradient: linear-gradient(135deg, #334155 0%, var(--dark) 100%);
  --rainbow-gradient: linear-gradient(90deg, #facc15, #eab308, #334155, #000000);
  
  /* Typography */
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Modern Flat Memphis Shadows */
  --shadow-flat: 6px 6px 0px rgba(15, 23, 42, 0.9);
  --shadow-flat-hover: 10px 10px 0px rgba(15, 23, 42, 0.9);
  --shadow-soft: 0 10px 30px -5px rgba(0, 0, 0, 0.05);
  
  /* UI Borders */
  --border-radius: 16px;
  --border-thick: 3px solid var(--dark);
}

html {
  scroll-behavior: smooth;
}

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

body {
  font-family: var(--font-body);
  color: var(--text);
  background-color: var(--light);
  background-image: var(--bg-gradient);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--dark);
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

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

.section {
  padding: 80px 0;
  position: relative;
}

.bg-light {
  background-color: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
}

.text-center { text-align: center; }

/* =========================================
   MEMPHIS DESIGN ELEMENTS
   ========================================= */
.memphis-shape {
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

.shape-circle-1 {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: var(--blue-gradient);
  opacity: 0.1;
  top: -50px;
  left: -100px;
  animation: float 6s ease-in-out infinite;
}

.shape-circle-2 {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 4px dashed var(--accent-purple);
  opacity: 0.3;
  top: 40%;
  right: 5%;
  animation: spin 15s linear infinite;
}

.shape-dots {
  width: 60px;
  height: 60px;
  background-image: radial-gradient(var(--secondary) 2px, transparent 2px);
  background-size: 15px 15px;
  opacity: 0.4;
}

.shape-zigzag-1, .shape-zigzag-2 {
  width: 100px;
  opacity: 0.6;
}
.shape-zigzag-1 { top: 20%; left: 10%; }
.shape-zigzag-2 { bottom: 10%; right: 15%; }

/* Animations */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
  100% { transform: translateY(0px); }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================
   TYPOGRAPHY
   ========================================= */
.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 6px;
  background: var(--primary-gradient);
  border-radius: 3px;
}

.text-center.section-title::after {
  left: 50%;
  transform: translateX(-50%);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 3rem;
}

/* =========================================
   BUTTONS
   ========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--border-radius);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: var(--border-thick);
}

.btn-primary {
  background: var(--primary-gradient);
  color: var(--dark);
  border-color: var(--dark);
  box-shadow: var(--shadow-flat);
}

.btn-primary:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-flat-hover);
  background: var(--purple-gradient);
  color: var(--white);
}

.btn-secondary {
  background: var(--white);
  color: var(--dark);
  box-shadow: var(--shadow-flat);
}

.btn-secondary:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-flat-hover);
  background: var(--light);
}

.btn-outline {
  border: 2px solid var(--dark);
  background: transparent;
  padding: 10px 24px;
  border-radius: 50px;
}

.btn-outline:hover {
  background: var(--dark);
  color: var(--white);
}

.btn-block {
  width: 100%;
}

/* =========================================
   NAVIGATION
   ========================================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 0;
  z-index: 1000;
  transition: all 0.3s ease;
  background: transparent;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  padding: 15px 0;
  border-bottom: 2px solid rgba(15, 23, 42, 0.1);
  box-shadow: var(--shadow-soft);
}

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

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  height: 128px;
  border-radius: 6px;
  box-shadow: 3px 3px 0px rgba(15, 23, 42, 1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo:hover .brand-logo {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0px rgba(15, 23, 42, 1);
}

.logo i {
  color: var(--primary);
  font-size: 1.8rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links a {
  font-weight: 500;
  font-size: 1rem;
  position: relative;
  color: var(--dark);
  transition: color 0.3s ease;
}

.nav-links a:not(.btn)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.nav-links a:not(.btn):hover::after,
.nav-links a.active:not(.btn)::after {
  width: 100%;
}

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

.hamburger {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
}

.hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.hero-content {
  flex: 1;
}

.badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(79, 70, 229, 0.1);
  color: var(--primary);
  font-weight: 600;
  border-radius: 50px;
  font-size: 0.9rem;
  margin-bottom: 20px;
  border: 1px solid rgba(79, 70, 229, 0.3);
}

.headline {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.1;
}

.headline span {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subheading {
  font-size: 1.2rem;
  color: var(--text-light);
  margin-bottom: 40px;
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  gap: 20px;
}

.hero-graphic {
  flex: 1;
  position: relative;
}

.graphic-container {
  position: relative;
  width: 100%;
  padding-bottom: 100%; /* 1:1 Aspect Ratio Block */
}

/* Hero Custom Art Elements */
.glass-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  padding: 15px 25px;
  border-radius: 12px;
  border: 2px solid var(--dark);
  box-shadow: 4px 4px 0px rgba(15, 23, 42, 1);
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-family: var(--font-display);
  z-index: 2;
}

.glass-card i {
  font-size: 1.5rem;
}

.icon-purple { color: var(--accent-purple); }
.icon-blue { color: var(--accent-blue); }
.icon-pink { color: var(--secondary); }
.icon-orange { color: #f97316; }

.spin { animation: spin 4s linear infinite; }
.spin-fast { animation: spin 2.5s linear infinite; }
.spin-reverse { animation: spin 6s linear infinite reverse; }
.pulse { animation: pulse 3s infinite; }

.element-1 {
  top: 10%;
  left: 0;
  animation: float 5s ease-in-out infinite alternate;
}

.element-2 {
  bottom: 20%;
  right: 10%;
  animation: float 7s ease-in-out infinite alternate-reverse;
}

.element-3 {
  top: 20%;
  right: 20%;
  padding: 15px;
  border-radius: 50%;
}

.element-4 {
  top: 5%;
  right: 5%;
  animation: float 6s ease-in-out infinite alternate;
}

.element-5 {
  top: 45%;
  right: -5%;
  padding: 12px;
  border-radius: 50%;
  animation: float 4s ease-in-out infinite alternate-reverse;
}

.element-6 {
  bottom: 15%;
  left: 10%;
  padding: 15px;
  border-radius: 50%;
  animation: float 8s ease-in-out infinite alternate;
}

.element-7 {
  top: 40%;
  left: -10%;
  animation: float 5.5s ease-in-out infinite alternate-reverse;
}

.hero-robot-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  background: var(--blue-gradient);
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  box-shadow: var(--shadow-flat);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 4px solid var(--dark);
  z-index: 1;
}

.hero-robot {
  width: 200px;
  height: 200px;
}

/* =========================================
   ABOUT SECTION
   ========================================= */
.about-container {
  display: flex;
  align-items: center;
  gap: 60px;
}

.about-image {
  flex: 1;
  position: relative;
}

.glass-effect {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  border: var(--border-thick);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-flat);
}

.image-wrapper {
  width: 100%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--purple-gradient);
  border-radius: var(--border-radius);
  border: var(--border-thick);
  box-shadow: var(--shadow-flat);
  position: relative;
  overflow: hidden;
}

.image-wrapper::before {
  content: '';
  position: absolute;
  width: 150%;
  height: 150%;
  background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.1) 0, rgba(255,255,255,0.1) 20px, transparent 20px, transparent 40px);
  animation: bg-scroll 20s linear infinite;
}

@keyframes bg-scroll {
  0% { transform: translate(-10%, -10%); }
  100% { transform: translate(10%, 10%); }
}

.massive-icon {
  font-size: 8rem;
  color: white;
  z-index: 1;
}

.image-wrapper-filled {
  padding: 0;
  background: var(--light);
}

.real-about-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
  position: relative;
}

.about-content {
  flex: 1.2;
}

.about-content p {
  font-size: 1.1rem;
  margin-bottom: 25px;
}

.about-highlights {
  display: grid;
  gap: 15px;
}

.about-highlights li {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  background: white;
  border-radius: 12px;
  border: 2px solid var(--dark);
  box-shadow: 3px 3px 0px var(--dark);
  transition: transform 0.3s ease;
}

.about-highlights li:hover {
  transform: translateX(5px);
}

.about-highlights i {
  font-size: 1.5rem;
  color: var(--primary);
  background: rgba(79, 70, 229, 0.1);
  padding: 10px;
  border-radius: 8px;
}

/* =========================================
   COURSES SECTION
   ========================================= */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.course-card {
  background: var(--white);
  border: var(--border-thick);
  border-radius: var(--border-radius);
  padding: 40px 30px;
  box-shadow: var(--shadow-flat);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.course-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-flat-hover);
}

.course-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--rainbow-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.course-card:hover::before {
  transform: scaleX(1);
}

.card-icon {
  width: 70px;
  height: 70px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  margin-bottom: 25px;
  border: 2px solid var(--dark);
  box-shadow: 4px 4px 0px var(--dark);
}

.gradient-blue { background: var(--blue-gradient); }
.gradient-purple { background: var(--primary-gradient); }
.gradient-mix { background: var(--rainbow-gradient); }

.grade-pill {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 12px;
  background: var(--dark);
  color: var(--white);
  border-radius: 20px;
  margin-bottom: 15px;
}

.course-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.course-card p {
  color: var(--text-light);
  margin-bottom: 25px;
  min-height: 80px;
}

.link-btn {
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.3s ease;
}

.link-btn:hover {
  gap: 12px;
  color: var(--dark);
}

/* =========================================
   PROJECTS SECTION
   ========================================= */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.project-card {
  border: var(--border-thick);
  border-radius: var(--border-radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-flat);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.project-card:hover {
  transform: scale(1.03) rotate(1deg);
  box-shadow: var(--shadow-flat-hover);
}

.project-img {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: var(--border-thick);
}

.bg-p1 { background: #fef08a; }
.bg-p2 { background: #a7f3d0; }
.bg-p3 { background: #bfdbfe; }
.bg-p4 { background: #fbcfe8; }

.project-icon {
  font-size: 4rem;
  color: var(--dark);
  opacity: 0.8;
  transition: transform 0.5s ease;
}

.project-card:hover .project-icon {
  transform: scale(1.2) rotate(-5deg);
}

.project-img-filled {
  padding: 0;
}

.real-project-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .real-project-image {
  transform: scale(1.05) rotate(-2deg);
}

.project-info {
  padding: 25px;
}

.project-info h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.project-info p {
  font-size: 0.95rem;
  color: var(--text-light);
}

/* =========================================
   WHY US SECTION
   ========================================= */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
}

.feature-item {
  text-align: center;
  padding: 20px;
}

.feature-icon {
  width: 90px;
  height: 90px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  border: var(--border-thick);
  background: var(--white);
  box-shadow: 4px 4px 0px var(--dark);
  color: var(--dark);
  transition: all 0.3s ease;
}

.feature-item:hover .feature-icon {
  transform: translateY(-8px);
  box-shadow: 8px 8px 0px var(--primary);
  color: var(--primary);
}

.shape-1 { border-radius: 50%; }
.shape-2 { border-radius: 20px; }
.shape-3 { border-radius: 50% 50% 10% 10%; }
.shape-4 { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }

.feature-item h4 {
  font-size: 1.3rem;
  margin-bottom: 15px;
}

.feature-item p {
  color: var(--text-light);
}

.feature-img-wrapper {
  margin-top: 25px;
  width: 100%;
  aspect-ratio: 4/3;
  border: var(--border-thick);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 4px 4px 0px var(--dark);
  background: var(--white);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.feature-item:hover .feature-img-wrapper {
  transform: translateY(-5px) rotate(2deg);
  box-shadow: 6px 6px 0px var(--primary);
}

.feature-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.feature-item:hover .feature-img-wrapper img {
  transform: scale(1.05);
}

/* =========================================
   CONTACT SECTION
   ========================================= */
.contact-wrapper {
  display: flex;
  flex-wrap: wrap;
  overflow: hidden;
}

.contact-info {
  flex: 1;
  min-width: 300px;
  padding: 50px;
  background: var(--primary-gradient);
  color: white;
  position: relative;
}

.contact-info .section-title, .contact-info p {
  color: white;
}

.contact-info .section-title::after {
  background: white;
}

.contact-methods {
  margin-top: 40px;
}

.method {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 25px;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  border: 2px solid white;
}

.method h5 {
  font-size: 1.1rem;
  color: white;
  margin-bottom: 5px;
}

.contact-memphis-shape {
  position: absolute;
  right: -20px;
  bottom: -20px;
  width: 150px;
  height: 150px;
  background: radial-gradient(white 2px, transparent 2px);
  background-size: 15px 15px;
  opacity: 0.3;
}

.contact-form {
  flex: 1.5;
  min-width: 300px;
  padding: 50px;
  background: var(--white);
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  font-family: var(--font-display);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px;
  border: 2px solid #cbd5e1;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all 0.3s ease;
  background: var(--light);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: white;
  box-shadow: 4px 4px 0px rgba(79, 70, 229, 0.2);
}

/* =========================================
   FOOTER
   ========================================= */
footer {
  background: var(--dark);
  color: white;
  padding: 40px 0;
  border-top: 4px solid var(--primary);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: white;
}

.footer-brand {
  height: 160px;
  box-shadow: 4px 4px 0px var(--accent-purple);
}

.footer-logo i {
  color: var(--accent-blue);
}

.footer-content p {
  color: #94a3b8;
}

/* =========================================
   MEDIA QUERIES
   ========================================= */
@media (max-width: 992px) {
  .hero-container {
    flex-direction: column;
    text-align: center;
    padding-top: 40px;
  }
  
  .hero-content {
    order: 2;
  }
  
  .hero-graphic {
    order: 1;
    width: 80%;
    margin: 0 auto;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .headline {
    font-size: 3rem;
  }
  
  .subheading {
    margin: 0 auto 30px;
  }
  
  .about-container {
    flex-direction: column;
  }
  
  .contact-wrapper {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: white;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: left 0.4s ease;
  }
  
  .nav-links.active {
    left: 0;
  }
  
  .hamburger {
    display: block;
  }
  
  .headline {
    font-size: 2.5rem;
  }
  
  .section {
    padding: 60px 0;
  }
  
  .section-title {
    font-size: 2rem;
  }
}
