/* ===== Ice Turtle Studios — Custom Styles ===== */

:root {
  --its-dark: #0d1117;
  --its-darker: #010409;
  --its-card: #161b22;
  --its-border: #21262d;
  --its-teal: #00c9a7;
  --its-teal-dark: #00a88a;
  --its-blue: #58a6ff;
  --its-purple: #bc8cff;
  --its-text: #c9d1d9;
  --its-text-muted: #8b949e;
  --its-white: #f0f6fc;
  --its-ice: #7dd3fc;
  --its-glow-teal: rgba(0, 201, 167, .35);
  --its-glow-ice: rgba(125, 211, 252, .25);
}

/* ---- Base ---- */
body {
  background-color: var(--its-dark);
  color: var(--its-text);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--its-white);
  font-weight: 700;
}

a {
  color: var(--its-teal);
  text-decoration: none;
}
a:hover {
  color: var(--its-teal-dark);
}

img {
  max-width: 100%;
}

/* ---- Navbar ---- */
.navbar-its {
  background-color: var(--its-darker);
  border-bottom: none;
  padding: .75rem 0;
  position: relative;
}
.navbar-its::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--its-ice) 25%, var(--its-teal) 50%, var(--its-ice) 75%, transparent 100%);
  background-size: 200% 100%;
  animation: shimmer-x 6s ease-in-out infinite alternate;
}
.navbar-its .navbar-brand {
  color: var(--its-white);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.5px;
}
.navbar-its .navbar-brand span {
  color: var(--its-teal);
}
.navbar-its .nav-link {
  color: var(--its-text-muted);
  font-weight: 500;
  padding: .5rem 1rem;
  transition: color .2s;
}
.navbar-its .nav-link:hover,
.navbar-its .nav-link.active {
  color: var(--its-white);
}
.navbar-its .navbar-toggler {
  border-color: var(--its-border);
}
.navbar-its .navbar-toggler-icon {
  filter: invert(1);
}

/* ---- Hero ---- */
.hero {
  position: relative;
  padding: 6rem 0 7rem;
  text-align: center;
  overflow: hidden;
  min-height: 540px;
  display: flex;
  align-items: center;
}
/* Carousel fills the hero as background */
.hero-carousel-bg {
  position: absolute !important;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
}
.hero-carousel-bg .carousel-inner,
.hero-carousel-bg .carousel-item {
  height: 100%;
}
.hero-carousel-bg .carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: blur(2px) saturate(1.2);
  transform: scale(1.04);
}
/* Dark gradient overlay */
.hero-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(160deg, rgba(8,18,32,0.82) 0%, rgba(10,25,48,0.76) 100%);
  z-index: 1;
}
/* Content sits above carousel + overlay */
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
}
/* Glassmorphism card around hero text */
.hero-glass {
  display: inline-block;
  max-width: 760px;
  padding: 2.5rem 2.75rem 2.25rem;
  border-radius: 1.25rem;
  background: rgba(12, 24, 44, 0.55);
  border: 1px solid rgba(0, 210, 211, 0.18);
  box-shadow: 0 8px 40px rgba(0,0,0,0.45), 0 0 0 1px rgba(0,210,211,0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 1.15;
  margin-bottom: 1.25rem;
}
.hero .lead {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: rgba(200, 220, 240, 0.88);
  max-width: 580px;
  margin: 0 auto 2rem;
}
/* "Play our demo games" hint line */
.hero-game-hint {
  font-size: .9rem;
  color: rgba(180, 210, 240, 0.65);
  margin-bottom: 0;
}
.hero-play-link {
  color: var(--its-teal);
  text-decoration: none;
  font-weight: 600;
  transition: color .2s;
}
.hero-play-link:hover {
  color: #fff;
}

/* ---- Buttons ---- */
.btn-its {
  background-color: var(--its-teal);
  color: var(--its-darker);
  font-weight: 700;
  padding: .75rem 2rem;
  border: none;
  border-radius: .5rem;
  font-size: 1.05rem;
  transition: background .2s, transform .15s, box-shadow .3s;
}
.btn-its:hover {
  background-color: var(--its-teal-dark);
  color: var(--its-darker);
  transform: translateY(-1px);
  box-shadow: 0 0 18px var(--its-glow-teal), 0 0 40px rgba(0, 201, 167, .12);
}

.btn-outline-its {
  border: 2px solid var(--its-teal);
  color: var(--its-teal);
  font-weight: 700;
  padding: .65rem 1.75rem;
  border-radius: .5rem;
  background: transparent;
  transition: all .2s;
}
.btn-outline-its {
  transition: all .2s, box-shadow .3s;
}
.btn-outline-its:hover {
  background-color: var(--its-teal);
  color: var(--its-darker);
  box-shadow: 0 0 14px var(--its-glow-teal);
}

/* ---- Section ---- */
.section {
  padding: 5rem 0;
}
.section-alt {
  background-color: var(--its-darker);
}
.section-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  margin-bottom: .75rem;
}
.section-subtitle {
  color: var(--its-text-muted);
  max-width: 600px;
  margin: 0 auto 3rem;
}

