/* CSS Variables */
:root {
  /* Monochromatic Color Scheme */
  --primary-black: #000000;
  --primary-gray-900: #111827;
  --primary-gray-800: #1f2937;
  --primary-gray-700: #374151;
  --primary-gray-600: #4b5563;
  --primary-gray-500: #6b7280;
  --primary-gray-400: #9ca3af;
  --primary-gray-300: #d1d5db;
  --primary-gray-200: #e5e7eb;
  --primary-gray-100: #f3f4f6;
  --primary-gray-50: #f9fafb;
  --primary-white: #ffffff;
  
  /* Accent Colors */
  --accent-gradient: linear-gradient(135deg, #1f2937 0%, #374151 100%);
  --dark-overlay: rgba(0, 0, 0, 0.6);
  --light-overlay: rgba(255, 255, 255, 0.1);
  
  /* Typography */
  --font-heading: 'Oswald', sans-serif;
  --font-body: 'Nunito', sans-serif;
  
  /* Spacing */
  --section-padding: 80px 0;
  --container-padding: 0 1rem;
  --card-padding: 2rem;
  
  /* Shadows */
  --card-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  --card-shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.15);
  
  /* Border Radius */
  --border-radius: 12px;
  --border-radius-lg: 16px;
  
  /* Transitions */
  --transition-fast: 0.2s ease-out;
  --transition-normal: 0.3s ease-out;
  --transition-slow: 0.5s ease-out;
  --transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Global Styles */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--primary-gray-700);
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--primary-gray-900);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--container-padding);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border: none;
  border-radius: var(--border-radius);
  font-family: var(--font-heading);
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-bounce);
  position: relative;
  overflow: hidden;
}

.btn:before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left var(--transition-normal);
}

.btn:hover:before {
  left: 100%;
}

.btn:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

button[type="submit"],
input[type="submit"] {
  display: inline-block;
  padding: 12px 24px;
  border: none;
  border-radius: var(--border-radius);
  font-family: var(--font-heading);
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-bounce);
  position: relative;
  overflow: hidden;
  background: var(--primary-white);
  color: var(--primary-black);
}

button[type="submit"]:hover,
input[type="submit"]:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  background: var(--primary-gray-200);
}

/* Cards */
.card {
  background: var(--primary-white);
  border-radius: var(--border-radius-lg);
  padding: var(--card-padding);
  box-shadow: var(--card-shadow);
  transition: all var(--transition-normal);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

.card:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(255,255,255,0.05) 100%);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--card-shadow-hover);
}

.card:hover:before {
  opacity: 1;
}

.card-image {
  width: 100%;
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.card-image img {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  transition: transform var(--transition-normal);
  object-fit: cover;
}

.card:hover .card-image img {
  transform: scale(1.05);
}

.card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
}

/* Navigation */
header {
  backdrop-filter: blur(20px);
  background: rgba(0, 0, 0, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#mobile-menu-btn {
  transition: transform var(--transition-normal);
}

#mobile-menu-btn:hover {
  transform: rotate(90deg);
}

/* Hero Section */
#hero {
  position: relative;
  color: var(--primary-white);
  overflow: hidden;
}

.parallax-bg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  transition: transform var(--transition-slow);
}

#hero h1 {
  color: var(--primary-white) !important;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

#hero p {
  color: var(--primary-white) !important;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%, 20%, 53%, 80%, 100% {
    transform: translate3d(0, 0, 0);
  }
  40%, 43% {
    transform: translate3d(0, -30px, 0);
  }
  70% {
    transform: translate3d(0, -15px, 0);
  }
  90% {
    transform: translate3d(0, -4px, 0);
  }
}

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

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
}

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

.animation-delay-600 {
  animation-delay: 0.6s;
}

/* Services Section */
#services .card {
  height: 100%;
  justify-content: space-between;
}

#services .card-image {
  height: 200px;
  overflow: hidden;
}

#services .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Features Section */
#features {
  background: linear-gradient(135deg, var(--primary-gray-100) 0%, var(--primary-gray-50) 100%);
}

#features .text-center > div {
  transition: all var(--transition-bounce);
}

#features .text-center > div:hover {
  transform: translateY(-5px);
}

#features img {
  transition: all var(--transition-normal);
  filter: grayscale(0.3);
}

#features .text-center > div:hover img {
  filter: grayscale(0);
  transform: scale(1.1);
}

/* Statistics Section */
#statistics {
  background: var(--accent-gradient);
  position: relative;
}

#statistics:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('image/statistics-background-texture.jpg') center/cover;
  opacity: 0.1;
  z-index: 1;
}

#statistics > * {
  position: relative;
  z-index: 2;
}

.counter-item {
  transition: all var(--transition-bounce);
}

.counter-item:hover {
  transform: scale(1.1);
}

#statistics table {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

#statistics table th,
#statistics table td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Instructors Section */
#instructors .card {
  background: linear-gradient(135deg, var(--primary-white) 0%, var(--primary-gray-50) 100%);
}

