@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --primary-dark: #060c37;
  --primary-dark-rgb: 6, 12, 55;
  --bg-darker: #030720;
  --bg-darker-rgb: 3, 7, 32;
  --primary-teal: #11abba;
  --primary-cyan: #00c0e0;
  --accent-orange: #ff9004;
  --accent-orange-rgb: 255, 144, 4;
  --light-blue: #ade0ec;
  --very-light-blue: #d0f6ff;
  --text-light: #ffffff;
  --text-muted: #a4b3bc;
  --glass-bg: rgba(6, 12, 55, 0.4);
  --glass-border: rgba(17, 171, 186, 0.2);
  --font-title: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --transition-smooth: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  --transition-fast: all 0.3s ease;
}

/* Base Styles & Layout */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  font-family: var(--font-body);
  background-color: var(--bg-darker);
  color: var(--text-light);
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* Scroll Snapping */
.snap-container {
  height: 100vh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
}

section {
  position: relative;
  height: 100vh;
  min-height: 600px;
  width: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 50px;
  z-index: 100;
  background: linear-gradient(to bottom, rgba(3, 7, 32, 0.9) 0%, rgba(3, 7, 32, 0) 100%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition-fast);
}

header.scrolled {
  padding: 12px 50px;
  background: rgba(3, 7, 32, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--glass-border);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
}

.logo-img {
  height: 50px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(17, 171, 186, 0.5));
}

.logo-text {
  font-family: var(--font-title);
  font-weight: 700;
  color: var(--text-light);
  font-size: 1.25rem;
  line-height: 1.2;
}

.logo-text span {
  display: block;
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--primary-teal);
  letter-spacing: 1px;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
  align-items: center;
}

nav a {
  font-family: var(--font-title);
  color: var(--text-light);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition-fast);
  position: relative;
  padding: 5px 0;
}

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

nav a:hover, nav a.active {
  color: var(--primary-teal);
}

nav a:hover::after, nav a.active::after {
  width: 100%;
}

.btn-contact {
  background: linear-gradient(135deg, var(--primary-teal), var(--primary-cyan));
  color: var(--primary-dark) !important;
  font-weight: 700;
  padding: 10px 24px;
  border-radius: 30px;
  border: none;
  box-shadow: 0 4px 15px rgba(0, 192, 224, 0.4);
}

.btn-contact:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 192, 224, 0.6);
  color: var(--primary-dark) !important;
}

.btn-contact::after {
  display: none !important;
}

/* SECTION 1: Video Accordion Hero */
#hero-section {
  display: flex;
  flex-direction: row;
  height: 100vh;
  width: 100%;
  scroll-snap-align: start;
}

.accordion-container {
  display: flex;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.accordion-slide {
  position: relative;
  flex: 1;
  height: 100%;
  overflow: hidden;
  transition: var(--transition-smooth);
  cursor: pointer;
  border-right: 1px solid rgba(17, 171, 186, 0.1);
}

.accordion-slide:last-child {
  border-right: none;
}

.accordion-slide.active {
  flex: 4.5;
  cursor: default;
}

.accordion-slide video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: 1;
  transform: translate(-50%, -50%);
  object-fit: cover;
  transition: var(--transition-smooth);
  filter: saturate(40%) brightness(0.65);
}

.accordion-slide.active video {
  filter: saturate(100%) brightness(0.5);
}

.accordion-slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(3, 7, 32, 0.3) 0%, rgba(3, 7, 32, 0.8) 100%);
  z-index: 2;
  transition: var(--transition-smooth);
}

.accordion-slide.active::before {
  background: radial-gradient(circle, rgba(6, 12, 55, 0.2) 0%, rgba(3, 7, 32, 0.85) 100%);
}

/* Content block in Hero Slide */
.slide-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 60px 40px;
  z-index: 3;
  color: var(--text-light);
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: flex-end;
}

.slide-number {
  font-family: var(--font-title);
  font-size: 3rem;
  font-weight: 700;
  color: rgba(17, 171, 186, 0.3);
  margin-bottom: 20px;
  transition: var(--transition-smooth);
  transform: translateY(0);
}

