/* Base Styles and Variables */
:root {
  --primary-dark: #121820;
  --secondary-dark: #1E2A3A;
  --accent-1: #E3964F;
  --accent-2: #5A82B4;
  --accent-3: #D16B5E;
  --text-light: #F2F4F8;
  --text-muted: #A8B2C2;
  --border-light: #2C3A4E;
  --gradient-dark: linear-gradient(135deg, var(--primary-dark), var(--secondary-dark));
  --gradient-accent: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  --shadow-soft: 0 8px 30px rgba(0, 0, 0, 0.3);
  --shadow-strong: 0 12px 40px rgba(0, 0, 0, 0.5);
  --transition-normal: all 0.3s ease;
  --transition-slow: all 0.5s ease;
}

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

html, body {
  font-family: 'Open Sans', sans-serif;
  background-color: var(--primary-dark);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.3;
}

h1 {
  font-size: 2rem;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 1.75rem;
  position: relative;
  margin-bottom: 2rem;
}

h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -10px;
  height: 3px;
  width: 60px;
  background: var(--accent-1);
}

h3 {
  font-size: 1.5rem;
  color: var(--accent-2);
}

p {
  margin-bottom: 1.5rem;
  font-weight: 300;
}

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

a:hover {
  color: var(--accent-1);
}

img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
}

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

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(18, 24, 32, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition-normal);
}

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

.logo {
  height: 40px;
  width: auto;
}

.nav-toggle {
  display: block;
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 1001;
}

.nav-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  height: 100vh;
  background-color: var(--secondary-dark);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: var(--transition-normal);
  z-index: 1000;
}

.nav-menu.active {
  right: 0;
}

.nav-item {
  margin: 1rem 0;
  font-size: 1.2rem;
  position: relative;
}

.nav-link {
  color: var(--text-light);
  font-weight: 600;
  padding: 0.5rem 1rem;
  transition: var(--transition-normal);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1rem;
  width: 0;
  height: 2px;
  background-color: var(--accent-1);
  transition: var(--transition-normal);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: calc(100% - 2rem);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  padding-top: 6rem;
  display: flex;
  align-items: center;
  overflow: hidden;
}

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

.hero-background::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(90, 130, 180, 0.1) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(227, 150, 79, 0.1) 0%, transparent 40%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  padding: 2rem;
  margin-left: auto;
  margin-right: auto;
}

.hero-title {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s forwards 0.3s;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s forwards 0.5s;
}

.hero-cta {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background: var(--gradient-accent);
  color: var(--text-light);
  font-weight: 600;
  border-radius: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: var(--shadow-soft);
  transition: var(--transition-normal);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s forwards 0.7s;
}

.hero-cta:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-strong);
}

.hero-image {
  position: relative;
  margin-top: 3rem;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-strong);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s forwards 0.9s;
}

/* Feature Section */
.feature-section {
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-top: 3rem;
}

.feature-card {
  background-color: var(--secondary-dark);
  border-radius: 0.5rem;
  padding: 2rem;
  box-shadow: var(--shadow-soft);
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-strong);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--gradient-accent);
}

.feature-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 30%;
  height: 30%;
  background-image: radial-gradient(circle at bottom right, rgba(227, 150, 79, 0.1), transparent 70%);
  z-index: -1;
}

.feature-icon {
  font-size: 2.5rem;
  color: var(--accent-1);
  margin-bottom: 1.5rem;
}

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

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

/* Chart Section */
.chart-section {
  padding: 5rem 0;
  background-color: var(--secondary-dark);
  position: relative;
  overflow: hidden;
}

.chart-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 10% 10%, rgba(90, 130, 180, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 90% 90%, rgba(227, 150, 79, 0.1) 0%, transparent 50%);
  z-index: 0;
}

.chart-container {
  position: relative;
  z-index: 1;
  background-color: var(--primary-dark);
  border-radius: 0.5rem;
  padding: 2rem;
  box-shadow: var(--shadow-soft);
  margin-top: 2rem;
  border: 1px solid var(--border-light);
}

.chart-title {
  text-align: center;
  margin-bottom: 2rem;
}

.canvas-wrapper {
  width: 100%;
  height: 300px;
}

/* News Section */
.news-section {
  padding: 5rem 0;
}

.news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

.news-card {
  background-color: var(--secondary-dark);
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-strong);
}

.news-image {
  height: 200px;
  object-fit: cover;
}

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

