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

:root {
  --bg-primary: #0d0d0d;
  --text-primary: #ffffff;
  /* Futuristic synthwave gradient */
  --accent-1-start: #c100ff;
  --accent-1-end: #00ff9e;
  --accent-1: var(--accent-1-start);
  --accent-gradient: linear-gradient(135deg, var(--accent-1-start), var(--accent-1-end));
  --accent-2: #00e0ff;
  --bs-body-bg: var(--bg-primary);
  --bs-body-color: var(--text-primary);
  --bs-link-color: var(--accent-2);
  --bs-link-hover-color: var(--accent-2);
  --bs-border-color: #444;
}

body {
  font-family: 'Inter', sans-serif;
  background:
    linear-gradient(135deg, rgba(193, 0, 255, 0.15), rgba(0, 255, 158, 0.15)),
    var(--bg-primary);
  color: var(--text-primary);
  font-size: 1.1rem;
  line-height: 1.6;
  scroll-snap-type: y mandatory;
}

h1, h2, h3 {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-family: 'Inter', sans-serif;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.6rem, 5vw, 6rem);
}

.btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #fff;
  border: none;
}

.btn-primary:hover {
  filter: brightness(1.1);
}

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

.btn-secondary:hover {
  background: var(--accent-2);
  color: #000;
}

.btn-brand {
  background: var(--accent-gradient);
  border: none;
  padding: 0.85rem 2.4rem;
  border-radius: 50px;
  font-weight: 600;
  color: #fff;
  box-shadow:
    0 0 8px rgba(193, 0, 255, 0.6),
    0 0 16px rgba(0, 255, 158, 0.6);
  transition: transform 0.3s, box-shadow 0.3s;
}

.btn-brand:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 12px rgba(193, 0, 255, 0.8),
    0 0 24px rgba(0, 255, 158, 0.8);
}


#solutions .card {
  position: relative;
  background: #111;
  border-radius: 1.5rem;
  padding: 2rem;
  border: none;
  overflow: hidden;
  transition: transform 0.4s, box-shadow 0.4s;
}

#solutions .card::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 2px;
  border-radius: inherit;
  background: var(--accent-gradient);
  background-size: 200% 200%;
  animation: card-gradient-move 6s linear infinite;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  z-index: 0;
}

#solutions .card > * {
  position: relative;
  z-index: 1;
}
#solutions .card:hover {
  transform: translateY(-6px) rotate(-1deg);
  box-shadow: 0 4px 24px rgba(0, 224, 255, 0.35);
}

.hero-text {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero-text.show {
  opacity: 1;
  transform: none;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.revealed {
  opacity: 1;
  transform: none;
}

img.hover-color {
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

img.hover-color:hover {
  filter: grayscale(0%);
}

/* Hero section overlay */
#home > section:first-of-type {
  position: relative;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
}

#home > section:first-of-type::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1;
}

#home > section:first-of-type::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(128, 0, 128, 0.6), rgba(0, 128, 0, 0.6));
  background-size: 200% 200%;
  animation: hero-gradient-move 8s ease infinite;
  z-index: 0;
}

@media (max-width: 767.98px) {
  /* Hide hero background image on small screens so only the gradient animates */
  #home > section:first-of-type {
    background-image: none !important;
  }
}

#home > section:first-of-type .container {
  position: relative;
  z-index: 2;
  text-align: left;
}

/* About section glass panel */
#about .row {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  border-radius: 1.5rem;
  padding: 2rem;
}

#about h2 {
  color: var(--accent-1);
}

/* PrometheOS showcase */
#prometheos {
  position: relative;
  background-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.03) 0, rgba(255, 255, 255, 0.03) 20px, transparent 20px, transparent 40px);
}

#prometheos .container {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(6px);
  border-radius: 1.5rem;
  padding: 2rem;
}

#prometheos h2 {
  text-align: center;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Crop PrometheOS video and round corners */
#prometheos video.prometheos-crop {
  object-fit: cover;
  /* Crop less from the video and keep it centred */
  clip-path: inset(10% 0 10% 0 round 1rem);
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
}

/* Projects carousel */
#projects img {
  filter: grayscale(100%);
  transition: filter 0.3s;
}

#projects img:hover {
  filter: grayscale(0%);
}

#projects .carousel-caption {
  background: rgba(0, 0, 0, 0.6);
  border-radius: 0.5rem;
}

/* Contact form styles */
#contact {
  background: linear-gradient(-45deg, #c100ff, #00e0ff, #00ff9e, #ffd700);
  background-size: 400% 400%;
  animation: contact-gradient-move 12s ease infinite;
}
#contact input,
#contact textarea {
  background: rgba(0, 0, 0, 0.4);
  border: none;
  border-bottom: 1px solid var(--accent-1);
  border-radius: 0.375rem;
  color: var(--text-primary);
  padding: 0.5rem 0.75rem;
}

#contact input::placeholder,
#contact textarea::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

#contact input:focus,
#contact textarea:focus {
  outline: none;
  box-shadow: none;
  border-color: var(--accent-2);
}

/* Ensure checkboxes are visible on dark backgrounds */
#contact .form-check-input {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--accent-1);
  width: 1.25rem;
  height: 1.25rem;
}

#contact .form-check-input:checked {
  background-color: var(--accent-2);
  border-color: var(--accent-2);
}

#contact .form-check-input:focus {
  box-shadow: none;
  border-color: var(--accent-2);
}

#contact .contact-card {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--accent-1);
  backdrop-filter: blur(6px);
  border-radius: 0.5rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

#contact .sms-disclaimer {
  font-size: 0.8rem;
  line-height: 1.4;
}

.section-pad {
  padding-top: 120px;
  padding-bottom: 120px;
}

section.snap {
  min-height: 100vh;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.navbar.navbar-scrolled {
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Fade-in effect for navbar */

.navbar {
  background-color: #000;
  color: #fff;
  opacity: 0;
  transition: background-color 0.5s ease, color 0.5s ease, opacity 0.5s ease, filter 0.5s ease, transform 0.3s ease;
}

.navbar.hide {
  transform: translateY(-100%);
}

.navbar.show {
  opacity: 1;
}

/* Consistent logo sizing */
.navbar-brand img {
  height: 60px;
}

.navbar .nav-link,
.navbar .navbar-brand {
  color: inherit;
}

.nav-link {
  transition: color 0.3s ease;
}

.nav-link.active {
  color: var(--accent-2) !important;
}

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

/* Restrict size of looping videos */
.video-loop {
  max-width: 100%;
  max-height: 480px;
  width: 100%;
  height: auto;
}

/* Hero rotating phrase animations */
#hero-phrase {
  display: block;
}
.phrase-in {
  animation: phrase-in 0.8s forwards;
}
.phrase-out {
  animation: phrase-out 0.8s forwards;
}
@keyframes phrase-in {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes phrase-out {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-15px); }

/* Footer styling */
.site-footer {
  background: #111;
  border-top: 1px solid var(--bs-border-color);
  color: var(--text-primary);
  font-size: 0.9rem;
}

.site-footer .footer-heading {
  font-weight: 600;
  margin-bottom: 1rem;
}

.site-footer a {
  color: var(--accent-1);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
  color: var(--accent-2);
}

@keyframes hero-gradient-move {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes contact-gradient-move {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes card-gradient-move {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
