:root {
  /* Huvian Technologies Color Palette */
  --bg-color: #05050A;
  --bg-surface: rgba(255, 255, 255, 0.03);
  --border-color: rgba(255, 255, 255, 0.08);
  
  --text-primary: #FFFFFF;
  --text-secondary: #94A3B8;
  
  --primary-color: #3B82F6; /* Bright Blue */
  --primary-hover: #2563EB;
  --accent-color: #8B5CF6; /* Vibrant Purple */
  
  --glass-bg: rgba(10, 10, 15, 0.7);
  --glass-border: rgba(255, 255, 255, 0.05);
}

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

html {
  scroll-behavior: smooth;
}

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

h1, h2, h3, h4, .logo-text {
  font-family: 'Outfit', sans-serif;
}

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

/* Base Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
}

/* Background Effects */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -1;
  pointer-events: none;
}
.orb-1 {
  width: 600px;
  height: 600px;
  background: rgba(59, 130, 246, 0.15); /* Blue */
  top: -200px;
  left: -200px;
}
.orb-2 {
  width: 500px;
  height: 500px;
  background: rgba(139, 92, 246, 0.15); /* Purple */
  top: 40%;
  right: -100px;
}

.grid-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-image: 
    linear-gradient(to right, rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(circle at center, black, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at center, black, transparent 80%);
  z-index: -1;
  pointer-events: none;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0; left: 0; width: 100%;
  padding: 1.5rem 0;
  z-index: 100;
  transition: all 0.3s ease;
  backdrop-filter: blur(0px); /* Applied dynamically via JS */
}
.navbar.scrolled {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
}
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: opacity 0.3s ease;
}
.logo-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-mark {
  width: 44px;
  height: 44px;
  filter: drop-shadow(0 0 15px rgba(59, 130, 246, 0.25));
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.hex-mark {
    animation: float-hex 4s infinite ease-in-out;
}
@keyframes float-hex {
    0%, 100% { transform: translateY(0); filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.3)); }
    50% { transform: translateY(-3px); filter: drop-shadow(0 0 18px rgba(6, 182, 212, 0.5)); }
}
.logo:hover .logo-mark {
  transform: scale(1.05);
  filter: drop-shadow(0 0 25px rgba(6, 182, 212, 0.6));
}
.logo-name {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.logo-text {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--text-primary);
}
.logo-subtext {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 4px;
  color: var(--primary-color);
  margin-top: 2px;
}
.footer-logo .logo-text {
  font-size: 1.4rem;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  font-weight: 500;
  font-size: 0.95rem;
}
.nav-links a:not(.btn) {
  position: relative;
  transition: color 0.3s;
}
.nav-links a:not(.btn):hover {
  color: var(--primary-color);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  border: none;
  font-family: inherit;
  font-size: 1rem;
}
.btn.sm {
  padding: 0.6rem 1.5rem;
  font-size: 0.9rem;
}
.btn-primary {
  background: var(--primary-color);
  color: #fff;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}
.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(59, 130, 246, 0.5);
}
.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}
.btn-outline:hover {
  border-color: var(--primary-color);
  background: rgba(59, 130, 246, 0.05);
  transform: translateY(-2px);
}
.icon-sm {
  width: 18px; height: 18px;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
}
.hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.hero-title {
  font-size: clamp(3.5rem, 8vw, 5.5rem);
  line-height: 1.05;
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
}
.gradient-text {
  background: linear-gradient(to right, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}
.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 300;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* Common Section Styles */
section {
  padding: 8rem 0;
}
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}
.section-title {
  font-size: 3rem;
  margin-bottom: 1rem;
}
.section-desc {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.service-card {
  background: var(--bg-surface);
  border: 1px solid var(--glass-border);
  padding: 3rem 2rem;
  border-radius: 24px;
  backdrop-filter: blur(10px);
  transition: all 0.4s ease;
}
.service-card:hover {
  transform: translateY(-10px);
  border-color: rgba(59, 130, 246, 0.3);
  background: rgba(255, 255, 255, 0.05);
}
.service-icon {
  width: 64px;
  height: 64px;
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary-color);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.service-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.service-desc {
  color: var(--text-secondary);
}

/* Portfolio Section */
.portfolio {
  background: linear-gradient(180deg, transparent, rgba(139, 92, 246, 0.03), transparent);
}
.portfolio-content {
  display: flex;
  align-items: center;
  gap: 4rem;
}
.portfolio-text {
  flex: 1;
}
.portfolio-visual {
  flex: 1;
  display: flex;
  justify-content: center;
}
.badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: rgba(139, 92, 246, 0.1);
  color: var(--accent-color);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
}
.portfolio-desc {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}
.tech-stack {
  display: flex;
  gap: 1rem;
  list-style: none;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}