.news-date {
  color: var(--accent-2);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.news-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.news-excerpt {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.news-link {
  align-self: flex-start;
  padding: 0.5rem 1rem;
  background-color: transparent;
  color: var(--accent-1);
  border: 1px solid var(--accent-1);
  border-radius: 0.25rem;
  transition: var(--transition-normal);
}

.news-link:hover {
  background-color: var(--accent-1);
  color: var(--primary-dark);
}

/* Contact Form */
.contact-section {
  padding: 5rem 0;
  background-color: var(--secondary-dark);
  position: relative;
  overflow: hidden;
}

.contact-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 90% 10%, rgba(227, 150, 79, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 10% 90%, rgba(90, 130, 180, 0.1) 0%, transparent 50%);
  z-index: 0;
}

.contact-container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.contact-info {
  flex: 1;
}

.contact-form {
  flex: 1;
  background-color: var(--primary-dark);
  border-radius: 0.5rem;
  padding: 2rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-light);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}

.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  background-color: var(--secondary-dark);
  border: 1px solid var(--border-light);
  border-radius: 0.25rem;
  color: var(--text-light);
  transition: var(--transition-normal);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(90, 130, 180, 0.2);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

.submit-btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background: var(--gradient-accent);
  color: var(--text-light);
  font-weight: 600;
  border: none;
  border-radius: 0.25rem;
  cursor: pointer;
  transition: var(--transition-normal);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-strong);
}

/* Footer */
.footer {
  background-color: var(--primary-dark);
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--border-light);
}

.footer-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.footer-logo {
  margin-bottom: 1rem;
}

.footer-about {
  margin-bottom: 2rem;
}

.footer-title {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.footer-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  height: 2px;
  width: 40px;
  background: var(--accent-1);
}

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

.footer-link {
  margin-bottom: 0.75rem;
}

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

.footer-contact-icon {
  margin-right: 1rem;
  color: var(--accent-1);
  font-size: 1.2rem;
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-light);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Cookie Consent */
.cookie-container {
  position: fixed;
  bottom: -100%;
  left: 0;
  right: 0;
  background-color: var(--secondary-dark);
  padding: 2rem;
  box-shadow: var(--shadow-strong);
  z-index: 1000;
  transition: bottom 0.5s ease;
  border-top: 1px solid var(--border-light);
}

.cookie-container.active {
  bottom: 0;
}

.cookie-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.cookie-title {
  font-size: 1.25rem;
  margin-bottom: 0;
}

.cookie-close {
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  font-size: 1.5rem;
}

.cookie-text {
  margin-bottom: 1.5rem;
}

.cookie-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.cookie-btn {
  padding: 0.7rem 1.2rem;
  border-radius: 0.25rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-normal);
}

.accept-all-btn {
  background-color: var(--accent-1);
  color: var(--primary-dark);
  border: none;
}

.accept-all-btn:hover {
  background-color: #c47d37;
}

.reject-all-btn {
  background-color: transparent;
  color: var(--text-light);
  border: 1px solid var(--text-muted);
}

.reject-all-btn:hover {
  border-color: var(--text-light);
}

.settings-btn {
  background-color: transparent;
  color: var(--accent-2);
  border: 1px solid var(--accent-2);
}

.settings-btn:hover {
  background-color: rgba(90, 130, 180, 0.1);
}

.cookie-settings-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.cookie-settings-modal.active {
  opacity: 1;
  visibility: visible;
}

.cookie-settings-content {
  background-color: var(--secondary-dark);
  border-radius: 0.5rem;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
  box-shadow: var(--shadow-strong);
}

.cookie-settings-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-light);
}

.cookie-settings-title {
  font-size: 1.5rem;
  margin-bottom: 0;
}

.cookie-settings-close {
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  font-size: 1.5rem;
}

.cookie-settings-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-light);
}

.cookie-settings-tab {
  padding: 0.75rem 1rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-normal);
  font-weight: 600;
}

.cookie-settings-tab.active {
  color: var(--accent-1);
  border-bottom: 2px solid var(--accent-1);
}

.cookie-settings-panel {
  display: none;
}

.cookie-settings-panel.active {
  display: block;
}

.cookie-settings-item {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-light);
}

.cookie-settings-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.cookie-settings-item-title {
  font-size: 1.1rem;
  margin-bottom: 0;
}

.cookie-toggle {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 30px;
}

.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--border-light);
  transition: var(--transition-normal);
  border-radius: 30px;
}

