:root {
  /* Colors - Premium Dark Tech */
  --bg-primary: #0f172a; /* Deep Navy */
  --bg-secondary: #1e293b; /* Slate */
  --accent-cyan: #38bdf8;
  --accent-blue: #3b82f6;
  --accent-neon-blue: #0ea5e9;
  --accent-gold: #d9b158; /* Subtle gold from the logo */
  
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  
  /* Glassmorphism */
  --glass-bg: rgba(30, 41, 59, 0.6);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  
  /* Layout */
  --nav-height: 100px;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Background Glow Effects */
.glow-bg {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.15) 0%, rgba(15, 23, 42, 0) 70%);
  top: -200px;
  left: -200px;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
}

.glow-bg.top-right {
  top: 100px;
  left: auto;
  right: -300px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, rgba(15, 23, 42, 0) 70%);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  letter-spacing: -1px;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: 1.5rem;
}

p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.text-accent {
  color: var(--accent-cyan);
  text-shadow: 0 0 20px rgba(56, 189, 248, 0.4);
}

.text-center { text-align: center; }

/* Utilities */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.w-100 { width: 100%; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: var(--transition-fast);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-neon-blue));
  color: #fff;
  box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-outline {
  border: 1px solid var(--accent-cyan);
  color: var(--accent-cyan);
  background: transparent;
}

.btn-outline:hover {
  background: rgba(56, 189, 248, 0.1);
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.2);
}

/* Glassmorphism Classes */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: 16px;
  padding: 2.5rem;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 100;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  transition: var(--transition-normal);
}

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

.logo, .footer-logo {
  position: relative;
  display: flex;
  align-items: center;
  z-index: 1;
}

/* Soft spotlight behind the logo to make dark text readable without a hard box */
.logo::before, .footer-logo::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 110%;
  height: 110%;
  background: rgba(255, 255, 255, 0.75);
  z-index: -1;
  pointer-events: none;
  filter: blur(25px); /* Heavy blur creates an amorphous glow, not a sphere */
  border-radius: 20px;
  transition: var(--transition-normal);
}

.logo img, .footer-logo img {
  height: 65px;
  width: auto;
  object-fit: contain;
  transition: var(--transition-normal);
  transform-origin: left center;
  position: relative;
  z-index: 2;
}

.logo:hover::before, .footer-logo:hover::before {
  background: rgba(255, 255, 255, 0.95);
  filter: blur(30px);
  width: 120%;
  height: 120%;
}

.logo:hover img, .footer-logo:hover img {
  transform: scale(1.05);
}

.logo-accent {
  color: var(--accent-cyan);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

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

.nav-links a:not(.btn):hover {
  color: var(--accent-cyan);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 2px;
  background-color: var(--text-primary);
  transition: var(--transition-fast);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  position: relative;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

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

.hero-image-wrapper {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.hero-image-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  border: 1px solid var(--glass-border);
  pointer-events: none;
}

.hero-image {
  width: 100%;
  height: auto;
  display: block;
  transform: scale(1.05);
  transition: transform 10s ease;
}

.hero-image-wrapper:hover .hero-image {
  transform: scale(1);
}

.hero p {
  font-size: 1.25rem;
  max-width: 600px;
  margin-bottom: 2.5rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
}

/* Tech Stack */
.tech-stack {
  padding: 4rem 0;
}

.border-bottom {
  border-bottom: 1px solid var(--glass-border);
}

.border-top {
  border-top: 1px solid var(--glass-border);
}

.section-subtitle {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.logo-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 4rem;
  padding: 1rem 0;
}

.tech-logo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  opacity: 0.5;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  filter: grayscale(100%);
}

.tech-logo-item:hover {
  opacity: 1;
  filter: grayscale(0%);
  transform: translateY(-5px);
}

.tech-logo-item img {
  height: 40px;
  width: auto;
  transition: transform 0.4s ease;
}

.tech-logo-item:hover img {
  transform: scale(1.1);
}

.tech-logo-item span {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* Sections */
section {
  padding: 6rem 0;
}

.section-header {
  margin-bottom: 4rem;
}

.section-banner {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto 4rem auto;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

.section-banner img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}

.section-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg-primary), transparent);
  pointer-events: none;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
  border-top: 2px solid transparent;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 0%, rgba(56, 189, 248, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: var(--transition-normal);
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(56, 189, 248, 0.3);
  border-top-color: var(--accent-gold); /* Discretely using gold on hover */
}

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

.icon-wrapper {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background: rgba(56, 189, 248, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  margin-bottom: 1.5rem;
}

/* Value Prop */
.value-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 3rem;
  max-width: 800px;
  margin: 0 auto;
}

.value-item {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.value-icon {
  color: var(--accent-cyan);
  flex-shrink: 0;
  margin-top: 0.25rem;
}

/* Contact */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-info h2 {
  margin-bottom: 1.5rem;
}

.contact-methods {
  margin-top: 2rem;
}

.method {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--text-secondary);
}

.method svg {
  color: var(--accent-gold); /* Changing from cyan to gold for a subtle pop */
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

input, select, textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition-fast);
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
}

option {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

/* Footer */
footer {
  padding: 3rem 0;
  background: #0b1121; /* Slightly darker than primary */
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  margin-left: 1.5rem;
  font-size: 0.875rem;
}

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

/* Animations */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* Responsive */
@media (max-width: 992px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .hero-content {
    text-align: center;
    margin: 0 auto;
  }
  
  .hero p {
    margin-left: auto;
    margin-right: auto;
  }

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

  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .hero-cta {
    flex-direction: column;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-links a {
    margin: 0 0.75rem;
  }
}
