:root {
  --pure-white: #FFFFFF;
  --bg-dark: #0A0A0A;
  --warm-orange: #FF4D00;
  --deep-purple: #6A0DAD;
  --text-dark: #1A1A1A;
  --text-light: #F0F0F0;
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.3);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

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

body {
  font-family: 'Inter', 'Montserrat', sans-serif;
  background-color: transparent;
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

h1,
h2,
h3,
h4 {
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

h1 {
  font-size: 4rem;
}

h2 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

p {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
  font-weight: 400;
  color: #4A4A4A;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Gradients */
.text-gradient {
  background: linear-gradient(135deg, var(--warm-orange), var(--deep-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Glassmorphism Classes */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: 24px;
}

/* Header/Nav */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s ease, border-bottom 0.3s ease;
}

header.scrolled {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-container img {
  height: 40px;
  width: auto;
}

.logo-text {
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.05em;
}

nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

nav a {
  font-weight: 600;
  font-size: 1rem;
  position: relative;
  transition: color 0.3s;
}

nav a::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: -4px;
  left: 0;
  background: linear-gradient(90deg, var(--warm-orange), var(--deep-purple));
  transition: width 0.3s ease;
}

nav a:hover,
nav a.active {
  color: var(--warm-orange);
}

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

/* Hamburger Menu */
.hamburger {
  display: none;
  cursor: pointer;
  z-index: 1001;
}

.hamburger .bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  -webkit-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
  background-color: var(--text-dark);
  border-radius: 3px;
}

.hamburger.active .bar:nth-child(2) {
  opacity: 0;
}

.hamburger.active .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5%;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -2;
  background: transparent;
  overflow: hidden;
}

.hero-aurora {
  position: absolute;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(179, 153, 255, 0.2) 0%, rgba(200, 200, 215, 0.15) 50%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: auroraFlow 20s infinite alternate linear;
  filter: blur(40px);
  z-index: -1;
}

@keyframes auroraFlow {
  0% {
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
  }

  100% {
    transform: translate(-30%, -70%) scale(1.2) rotate(45deg);
  }
}

/* Global Background Animation */
.global-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -3;
  background: linear-gradient(135deg, rgba(240, 240, 255, 0.7), rgba(220, 220, 235, 0.5), rgba(230, 225, 245, 0.6));
  animation: bgPan 20s infinite alternate linear;
}

@keyframes bgPan {
  0% {
    filter: hue-rotate(0deg);
  }

  100% {
    filter: hue-rotate(15deg);
  }
}

@keyframes seamlessMask {

  0%,
  100% {
    transform: scale(1.0);
    opacity: 0.15;
  }

  50% {
    transform: scale(1.05);
    opacity: 0.05;
  }
}

@keyframes fadeGif {
  0% {
    opacity: 0;
  }

  5% {
    opacity: 0.15;
  }

  95% {
    opacity: 0.15;
  }

  100% {
    opacity: 0;
  }
}

/* Call to Action Button */
.cta-button {
  display: inline-block;
  background: linear-gradient(135deg, var(--warm-orange), var(--deep-purple));
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 77, 0, 0.3);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(106, 13, 173, 0.4);
  color: white;
}

/* Section Spacing */
section {
  padding: 4rem 5%;
}

/* Products Grid Layout 2x2 */
.products-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: 1fr;
  gap: 1.5rem;
  margin-top: 1rem;
}

.yabaleli-card {
  grid-column: 1 / -1;
  /* Spans across entire top row */
  display: flex;
  flex-direction: column;
}

.yabaleli-split {
  display: flex;
  gap: 3rem;
  margin-top: 1rem;
}

.split-col {
  flex: 1;
}

.product-card {
  padding: 1rem 1.25rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  transform-style: preserve-3d;
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(245, 245, 255, 0.7));
  box-shadow: -4px -4px 10px rgba(255, 255, 255, 0.8), 6px 6px 15px rgba(0, 0, 0, 0.08), inset -2px -2px 5px rgba(255, 255, 255, 0.5), inset 2px 2px 5px rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: -6px -6px 15px rgba(255, 255, 255, 0.9), 10px 10px 20px rgba(0, 0, 0, 0.12), inset -2px -2px 5px rgba(255, 255, 255, 0.5), inset 2px 2px 5px rgba(0, 0, 0, 0.02);
}

.product-logo {
  height: 40px;
  object-fit: contain;
  margin-bottom: 0.5rem;
  border-radius: 8px;
}

.product-card h3 {
  font-size: 1.1rem;
  color: var(--deep-purple);
  margin-bottom: 0.25rem;
}