#instructors .card-image img {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  border: 4px solid var(--primary-white);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  margin: 0 auto;
}

/* Webinars Section */
#webinars {
  background: linear-gradient(135deg, var(--primary-gray-100) 0%, var(--primary-gray-200) 100%);
}

#webinars .card-image {
  height: 200px;
  overflow: hidden;
}

#webinars .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

#webinars .card:hover .card-image img {
  transform: scale(1.1);
}

/* Partners Section */
#partners img {
  transition: all var(--transition-normal);
  filter: grayscale(1);
  opacity: 0.6;
}

#partners .text-center:hover img {
  filter: grayscale(0);
  opacity: 1;
  transform: scale(1.05);
}

/* Media Section */
#media {
  background: linear-gradient(135deg, var(--primary-gray-100) 0%, var(--primary-gray-50) 100%);
}

#media .card {
  transition: all var(--transition-bounce);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

#media .card:hover {
  transform: translateY(-8px) scale(1.02);
  text-decoration: none;
  color: inherit;
}

#media .card:hover span {
  color: var(--primary-gray-900);
  font-weight: 600;
}

/* Contact Section */
#contact {
  background: var(--accent-gradient);
  position: relative;
}

#contact:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('image/contact-background-texture.jpg') center/cover;
  opacity: 0.1;
  z-index: 1;
}

#contact > * {
  position: relative;
  z-index: 2;
}

#contact input,
#contact textarea {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--primary-white);
  transition: all var(--transition-normal);
}

#contact input:focus,
#contact textarea:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--primary-white);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
  outline: none;
}

#contact input::placeholder,
#contact textarea::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

/* Footer */
footer {
  background: var(--primary-gray-900);
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.02) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.02) 0%, transparent 50%);
}

footer a {
  transition: color var(--transition-normal);
  text-decoration: none;
}

footer a:hover {
  color: var(--primary-white);
  text-decoration: none;
}

/* Social Media Links */
.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  padding: 0.5rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius);
  transition: all var(--transition-normal);
  text-decoration: none;
}

.social-links a:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary-white);
  transform: translateY(-2px);
}

/* Forms */
form {
  position: relative;
}

label {
  font-weight: 600;
  color: var(--primary-gray-300);
}

input, textarea {
  transition: all var(--transition-normal);
}

input:focus, textarea:focus {
  transform: scale(1.02);
}

/* Success Page */
.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-gray-900) 0%, var(--primary-black) 100%);
  color: var(--primary-white);
  text-align: center;
  padding: 2rem;
}

.success-content {
  max-width: 600px;
  padding: 3rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border-radius: var(--border-radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Privacy and Terms Pages */
.content-page {
  padding-top: 120px;
  min-height: 100vh;
  background: var(--primary-gray-50);
}

.content-page .container {
  max-width: 800px;
  padding: 2rem 1rem;
}

.content-page h1 {
  color: var(--primary-gray-900);
  margin-bottom: 2rem;
}

.content-page h2 {
  color: var(--primary-gray-800);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.content-page p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

/* Read More Links */
.read-more-link {
  color: var(--primary-gray-600);
  font-weight: 600;
  text-decoration: none;
  position: relative;
  transition: all var(--transition-normal);
}

.read-more-link:after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-gray-900);
  transition: width var(--transition-normal);
}

.read-more-link:hover {
  color: var(--primary-gray-900);
  text-decoration: none;
}

.read-more-link:hover:after {
  width: 100%;
}

/* Retro Design Elements */
.retro-texture {
  position: relative;
}

.retro-texture:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 2px,
      rgba(255, 255, 255, 0.01) 2px,
      rgba(255, 255, 255, 0.01) 4px
    );
  pointer-events: none;
}

/* Responsive Design */
@media (max-width: 768px) {
  :root {
    --section-padding: 60px 0;
    --card-padding: 1.5rem;
  }
  
  .card {
    margin-bottom: 2rem;
  }
  
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  #statistics table {
    font-size: 0.9rem;
  }
  
  .social-links {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .parallax-bg {
    background-attachment: scroll;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 0.5rem;
  }
  
  .card {
    padding: 1rem;
  }
  
  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  #statistics table th,
  #statistics table td {
    padding: 0.5rem;
    font-size: 0.8rem;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .parallax-bg {
    background-attachment: scroll;
  }
}

/* Print Styles */
@media print {
  .parallax-bg {
    background: none !important;
  }
  
  .card {
    box-shadow: none;
    border: 1px solid #ccc;
  }
  
  .btn {
    background: none;
    border: 1px solid #000;
    color: #000;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  :root {
    --card-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    --card-shadow-hover: 0 8px 16px rgba(0, 0, 0, 0.4);
  }
  
  .card {
    border: 2px solid var(--primary-gray-300);
  }
  
  .btn {
    border: 2px solid currentColor;
  }
}