/* Main Styles */
:root {
  /* Colors */
  --primary: #6A0DAD;
  --secondary: #007BFF;
  --dark-bg: #0E0E10;
  --light-bg: #F5F5F7;
  --text-light: #FFFFFF;
  --text-dark: #1A1A1A;
  
  /* Fonts */
  --heading-font: 'Inter', sans-serif;
  --body-font: 'Inter', sans-serif;
  
  /* Transitions */
  --transition-fast: 0.3s ease;
  --transition-medium: 0.5s ease;
  --transition-slow: 0.8s ease;
}

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

html {
  scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: var(--primary);
  transition: var(--transition-fast);
}

a:hover {
  color: var(--secondary);
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 5rem 0;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  text-align: center;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--text-light);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(106, 13, 173, 0.3);
  color: var(--text-light);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--text-light);
}

/* Header */
header {
  background-color: var(--dark-bg);
  color: var(--text-light);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  transition: var(--transition-fast);
}

header.scrolled {
  padding: 0.5rem 0;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

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

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-light);
}

.logo:hover {
  color: var(--secondary);
}

/* Navigation */
nav ul {
  display: flex;
  flex-direction: row;
  list-style: none;
}

.header-nav {
    display: flex;
  flex-direction: row;
}

nav ul li {
  margin-left: 2rem;
}

nav ul li a {
  color: var(--text-light);
  font-weight: 600;
  position: relative;
}

nav ul li a:before {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  transition: var(--transition-fast);
}

nav ul li a:hover:before {
  width: 100%;
}

/* Language Switcher */
.language-switcher {
  display: flex;
  align-items: center;
  margin-left: 2rem;
}

.language-switcher button {
  background: transparent;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  font-weight: 600;
  padding: 5px;
  transition: var(--transition-fast);
}

.language-switcher button:hover {
  color: var(--secondary);
}

.language-switcher button.active {
  color: var(--secondary);
  border-bottom: 2px solid var(--secondary);
}

/* Mobile Navigation */
.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-light);
  font-size: 1.8rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-color: var(--dark-bg);
  position: relative;
  overflow: hidden;
  padding: 10rem 0 5rem;
}

.hero-content {
  color: var(--text-light);
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  font-weight: 800;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  max-width: 700px;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(106, 13, 173, 0.8), rgba(0, 123, 255, 0.8));
  opacity: 0.6;
  z-index: 1;
}

.hero-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('../images/tech-pattern.svg');
  background-size: cover;
  opacity: 0.1;
  z-index: 0;
}

/* Section Styling */
.section-title {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title h2 {
  font-size: 2.5rem;
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.section-title p {
  max-width: 700px;
  margin: 0 auto;
  color: var(--text-dark);
}

/* Card Styles */
.card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  transition: var(--transition-medium);
  margin-bottom: 2rem;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(106, 13, 173, 0.2);
}

.card-content {
  padding: 2rem;
}

.card-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* Innovation Path */
.roadmap {
  position: relative;
  padding: 3rem 0;
}

.roadmap-line {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--primary), var(--secondary));
  opacity: 0.7;
  z-index: 1;
}

.roadmap-item {
  display: flex;
  align-items: center;
  margin-bottom: 4rem;
}

.roadmap-item:nth-child(odd) {
  justify-content: flex-start;
}

.roadmap-item:nth-child(even) {
  justify-content: flex-end;
}

.roadmap-content {
  width: 45%;
  position: relative;
  z-index: 2;
}

.roadmap-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.roadmap-item:nth-child(odd) .roadmap-dot {
  right: -40px;
}

.roadmap-item:nth-child(even) .roadmap-dot {
  left: -40px;
}

/* Success Stories */
.success-stories {
  overflow: hidden;
}

.carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1rem;
}

.carousel::-webkit-scrollbar {
  display: none;
}

.carousel-item {
  flex: 0 0 100%;
  scroll-snap-align: start;
  padding: 1rem;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  height: 100%;
}

.testimonial-header {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.testimonial-img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin-right: 1rem;
  object-fit: cover;
}

.testimonial-info h4 {
  margin-bottom: 0.3rem;
}

.testimonial-info p {
  font-size: 0.9rem;
  color: #666;
}

.testimonial-quote {
  font-style: italic;
  margin-bottom: 1rem;
}

.ratings {
  color: gold;
}

/* Tools & Frameworks */
.tools-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  grid-gap: 2rem;
}

