/* Root Variables */
:root {
  /* Color Palette - Neutral with Dark Theme */
  --primary-color: #2a7fff;
  --primary-dark: #1e62cc;
  --primary-light: #4a93ff;
  --secondary-color: #565656;
  --accent-color: #e63946;
  --accent-light: #ff5a68;
  --bg-dark: #121212;
  --bg-darker: #0a0a0a;
  --bg-light: #1e1e1e;
  --bg-lighter: #2d2d2d;
  --text-light: #ffffff;
  --text-muted: #b0b0b0;
  --text-dark: #333333;
  --border-color: #3a3a3a;
  --success-color: #28a745;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  --card-bg: rgba(30, 30, 30, 0.9);
  --overlay-dark: rgba(0, 0, 0, 0.7);
  --overlay-gradient: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.4));
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.3);
  --transition-fast: 0.3s ease;
  --transition-medium: 0.5s ease;
  --transition-slow: 0.8s ease;
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 16px;
  --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  --gradient-dark: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-light) 100%);
  --gradient-accent: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-light) 100%);
}

/* Base Styles */
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Open Sans', sans-serif;
  color: var(--text-light);
  background-color: var(--bg-dark);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  margin: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--text-light);
}

p {
  margin-bottom: 1.5rem;
  color: var(--text-light);
}

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

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

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

section {
  padding: 5rem 0;
  position: relative;
}

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

/* Utility Classes */
.text-center {
  text-align: center;
}

.text-light {
  color: var(--text-light) !important;
}

.text-muted {
  color: var(--text-muted) !important;
}

.bg-gradient {
  background: var(--gradient-dark);
}

.bg-pattern {
  background-color: var(--bg-dark);
  background-image: url('./image/pattern-dark.jpg');
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--overlay-dark);
  z-index: 1;
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--transition-medium), transform var(--transition-medium);
}

.fade-in.active {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity var(--transition-medium), transform var(--transition-medium);
}

.fade-in-up.active {
  opacity: 1;
  transform: translateY(0);
}

.section-header {
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 2.5rem;
  position: relative;
  display: inline-block;
  margin-bottom: 1rem;
}

.section-header h2::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -10px;
  width: 50px;
  height: 3px;
  background: var(--primary-color);
  transform: translateX(-50%);
}

.section-header p.lead {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto;
}

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  border-radius: var(--border-radius-md);
  transition: all var(--transition-fast);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::after {
  content: '';
  position: absolute;
  width: 0;
  height: 100%;
  top: 0;
  left: 0;
  background: rgba(255, 255, 255, 0.1);
  transition: width var(--transition-fast);
  z-index: -1;
}

.btn:hover::after {
  width: 100%;
}

.btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(42, 127, 255, 0.3);
}

.btn-primary {
  background: var(--primary-color);
  color: white;
}

.btn-primary:hover, .btn-primary:focus {
  background: var(--primary-dark);
  color: white;
}

.btn-outline-light {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.8);
}

.btn-outline-light:hover, .btn-outline-light:focus {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.btn-link {
  background: none;
  color: var(--primary-color);
  padding: 0;
  font-weight: 600;
  text-transform: none;
  letter-spacing: normal;
  position: relative;
}

.btn-link::after {
  content: '→';
  margin-left: 8px;
  transition: transform var(--transition-fast);
  display: inline-block;
}

.btn-link:hover {
  color: var(--primary-light);
}

.btn-link:hover::after {
  transform: translateX(5px);
}

/* Form Elements */
.form-control, .form-select {
  background-color: var(--bg-lighter);
  border: 1px solid var(--border-color);
  color: var(--text-light);
  border-radius: var(--border-radius-md);
  padding: 0.75rem 1rem;
  transition: all var(--transition-fast);
}

.form-control:focus, .form-select:focus {
  background-color: var(--bg-darker);
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(42, 127, 255, 0.2);
  color: var(--text-light);
}

.form-label {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-light);
}

.form-check-input {
  background-color: var(--bg-lighter);
  border: 1px solid var(--border-color);
}

.form-check-input:checked {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.input-group .btn {
  z-index: 0;
}

/* Header & Navigation */
.header {
  background-color: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: all var(--transition-fast);
}

.header.scrolled {
  background-color: rgba(10, 10, 10, 0.98);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
}

.navbar {
  padding: 1rem 0;
}

.navbar-dark .navbar-brand {
  color: var(--text-light);
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 1.75rem;
  letter-spacing: 1px;
}

.navbar-dark .navbar-nav .nav-link {
  color: var(--text-muted);
  font-weight: 600;
  padding: 0.5rem 1rem;
  position: relative;
  transition: color var(--transition-fast);
}

.navbar-dark .navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width var(--transition-fast);
}

