/* ==========================================================================
   ICE RABBIT HOUSE - Main Stylesheet
   Color palette: Deep navy, icy blues, crystalline whites
   ========================================================================== */

/* CSS Variables */
:root {
  /* Primary Colors - Ice & Night */
  --color-deep-navy: #0a1628;
  --color-night-blue: #0d1f3c;
  --color-arctic-blue: #1a3a5c;
  --color-ice-blue: #4a9eff;
  --color-frost: #7ec8ff;
  --color-crystal: #b8e4ff;
  --color-white: #ffffff;
  --color-off-white: #f0f7ff;

  /* Accent Colors */
  --color-warm-glow: #ffb347;
  --color-sunset: #ff7b54;

  /* Gradients */
  --gradient-night-sky: linear-gradient(180deg, #0a1628 0%, #0d1f3c 50%, #1a3a5c 100%);
  --gradient-ice: linear-gradient(135deg, #4a9eff 0%, #7ec8ff 50%, #b8e4ff 100%);
  --gradient-frost-glow: radial-gradient(ellipse at center, rgba(126, 200, 255, 0.15) 0%, transparent 70%);

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 8rem;
  --space-xxl: 12rem;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-deep-navy);
  color: var(--color-white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
}

h1 {
  font-size: clamp(3rem, 10vw, 8rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 5vw, 4rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
  font-size: 1.125rem;
  max-width: 65ch;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

/* Utility Classes */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.text-gradient {
  background: var(--gradient-ice);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--space-sm) 0;
  transition: var(--transition-smooth);
}

.nav.scrolled {
  background: rgba(10, 22, 40, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(74, 158, 255, 0.1);
}

.nav__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.nav__logo img {
  height: 40px;
  width: auto;
}

.nav__links {
  display: flex;
  gap: var(--space-md);
  list-style: none;
}

.nav__link {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.8;
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-ice-blue);
  transition: var(--transition-fast);
}

.nav__link:hover {
  opacity: 1;
}

.nav__link:hover::after {
  width: 100%;
}

/* Mobile Menu */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.nav__toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-white);
  transition: var(--transition-fast);
}

@media (max-width: 768px) {
  .nav__toggle {
    display: flex;
  }

  .nav__links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--color-deep-navy);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--space-lg);
    transition: var(--transition-smooth);
  }

  .nav__links.active {
    right: 0;
  }

  .nav__link {
    font-size: 1.5rem;
  }
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  height: 100vh;
  min-height: 800px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 0;
}