.tool-item {
  text-align: center;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  transition: var(--transition-medium);
}

.tool-item:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 30px rgba(106, 13, 173, 0.2);
}

.tool-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

/* Projects */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  grid-gap: 2rem;
}

.project-card {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  height: 300px;
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-medium);
}

.project-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(14, 14, 16, 0.9), transparent);
  padding: 2rem;
  transform: translateY(70%);
  transition: var(--transition-medium);
}

.project-card:hover .project-overlay {
  transform: translateY(0);
}

.project-card:hover .project-img {
  transform: scale(1.1);
}

/* Future Edge Benefits */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  grid-gap: 2rem;
}

.benefit-item {
  text-align: center;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  transition: var(--transition-medium);
}

.benefit-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(106, 13, 173, 0.2);
}

.benefit-icon {
  font-size: 3rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.counter {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Mentors */
.mentors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  grid-gap: 2rem;
}

.mentor-card {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.mentor-img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
}

.mentor-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(14, 14, 16, 0.8);
  backdrop-filter: blur(10px);
  color: var(--text-light);
  padding: 1.5rem;
  transform: translateY(100%);
  transition: var(--transition-medium);
}

.mentor-card:hover .mentor-info {
  transform: translateY(0);
}

.mentor-social {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

.mentor-social a {
  color: var(--text-light);
  margin: 0 10px;
  font-size: 1.2rem;
}

.mentor-social a:hover {
  color: var(--secondary);
}

/* Footer */
footer {
  background-color: var(--dark-bg);
  color: var(--text-light);
  padding: 5rem 0 2rem;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  grid-gap: 3rem;
}

.footer-logo {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--text-light);
}

.footer-social {
  display: flex;
  margin-top: 1.5rem;
}

.footer-social a {
  color: var(--text-light);
  margin-right: 1.5rem;
  font-size: 1.5rem;
  transition: var(--transition-fast);
}

.footer-social a:hover {
  color: var(--secondary);
  transform: translateY(-3px);
}

.footer-title {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 10px;
}

.footer-title:after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 50px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: #aaa;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--secondary);
  padding-left: 5px;
}

.footer-contact li {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
}

.footer-contact i {
  margin-right: 1rem;
  color: var(--secondary);
}