.accordion-slide.active .slide-number {
  color: var(--primary-teal);
  text-shadow: 0 0 15px rgba(17, 171, 186, 0.6);
  transform: translateY(-10px);
}

.slide-title-collapsed {
  font-family: var(--font-title);
  font-size: 1.8rem;
  font-weight: 700;
  writing-mode: vertical-rl;
  text-transform: uppercase;
  letter-spacing: 2px;
  transform: rotate(180deg);
  white-space: nowrap;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(180deg);
  opacity: 1;
  transition: var(--transition-smooth);
  color: var(--text-light);
}

.accordion-slide.active .slide-title-collapsed {
  opacity: 0;
  transform: translate(-50%, -100%) rotate(180deg);
}

.slide-details {
  max-width: 600px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  pointer-events: none;
}

.accordion-slide.active .slide-details {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  transition-delay: 0.3s;
}

.slide-details h2 {
  font-family: var(--font-title);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.2;
}

.slide-details p {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 25px;
}

.btn-learn-more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--primary-teal);
  text-decoration: none;
  font-weight: 600;
  font-family: var(--font-title);
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition-fast);
}

.btn-learn-more i {
  transition: var(--transition-fast);
}

.btn-learn-more:hover {
  color: var(--text-light);
}

.btn-learn-more:hover i {
  transform: translateX(5px);
}

/* SECTION 2: Blog Section */
#blog-section {
  background: radial-gradient(circle at 10% 20%, rgba(6, 12, 55, 1) 0%, var(--bg-darker) 90%);
  padding: 100px 80px 60px 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.section-header {
  margin-bottom: 40px;
  position: relative;
  z-index: 10;
}

.section-subtitle {
  font-family: var(--font-title);
  font-size: 0.9rem;
  text-transform: uppercase;
  color: var(--primary-teal);
  letter-spacing: 2px;
  font-weight: 700;
  margin-bottom: 8px;
  display: block;
}

.section-title {
  font-family: var(--font-title);
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.section-title span {
  color: var(--primary-teal);
}

/* Custom Swiper/Slider styles for Blog */
.blog-slider-container {
  position: relative;
  width: 100%;
  z-index: 10;
}

.blog-carousel-inner {
  padding: 15px;
}

.blog-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.blog-card:hover {
  transform: translateY(-8px);
  border-color: rgba(17, 171, 186, 0.5);
  box-shadow: 0 12px 30px rgba(17, 171, 186, 0.15);
}

.blog-img-wrap {
  width: 100%;
  height: 240px;
  overflow: hidden;
  position: relative;
}

.blog-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.blog-card:hover .blog-img-wrap img {
  transform: scale(1.08);
}

.blog-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--primary-teal);
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 0.75rem;
  padding: 5px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  font-family: var(--font-title);
}

.blog-body {
  padding: 30px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-date {
  font-size: 0.85rem;
  color: var(--primary-teal);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.blog-card-title {
  font-family: var(--font-title);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.4;
  color: var(--text-light);
  transition: var(--transition-fast);
  text-decoration: none;
}

.blog-card-title:hover {
  color: var(--primary-teal);
}

.blog-excerpt {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-muted);
  margin-bottom: 20px;
  flex-grow: 1;
}

.blog-readmore {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-light);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition-fast);
  margin-top: auto;
}

.blog-readmore:hover {
  color: var(--primary-teal);
}

.blog-readmore i {
  transition: var(--transition-fast);
}

.blog-readmore:hover i {
  transform: translateX(4px);
}

/* Carousel controls customization */
.carousel-control-prev,
.carousel-control-next {
  width: 50px;
  height: 50px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.8;
  transition: var(--transition-fast);
  z-index: 12;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  background: var(--primary-teal);
  border-color: var(--primary-teal);
  opacity: 1;
}

.carousel-control-prev {
  left: -70px;
}

.carousel-control-next {
  right: -70px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 20px;
  height: 20px;
  filter: brightness(1);
}

.carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-control-next:hover .carousel-control-next-icon {
  filter: invert(1) brightness(0.1);
}

