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

:root {
  --bg-dark: #0d1017;
  --bg-panel: #161b24;
  --bg-glass: rgba(39, 39, 42, 0.8);
  --border-color: rgba(255, 255, 255, 0.15);
  --text-primary: #ffffff;
  --text-secondary: #a3a3a3;
  --accent: #ececec;
  
  --grey-light: #e0e0e0;
  --grey-mid: #6b6b6b;
  --grey-dark: #2d2d2d;
  
  --transition: color 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), background-color 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), border-color 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --max-width: 1280px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: radial-gradient(circle at top right, rgba(50, 60, 100, 0.1), transparent 50%),
                    radial-gradient(circle at bottom left, rgba(80, 50, 80, 0.08), transparent 50%);
  z-index: -2;
  pointer-events: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.5rem, 2vw, 2rem); }
p { font-size: 1.125rem; color: var(--text-secondary); }

.text-gradient {
  background: linear-gradient(90deg, #60a5fa, #c084fc, #fbbf24);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  padding-right: 0.1em;
  margin-right: -0.1em;
}

/* Layout */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 8rem 0;
  position: relative;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 0;
  z-index: 100;
  background: rgba(13, 16, 23, 0.98);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

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

/* Logo CSS Version */
.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 3px;
  width: 40px;
  height: 40px;
}

.logo-grid span {
  border-radius: 2px;
  background-color: #fff;
}

/* Matching the logo col colors */
.logo-grid span:nth-child(6) { background-color: var(--grey-mid); }
.logo-grid span:nth-child(8) { background-color: var(--grey-mid); }
.logo-grid span:nth-child(9) { background-color: var(--grey-dark); }

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  color: #fff;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -1px;
}

.logo-subtitle {
  color: var(--text-secondary);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 2px;
}

/* Nav Links */
.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition);
}

.nav-links a:hover, .nav-links a.active {
  color: #fff;
}

.nav-links a.btn-primary {
  color: #fff;
}

.nav-links a.btn-primary:hover {
  color: #fff;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: #3b82f6;
  color: #fff;
  border: 1px solid #60a5fa;
}

.btn-primary:hover {
  background: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

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

.btn-secondary:hover {
  background: rgba(255,255,255,0.05);
  border-color: #fff;
  transform: translateY(-2px);
}

/* Cards */
.card {
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 3rem 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(255,255,255,0.2);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transform: scaleX(0);
  transition: transform 0.5s ease;
}

.card:hover::before {
  transform: scaleX(1);
}

/* Footer */
footer {
  border-top: 1px solid var(--border-color);
  padding: 4rem 0 2rem;
  background: var(--bg-panel);
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-col h4 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Hero Specific Base */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 10rem;
}

/* Utility Animations */
.fade-up { opacity: 0; transform: translateY(30px); }

/* Responsive Grid System */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }

/* Media Queries */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 101;
}

.menu-toggle span {
  width: 30px;
  height: 2px;
  background-color: #fff;
  transition: 0.3s;
}

@media (max-width: 900px) {
  .menu-toggle {
    display: flex;
  }
  
  .nav-links { 
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 250px;
    background: rgba(13, 16, 23, 0.98);
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
    transition: right 0.3s ease;
    border-left: 1px solid var(--border-color);
  }
  
  .nav-links.active {
    right: 0;
  }

  .nav-links a {
    font-size: 1.2rem;
  }

  .nav-links a.btn-primary {
    margin-left: 0 !important;
    text-align: center;
  }

  .footer-grid, .grid-3, .grid-2 { grid-template-columns: 1fr; gap: 2rem; }
  h1 { font-size: 3rem; }
  .btn { width: 100%; text-align: center; padding: 0.8rem 1rem; font-size: 0.95rem; }
  .hero-btns { flex-direction: column; width: 100%; }
}

/* Marquee for Clients */
.marquee-container {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  display: flex;
  background: var(--bg-panel);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 2.5rem 0;
}

.marquee-content {
  display: flex;
  width: max-content;
  animation: scroll 30s linear infinite;
  gap: 4rem;
  padding-right: 4rem;
  align-items: center;
  will-change: transform;
}

.marquee-container:hover .marquee-content {
  animation-play-state: paused;
}

.marquee-content img {
  height: 48px;
  width: auto;
  opacity: 0.5;
  transition: var(--transition);
}

.marquee-content img:hover {
  opacity: 1;
}

.marquee-content span {
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0.5;
  transition: var(--transition);
}

.marquee-content span:hover {
  opacity: 1;
  color: #fff;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Tool Badges */
.tools-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.tool-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  transition: var(--transition);
  cursor: pointer;
}

.tool-badge img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  opacity: 0.8;
  transition: var(--transition);
}

.tool-badge:hover img {
  opacity: 1;
}

.tool-badge:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

/* Glowing Orb for Hero */
.glow-orb {
  position: absolute;
  top: 50%;
  right: 0%;
  transform: translateY(-50%) translateZ(0);
  will-change: transform, opacity;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.15) 0%, rgba(192, 132, 252, 0.1) 20%, rgba(251, 191, 36, 0.05) 50%, transparent 70%);
  z-index: -1;
  border-radius: 50%;
  animation: pulse-glow 8s ease-in-out infinite alternate;
}

@keyframes pulse-glow {
  0% { transform: translateY(-50%) scale(1) translateZ(0); opacity: 0.8; }
  100% { transform: translateY(-50%) scale(1.1) translateZ(0); opacity: 1; }
}

.text-gold {
  color: #fbbf24;
}