/* ---- Cards ---- */
.card-its {
  background-color: var(--its-card);
  border: 1px solid var(--its-border);
  border-radius: .75rem;
  padding: 2rem;
  height: 100%;
  transition: border-color .25s, transform .2s, box-shadow .35s;
}
.card-its:hover {
  border-color: var(--its-teal);
  transform: translateY(-3px);
  box-shadow: 0 0 12px var(--its-glow-teal), 0 0 30px rgba(0, 201, 167, .08);
}
.card-featured {
  border-color: rgba(0, 210, 211, 0.4);
  box-shadow: 0 0 10px rgba(0, 210, 211, 0.15), 0 0 24px rgba(0, 210, 211, 0.07);
  animation: featured-pulse 3s ease-in-out infinite;
}
.card-featured:hover {
  border-color: var(--its-teal);
  box-shadow: 0 0 18px rgba(0, 210, 211, 0.45), 0 0 40px rgba(0, 210, 211, 0.15);
}
@keyframes featured-pulse {
  0%, 100% { box-shadow: 0 0 10px rgba(0, 210, 211, 0.15), 0 0 24px rgba(0, 210, 211, 0.07); }
  50%       { box-shadow: 0 0 16px rgba(0, 210, 211, 0.30), 0 0 36px rgba(0, 210, 211, 0.12); }
}
.card-its .card-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: inline-block;
}
.card-its h3 {
  font-size: 1.25rem;
  margin-bottom: .75rem;
}
.card-its p {
  color: var(--its-text-muted);
  font-size: .95rem;
}

/* ---- Service links (home page) ---- */
.service-link-card {
  display: block;
  text-decoration: none;
  color: inherit;
}
.service-link-card:hover {
  color: inherit;
  text-decoration: none;
}

/* ---- Dev notice banner ---- */
.dev-notice {
  display: inline-block;
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .03em;
  margin-bottom: .75rem;
  opacity: 0;
  transition: opacity 0.4s ease, color 0.4s ease, text-shadow 0.4s ease;
  animation: dev-pulse 2.5s ease-in-out infinite;
}
@keyframes dev-pulse {
  0%, 100% { filter: brightness(1);   }
  50%       { filter: brightness(1.5); }
}

/* ---- Play nav button ---- */
.btn-nav-play {
  background-color: #2ea043;
  color: #fff;
  font-weight: 700;
  font-size: .9rem;
  padding: .3rem 1rem;
  border-radius: .5rem;
  border: none;
  text-decoration: none;
  transition: background .2s, transform .15s, box-shadow .3s;
  white-space: nowrap;
}
.btn-nav-play:hover {
  background-color: #3fb950;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 0 14px rgba(63, 185, 80, .45);
}

/* ---- Social icons (navbar) ---- */
.nav-social {
  color: var(--its-text-muted);
  transition: color .2s;
  display: inline-flex;
  align-items: center;
}
.nav-social:hover {
  color: var(--its-white);
}

/* ---- Process steps ---- */
.process-step {
  text-align: center;
  padding: 1.5rem 1rem;
}
.process-step .step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--its-teal);
  color: var(--its-darker);
  font-weight: 800;
  font-size: 1.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

/* ---- Forms ---- */
.form-section {
  background-color: var(--its-darker);
  border-radius: 1rem;
  padding: 3rem;
  border: 1px solid transparent;
  animation: form-glow 4s ease-in-out infinite;
}
.form-section .form-label {
  color: var(--its-white);
  font-weight: 600;
  font-size: .9rem;
  margin-bottom: .35rem;
}
.form-section .form-control,
.form-section .form-select {
  background-color: var(--its-card);
  border: 1px solid var(--its-border);
  color: var(--its-text);
  border-radius: .5rem;
  padding: .65rem .85rem;
}
.form-section .form-control:focus,
.form-section .form-select:focus {
  border-color: var(--its-teal);
  box-shadow: 0 0 0 .2rem rgba(0, 201, 167, .15);
  background-color: var(--its-card);
  color: var(--its-text);
}
.form-section .form-control::placeholder {
  color: var(--its-text-muted);
}