.navbar-dark .navbar-nav .nav-link:hover {
  color: var(--text-light);
}

.navbar-dark .navbar-nav .nav-link:hover::after {
  width: 100%;
}

.navbar-dark .navbar-toggler {
  border: none;
  padding: 0;
}

.navbar-dark .navbar-toggler:focus {
  box-shadow: none;
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--text-light);
  padding: 0;
  overflow: hidden;
}

.hero-section .overlay {
  background: var(--overlay-gradient);
  opacity: 0.8;
}

.hero-section h1 {
  font-size: 3.5rem;
  font-weight: 800;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  margin-bottom: 1.5rem;
}

.hero-section h2 {
  font-size: 2rem;
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  margin-bottom: 2rem;
}

.hero-section p.lead {
  font-size: 1.25rem;
  max-width: 700px;
  margin: 0 auto 2.5rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-section .btn-group {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Particles Container */
.particles-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* History Section Timeline */
.timeline {
  position: relative;
  padding: 0;
  margin: 0;
  list-style: none;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  background: var(--primary-color);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 4rem;
  display: flex;
  align-items: flex-start;
}

.timeline-marker {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary-color);
  border: 4px solid var(--bg-dark);
  z-index: 2;
}

.timeline-content {
  width: calc(50% - 40px);
  padding: 2rem;
  background: var(--bg-lighter);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-md);
  margin-left: auto;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-left: 0;
  margin-right: auto;
}

.timeline-content h3 {
  margin-top: 0;
  color: var(--primary-color);
}

.timeline-content .image-container {
  margin-top: 1.5rem;
  overflow: hidden;
  border-radius: var(--border-radius-sm);
}

.timeline-content img {
  width: 100%;
  transition: transform var(--transition-medium);
}

.timeline-content:hover img {
  transform: scale(1.05);
}

/* Webinars Section */
.webinars-section {
  background: var(--gradient-dark);
}