.tech-stack li {
  background: var(--bg-surface);
  border: 1px solid var(--glass-border);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.mockup-frame {
  width: 320px;
  height: 650px;
  border-radius: 40px;
  border: 12px solid #141414;
  box-shadow: 0 30px 60px rgba(0,0,0,0.8), 0 0 40px rgba(139, 92, 246, 0.2);
  overflow: hidden;
  position: relative;
  transform: perspective(1000px) rotateY(-10deg) rotateX(5deg);
  transition: transform 0.5s ease;
}
.mockup-frame:hover {
  transform: perspective(1000px) rotateY(-5deg) rotateX(2deg) translateY(-10px);
}
.mockup-screen {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0A0A1A, #1a1a2e);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.mockup-screen::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 120px; height: 25px;
  background: #141414;
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
}
.mockup-text {
  font-family: 'Outfit', sans-serif;
  color: rgba(255,255,255,0.2);
  font-size: 1.2rem;
  font-weight: 500;
}

/* Testimonials Section */
.testimonials {
  position: relative;
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}
.testimonial-card {
  background: var(--bg-surface);
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  padding: 3rem;
  position: relative;
  transition: all 0.4s ease;
  backdrop-filter: blur(15px);
}
.testimonial-card:hover {
  transform: translateY(-8px);
  border-color: rgba(139, 92, 246, 0.2);
  background: rgba(255, 255, 255, 0.05);
}
.quote-icon {
  color: var(--primary-color);
  margin-bottom: 2rem;
  opacity: 0.6;
}
.quote-icon i {
  width: 32px;
  height: 32px;
}
.testimonial-text {
  font-size: 1.15rem;
  color: var(--text-primary);
  margin-bottom: 2.5rem;
  font-style: italic;
  line-height: 1.7;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.author-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}
.author-role {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* CTA Section */
.cta-box {
  background: linear-gradient(135deg, rgba(255,255,255,0.02), rgba(255,255,255,0.05));
  border: 1px solid var(--glass-border);
  border-radius: 32px;
  padding: 5rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-box::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.15), transparent 70%);
  border-radius: 50%;
  transform: translate(30%, -30%);
}
.cta-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.cta-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 3rem;
}
.contact-form {
  max-width: 500px;
  margin: 0 auto;
}
.input-group {
  display: flex;
  gap: 0.5rem;
  background: rgba(0,0,0,0.5);
  border: 1px solid var(--border-color);
  padding: 0.5rem;
  border-radius: 50px;
  transition: border-color 0.3s;
}
.input-group:focus-within {
  border-color: var(--primary-color);
}
.input-group input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 0 1.5rem;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  outline: none;
}
.input-group button {
  white-space: nowrap;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-color);
  padding: 4rem 0 2rem;
}
.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 3rem;
}
.footer-desc {
  color: var(--text-secondary);
  margin-top: 1rem;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.footer-links a {
  color: var(--text-secondary);
  transition: color 0.3s;
}
.footer-links a:hover {
  color: var(--text-primary);
}
.footer-contact {
  color: var(--text-secondary);
}
.footer-contact a {
  color: var(--primary-color);
  display: block;
  margin-top: 0.5rem;
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 900px) {
  .portfolio-content {
    flex-direction: column;
    text-align: center;
  }
  .portfolio-visual {
    margin-top: 3rem;
  }
  .tech-stack {
    justify-content: center;
  }
}
@media (max-width: 768px) {
  .hero-title {
    font-size: 3rem;
  }
  .hero-actions {
    flex-direction: column;
  }
  .nav-links {
    display: none; /* simple mobile hide for now */
  }
  .input-group {
    flex-direction: column;
    border-radius: 16px;
    padding: 1rem;
  }
  .input-group input {
    margin-bottom: 1rem;
    padding: 0.5rem;
    text-align: center;
  }
  .input-group button {
    width: 100%;
  }
  .footer-container {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
}