/* SECTION 3: Contact & Map Section */
#contact-section {
  background: radial-gradient(circle at 80% 80%, rgba(3, 7, 32, 1) 0%, rgba(6, 12, 55, 1) 100%);
  padding: 100px 80px 40px 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-layout {
  display: flex;
  height: calc(100% - 100px);
  z-index: 10;
}

.contact-col-left {
  flex: 1.2;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.contact-col-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
}

/* Glassmorphism Contact Form */
.contact-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 35px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary-teal);
  margin-bottom: 8px;
  display: block;
}

.form-control {
  background: rgba(3, 7, 32, 0.6);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: var(--text-light);
  padding: 12px 16px;
  transition: var(--transition-fast);
}

.form-control:focus {
  background: rgba(3, 7, 32, 0.8);
  border-color: var(--primary-teal);
  box-shadow: 0 0 10px rgba(17, 171, 186, 0.3);
  color: var(--text-light);
}

textarea.form-control {
  resize: none;
}

.btn-submit {
  background: linear-gradient(135deg, var(--primary-teal), var(--primary-cyan));
  color: var(--primary-dark);
  font-family: var(--font-title);
  font-weight: 700;
  border: none;
  border-radius: 8px;
  padding: 12px 25px;
  width: 100%;
  transition: var(--transition-fast);
  box-shadow: 0 4px 15px rgba(0, 192, 224, 0.3);
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 192, 224, 0.5);
  background: linear-gradient(135deg, var(--primary-cyan), var(--primary-teal));
}

/* Map Card */
.map-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  overflow: hidden;
  height: 280px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.map-card iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: grayscale(80%) invert(90%) contrast(110%) hue-rotate(180deg);
}

/* ANIMATED SVG ILLUSTRATION */
.contact-svg-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}

.contact-svg {
  width: 100%;
  max-width: 460px;
  height: auto;
}

#envelope {
  animation: float 2.5s ease-in-out infinite;
}

#star1, #star2, #star3, #star4, #star5, #star6 {
  animation: blink 1.2s ease-in-out infinite;
}

#star2 { animation-delay: 150ms; }
#star3 { animation-delay: 500ms; }
#star4 { animation-delay: 750ms; }
#star5 { animation-delay: 350ms; }
#star6 { animation-delay: 200ms; }

/* SVG Keyframes */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

@keyframes blink {
  0% { opacity: 0.1; }
  50% { opacity: 0.8; }
  100% { opacity: 0.1; }
}

/* SECTION SEPARATORS (Colliders) */
.section-divider {
  position: absolute;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  z-index: 9;
}

.section-divider.bottom {
  bottom: 0;
}

.section-divider.top {
  top: 0;
}

.section-divider svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 60px;
}

/* Custom separator path colors */
#hero-section .section-divider.bottom .shape-fill {
  fill: var(--bg-darker);
}

#blog-section .section-divider.bottom .shape-fill {
  fill: #04092c; /* blending color into section 3 */
}

/* Scroll Animation classes */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

/* Footers */
footer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 15px 40px;
  background: rgba(3, 7, 32, 0.95);
  border-top: 1px solid var(--glass-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  z-index: 20;
}

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

footer a:hover {
  color: var(--text-light);
}

/* Responsive Overrides */
@media (max-width: 1200px) {
  #blog-section, #contact-section {
    padding-left: 40px;
    padding-right: 40px;
  }
  .carousel-control-prev { left: -20px; }
  .carousel-control-next { right: -20px; }
}