/* Layer 1: Background & Stars */
/* Layer 1: Background & Stars */
.hero__background {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.hero__stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(2px 2px at 20px 30px, #eee, rgba(0, 0, 0, 0)),
    radial-gradient(2px 2px at 40px 70px, #fff, rgba(0, 0, 0, 0)),
    radial-gradient(1px 1px at 80px 45px, #fff, rgba(0, 0, 0, 0)),
    radial-gradient(2px 2px at 50px 160px, #ddd, rgba(0, 0, 0, 0)),
    radial-gradient(2px 2px at 90px 40px, #fff, rgba(0, 0, 0, 0)),
    radial-gradient(1px 1px at 110px 130px, #eee, rgba(0, 0, 0, 0)),
    radial-gradient(2px 2px at 130px 80px, #fff, rgba(0, 0, 0, 0)),
    radial-gradient(1px 1px at 170px 20px, #fff, rgba(0, 0, 0, 0)),
    radial-gradient(2px 2px at 160px 120px, #ddd, rgba(0, 0, 0, 0)),
    radial-gradient(1px 1px at 190px 170px, #eee, rgba(0, 0, 0, 0));
  background-repeat: repeat;
  background-size: 200px 200px;
  animation: starsTwinkle 4s infinite alternate;
  opacity: 0.7;
}

@keyframes starsTwinkle {
  0% {
    opacity: 0.3;
    transform: scale(0.9);
  }

  100% {
    opacity: 0.8;
    transform: scale(1.1);
  }
}

.hero__background::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      rgba(10, 22, 40, 0.4) 0%,
      rgba(10, 22, 40, 0.1) 40%,
      rgba(10, 22, 40, 0.4) 80%,
      rgba(10, 22, 40, 0.8) 100%);
}

/* Layer 2: Slogan (The Sandwich Filling) */
.hero__slogan-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  width: auto;
  pointer-events: none;
}

.hero__slogan {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 10rem);
  font-weight: 900;
  line-height: 0.95;
  margin: 0;
  opacity: 0;
  animation: fadeSlideUp 0.8s ease forwards;
  animation-delay: 0.3s;
  text-shadow: 0 6px 30px rgba(0, 0, 0, 0.6);
  white-space: nowrap;
  text-align: center;
}

.hero__slogan span {
  display: block;
}

.hero__slogan .line-1 {
  color: var(--color-white);
}

.hero__slogan .line-2 {
  background: var(--gradient-ice);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}



/* Layer 4: Description (Top Layer) */
.hero__content {
  position: absolute;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  width: 100%;
  max-width: 650px;
  pointer-events: none;
  text-align: center;
}

.hero__description {
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin: 0 auto;
  opacity: 0;
  animation: fadeSlideUp 1s ease forwards;
  animation-delay: 0.6s;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
  background: rgba(10, 22, 40, 0.6);
  padding: 1rem 1.5rem;
  border-radius: 8px;
  backdrop-filter: blur(5px);
}

.hero__welcome {
  display: none;
}

.hero__scroll {
  position: absolute;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  z-index: 20;
  opacity: 0;
  animation: fadeIn 1s ease forwards;
  animation-delay: 1.5s;
}

.hero__scroll span {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.8;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero__scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(180deg, var(--color-ice-blue), transparent);
  animation: scrollPulse 2s ease infinite;
}

/* ==========================================================================
   PROJECTS / COMPANIES SECTION
   ========================================================================== */
.projects {
  padding: var(--space-xxl) 0;
  position: relative;
}

.projects::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 100px;
  background: linear-gradient(180deg, transparent, var(--color-arctic-blue), transparent);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-label {
  font-size: 0.875rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-ice-blue);
  margin-bottom: var(--space-sm);
  display: block;
}

.section-title {
  margin-bottom: var(--space-sm);
}

.projects__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

@media (max-width: 992px) {
  .projects__grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
}

.project-card {
  background: linear-gradient(135deg,
      rgba(26, 58, 92, 0.4) 0%,
      rgba(13, 31, 60, 0.6) 100%);
  border: 1px solid rgba(74, 158, 255, 0.15);
  border-radius: 16px;
  padding: var(--space-lg);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-ice-blue), transparent);
  opacity: 0;
  transition: var(--transition-smooth);
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: rgba(74, 158, 255, 0.3);
  box-shadow: 0 20px 60px rgba(74, 158, 255, 0.1);
}

.project-card:hover::before {
  opacity: 1;
}

.project-card__logo {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
  color: var(--color-white);
}

.project-card__description {
  font-size: 1rem;
  opacity: 0.8;
  margin-bottom: var(--space-md);
  line-height: 1.7;
}

.project-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-ice-blue);
  transition: var(--transition-fast);
}

.project-card__link:hover {
  gap: var(--space-sm);
  color: var(--color-frost);
}

.project-card__link svg {
  width: 16px;
  height: 16px;
}

/* ==========================================================================
   ABOUT / STORY SECTION
   ========================================================================== */
.about {
  padding: var(--space-xxl) 0;
  position: relative;
  overflow: hidden;
}

.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

@media (max-width: 992px) {
  .about__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.about__image {
  position: relative;
}

.about__image img {
  width: 100%;
  max-width: 500px;
  height: auto;
  filter: grayscale(100%) contrast(1.1);
  transition: var(--transition-smooth);
}

.about__image:hover img {
  filter: grayscale(0%) contrast(1);
}

.about__image::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  right: 20px;
  bottom: 20px;
  border: 1px solid var(--color-arctic-blue);
  border-radius: 8px;
  z-index: -1;
}

.about__content {
  max-width: 550px;
}

@media (max-width: 992px) {
  .about__content {
    margin: 0 auto;
  }
}

.about__quote {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-style: italic;
  color: var(--color-frost);
  margin-bottom: var(--space-md);
  position: relative;
}

.about__quote::before {
  content: '"';
  position: absolute;
  top: -20px;
  left: -30px;
  font-size: 6rem;
  color: var(--color-arctic-blue);
  opacity: 0.3;
  font-family: var(--font-display);
  line-height: 1;
}

.about__text {
  font-size: 1.125rem;
  opacity: 0.85;
  line-height: 1.8;
}

/* ==========================================================================
   SERVICES SECTION
   ========================================================================== */
.services {
  padding: var(--space-xxl) 0;
  background: linear-gradient(180deg,
      var(--color-deep-navy) 0%,
      var(--color-night-blue) 50%,
      var(--color-deep-navy) 100%);
  position: relative;
}

.services::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: var(--gradient-frost-glow);
  pointer-events: none;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  position: relative;
  z-index: 1;
}