.cookie-toggle-slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 4px;
  bottom: 4px;
  background-color: var(--text-light);
  transition: var(--transition-normal);
  border-radius: 50%;
}

.cookie-toggle input:checked + .cookie-toggle-slider {
  background-color: var(--accent-1);
}

.cookie-toggle input:checked + .cookie-toggle-slider:before {
  transform: translateX(30px);
}

.cookie-settings-item-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.cookie-settings-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 2rem;
}

.cookie-save-btn {
  padding: 0.7rem 1.2rem;
  background-color: var(--accent-1);
  color: var(--primary-dark);
  border: none;
  border-radius: 0.25rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-normal);
}

.cookie-save-btn:hover {
  background-color: #c47d37;
}

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

/* Utility Classes */
.text-accent-1 {
  color: var(--accent-1);
}

.text-accent-2 {
  color: var(--accent-2);
}

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

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

.text-center {
  text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

/* Media Queries */
@media (min-width: 576px) {
  h1 {
    font-size: 2.5rem;
  }
  
  .hero-title {
    font-size: 3rem;
  }
  
  .hero-subtitle {
    font-size: 1.5rem;
  }
}

@media (min-width: 768px) {
  h1 {
    font-size: 3rem;
  }
  
  h2 {
    font-size: 2.25rem;
  }
  
  h3 {
    font-size: 1.75rem;
  }
  
  .nav-toggle {
    display: none;
  }
  
  .nav-menu {
    position: static;
    height: auto;
    width: auto;
    background: none;
    display: flex;
    flex-direction: row;
  }
  
  .nav-item {
    margin: 0 1rem;
  }
  
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .contact-container {
    flex-direction: row;
  }
  
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .cookie-settings-tabs {
    display: flex;
    gap: 1rem;
  }
}

@media (min-width: 992px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .news-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .footer-container {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
  
  .hero-content {
    margin-left: 0;
    padding-left: 0;
  }
}

/* International Telephone Input Custom Styles */
.iti {
  width: 100%;
}

.iti__flag-container {
  height: 100%;
}

.iti__selected-flag {
  background-color: var(--secondary-dark);
  border-radius: 0.25rem 0 0 0.25rem;
}

.iti__country-list {
  background-color: var(--secondary-dark);
  color: var(--text-light);
  border: 1px solid var(--border-light);
}

.iti__country.iti__highlight {
  background-color: var(--primary-dark);
}

.iti__country-name, .iti__dial-code {
  color: var(--text-light);
}

/* Charts Custom Styling */
canvas {
  width: 100% !important;
  height: 100% !important;
}

/* Custom pages specific styles */
.page-header {
  padding: 10rem 0 5rem;
  background-color: var(--secondary-dark);
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 80% 20%, rgba(227, 150, 79, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(90, 130, 180, 0.1) 0%, transparent 50%);
  z-index: 0;
}

.page-title {
  position: relative;
  z-index: 1;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.page-description {
  position: relative;
  z-index: 1;
  color: var(--text-muted);
  max-width: 800px;
  margin: 0 auto;
}

.info-section {
  padding: 5rem 0;
}

.info-block {
  margin-bottom: 4rem;
}

.info-title {
  margin-bottom: 1.5rem;
}

.info-content {
  background-color: var(--secondary-dark);
  border-radius: 0.5rem;
  padding: 2rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-light);
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.info-card {
  background-color: var(--primary-dark);
  border-radius: 0.5rem;
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-light);
  transition: var(--transition-normal);
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-strong);
}

.about-section {
  padding: 5rem 0;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.about-text {
  flex: 1;
}

.about-image {
  flex: 1;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: var(--shadow-strong);
}

.team-section {
  padding: 5rem 0;
  background-color: var(--secondary-dark);
}

.thanks-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
}

.thanks-icon {
  font-size: 5rem;
  color: var(--accent-1);
  margin-bottom: 2rem;
}

.thanks-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.thanks-text {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 2rem;
}

.back-btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background-color: transparent;
  color: var(--accent-2);
  border: 1px solid var(--accent-2);
  border-radius: 0.25rem;
  transition: var(--transition-normal);
  font-weight: 600;
}

.back-btn:hover {
  background-color: var(--accent-2);
  color: var(--primary-dark);
}

@media (min-width: 768px) {
  .info-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .about-content {
    flex-direction: row;
  }
  
  .page-title {
    font-size: 3.5rem;
  }
  
  .thanks-title {
    font-size: 3.5rem;
  }
}

@media (min-width: 992px) {
  .info-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}