@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;700;800&family=Inter:wght@300;400;500;600&family=Pacifico&display=swap');
@import url('./hero.css');

:root {
  --bg-dark: #121A2F;
  --bg-darker: #0E1424;
  --glow-left: rgba(85, 166, 218, 0.45);
  --glow-right: rgba(59, 130, 246, 0.25);
  --glow-bottom: rgba(30, 58, 138, 0.35);
  --glass-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
  --glass-bg-hover: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.04) 100%);
  --glass-border: rgba(255, 255, 255, 0.15);
  --primary-accent: #55A6DA;
  --bright-accent: #E0F2FE;
  --text-white: #FFFFFF;
  --text-muted: rgba(255, 255, 255, 0.6);
  --text-muted-light: rgba(255, 255, 255, 0.75);
  --obj-deep-navy: #1E3A8A;
  --obj-royal: #2563EB;
  --obj-bright: #60A5FA;
  --obj-chrome: #94A3B8;
  --nav-bg: rgba(18, 26, 47, 0.8);
  --nav-bg-scroll: rgba(18, 26, 47, 0.98);
  --footer-bg: #0B111F;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #050D1A;
  background-image: 
    /* Subtle silver glass reflection line (Horizon) */
    radial-gradient(ellipse 70% 15% at 50% 55%, rgba(144, 164, 174, 0.15) 0%, transparent 50%),
    linear-gradient(to bottom, transparent 54%, rgba(255, 255, 255, 0.03) 55%, transparent 56%),
    /* Huge bright sky-blue radial glow on the right (like behind the 3D objects) */
    radial-gradient(circle at 75% 35%, rgba(66, 165, 245, 0.3) 0%, transparent 50%),
    /* Deep royal blue radial glow on the left */
    radial-gradient(circle at 20% 60%, rgba(21, 101, 192, 0.25) 0%, transparent 50%),
    /* Base dark navy/blue gradient */
    linear-gradient(180deg, #050D1A 0%, #0A1628 100%);
  background-attachment: scroll;
  color: var(--text-white);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent; /* Removed dark frosted overlay */
  z-index: -1;
  pointer-events: none;
}

.footer-fade-bg {
  width: 100%;
  height: 350px;
  background: url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?q=80&w=2072&auto=format&fit=crop') center/cover no-repeat;
  opacity: 0.15;
  mask-image: linear-gradient(to bottom, transparent 0%, black 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 100%);
  margin-top: -150px; /* pull it up under the footer */
  position: relative;
  z-index: 0;
  pointer-events: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  text-transform: uppercase;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

body .hero-title {
  font-size: clamp(34px, 8vw, 64px);
  line-height: 1.1;
}

/* Glassmorphism utility */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.glass-card:hover {
  background: var(--glass-bg-hover);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3), inset 0 0 20px rgba(255, 255, 255, 0.05);
  transform: translateY(-6px);
}

/* Typography */
.text-accent { color: var(--primary-accent); }
.text-bright { color: var(--bright-accent); }
.text-muted { color: var(--text-muted); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-align: center;
}

.btn-primary {
  background: var(--text-white);
  color: #0F172A;
}

.btn-primary:hover {
  background: var(--primary-accent);
  color: var(--text-white);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(45, 125, 210, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--text-white);
  border: 1px solid var(--text-white);
}

.btn-outline:hover {
  background: var(--text-white);
  color: var(--bg-dark);
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 5%;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  transition: background 0.3s ease;
}

.navbar.scrolled {
  background: var(--nav-bg-scroll);
  padding: 15px 5%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo-icon {
  width: 24px;
  height: 24px;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.nav-logo-ike {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 24px;
  color: var(--text-white);
  letter-spacing: 1px;
}

.nav-logo-tech {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 11px;
  color: var(--primary-accent);
  letter-spacing: 2px;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 15px;
  color: var(--text-white);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--primary-accent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--primary-accent);
}

.nav-links a:hover::after, .nav-links a.active::after {
  opacity: 1;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
}

/* Footer */
.footer {
  background: var(--footer-bg);
  padding: clamp(48px, 8vw, 80px) 5% 20px;
  position: relative;
  border-top: 1px solid var(--glass-border);
  z-index: 10; /* Ensures it sits above the body background overlay */
}

.footer-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(800px, 140vw);
  height: min(800px, 140vw);
  background: radial-gradient(circle, var(--glow-radial) 0%, transparent 70%);
  opacity: 0.05;
  pointer-events: none;
  z-index: 0;
}

.footer-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-bottom: clamp(32px, 6vw, 60px);
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

.footer-col {
  padding: 0 0 0 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  min-width: 0;
}

.footer-col:first-child {
  padding-left: 0;
}

.footer-col:last-child {
  border-right: none;
}

.footer-col h4 {
  font-size: clamp(18px, 2vw, 20px);
  margin-bottom: 20px;
  color: var(--text-white);
  line-height: 1.25;
}

.footer-logo {
  margin-bottom: 16px;
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 20px;
  line-height: 1.7;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.social-icons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--primary-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-accent);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.social-icon:hover {
  background: var(--primary-accent);
  color: var(--text-white);
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.5;
  word-break: break-word;
}

.footer-links a:hover {
  color: var(--primary-accent);
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  min-width: 0;
}

.newsletter-input {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 12px 16px;
  border-radius: 8px;
  color: var(--text-white);
  font-family: 'Inter', sans-serif;
  width: 100%;
  box-sizing: border-box;
}

.newsletter-input:focus {
  outline: none;
  border-color: var(--primary-accent);
}