.footer-bottom {
  text-align: center;
  padding-top: 3rem;
  margin-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

.animate-fadeInUp {
  animation: fadeInUp 0.8s ease forwards;
}

.animate-fadeIn {
  animation: fadeIn 1s ease forwards;
}

.animate-pulse {
  animation: pulse 2s infinite;
}

/* Language specific styling */
[lang="lv"] .en-content,
[lang="en"] .lv-content {
  display: none;
}

/* Responsive */
@media (max-width: 992px) {
  h1 {
    font-size: 3rem;
  }
  .section-title h2 {
    font-size: 2rem;
  }
  .roadmap-line {
    left: 30px;
  }
  .roadmap-item {
    justify-content: flex-start !important;
    padding-left: 80px;
  }
  .roadmap-content {
    width: 100%;
  }
  .roadmap-dot {
    left: -40px !important;
  }
}

@media (max-width: 768px) {
  header {
    padding: 1rem 0;
  }
  
  .mobile-nav-toggle {
    display: block;
  }
  
  nav {
    position: fixed;
    top: 0;
    right: -300px;
    background: var(--dark-bg);
    height: 100vh;
    width: 300px;
    padding: 2rem;
    z-index: 1001;
    transition: var(--transition-medium);
  }
  
  nav.active {
    right: 0;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
  }
  
  nav ul {
    flex-direction: column;
    margin-top: 3rem;
  }
  
  nav ul li {
    margin: 1rem 0;
  }
  
  .language-switcher {
    position: absolute;
    top: 1rem;
    right: 1rem;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .btn {
    padding: 0.7rem 1.8rem;
  }
  
  section {
    padding: 3rem 0;
  }
  
  .section-title {
    margin-bottom: 2rem;
  }
  
  .carousel-item {
    flex: 0 0 100%;
  }
}

@media (max-width: 576px) {
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .section-title h2 {
    font-size: 1.8rem;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
  }
  
  .benefits-grid,
  .tools-container,
  .projects-grid,
  .mentors-grid {
    grid-template-columns: 1fr;
  }
}


/* Platform Demo Section */
.platform-demo {
  background: radial-gradient(circle at top left, rgba(106, 13, 173, 0.15), transparent 50%),
              radial-gradient(circle at bottom right, rgba(0, 123, 255, 0.15), transparent 50%),
              var(--dark-bg);
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.platform-demo::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(120deg, var(--primary), var(--secondary), var(--primary));
  opacity: 0.05;
  animation: rotateBg 20s linear infinite;
}

@keyframes rotateBg {
  to { transform: rotate(360deg); }
}

.demo-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.code-editor, .preview {
  flex: 1;
  min-width: 320px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(15px);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(106, 13, 173, 0.3);
  transform: translateY(0);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.code-editor:hover, .preview:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 50px rgba(0, 123, 255, 0.4);
}

/* Code Editor Tabs */
.editor-header {
  background: rgba(0, 0, 0, 0.4);
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
}

.editor-tabs {
  display: flex;
  gap: 0.5rem;
}

.editor-tabs .tab {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 0.9rem;
  color: var(--text-light);
  cursor: pointer;
  transition: 0.3s;
}

.editor-tabs .tab.active,
.editor-tabs .tab:hover {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 0 15px rgba(0, 123, 255, 0.6);
}

/* Code Area */
.editor-content {
  padding: 1rem;
  font-family: monospace;
  font-size: 0.85rem;
  color: #00ffea;
  overflow-x: auto;
}

.editor-content code {
  display: block;
  white-space: pre;
  animation: codeGlow 2s ease-in-out infinite alternate;
}

@keyframes codeGlow {
  0% { text-shadow: 0 0 5px rgba(0, 255, 234, 0.4); }
  100% { text-shadow: 0 0 15px rgba(0, 255, 234, 0.8); }
}

/* Preview Window */
.preview-header {
  background: rgba(0, 0, 0, 0.4);
  padding: 0.5rem 1rem;
}

.preview-title {
  font-weight: 600;
  color: var(--text-light);
}

.preview-content {
  padding: 1.5rem;
  color: var(--text-light);
}

.demo-button {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border: none;
  padding: 0.6rem 1.2rem;
  color: #fff;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.demo-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 15px rgba(106, 13, 173, 0.6);
}
/* Enrollment CTA Section */
.enrollment {
  background-color: #fff;
  position: relative;
  overflow: hidden;
  padding: 6rem 0;
}

.enrollment::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(255,255,255,0.08) 0%, transparent 70%);
  animation: moveGlow 12s linear infinite;
}

@keyframes moveGlow {
  0% { transform: translate(0,0); }
  50% { transform: translate(20px, 20px); }
  100% { transform: translate(0,0); }
}

.enrollment .section-title h2 {
  color: #fff;
}

.enrollment .section-title p {
  color: rgba(255, 255, 255, 0.85);
}

/* Form Container */
.enrollment-form {
    background: linear-gradient(135deg, rgba(106, 13, 173, 0.95), rgba(0, 123, 255, 0.95));

  max-width: 600px;
  margin: 3rem auto 0;

  backdrop-filter: blur(15px);
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 0 30px rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.1);
}

/* Form Fields */
.enrollment-form .form-group {
  margin-bottom: 1.5rem;
}

.enrollment-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #fff;
}

.enrollment-form input,
.enrollment-form select {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 1rem;
  outline: none;
  transition: 0.3s;
}

.enrollment-form input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.enrollment-form input:focus,
.enrollment-form select:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 15px rgba(0, 123, 255, 0.5);
}

/* Button Styling */
.enrollment-form .btn-primary {
  width: 100%;
  font-size: 1.1rem;
  padding: 1rem;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 5px 20px rgba(0, 123, 255, 0.4);
  transition: all 0.3s ease;
}

.enrollment-form .btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(106, 13, 173, 0.6);
}
/* Popup Styles */
.enrollment-popup {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(5px);
  z-index: 2000;
  justify-content: center;
  align-items: center;
}

.enrollment-popup.active {
  display: flex;
  animation: fadeIn 0.3s ease forwards;
}

.popup-content {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(15px);
  border-radius: 15px;
  padding: 2rem;
  max-width: 400px;
  text-align: center;
  color: #fff;
  box-shadow: 0 0 30px rgba(106, 13, 173, 0.5);
}

.popup-content h3 {
  margin-bottom: 1.5rem;
}

.popup-close {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}