/* Section Separator */
.section-separator {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 6rem 0 3rem;
  padding: 0 5%;
}

.section-separator::before,
.section-separator::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.section-separator .separator-text {
  padding: 0 1.5rem;
  font-size: 0.85rem;
  font-weight: 800;
  color: #888;
  letter-spacing: 0.15em;
}

/* DOOH Banner */
.dooh-banner {
  background: linear-gradient(135deg, rgba(235, 238, 245, 0.85), rgba(225, 228, 240, 0.85));
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: -4px -4px 10px rgba(255, 255, 255, 0.9), 6px 6px 15px rgba(0, 0, 0, 0.08), inset -2px -2px 5px rgba(255, 255, 255, 0.5), inset 2px 2px 5px rgba(0, 0, 0, 0.02);
  border-radius: 20px;
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  display: flex;
  gap: 1.5rem;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.dooh-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(106, 13, 173, 0.05) 0%, rgba(0, 0, 0, 0) 60%);
  pointer-events: none;
  z-index: 0;
}

.dooh-content {
  flex: 0 0 55%;
  position: relative;
  z-index: 1;
}

.dooh-content h3 {
  font-size: 1.75rem;
  color: var(--deep-purple);
  margin-bottom: 0.5rem;
}

.dooh-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--warm-orange);
  background: rgba(255, 77, 0, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 30px;
  border: 1px solid rgba(255, 77, 0, 0.2);
}

.highlight-item svg {
  flex-shrink: 0;
}

.dooh-visual {
  flex: 1;
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 40%;
}

/* About Section */
.story-container {
  display: flex;
  gap: 4rem;
  align-items: center;
}

.story-content {
  flex: 1;
}

/* Contact Section */
.contact-section {
  background: transparent;
  color: var(--text-dark);
}

.linkedin-icon:hover {
  transform: scale(1.1);
}

/* Footer */
footer {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  color: var(--text-dark);
  padding: 2rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-links button {
  background: none;
  border: none;
  color: var(--text-dark);
  cursor: pointer;
  text-decoration: underline;
  font-family: inherit;
  font-size: 0.9rem;
  margin-left: 1rem;
}

.footer-links button:hover {
  color: var(--warm-orange);
}

/* Back to Top Button */
#backToTop {
  display: none;
  /* Hidden by default */
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 99;
  border: 1px solid rgba(255, 255, 255, 0.2);
  outline: none;
  background: rgba(106, 13, 173, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  padding: 15px;
  border-radius: 50%;
  font-size: 18px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, background 0.3s, box-shadow 0.3s;
  align-items: center;
  justify-content: center;
}

#backToTop:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(106, 13, 173, 0.5);
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: white;
  width: 90%;
  max-width: 800px;
  max-height: 80vh;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  animation: modalIn 0.3s ease-out;
}

@keyframes modalIn {
  from {
    transform: translateY(50px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid #EEE;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-body {
  padding: 2rem;
  overflow-y: auto;
  font-size: 0.9rem;
  white-space: pre-wrap;
}

.close-modal {
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  color: #888;
}

.close-modal:hover {
  color: black;
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Mobile Responsiveness */
@media (max-width: 992px) {
  .hero {
    text-align: center;
  }

  .story-container {
    flex-direction: column;
  }

  h1 {
    font-size: 3rem;
  }

  .dooh-banner {
    flex-direction: column !important;
    padding: 1.5rem !important;
    margin: 0 !important;
    gap: 1.5rem !important;
  }

  .dooh-content {
    flex-direction: column !important;
    flex: 1 1 auto;
    gap: 1.5rem !important;
  }

  .dooh-visual {
    flex: none !important;
    width: 100% !important;
    max-width: 240px !important;
    margin: 1.5rem auto 1rem !important;
    justify-content: center !important;
  }

  .yabaleli-split {
    flex-direction: column;
    gap: 1.5rem;
    text-align: left;
  }
}

@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  /* Stack vertically on small screens */
  .hamburger {
    display: block;
  }

  nav#nav-menu {
    position: fixed;
    top: -100%;
    /* Hide offscreen */
    left: 0;
    flex-direction: column;
    background-color: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: var(--glass-shadow);
    padding: 2rem 0;
    border-bottom: 1px solid var(--glass-border);
    opacity: 0;
    visibility: hidden;
  }

  nav#nav-menu.active {
    top: 72px;
    /* Height of header area approx */
    opacity: 1;
    visibility: visible;
  }

  nav#nav-menu a {
    margin: 1.5rem 0;
    font-size: 1.25rem;
    display: block;
  }
}

@media (max-width: 576px) {
  h1 {
    font-size: 2.5rem;
  }

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

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