@import url('https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css');
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800;900&display=swap');

:root {
  --bg-dark: #0a0101;
  --accent-red: #d81b1b;
  --accent-orange: #ff4500;
  --text-main: #ffffff;
  --text-muted: #e6b3b3;
  --slide-bg: radial-gradient(ellipse at center, #260505 0%, #0a0101 80%);
}

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

body,
html {
  height: 100%;
  width: 100%;
  font-family: 'Outfit', sans-serif;
  background: var(--bg-dark);
  color: var(--text-main);
  overflow: hidden;
  /* Locks out default browser scrolling */
}

/* Master full-screen container for the presentation */
.presentation {
  height: 100vh;
  width: 100vw;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE */
}

.presentation::-webkit-scrollbar {
  display: none;
  /* Chrome */
}

/* Each Slide is 100vh exactly */
.slide {
  height: 100vh;
  width: 100vw;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8%;
  background: var(--slide-bg);
  overflow: hidden;
}

/* Cybernetic Brain/Circuit Backgrounds */
.slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 69, 0, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 69, 0, 0.04) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: 0;
  pointer-events: none;
}

.slide::after {
  content: '';
  position: absolute;
  width: 90vh;
  height: 90vh;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(216, 27, 27, 0.15) 0%, transparent 65%);
  filter: blur(80px);
  z-index: 0;
  pointer-events: none;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1400px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
}

/* Presentation UI: Sidebar Dots */
.slide-nav {
  position: fixed;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  z-index: 100;
}

.slide-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255, 69, 0, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.slide-dot:hover {
  background: rgba(255, 69, 0, 0.3);
}

.slide-dot.active {
  background: var(--accent-orange);
  border-color: var(--accent-orange);
  box-shadow: 0 0 20px var(--accent-orange);
  transform: scale(1.3);
}

/* Top Branding Bar */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 25px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  background: linear-gradient(180deg, rgba(10, 1, 1, 0.8) 0%, transparent 100%);
}

.logo {
  font-size: 1.8rem;
  font-weight: 900;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: -1px;
}

.logo-img {
  width: auto;
  height: 100px;
  object-fit: cover;
}

.logo-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 3px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px var(--accent-red);
  background: rgba(216, 27, 27, 0.2);
}

.logo-icon::before {
  content: '';
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 11px solid #fff;
  margin-left: 4px;
}

/* Typography elements */
h1 {
  font-size: clamp(3.5rem, 6vw, 6.5rem);
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  letter-spacing: -2px;
}

h2 {
  font-size: clamp(3rem, 5vw, 5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

p {
  font-size: 1.3rem;
  line-height: 1.6;
  color: var(--text-muted);
  font-weight: 300;
  margin-bottom: 2rem;
  max-width: 600px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent-red) 0%, var(--accent-orange) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 42px;
  border-radius: 100px;
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: 0.4s;
  text-decoration: none;
  border: none;
}

.btn-primary {
  background: linear-gradient(90deg, var(--accent-red), var(--accent-orange));
  color: #fff;
  box-shadow: 0 10px 30px rgba(216, 27, 27, 0.4);
}

.btn-primary:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 15px 40px rgba(255, 69, 0, 0.6);
}

/* Structure Classes for layout within slides */
.half-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.graphics-col {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  height: 100%;
}

/* Specific graphical representations */
.brain-graphic {
  width: 400px;
  height: 400px;
  position: relative;
  background: radial-gradient(circle, rgba(255, 69, 0, 0.1) 0%, transparent 60%);
  border: 2px dashed rgba(255, 69, 0, 0.3);
  border-radius: 50%;
  animation: pulse-spin 20s linear infinite;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brain-graphic i {
  font-size: 8rem;
  color: var(--accent-orange);
  animation: pulse 3s ease infinite alternate;
  text-shadow: 0 0 50px var(--accent-red);
}

@keyframes pulse-spin {
  0% {
    transform: rotate(0deg) scale(1);
  }

  50% {
    transform: rotate(180deg) scale(1.05);
  }

  100% {
    transform: rotate(360deg) scale(1);
  }
}

@keyframes pulse {
  0% {
    opacity: 0.7;
    transform: scale(0.95);
  }

  100% {
    opacity: 1;
    transform: scale(1.05);
  }
}

/* Cards Array (Services Slide) */
.card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  width: 100%;
}

.card {
  background: rgba(20, 0, 0, 0.6);
  border: 1px solid rgba(255, 69, 0, 0.3);
  border-radius: 24px;
  padding: 2.5rem;
  backdrop-filter: blur(15px);
  transition: 0.4s;
}

.card:hover {
  border-color: var(--accent-orange);
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(216, 27, 27, 0.3);
}

.card i {
  font-size: 3rem;
  background: -webkit-linear-gradient(var(--accent-red), var(--accent-orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.5rem;
  display: block;
}

.card h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #fff;
}

.card p {
  font-size: 1rem;
  margin-bottom: 0;
  color: var(--text-muted);
}

/* Form elements (Contact Slide) */
.form-box {
  background: rgba(10, 1, 1, 0.7);
  padding: 3rem;
  border-radius: 24px;
  border: 1px solid rgba(255, 69, 0, 0.4);
  backdrop-filter: blur(20px);
  width: 100%;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

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

.input-group input,
.input-group textarea {
  width: 100%;
  padding: 18px 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #fff;
  font-family: 'Outfit';
  font-size: 1.1rem;
  transition: 0.3s;
}

.input-group input:focus,
.input-group textarea:focus {
  border-color: var(--accent-orange);
  background: rgba(255, 69, 0, 0.05);
  box-shadow: 0 0 15px rgba(255, 69, 0, 0.2);
  outline: none;
}

/* Helper class utilized by JavaScript to trigger animate.css */
.to-animate {
  opacity: 0;
}

@media (max-width: 900px) {
  .content {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
    justify-content: center;
  }

  h1 {
    font-size: 3rem;
  }

  .card-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .card {
    padding: 1.5rem;
  }

  .brain-graphic {
    width: 250px;
    height: 250px;
  }

  .brain-graphic i {
    font-size: 5rem;
  }

  .slide-nav {
    display: none;
  }

  /* Hide on small mobile to save space */
  p {
    margin: 0 auto 1.5rem auto;
  }
}