.popup-close:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 15px rgba(0,123,255,0.5);
}
/* Timeline Wrapper */
.timeline {
  position: relative;
  margin: 4rem 0;
  padding-left: 50px;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 35px;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--primary), var(--secondary));
  box-shadow: 0 0 15px rgba(0, 123, 255, 0.7);
}

/* Timeline Item */
.timeline-item {
  position: relative;
  width: 100%;
  margin-bottom: 4rem;
}

.timeline-item.left .timeline-content {
  margin-left: 60px;
}

.timeline-item.right .timeline-content {
  margin-left: 60px;
}

/* Timeline Icon */
.timeline-icon {
  position: absolute;
  left: 17px;
  top: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(106, 13, 173, 0.8);
  z-index: 2;
  font-size: 1.1rem;
}

/* Timeline Content Card */
.timeline-content {
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(15px);
  border-radius: 12px;
  padding: 1.5rem 2rem;
  box-shadow: 0 0 20px rgba(0,0,0,0.25);
  color: #fff;
  transition: 0.4s;
}

.timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 30px rgba(0, 123, 255, 0.5);
}

.timeline-content h3 {
  margin-bottom: 0.8rem;
  font-size: 1.4rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.timeline-content p {
  margin-bottom: 1rem;
  color: rgba(255,255,255,0.85);
}

.timeline-content ul {
  padding-left: 1.2rem;
}

.timeline-content ul li {
  margin-bottom: 0.4rem;
  color: rgba(255,255,255,0.9);
}

/* Animation on Reveal */
.timeline-item.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: 0.6s ease;
}

.timeline-item.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
/* Timeline Content Card */
.timeline-content {
  background: rgba(255,255,255,0.9); /* светлый фон для читаемости */
  color: var(--text-dark); /* основной цвет текста */
  backdrop-filter: blur(15px);
  border-radius: 12px;
  padding: 1.5rem 2rem;
  box-shadow: 0 0 20px rgba(0,0,0,0.15);
  transition: 0.4s;
}

.timeline-content h3 {
  margin-bottom: 0.8rem;
  font-size: 1.4rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.timeline-content p {
  margin-bottom: 1rem;
  color: var(--text-dark); /* тёмный текст в описании */
}

.timeline-content ul li {
  margin-bottom: 0.4rem;
  color: var(--text-dark);
}
/* Project Showcase Section */
.project-showcase {
  background: var(--light-bg);
  padding: 6rem 0;
}

.project-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 2.5rem;
  gap: 1rem;
}

.project-tab {
  padding: 0.7rem 1.5rem;
  border-radius: 30px;
  background: rgba(255,255,255,0.6);
  cursor: pointer;
  font-weight: 600;
  color: var(--text-dark);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.project-tab:hover {
  border-color: var(--secondary);
  box-shadow: 0 0 15px rgba(0, 123, 255, 0.3);
}

.project-tab.active {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  box-shadow: 0 0 20px rgba(106, 13, 173, 0.4);
}

/* Project Content */
.project-content {
  display: none;
}

.project-content.active {
  display: block;
  animation: fadeIn 0.6s ease forwards;
}

/* Project Grid */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

/* Project Item Card */
.project-item {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(15px);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
}

.project-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 123, 255, 0.3);
}

.project-image {
  position: relative;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: auto;
  transition: transform 0.5s ease;
}

.project-item:hover .project-image img {
  transform: scale(1.08);
}

/* Project Text */
.project-item h4 {
  font-size: 1.2rem;
  font-weight: 700;
  padding: 1rem 1.5rem 0.5rem;
  color: var(--primary);
}

.project-item p {
  padding: 0 1.5rem 0.5rem;
  color: var(--text-dark);
}

.project-item p strong {
  color: var(--secondary);
}

/* Animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px);}
  to { opacity: 1; transform: translateY(0);}
}
/* FAQ Section */
.faq-container {
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  border-radius: 12px;
  margin-bottom: 1rem;
  border: 1px solid rgba(255,255,255,0.1);
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 0 20px rgba(106, 13, 173, 0.3);
}

.faq-question {
  padding: 1rem 1.5rem;
  font-weight: 600;
  color: var(--text-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-question .faq-icon {
  transition: transform 0.3s ease;
  color: var(--primary);
}

.faq-item.active .faq-question .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 1.5rem;
  background: rgba(255,255,255,0.05);
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  padding: 1rem 1.5rem;
  max-height: 500px;
}

.faq-answer p {
  color: var(--text-dark);
  line-height: 1.5;
}


.white {
  color: #fff;
}