:root {
  --primary: #0d1b2a;
  --secondary: #1b263b;
  --accent: #43b0f1;
  --accent-secondary: #7209b7;
  --background: #121212;
  --text-primary: #ffffff;
  --text-secondary: #e0e0e0;
  --gradient-start: #1b263b;
  --gradient-end: #0d1b2a;
  --button-gradient: linear-gradient(135deg, #43b0f1, #7209b7);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "DM Sans", sans-serif;
  background-color: var(--background);
  color: var(--text-primary);
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  margin-bottom: 1.5rem;
}

p {
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--accent-secondary);
}

option {
  color: var(--primary);
}

.accordion-body {
  color: var(--text-primary);
}

.btn {
  padding: 12px 28px;
  border-radius: 30px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  border: none;
}

.btn-primary {
  background: var(--button-gradient);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(67, 176, 241, 0.2);
  color: white;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
}

.btn-outline:hover {
  background: var(--accent);
  color: white;
}

.navbar {
  padding: 20px 0;
  transition: all 0.3s ease;
}

.navbar-brand img {
  max-height: 44px;
  width: auto;
  object-fit: contain;
}

.footer-logo img {
  max-height: 44px;
  width: auto;
  object-fit: contain;
}

.navbar-toggler {
  border: none;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-nav .nav-link {
  color: var(--text-primary);
  font-weight: 500;
  padding: 10px 15px;
  position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--accent);
}

.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  background: var(--accent);
  bottom: 0;
  left: 15px;
  transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: calc(100% - 30px);
}

.diagonal-section {
  position: relative;
  padding: 120px 0;
  margin: 40px 0;
  overflow: hidden;
}

.diagonal-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: inherit;
  transform: skewY(-3deg);
  transform-origin: 100% 0;
  z-index: -1;
}

.diagonal-section::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: inherit;
  transform: skewY(3deg);
  transform-origin: 0 100%;
  z-index: -1;
}

.gradient-bg {
  background: linear-gradient(
    135deg,
    var(--gradient-start),
    var(--gradient-end)
  );
}

.mesh-bg-1 {
  background:
    radial-gradient(
      circle at 20% 30%,
      rgba(67, 176, 241, 0.3),
      transparent 70%
    ),
    radial-gradient(circle at 80% 70%, rgba(114, 9, 183, 0.3), transparent 70%);
}

.mesh-bg-2 {
  background:
    radial-gradient(
      circle at 80% 10%,
      rgba(67, 176, 241, 0.3),
      transparent 70%
    ),
    radial-gradient(circle at 20% 90%, rgba(114, 9, 183, 0.3), transparent 70%);
}

.hero-section {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
}

.hero-content p {
  font-size: 1.25rem;
  max-width: 600px;
  margin-bottom: 2rem;
}

.hero-image {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 0;
  clip-path: polygon(20% 0, 100% 0, 100% 100%, 0% 100%);
}

.section-header {
  margin-bottom: 4rem;
  text-align: center;
}

.section-header h2 {
  font-size: 2.5rem;
  position: relative;
  display: inline-block;
  margin-bottom: 1rem;
}

.section-header h2::after {
  content: "";
  position: absolute;
  width: 80px;
  height: 3px;
  background: var(--accent);
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}

.section-header p {
  max-width: 700px;
  margin: 0 auto;
}

.feature-card {
  background: rgba(27, 38, 59, 0.5);
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 30px;
  transition: all 0.3s ease;
  height: 100%;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(67, 176, 241, 0.1);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  border-color: rgba(67, 176, 241, 0.3);
}

.feature-card i {
  font-size: 2.5rem;
  margin-bottom: 20px;
  background: var(--button-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.course-card {
  background: rgba(27, 38, 59, 0.5);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 30px;
  transition: all 0.3s ease;
  height: 100%;
  border: 1px solid rgba(67, 176, 241, 0.1);
}

.course-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  border-color: rgba(67, 176, 241, 0.3);
}

.course-image {
  height: 200px;
  background-size: cover;
  background-position: center;
}

.course-content {
  padding: 25px;
}

.course-content h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.course-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.case-study {
  background: rgba(27, 38, 59, 0.5);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 30px;
  transition: all 0.3s ease;
  height: 100%;
  border: 1px solid rgba(67, 176, 241, 0.1);
}

.case-study:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  border-color: rgba(67, 176, 241, 0.3);
}

.case-image {
  height: 250px;
  background-size: cover;
  background-position: center;
}

.case-content {
  padding: 25px;
}

.case-content h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.testimonial {
  text-align: center;
  padding: 30px;
  margin-bottom: 30px;
}

.testimonial-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 20px;
  border: 3px solid var(--accent);
}

.testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-content {
  position: relative;
  padding: 20px;
  font-style: italic;
}

.testimonial-content::before {
  content: "";
  position: absolute;
  top: -20px;
  left: 0;
  font-size: 3rem;
  color: var(--accent);
  opacity: 0.3;
}

.testimonial-content::after {
  content: "";
  position: absolute;
  bottom: -50px;
  right: 0;
  font-size: 3rem;
  color: var(--accent);
  opacity: 0.3;
}

