/* style.css */

/* --- 1. CSS Variables & Global Styles --- */
:root {
  /* Color Palette (Complementary: Blue/Purple & Yellow/Orange) */
  --primary-color: #4a00e0;
  --secondary-color: #ffc107;
  --gradient-primary: linear-gradient(45deg, #8e2de2, #4a00e0);
  --gradient-accent: linear-gradient(45deg, #fdb813, #ffc107);

  /* Backgrounds & Text */
  --background-dark: #0f0f1a;
  --background-light: #f4f7fc;
  --surface-dark: #1a1a2e;
  --border-color: rgba(255, 255, 255, 0.1);

  --text-light: #f0f0f5;
  --text-dark: #222222;
  --text-muted: #a0a0b5;

  /* Fonts */
  --font-heading: "Montserrat", sans-serif;
  --font-body: "Merriweather", serif;

  /* Transitions */
  --transition-speed: 0.3s ease;
}

html {
  scroll-behavior: smooth;
  background-color: var(--background-dark);
}

body {
  font-family: var(--font-body);
  color: var(--text-light);
  background-color: var(--background-dark);
  line-height: 1.7;
  font-size: 1.1rem;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6,
.title,
.subtitle {
  font-family: var(--font-heading);
  color: var(--text-light);
  font-weight: 700;
}

.title.section-title {
  color: var(--text-light);
  margin-bottom: 3rem !important;
  position: relative;
  display: inline-block;
  padding-bottom: 1rem;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.title.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--gradient-accent);
  border-radius: 2px;
}

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

.has-background-light,
.has-background-light .title,
.has-background-light .subtitle,
.has-background-light p,
.has-background-light .label,
.has-background-light .heading,
.has-background-light .content {
  color: var(--text-dark) !important;
}

.has-background-light .title.section-title {
  text-shadow: none;
}

a {
  color: var(--secondary-color);
  transition: var(--transition-speed);
}

a:hover {
  color: #fff;
  filter: brightness(1.2);
}

.section {
  padding: 5rem 1.5rem;
}

/* --- 2. Animations --- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.parallax-background {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
}

/* Overlay for readability */
.parallax-background::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    0deg,
    rgba(15, 15, 26, 0.8) 0%,
    rgba(15, 15, 26, 0.4) 100%
  );
  z-index: 1;
}

.hero-body {
  position: relative;
  z-index: 2;
}

/* --- 3. Header & Navigation --- */
.navbar.is-fixed-top {
  background: rgba(15, 15, 26, 0.8) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
}

.futuristic-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: #fff !important;
  letter-spacing: 1px;
}

.navbar-item {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-light) !important;
}

.navbar-item:hover,
.navbar-item.is-active {
  background-color: transparent !important;
  color: var(--secondary-color) !important;
}

.navbar-burger {
  color: var(--text-light);
}

@media screen and (max-width: 1023px) {
  .navbar-menu {
    background: var(--surface-dark);
    padding: 0.5rem 0;
  }
}

/* --- 4. Global UI Components (Buttons, Forms, Cards) --- */

/* Buttons */
.button.is-primary {
  background: var(--gradient-accent);
  border: none;
  color: var(--text-dark) !important;
  font-family: var(--font-heading);
  font-weight: 700;
  transition: var(--transition-speed);
}

.button.is-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(255, 193, 7, 0.2);
}

.button.is-primary.is-outlined {
  background: transparent;
  border: 2px solid var(--secondary-color);
  color: var(--secondary-color) !important;
}

.button.is-primary.is-outlined:hover {
  background: var(--secondary-color);
  color: var(--text-dark) !important;
  transform: none;
  box-shadow: none;
}

/* Forms */
.futuristic-input,
.futuristic-textarea,
.input,
.textarea {
  background-color: var(--surface-dark);
  border: 1px solid var(--border-color);
  color: var(--text-light);
  padding: 1.5rem 1rem;
  transition: var(--transition-speed);
  border-radius: 8px;
}

.futuristic-input::placeholder,
.futuristic-textarea::placeholder,
.input::placeholder,
.textarea::placeholder {
  color: var(--text-muted);
}

.futuristic-input:focus,
.futuristic-textarea:focus,
.input:focus,
.textarea:focus {
  background-color: var(--background-dark);
  border-color: var(--secondary-color);
  box-shadow: 0 0 10px rgba(255, 193, 7, 0.3);
  outline: none;
}

.contact-form .label {
  color: var(--text-light);
  font-weight: 600;
}

/* Cards */
.card {
  background-color: var(--surface-dark);
  border-radius: 8px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center; /* Center content horizontally */
  text-align: center; /* Center text */
  transition: var(--transition-speed);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.card .card-image {
  width: 100%;
}

.card .card-image img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.card .card-content {
  flex-grow: 1;
  color: #fff !important;
  width: 100%; /* Ensure content area takes full width */
}

.card .card-content .title,
.card .card-content .subtitle, .card .content {
  color: #fff !important;
}

.card .card-content .futuristic-subtitle {
  color: var(--secondary-color);
  font-weight: 600;
}

/* --- 5. Section Specific Styles --- */

/* Hero Section */
#hero .title {
  font-size: 3.5rem;
  font-weight: 700;
  color: #ffffff !important;
}