@media (max-width: 991px) {
  header {
    padding: 15px 30px;
  }
  header.scrolled {
    padding: 10px 30px;
  }
  
  .logo-text { font-size: 1.1rem; }
  nav ul { gap: 15px; }
  
  /* Convert horizontal accordion to vertical stack on tablet/mobile */
  #hero-section {
    flex-direction: column;
  }
  
  .accordion-container {
    flex-direction: column;
  }
  
  .accordion-slide {
    width: 100%;
    height: 25%;
    border-right: none;
    border-bottom: 1px solid rgba(17, 171, 186, 0.1);
  }
  
  .accordion-slide.active {
    flex: 4;
  }
  
  .slide-title-collapsed {
    writing-mode: horizontal-tb;
    transform: translate(-50%, -50%);
    font-size: 1.3rem;
  }
  
  .accordion-slide.active .slide-title-collapsed {
    transform: translate(-50%, -100%);
  }
  
  .slide-details h2 {
    font-size: 1.8rem;
  }
  .slide-details p {
    font-size: 0.95rem;
    margin-bottom: 15px;
  }
  .slide-content {
    padding: 30px 20px;
  }
  
  /* Contact column structure */
  .contact-layout {
    flex-direction: column;
    overflow-y: auto;
    gap: 30px;
  }
  
  .contact-col-left {
    flex: none;
  }
  .contact-col-right {
    flex: none;
    height: auto;
    padding: 20px 0;
  }
  
  .contact-svg {
    max-width: 250px;
  }
  
  #blog-section {
    padding-top: 80px;
  }
  .section-title { font-size: 2.2rem; }
}

@media (max-width: 768px) {
  nav {
    display: none; /* simple hidden menu for clarity in this single page mockup */
  }
  #blog-section, #contact-section {
    height: auto;
    min-height: 100vh;
    scroll-snap-align: none;
  }
  .snap-container {
    scroll-snap-type: none;
  }
}

/* SECTION 4: Mapbox Map Section */
#map-section {
  position: relative;
  height: 450px;
  min-height: 450px;
  width: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  overflow: hidden;
  background: var(--bg-darker);
  border-top: 1px solid var(--glass-border);
}

#map {
  width: 100%;
  height: 100%;
}

/* Custom Mapbox marker styling */
.marker {
  width: 40px;
  height: 40px;
  background-image: url('https://axa.gov.az/uploads/images/settings/logo-b-1662660006.svg');
  background-size: 80% auto;
  background-repeat: no-repeat;
  background-position: center;
  background-color: var(--primary-dark);
  border-radius: 50%;
  border: 2px solid var(--primary-teal);
  box-shadow: 0 0 15px var(--primary-teal);
  cursor: pointer;
  transition: var(--transition-fast);
}

.marker:hover {
  transform: scale(1.1);
  box-shadow: 0 0 25px var(--primary-cyan);
  border-color: var(--primary-cyan);
}

/* Color Palette Themes */
body.theme-emerald {
  --primary-teal: #2ecc71;
  --primary-cyan: #27ae60;
  --accent-orange: #f1c40f;
  --light-blue: #e8f8f5;
  --very-light-blue: #d1f2eb;
}

body.theme-sunset {
  --primary-teal: #e67e22;
  --primary-cyan: #d35400;
  --accent-orange: #f39c12;
  --light-blue: #fdebd0;
  --very-light-blue: #fadbd8;
}

body.theme-royal {
  --primary-teal: #9b59b6;
  --primary-cyan: #8e44ad;
  --accent-orange: #3498db;
  --light-blue: #ebdef0;
  --very-light-blue: #d6eaf8;
}

/* Theme Switcher Widget */
.theme-switcher-wrapper {
  position: fixed;
  right: -220px;
  top: 25%;
  width: 220px;
  background: rgba(3, 7, 32, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 8px 0 0 8px;
  z-index: 9999;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  display: flex;
}

.theme-switcher-wrapper.active {
  right: 0;
}

.theme-switcher-toggle {
  position: absolute;
  left: -45px;
  top: 0;
  width: 45px;
  height: 45px;
  background: rgba(3, 7, 32, 0.95);
  border: 1px solid var(--glass-border);
  border-right: none;
  border-radius: 8px 0 0 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  color: var(--primary-teal);
  font-size: 1.2rem;
  transition: var(--transition-fast);
}

.theme-switcher-toggle:hover {
  color: var(--primary-cyan);
}

.theme-switcher-content {
  padding: 20px;
  width: 100%;
}

.theme-switcher-content h5 {
  font-family: var(--font-title);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-light);
  letter-spacing: 1px;
  margin-bottom: 15px;
  text-transform: uppercase;
}

.palette-options {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.palette-option {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition-fast);
}

.palette-option:hover {
  transform: scale(1.1);
}

.palette-option.active {
  border-color: var(--text-light);
  box-shadow: 0 0 10px var(--primary-teal);
}
