:root {
  /* Color Palette */
  --color-background: #1E1E2F;
  --color-secondary: #3A3A5A;
  --color-text: #E0E0E0;
  --color-accent: #5C7AEA;
  --color-highlight: #F5A623;
  --color-dark: #14141f;
  --color-light: #f9f9f9;
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 4rem;
  
  /* Typography */
  --font-primary: 'Space Grotesk', sans-serif;
  --font-secondary: 'Syne', sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.25rem;
  --font-size-xl: 1.5rem;
  --font-size-2xl: 2rem;
  --font-size-3xl: 2.5rem;
  --font-size-4xl: 3rem;
  
  /* Effects */
  --border-radius-sm: 0.25rem;
  --border-radius-md: 0.5rem;
  --border-radius-lg: 1rem;
  --border-radius-full: 9999px;
  
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.15);
  --shadow-accent: 0 0 15px rgba(92, 122, 234, 0.5);
  --shadow-highlight: 0 0 15px rgba(245, 166, 35, 0.5);
  
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Layout */
  --container-max-width: 1280px;
  --header-height: 4rem;
}

/* === RESET & BASE STYLES === */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-background);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-highlight);
}

button, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm) var(--space-lg);
  background: var(--color-accent);
  color: var(--color-light);
  font-family: var(--font-secondary);
  font-weight: 600;
  font-size: var(--font-size-base);
  border: none;
  border-radius: var(--border-radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: var(--shadow-accent);
}

button:hover, .button:hover {
  background: var(--color-highlight);
  transform: translateY(-2px);
  box-shadow: var(--shadow-highlight);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-secondary);
  line-height: 1.2;
  margin-bottom: var(--space-md);
  font-weight: 700;
}

h1 {
  font-size: var(--font-size-4xl);
}

h2 {
  font-size: var(--font-size-3xl);
}

h3 {
  font-size: var(--font-size-2xl);
}

h4 {
  font-size: var(--font-size-xl);
}

p {
  margin-bottom: var(--space-md);
}

/* === LAYOUT === */
.container {
  width: 90%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-xl) 0;
  position: relative;
}

.section-title {
  text-align: center;
  margin-bottom: var(--space-xl);
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--color-highlight);
  border-radius: var(--border-radius-full);
}

.grid {
  display: grid;
  gap: var(--space-lg);
}

.flex {
  display: flex;
}

/* === HEADER === */
.header {
  position: relative;
  padding: var(--space-sm) 0;
  z-index: 100;
  transition: transform var(--transition-base);
}

.header.hidden {
  transform: translateY(-100%);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-secondary);
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--color-text);
  position: relative;
  z-index: 2;
}

.logo span {
  color: var(--color-accent);
}

.nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 400px;
  height: 100vh;
  background-color: var(--color-secondary);
  padding: var(--space-xl) var(--space-lg);
  transition: right var(--transition-base);
  z-index: 200;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(10px);
}

.nav.active {
  right: 0;
}

.nav-list {
  list-style: none;
  padding-top: var(--space-xl);
}

.nav-item {
  margin-bottom: var(--space-lg);
}

.nav-link {
  font-family: var(--font-secondary);
  font-size: var(--font-size-lg);
  color: var(--color-text);
  position: relative;
  padding-bottom: var(--space-xs);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-highlight);
  transition: width var(--transition-base);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 300;
  padding: 0;
  box-shadow: none;
}

.menu-toggle:hover {
  background: transparent;
  transform: none;
  box-shadow: none;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-text);
  transition: all var(--transition-base);
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(3px);
  z-index: 150;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

/* === HERO SECTION === */
.hero {
  position: relative;
  padding: var(--space-xl) 0;
  min-height: 80vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-content {
  max-width: 600px;
  position: relative;
  z-index: 5;
}

.hero-title {
  font-size: var(--font-size-4xl);
  margin-bottom: var(--space-lg);
  line-height: 1.1;
}

.hero-subtitle {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-lg);
  color: var(--color-accent);
}

.hero-text {
  margin-bottom: var(--space-lg);
}

.hero-cta {
  display: flex;
  gap: var(--space-md);
}

.hero-bg {
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 100%;
  z-index: 1;
  opacity: 0.4;
}

/* === CARDS === */
.card {
  background-color: var(--color-secondary);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-content {
  padding: var(--space-lg);
}

.card-title {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-sm);
}

.card-price {
  font-size: var(--font-size-lg);
  color: var(--color-highlight);
  margin-bottom: var(--space-md);
  font-weight: 700;
}

.card-text {
  margin-bottom: var(--space-md);
}

/* === FEATURES === */
.features-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.feature {
  text-align: center;
  padding: var(--space-lg);
}

.feature-icon {
  font-size: 3rem;
  color: var(--color-accent);
  margin-bottom: var(--space-md);
}

.feature-title {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-sm);
}

/* === ABOUT === */
.about-grid {
  gap: var(--space-xl);
  align-items: center;
}

.about-image {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

/* === TESTIMONIALS === */
.testimonial {
  background-color: var(--color-secondary);
  padding: var(--space-lg);
  border-radius: var(--border-radius-lg);
  position: relative;
  margin-bottom: var(--space-xl);
}

.testimonial::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 20px;
  font-size: 6rem;
  color: rgba(92, 122, 234, 0.2);
  line-height: 1;
}