#hero .subtitle {
  font-size: 1.5rem;
  opacity: 0.9;
  color: #ffffff !important;
}

#hero .button {
  margin-top: 2rem;
}

/* Statistics Section */
.stat-widget {
  padding: 2rem;
  background-color: var(--surface-dark);
  border-radius: 8px;
  border: 1px solid var(--border-color);
  transition: var(--transition-speed);
}
.has-background-light .stat-widget {
  background-color: #fff;
  border: 1px solid #dbdbdb;
}

.stat-widget .stat-icon {
  font-size: 3rem;
  color: var(--secondary-color);
  display: block;
  margin-bottom: 1rem;
}

.stat-widget .stat-number {
  font-size: 4rem;
  color: var(--secondary-color);
  font-weight: 700;
}

.has-background-light .stat-widget .stat-number {
  color: var(--primary-color);
}
.has-background-light .stat-widget .stat-icon {
  color: var(--primary-color);
}

.stat-widget .heading {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* About Section */
#about .image-container {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
#about .content {
  text-align: left;
}

/* Services Section (Tabs) */
.tabs.is-boxed li.is-active a {
  background-color: var(--secondary-color);
  color: var(--text-dark);
  border-color: var(--secondary-color);
  border-bottom-color: var(--secondary-color) !important;
}
.tabs.is-boxed li a {
  border-color: var(--border-color);
  color: var(--text-light);
}
.has-background-light .tabs.is-boxed li a {
  border-color: #dbdbdb;
  color: var(--text-dark);
}
.tabs.is-boxed li a:hover {
  background-color: var(--surface-dark);
  border-color: var(--border-color);
}
.has-background-light .tabs.is-boxed li a:hover {
  background-color: #eee;
  border-color: #ccc;
}
.tab-content {
  padding-top: 2rem;
}

/* Research Section */
.resource-list .resource-item {
  background-color: var(--surface-dark);
  border-left: 4px solid var(--secondary-color);
  margin-bottom: 1.5rem;
  padding: 1.5rem;
  transition: var(--transition-speed);
}
.has-background-light .resource-list .resource-item {
  background-color: #fff;
  border-left-color: var(--primary-color);
}

.resource-list .resource-item:hover {
  background-color: #2a2a45;
}
.has-background-light .resource-list .resource-item:hover {
  background-color: #e8e8e8;
}

.resource-list .resource-item h4 a {
  color: var(--text-light);
  font-weight: 600;
}
.has-background-light .resource-list .resource-item h4 a {
  color: var(--text-dark);
}

.resource-list .resource-item h4 a:hover {
  color: var(--secondary-color);
}
.has-background-light .resource-list .resource-item h4 a:hover {
  color: var(--primary-color);
}
.resource-list .resource-item p {
  color: var(--text-muted);
}
.has-background-light .resource-list .resource-item p {
  color: #7a7a7a;
}

/* Contact Section */
.contact-info .contact-item {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.contact-info .contact-item strong {
  color: var(--secondary-color);
}
.contact-info .contact-item a {
  color: var(--text-light);
}
.contact-info .contact-item a:hover {
  color: var(--secondary-color);
}

.map-container iframe {
  border-radius: 8px;
  filter: invert(90%) hue-rotate(180deg);
}

/* --- 6. Footer --- */
.futuristic-footer {
  background-color: var(--background-dark);
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 3rem 1.5rem 2rem;
}

.futuristic-footer .title {
  color: #fff !important;
}

.futuristic-footer .footer-link {
  color: var(--text-muted);
  padding: 0.5rem 0;
  display: inline-block;
}

.futuristic-footer .footer-link:hover {
  color: var(--secondary-color);
}

/* --- 7. Specific Page Styles --- */

/* Success Page */
body.success-page {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  text-align: center;
  background: var(--gradient-primary);
}

.success-container {
  background: rgba(26, 26, 46, 0.8);
  backdrop-filter: blur(10px);
  padding: 4rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  max-width: 600px;
  margin: 1.5rem;
}

.success-container .icon {
  font-size: 5rem;
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
}

/* Legal Pages (Privacy, Terms, About, Contacts) */
body.legal-page .main-content {
  padding-top: 100px; /* Offset for fixed navbar */
  padding-bottom: 5rem;
}
body.legal-page .main-content h1,
body.legal-page .main-content h2 {
  color: var(--text-light);
}
body.legal-page .main-content p,
body.legal-page .main-content li {
  color: var(--text-muted);
}
body.legal-page .main-content a {
  color: var(--secondary-color);
}

/* --- 8. Media Queries for Responsiveness --- */
@media screen and (max-width: 768px) {
  .section {
    padding: 3rem 1rem;
  }

  #hero .title {
    font-size: 2.5rem;
  }

  #hero .subtitle {
    font-size: 1.2rem;
  }

  .columns.is-vcentered {
    flex-direction: column-reverse;
  }

  .columns.is-vcentered .column:last-child {
    margin-bottom: 2rem;
  }

  .stat-widget {
    margin-bottom: 1rem;
  }
}