@media (max-width: 992px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .services__grid {
    grid-template-columns: 1fr;
  }
}

.service-card {
  text-align: center;
  padding: var(--space-lg) var(--space-md);
  border-radius: 16px;
  background: rgba(10, 22, 40, 0.5);
  border: 1px solid rgba(74, 158, 255, 0.1);
  transition: var(--transition-smooth);
  text-decoration: none;
  display: block;
}

.service-card:hover {
  background: rgba(26, 58, 92, 0.4);
  border-color: rgba(74, 158, 255, 0.3);
  transform: translateY(-4px);
}

.service-card__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-arctic-blue), var(--color-night-blue));
  color: var(--color-ice-blue);
}

.service-card__icon svg {
  width: 28px;
  height: 28px;
}

.service-card__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: var(--space-xs);
}

.service-card__subtitle {
  font-size: 0.875rem;
  opacity: 0.6;
}

/* ==========================================================================
   CTA / CONTACT SECTION
   ========================================================================== */
.cta {
  padding: var(--space-xxl) 0;
  text-align: center;
  position: relative;
}

.cta__content {
  max-width: 700px;
  margin: 0 auto;
}

.cta__title {
  margin-bottom: var(--space-sm);
}

.cta__subtitle {
  font-size: 1.25rem;
  opacity: 0.8;
  margin-bottom: var(--space-xl);
}

.contact-form {
  max-width: 500px;
  margin: 0 auto;
  text-align: left;
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-xs);
  color: var(--color-frost);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: var(--space-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-white);
  background: rgba(26, 58, 92, 0.3);
  border: 1px solid rgba(74, 158, 255, 0.2);
  border-radius: 8px;
  transition: var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-ice-blue);
  background: rgba(26, 58, 92, 0.5);
  box-shadow: 0 0 0 3px rgba(74, 158, 255, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.form-textarea {
  min-height: 150px;
  resize: vertical;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-lg);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn--primary {
  background: var(--gradient-ice);
  color: var(--color-deep-navy);
  width: 100%;
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 40px rgba(74, 158, 255, 0.3);
}

.btn--primary:active {
  transform: translateY(0);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  padding: var(--space-lg) 0;
  border-top: 1px solid rgba(74, 158, 255, 0.1);
  text-align: center;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

@media (max-width: 768px) {
  .footer__inner {
    flex-direction: column;
    gap: var(--space-md);
  }
}

.footer__logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.footer__logo img {
  height: 32px;
  width: auto;
}

.footer__links {
  display: flex;
  gap: var(--space-md);
  list-style: none;
}

.footer__link {
  font-size: 0.875rem;
  opacity: 0.6;
  transition: var(--transition-fast);
}

.footer__link:hover {
  opacity: 1;
  color: var(--color-ice-blue);
}

.footer__social {
  display: flex;
  gap: var(--space-sm);
}

.footer__social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(74, 158, 255, 0.1);
  transition: var(--transition-fast);
}

.footer__social a:hover {
  background: var(--color-ice-blue);
  color: var(--color-deep-navy);
}

.footer__social svg {
  width: 18px;
  height: 18px;
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes scrollPulse {

  0%,
  100% {
    opacity: 0.3;
    transform: scaleY(1);
  }

  50% {
    opacity: 1;
    transform: scaleY(1.2);
  }
}

/* Scroll-triggered animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children animation */
.stagger-children>* {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.stagger-children.visible>*:nth-child(1) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.1s;
}

.stagger-children.visible>*:nth-child(2) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.2s;
}

.stagger-children.visible>*:nth-child(3) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.3s;
}

.stagger-children.visible>*:nth-child(4) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.4s;
}

/* ==========================================================================
   PAGE TEMPLATES
   ========================================================================== */
.page-header {
  padding: calc(var(--space-xxl) + 80px) 0 var(--space-xl);
  text-align: center;
  background: var(--gradient-night-sky);
  position: relative;
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(180deg, transparent, var(--color-deep-navy));
}

.page-header__title {
  position: relative;
  z-index: 1;
}

.page-header__subtitle {
  font-size: 1.25rem;
  opacity: 0.8;
  max-width: 600px;
  margin: var(--space-sm) auto 0;
  position: relative;
  z-index: 1;
}

.page-content {
  padding: var(--space-xl) 0 var(--space-xxl);
}

.page-content p {
  margin-bottom: var(--space-md);
}

.page-content h3 {
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
  color: var(--color-frost);
}