.testimonial-author {
  margin-top: 20px;
}

.testimonial-author h4 {
  margin-bottom: 5px;
}

.testimonial-author p {
  margin-bottom: 0;
  color: var(--accent);
}

.contact-info {
  background: rgba(27, 38, 59, 0.5);
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 30px;
  height: 100%;
  border: 1px solid rgba(67, 176, 241, 0.1);
}

.contact-info i {
  font-size: 2rem;
  margin-bottom: 15px;
  color: var(--accent);
}

.contact-info h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.contact-form {
  background: rgba(27, 38, 59, 0.5);
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 30px;
  border: 1px solid rgba(67, 176, 241, 0.1);
}

.form-control {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
  padding: 15px;
  border-radius: 5px;
  margin-bottom: 20px;
}

.form-control:focus {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: var(--accent);
  box-shadow: none;
  color: var(--text-primary);
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.form-check-input {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.form-check-input:checked {
  background-color: var(--accent);
  border-color: var(--accent);
}

.form-check-label {
  color: var(--text-secondary);
}

.map-container {
  height: 400px;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 30px;
}

footer {
  background-color: var(--primary);
  padding: 50px 0 20px;
}

.footer-logo {
  margin-bottom: 20px;
}

.footer-logo img {
  height: 40px;
}

.footer-links h4 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.footer-links h4::after {
  content: "";
  position: absolute;
  width: 40px;
  height: 2px;
  background: var(--accent);
  bottom: -8px;
  left: 0;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links ul li a {
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.footer-links ul li a:hover {
  color: var(--accent);
  padding-left: 5px;
}

.footer-bottom {
  margin-top: 50px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: var(--text-secondary);
}

.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(13, 27, 42, 0.95);
  padding: 20px;
  z-index: 9999;
  display: none;
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(67, 176, 241, 0.3);
}

.cookie-consent.show {
  display: block;
}

.cookie-consent-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.cookie-text {
  flex: 1;
  margin-right: 20px;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
  flex-direction: column;
}

.cookie-settings-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.cookie-settings-modal.show {
  display: flex;
}

.cookie-settings-content {
  background-color: var(--secondary);
  border-radius: 10px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 30px;
  position: relative;
}

.cookie-settings-close {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 1.5rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s ease;
}

.cookie-settings-close:hover {
  color: var(--accent);
}

.cookie-settings-header {
  margin-bottom: 20px;
}

.cookie-category {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-category:last-child {
  border-bottom: none;
}

.cookie-category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.cookie-category-title {
  font-weight: 700;
  font-size: 1.1rem;
}

.cookie-switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 30px;
}

.cookie-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.2);
  transition: 0.4s;
  border-radius: 30px;
}

.cookie-slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .cookie-slider {
  background-color: var(--accent);
}

input:focus + .cookie-slider {
  box-shadow: 0 0 1px var(--accent);
}

input:checked + .cookie-slider:before {
  transform: translateX(30px);
}

.cookie-category-description {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.cookie-settings-actions {
  margin-top: 30px;
  display: flex;
  justify-content: space-between;
}

.thanks-container {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
}

.thanks-content {
  max-width: 600px;
}

.thanks-icon {
  font-size: 5rem;
  color: var(--accent);
  margin-bottom: 30px;
}

.thanks-content h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.thanks-content p {
  margin-bottom: 30px;
}

/* Media Queries */
@media (max-width: 991.98px) {
  .hero-section {
    height: auto;
    padding: 100px 0;
  }

  .hero-image {
    position: relative;
    width: 100%;
    height: 300px;
    clip-path: none;
    margin-top: 30px;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .diagonal-section {
    padding: 80px 0;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .navbar-expand-lg .navbar-toggler {
    display: block !important;
  }

  .navbar-expand-lg .navbar-collapse {
    background-color: rgba(13, 27, 42, 0.95);
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
    display: none !important;
    width: 100%;
  }

  .navbar-expand-lg .navbar-collapse.show {
    display: block !important;
  }

  .navbar-expand-lg .navbar-nav {
    width: 100%;
    flex-direction: column;
  }

  .navbar-expand-lg .navbar-nav .nav-item {
    width: 100%;
  }

  .navbar-expand-lg .navbar-nav .nav-link {
    padding: 10px 0;
  }

  .navbar-expand-lg .navbar-nav .nav-link::after {
    display: none;
  }
}

@media (max-width: 767.98px) {
  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .section-header h2 {
    font-size: 1.8rem;
  }

  .diagonal-section {
    padding: 60px 0;
  }

  .feature-card,
  .course-card,
  .case-study,
  .contact-info,
  .contact-form {
    margin-bottom: 20px;
  }

  .cookie-consent-content {
    flex-direction: column;
  }

  .cookie-text {
    margin-right: 0;
    margin-bottom: 20px;
  }

  .cookie-buttons {
    width: 100%;
    justify-content: space-between;
  }
}

/* Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 1s ease forwards;
}

.iti {
  width: 100%;
}

.iti__flag {
  background-image: url("../images/flags_1.png");
}

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .iti__flag {
    background-image: url("../images/flags%402x_1.png");
  }
}
