/* ============================================
   Naali Solutions – Arctic/Nordic Theme
   ============================================ */

:root {
  /* Arctic palette */
  --ice-50: #f0f9ff;
  --ice-100: #e0f2fe;
  --ice-200: #bae6fd;
  --ice-300: #7dd3fc;
  --ice-400: #38bdf8;
  --ice-500: #0ea5e9;
  --ice-600: #0284c7;
  --ice-700: #0369a1;

  --aurora-blue: #60a5fa;
  --aurora-indigo: #818cf8;
  --aurora-teal: #2dd4bf;
  --aurora-green: #34d399;

  --dark-900: #0b1120;
  --dark-800: #0f172a;
  --dark-700: #1e293b;
  --dark-600: #334155;
  --dark-500: #475569;

  --white: #ffffff;
  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  background: var(--dark-900);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  font-weight: 700;
}

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

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Aurora Canvas ---- */
#aurora-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.4;
}

/* ---- Navigation ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: all 0.4s var(--ease-out-expo);
}

.nav.scrolled {
  background: rgba(11, 17, 32, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(186, 230, 253, 0.08);
  padding: 10px 0;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--white);
}

.logo-icon {
  width: 36px;
  height: 36px;
  color: var(--ice-300);
  filter: brightness(0) invert(1);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.3s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--aurora-blue), var(--aurora-teal));
  border-radius: 1px;
  transition: width 0.3s var(--ease-out-expo);
}

.nav-links a:hover {
  color: var(--white);
}

.nav-links a:hover::after {
  width: 100%;
}

.lang-toggle {
  background: rgba(186, 230, 253, 0.1);
  border: 1px solid rgba(186, 230, 253, 0.2);
  color: var(--ice-300);
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--font-display);
  cursor: pointer;
  transition: all 0.3s;
  letter-spacing: 0.5px;
}

.lang-toggle:hover {
  background: rgba(186, 230, 253, 0.2);
  border-color: rgba(186, 230, 253, 0.4);
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: all 0.3s;
}

.nav-hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-hamburger.active span:nth-child(2) {
  opacity: 0;
}
.nav-hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 24px;
  background: rgba(11, 17, 32, 0.95);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(186, 230, 253, 0.08);
}

.mobile-menu.active {
  display: flex;
}

.mobile-menu a {
  font-size: 1rem;
  color: var(--text-secondary);
  transition: color 0.3s;
}

.mobile-menu a:hover {
  color: var(--white);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s var(--ease-out-expo);
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--ice-500), var(--aurora-blue));
  color: var(--white);
  box-shadow: 0 4px 20px rgba(14, 165, 233, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 8px 30px rgba(14, 165, 233, 0.45);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid rgba(186, 230, 253, 0.15);
}

.btn-ghost:hover {
  border-color: rgba(186, 230, 253, 0.35);
  color: var(--white);
  background: rgba(186, 230, 253, 0.05);
}

.btn-full {
  width: 100%;
}

/* ---- Section shared ---- */
.section-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--aurora-blue);
  margin-bottom: 16px;
  padding: 6px 16px;
  background: rgba(96, 165, 250, 0.1);
  border-radius: 100px;
  border: 1px solid rgba(96, 165, 250, 0.15);
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 64px;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--white), var(--ice-200));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

/* ---- Hero ---- */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 24px 80px;
  max-width: 1200px;
  margin: 0 auto;
  gap: 40px;
}

.hero-content {
  flex: 1;
  max-width: 600px;
}

.hero-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--aurora-teal);
  padding: 8px 18px;
  border-radius: 100px;
  background: rgba(45, 212, 191, 0.08);
  border: 1px solid rgba(45, 212, 191, 0.15);
  margin-bottom: 28px;
  font-family: var(--font-display);
}

.hero h1 {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  margin-bottom: 24px;
  color: var(--white);
  letter-spacing: -1px;
}

.hero-gradient {
  background: linear-gradient(135deg, var(--ice-300), var(--aurora-blue), var(--aurora-indigo));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 500px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Hero visual */
.hero-visual {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  animation: float 8s ease-in-out infinite;
}

.hero-orb-1 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.3), transparent);
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.hero-orb-2 {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(129, 140, 248, 0.25), transparent);
  bottom: 20%;
  right: 10%;
  animation-delay: -3s;
}

.hero-orb-3 {
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.2), transparent);
  top: 40%;
  right: 30%;
  animation-delay: -5s;
}