.webinar-card {
  background: var(--card-bg);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.webinar-card .card-image {
  height: 240px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

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

.webinar-card .card-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.webinar-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.webinar-card .date {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

/* Resources Section */
.resources-section {
  background-color: var(--bg-dark);
}

.resource-card {
  background: var(--bg-lighter);
  padding: 2rem;
  border-radius: var(--border-radius-md);
  margin-bottom: 2rem;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-fast);
}

.resource-card:hover {
  transform: translateY(-5px);
}

.resource-card h3 {
  margin-top: 0;
  font-size: 1.5rem;
}

.resource-card h3 a {
  color: var(--primary-color);
  transition: color var(--transition-fast);
}

.resource-card h3 a:hover {
  color: var(--primary-light);
}

.resource-card p {
  margin-bottom: 0;
}

/* Blog Section */
.blog-section {
  position: relative;
}

.blog-card {
  background: var(--card-bg);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-fast);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog-card:hover {
  transform: translateY(-10px);
}

.blog-card .card-image {
  height: 220px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

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

.blog-card .card-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.blog-card .card-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
}

.blog-card .date {
  color: var(--text-muted);
}

.blog-card .category {
  color: var(--primary-color);
  font-weight: 600;
}

.blog-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.blog-card p {
  flex-grow: 1;
  margin-bottom: 1.5rem;
}

.blog-card .btn-link {
  align-self: flex-start;
  margin-top: auto;
}

/* Press Section */
.press-section {
  background-color: var(--bg-dark);
}

.press-card {
  background: var(--bg-lighter);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 2rem;
  transition: transform var(--transition-fast);
}

.press-card:hover {
  transform: translateY(-5px);
}

.press-content {
  padding: 2rem;
  display: flex;
  gap: 2rem;
}

.press-logo {
  flex: 0 0 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.press-logo img {
  max-width: 100%;
  height: auto;
  filter: brightness(0.9);
  transition: filter var(--transition-fast);
}

.press-card:hover .press-logo img {
  filter: brightness(1.1);
}

.press-text {
  flex: 1;
}

.press-text h3 {
  font-size: 1.5rem;
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.press-text .press-date {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.press-text p {
  margin-bottom: 1.5rem;
}

/* Contact Section */
.contact-section {
  position: relative;
  overflow: hidden;
}

.contact-info {
  padding-right: 2rem;
}

.contact-details {
  margin-top: 2rem;
}

.contact-item {
  display: flex;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}

.contact-item i {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-right: 1rem;
  flex-shrink: 0;
}

.contact-item h4 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.contact-item p {
  margin-bottom: 0;
}

.contact-form-container {
  background: var(--bg-lighter);
  padding: 2.5rem;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-lg);
}

.contact-form-container h3 {
  margin-top: 0;
  margin-bottom: 1.5rem;
  text-align: center;
}

.contact-form .form-control,
.contact-form .form-select {
  margin-bottom: 1rem;
}

/* Footer */
.footer {
  background-color: var(--bg-darker);
  padding: 5rem 0 2rem;
  position: relative;
}

.footer h4 {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
}

.footer h5 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

.footer p {
  color: var(--text-muted);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

.footer-links a {
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

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

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.social-links a {
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

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

.newsletter-form .input-group {
  box-shadow: var(--shadow-md);
  border-radius: var(--border-radius-md);
  overflow: hidden;
}

.footer-legal {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.footer-legal a {
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.footer-legal a:hover {
  color: var(--primary-color);
}

.separator {
  color: var(--text-muted);
}

hr {
  border-color: var(--border-color);
  opacity: 0.2;
}

/* Cookie Consent */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  display: none;
}

.cookie-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  max-width: 1280px;
  margin: 0 auto;
}

.cookie-content p {
  margin: 0;
  padding-right: 2rem;
}

.cookie-content button {
  white-space: nowrap;
}

/* Success Page */
.success-page {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  text-align: center;
  padding: 2rem;
  background: var(--bg-dark);
}

.success-icon {
  font-size: 4rem;
  color: var(--success-color);
  margin-bottom: 2rem;
}

.success-page h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.success-page p {
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* Terms & Privacy Pages */
.terms-page, .privacy-page {
  padding-top: 100px;
  padding-bottom: 5rem;
  background-color: var(--bg-dark);
}

.terms-page h1, .privacy-page h1 {
  margin-bottom: 2rem;
}

.terms-content, .privacy-content {
  background: var(--bg-lighter);
  padding: 2.5rem;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-md);
}

.terms-content h2, .privacy-content h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 1.75rem;
  color: var(--primary-color);
}

.terms-content p, .privacy-content p {
  margin-bottom: 1.5rem;
}

.terms-content ul, .privacy-content ul {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.terms-content li, .privacy-content li {
  margin-bottom: 0.5rem;
}

/* Parallax Effect */
.parallax-bg {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* Media Queries */
@media (max-width: 1199.98px) {
  .section-header h2 {
    font-size: 2.25rem;
  }
  
  .hero-section h1 {
    font-size: 3rem;
  }
  
  .hero-section h2 {
    font-size: 1.75rem;
  }
}

@media (max-width: 991.98px) {
  section {
    padding: 4rem 0;
  }
  
  .timeline::before {
    left: 30px;
  }
  
  .timeline-marker {
    left: 30px;
  }
  
  .timeline-content {
    width: calc(100% - 80px);
    margin-left: 80px !important;
  }
  
  .press-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
  }
  
  .contact-info {
    padding-right: 0;
    margin-bottom: 3rem;
  }
}

@media (max-width: 767.98px) {
  section {
    padding: 3rem 0;
  }
  
  .section-header {
    margin-bottom: 3rem;
  }
  
  .section-header h2 {
    font-size: 2rem;
  }
  
  .hero-section h1 {
    font-size: 2.5rem;
  }
  
  .hero-section h2 {
    font-size: 1.5rem;
  }
  
  .cookie-content {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem;
  }
  
  .cookie-content p {
    padding-right: 0;
    margin-bottom: 1rem;
  }
}

@media (max-width: 575.98px) {
  .timeline-content {
    padding: 1.5rem;
  }
  
  .press-logo {
    flex: 0 0 120px;
  }
  
  .contact-form-container {
    padding: 1.5rem;
  }
  
  .hero-section .btn-group {
    flex-direction: column;
    gap: 1rem;
  }
  
  .hero-section .btn {
    width: 100%;
  }
}

/* Animation Keyframes */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

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

/* Additional Styles for Card Images */
.card-image {
  width: 100%;
  height: 240px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

/* About, Privacy and Terms pages */
.about-page, .privacy-page, .terms-page, .contacts-page {
  padding-top: 100px;
  padding-bottom: 5rem;
}

.about-hero, .privacy-hero, .terms-hero, .contacts-hero {
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  position: relative;
  margin-bottom: 3rem;
}

.about-hero::before, .privacy-hero::before, .terms-hero::before, .contacts-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--overlay-gradient);
}

.about-hero h1, .privacy-hero h1, .terms-hero h1, .contacts-hero h1 {
  position: relative;
  z-index: 1;
  text-align: center;
  font-size: 3rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.about-content, .privacy-content, .terms-content, .contacts-content {
  background: var(--bg-lighter);
  padding: 2.5rem;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-md);
}

/* Image container styling */
.image-container {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: var(--border-radius-md);
  margin: 1.5rem 0;
}

.image-container img {
  width: 100%;
  transition: transform var(--transition-medium);
}

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