.newsletter-btn {
  background: var(--primary-accent);
  color: white;
  border: none;
  padding: 12px 18px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  width: 100%;
}

.footer-bottom {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--primary-accent);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

/* Animations */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes rotateY {
  from { transform: rotateY(0deg); }
  to { transform: rotateY(360deg); }
}

@keyframes float1 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes float2 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.05); }
}

/* Responsive Grids */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; max-width: 1280px; margin-left: auto; margin-right: auto; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 1280px; margin-left: auto; margin-right: auto; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 1280px; margin-left: auto; margin-right: auto; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 32px; max-width: 1100px; margin-left: auto; margin-right: auto; }
.cms-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 1280px; margin-left: auto; margin-right: auto; }
.pricing-grid { display: flex; gap: 20px; max-width: 1280px; margin-left: auto; margin-right: auto; flex-wrap: wrap; }

/* Inner pages hero section shared responsive */
body .hero-section {
  padding: clamp(120px, 20vw, 160px) 5% clamp(48px, 8vw, 80px);
  width: 100%;
  box-sizing: border-box;
  max-width: 100%;
  overflow: hidden;
}

body .services-section {
  padding: clamp(40px, 7vw, 80px) 5%;
  width: 100%;
  box-sizing: border-box;
}

/* Responsive */
@media (max-width: 1024px) {
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }
  .footer-col {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 24px 0;
  }
  .footer-col:first-child { padding-top: 0; }
  .footer-col:nth-child(-n+2) { padding-top: 0; }
  .footer-col:nth-last-child(-n+2) { border-bottom: none; padding-bottom: 0; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 24px; }
  .cms-grid { grid-template-columns: repeat(2, 1fr); }

  .nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: -120%;
    width: min(420px, 86%);
    height: 100vh;
    background: rgba(5, 13, 26, 0.99);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    justify-content: flex-start;
    align-items: stretch;
    padding: 110px 24px 40px;
    box-sizing: border-box;
    transition: right 0.35s ease;
    z-index: 998;
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.35);
    overflow-y: auto;
  }
  .nav-links.active {
    right: 0;
  }
  .nav-links.nav-links-pill {
    background: rgba(5, 13, 26, 0.99);
    border-radius: 0;
    padding: 110px 24px 40px;
    gap: 10px;
    justify-content: flex-start;
  }
  .nav-links a {
    color: var(--text-white);
    padding: 14px 20px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 500;
    text-align: left;
    width: 100%;
    display: block;
  }
  .nav-links a::after { display: none !important; }
  .nav-links a.active,
  .nav-links a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-white);
  }
  .nav-links.nav-links-pill a {
    background: rgba(255, 255, 255, 0.04);
    padding: 14px 20px;
    border-radius: 14px;
    color: var(--text-white);
  }
  .nav-links.nav-links-pill a.active,
  .nav-links.nav-links-pill a:hover {
    background: var(--text-white);
    color: var(--bg-darker);
  }
  .mobile-menu-btn {
    z-index: 9999;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: -120%;
    width: 100%;
    height: 100vh;
    background: rgba(5, 13, 26, 0.99);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    justify-content: flex-start;
    align-items: stretch;
    transition: right 0.35s ease;
    z-index: 998;
    padding: 104px 20px 40px;
    box-sizing: border-box;
    box-shadow: -12px 0 48px rgba(0, 0, 0, 0.35);
    overflow-y: auto;
  }
  .nav-links.active {
    right: 0;
  }
  .nav-links.nav-links-pill {
    background: rgba(5, 13, 26, 0.99);
    border-radius: 0;
    padding: 104px 20px 40px;
    gap: 10px;
    justify-content: flex-start;
  }
  .nav-links a {
    color: var(--text-white);
    padding: 14px 18px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 500;
    text-align: left;
    width: 100%;
    display: block;
  }
  .nav-links a::after { display: none !important; }
  .nav-links a.active,
  .nav-links a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-white);
  }
  .nav-links.nav-links-pill a {
    background: rgba(255, 255, 255, 0.04);
    padding: 14px 18px;
    border-radius: 14px;
    color: var(--text-white);
  }
  .nav-links.nav-links-pill a.active,
  .nav-links.nav-links-pill a:hover {
    background: var(--text-white);
    color: var(--bg-darker);
  }
  .nav-btn {
    display: none;
  }
  .mobile-menu-btn {
    z-index: 9999;
  }

  body .services-section {
    padding: 48px 16px;
  }

  body .hero-section {
    padding: 110px 16px 40px;
  }

  body .hero-title {
    font-size: clamp(26px, 10vw, 44px);
    line-height: 1.1;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .footer-col {
    padding: 16px 0;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .footer-col:first-child { padding-top: 0; }
  .footer-col:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
    padding: 16px 0 0;
    font-size: 12px;
  }
  .footer-tagline {
    font-size: 13px;
  }
  .footer-links a {
    font-size: 13px;
  }
  .social-icons {
    gap: 10px;
  }

  .grid-4, .grid-3, .grid-2, .cms-grid { grid-template-columns: 1fr; gap: 16px; }
  .pricing-grid { flex-direction: column; gap: 16px; }

  .glass-card {
    border-radius: 16px;
  }
}

@media (max-width: 480px) {
  body .services-section {
    padding: 36px 14px;
  }
  body .hero-section {
    padding: 100px 14px 32px;
  }
  body .hero-title {
    font-size: clamp(22px, 10vw, 34px);
  }
  .footer {
    padding: 40px 14px 16px;
  }
  .footer-content {
    gap: 20px;
  }
  .newsletter-input,
  .newsletter-btn {
    font-size: 14px;
  }
}