/* ---- FAQ Accordion ---- */
.accordion-its .accordion-item {
  background-color: var(--its-card);
  border: 1px solid var(--its-border);
  margin-bottom: .5rem;
  border-radius: .5rem !important;
}
.accordion-its .accordion-button {
  background-color: var(--its-card);
  color: var(--its-white);
  font-weight: 600;
  border-radius: .5rem !important;
  box-shadow: none;
}
.accordion-its .accordion-button:not(.collapsed) {
  background-color: var(--its-card);
  color: var(--its-teal);
}
.accordion-its .accordion-button::after {
  filter: invert(1);
}
.accordion-its .accordion-body {
  color: var(--its-text-muted);
}

/* ---- Footer ---- */
.footer-its {
  background-color: var(--its-darker);
  border-top: none;
  padding: 3rem 0 2rem;
  color: var(--its-text-muted);
  font-size: .9rem;
  position: relative;
}
.footer-its::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--its-teal) 30%, var(--its-ice) 50%, var(--its-teal) 70%, transparent 100%);
}
.footer-its a {
  color: var(--its-text-muted);
  transition: color .2s;
}
.footer-its a:hover {
  color: var(--its-white);
}
.footer-its h6 {
  color: var(--its-white);
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 1rem;
}

/* ---- Thank-you page ---- */
.thankyou-wrap {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.thankyou-wrap .checkmark {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: var(--its-teal);
  color: var(--its-darker);
  font-size: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

/* ---- Misc ---- */
.text-teal {
  color: var(--its-teal) !important;
}
.bg-teal {
  background-color: var(--its-teal) !important;
}

/* ---- Showcase Carousel ---- */
#showcaseCarousel {
  border: 1px solid var(--its-border);
  border-radius: .75rem;
  overflow: hidden;
}
#showcaseCarousel .carousel-item img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background-color: var(--its-card);
}
#showcaseCarousel .carousel-indicators button {
  background-color: var(--its-teal);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  opacity: .4;
}
#showcaseCarousel .carousel-indicators button.active {
  opacity: 1;
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Selection color */
::selection {
  background: var(--its-teal);
  color: var(--its-darker);
}

/* ===== Game Juice — Ice & Teal Animations ===== */

/* Keyframes */
@keyframes shimmer-x {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@keyframes hero-glow {
  0%, 100% { text-shadow: 0 0 20px rgba(0, 201, 167, .25), 0 0 40px rgba(0, 201, 167, .08); }
  50%      { text-shadow: 0 0 28px rgba(125, 211, 252, .35), 0 0 60px rgba(0, 201, 167, .15); }
}

@keyframes form-glow {
  0%, 100% { box-shadow: 0 0 15px rgba(0, 201, 167, .12), 0 0 30px rgba(0, 201, 167, .04); }
  50%      { box-shadow: 0 0 20px rgba(125, 211, 252, .18), 0 0 45px rgba(0, 201, 167, .08); }
}

@keyframes step-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 201, 167, .4); }
  50%      { box-shadow: 0 0 0 8px rgba(0, 201, 167, 0); }
}

@keyframes section-line {
  0%   { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

/* Hero heading glow */
.hero h1 .text-teal {
  animation: hero-glow 3.5s ease-in-out infinite;
}

/* Process step number pulse */
.process-step .step-num {
  animation: step-pulse 2.5s ease-in-out infinite;
}

/* Section divider lines — adds a subtle glowing hr between sections */
.section + .section {
  position: relative;
}
.section + .section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(80%, 600px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--its-teal), var(--its-ice), var(--its-teal), transparent);
  background-size: 200% 100%;
  animation: section-line 8s linear infinite alternate;
  opacity: .5;
}

/* Carousel subtle outer glow */
#showcaseCarousel {
  box-shadow: 0 0 20px rgba(0, 201, 167, .08), 0 0 50px rgba(125, 211, 252, .04);
}
/* Slow carousel slide transition */
#showcaseCarousel .carousel-item {
  transition: transform 1.2s ease-in-out;
}

/* Card icon subtle bounce on card hover */
.card-its:hover .card-icon {
  animation: icon-bounce .4s ease;
}
@keyframes icon-bounce {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.2); }
  70%  { transform: scale(.95); }
  100% { transform: scale(1); }
}

/* Navbar brand glow on hover */
.navbar-its .navbar-brand:hover span {
  text-shadow: 0 0 12px var(--its-glow-teal);
  transition: text-shadow .3s;
}

/* Accordion item hover glow */
.accordion-its .accordion-item {
  transition: box-shadow .3s;
}
.accordion-its .accordion-item:hover {
  box-shadow: 0 0 10px rgba(0, 201, 167, .1);
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