.testimonial-text {
  position: relative;
  z-index: 1;
}

.testimonial-author {
  font-weight: 700;
  color: var(--color-accent);
  margin-top: var(--space-md);
}

/* === CONTACT === */
.contact-grid {
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.contact-icon {
  color: var(--color-accent);
  font-size: var(--font-size-xl);
}

.contact-form {
  background-color: var(--color-secondary);
  padding: var(--space-lg);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: var(--space-md);
}

label {
  display: block;
  margin-bottom: var(--space-xs);
  font-weight: 500;
}

input,
textarea {
  width: 100%;
  padding: var(--space-sm);
  border: 2px solid transparent;
  border-radius: var(--border-radius-sm);
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--color-text);
  font-family: var(--font-primary);
  transition: border-color var(--transition-fast);
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

textarea {
  min-height: 150px;
  resize: vertical;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.form-check input {
  width: auto;
  margin-top: 5px;
}

/* === FOOTER === */
.footer {
  background-color: var(--color-dark);
  padding: var(--space-lg) 0;
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.footer-link {
  color: var(--color-text);
  font-size: var(--font-size-sm);
}

.footer-bottom {
  font-size: var(--font-size-xs);
  opacity: 0.7;
}

/* === COOKIES POPUP === */
.cookies-popup {
  position: fixed;
  bottom: var(--space-md);
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--color-secondary);
  border-radius: var(--border-radius-md);
  padding: var(--space-md);
  width: 90%;
  max-width: 500px;
  z-index: 1000;
  box-shadow: var(--shadow-lg);
  display: none;
}

.cookies-popup.active {
  display: block;
}

.cookies-popup-content {
  margin-bottom: var(--space-md);
}

.cookies-popup-buttons {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-sm);
}

/* === 404 PAGE === */
.error-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  text-align: center;
  padding: var(--space-xl);
}

.error-code {
  font-size: 8rem;
  font-weight: 700;
  margin-bottom: var(--space-md);
  color: var(--color-accent);
  line-height: 1;
}

.error-message {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-lg);
}

/* === THANK YOU PAGE === */
.thank-you-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  text-align: center;
  padding: var(--space-xl);
}

.thank-you-icon {
  font-size: 5rem;
  color: var(--color-accent);
  margin-bottom: var(--space-lg);
}

.thank-you-title {
  margin-bottom: var(--space-md);
}

/* === RESPONSIVENESS === */
@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 14px;
  }
  
  h1 {
    font-size: var(--font-size-3xl);
  }
  
  h2 {
    font-size: var(--font-size-2xl);
  }
  
  .hero-bg {
    width: 100%;
    opacity: 0.2;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 12px;
  }
  
  .section {
    padding: var(--space-lg) 0;
  }
  
  .hero-cta {
    flex-direction: column;
  }
  
  .card-image {
    height: 150px;
  }
}

/* === ANIMATIONS === */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.8s ease forwards;
}

/* === 3D MODELING SPECIFIC STYLES === */
.model-showcase {
  position: relative;
  padding-top: 56.25%; /* 16:9 aspect ratio */
  margin-bottom: var(--space-lg);
  overflow: hidden;
  border-radius: var(--border-radius-lg);
  background-color: var(--color-dark);
}

.model-showcase iframe,
.model-showcase video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.course-grid {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.software-logo {
  height: 60px;
  object-fit: contain;
  margin: 0 var(--space-md);
  filter: grayscale(100%) brightness(150%);
  transition: filter var(--transition-base);
}

.software-logo:hover {
  filter: grayscale(0%) brightness(100%);
}

.timeline {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 6px;
  background-color: var(--color-accent);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -3px;
  border-radius: var(--border-radius-full);
}

.timeline-item {
  padding: var(--space-md) var(--space-lg);
  position: relative;
  width: 50%;
  animation: fadeIn 0.8s ease forwards;
}

.timeline-item:nth-child(odd) {
  left: 0;
}

.timeline-item:nth-child(even) {
  left: 50%;
}

.timeline-item::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  right: -10px;
  background-color: var(--color-highlight);
  border: 4px solid var(--color-accent);
  top: 15px;
  border-radius: 50%;
  z-index: 1;
}

.timeline-item:nth-child(even)::after {
  left: -10px;
}

.timeline-content {
  padding: var(--space-md);
  background-color: var(--color-secondary);
  position: relative;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-md);
}

@media (max-width: 768px) {
  .timeline::after {
    left: 31px;
  }
  
  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: var(--space-md);
  }
  
  .timeline-item:nth-child(even) {
    left: 0;
  }
  
  .timeline-item::after {
    left: 20px;
    right: auto;
  }
  
  .timeline-item:nth-child(even)::after {
    left: 20px;
  }
}

/* Dimensional styling for 3D courses */
.dimensional-card {
  position: relative;
  transform-style: preserve-3d;
  transition: transform var(--transition-base);
}

.dimensional-card:hover {
  transform: rotateY(5deg) rotateX(5deg);
}

.glowing-accent {
  position: relative;
}

.glowing-accent::before {
  content: '';
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  background: linear-gradient(45deg, var(--color-accent), var(--color-highlight));
  border-radius: var(--border-radius-lg);
  z-index: -1;
  opacity: 0.5;
  filter: blur(15px);
  transition: opacity var(--transition-base);
}

.glowing-accent:hover::before {
  opacity: 0.8;
}