.fox-silhouette {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 350px;
  animation: float 6s ease-in-out infinite;
  animation-delay: -2s;
}

.fox-silhouette svg,
.fox-silhouette img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 40px rgba(96, 165, 250, 0.2));
}

.hero-fox-img {
  filter: brightness(0) invert(1) drop-shadow(0 0 60px rgba(96, 165, 250, 0.4));
  opacity: 0.85;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

/* ---- Services ---- */
.services {
  position: relative;
  z-index: 1;
  padding: 120px 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.service-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(186, 230, 253, 0.06);
  border-radius: 20px;
  padding: 40px;
  transition: all 0.5s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
}

.service-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(96, 165, 250, 0), rgba(96, 165, 250, 0.15), rgba(45, 212, 191, 0));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.5s;
}

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

.service-card:hover {
  background: rgba(15, 23, 42, 0.8);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.service-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.1), rgba(45, 212, 191, 0.1));
  border-radius: 14px;
  margin-bottom: 24px;
  color: var(--ice-300);
}

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

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: var(--white);
}

.service-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ---- About ---- */
.about {
  position: relative;
  z-index: 1;
  padding: 120px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-text .section-tag {
  margin-bottom: 20px;
}

.about-text h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  margin-bottom: 24px;
  background: linear-gradient(135deg, var(--white), var(--ice-200));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.8;
  font-size: 1.02rem;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.stat-card {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(186, 230, 253, 0.06);
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
  transition: all 0.4s var(--ease-out-expo);
}

.stat-card:hover {
  border-color: rgba(186, 230, 253, 0.15);
  transform: translateY(-4px);
  background: rgba(15, 23, 42, 0.7);
}

.stat-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 14px;
  color: var(--ice-300);
}

.stat-icon svg {
  width: 100%;
  height: 100%;
}

.stat-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  font-family: var(--font-display);
}

/* ---- Contact ---- */
.contact {
  position: relative;
  z-index: 1;
  padding: 120px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-info .section-tag {
  margin-bottom: 20px;
}

.contact-info h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--white), var(--ice-200));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact-info > p {
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.7;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text-secondary);
  transition: color 0.3s;
  font-size: 0.95rem;
}

.contact-item:hover {
  color: var(--ice-300);
}

.contact-item svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--ice-400);
}

/* Form */
.contact-form {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(186, 230, 253, 0.06);
  border-radius: 20px;
  padding: 40px;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
  font-family: var(--font-display);
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: rgba(11, 17, 32, 0.6);
  border: 1px solid rgba(186, 230, 253, 0.1);
  border-radius: 12px;
  padding: 14px 18px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all 0.3s;
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: rgba(96, 165, 250, 0.4);
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
}

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

.form-status {
  margin-top: 16px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 500;
  min-height: 24px;
}

.form-status.success {
  color: var(--aurora-green);
}

.form-status.error {
  color: #f87171;
}

/* ---- Footer ---- */
.footer {
  position: relative;
  z-index: 1;
  padding: 48px 0 32px;
  border-top: 1px solid rgba(186, 230, 253, 0.06);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 8px;
}

.footer-links {
  display: flex;
  gap: 28px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(186, 230, 253, 0.04);
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--dark-900);
}
::-webkit-scrollbar-thumb {
  background: var(--dark-600);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--dark-500);
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 140px 24px 80px;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-sub {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-visual {
    min-height: 250px;
  }

  .fox-silhouette {
    max-width: 250px;
  }

  .services-grid {
    grid-template-columns: 1fr 1fr;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .about-stats {
    grid-template-columns: 1fr 1fr;
  }

  .contact-form {
    padding: 28px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
  }

  .about-stats {
    grid-template-columns: 1fr;
  }
}

/* ---- Animations ---- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content {
  animation: fadeInUp 1s var(--ease-out-expo) 0.2s both;
}

.hero-visual {
  animation: fadeInUp 1s var(--ease-out-expo) 0.5s both;
}

/* ---- Particle snowflakes ---- */
.snowflake {
  position: fixed;
  z-index: 0;
  pointer-events: none;
  width: 4px;
  height: 4px;
  background: rgba(186, 230, 253, 0.4);
  border-radius: 50%;
  animation: snowfall linear infinite;
}

@keyframes snowfall {
  0% {
    transform: translateY(-10px) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) translateX(50px);
    opacity: 0;
  }
}
