/* ================================
   TRIPLEHORN TECH SERVICES WEBSITE
   Dark Theme with Neon Green Accents
   ================================ */

/* ================================
   CSS VARIABLES - DESIGN SYSTEM
   ================================ */
:root {
  /* Dark Theme Base Colors */
  --bg-primary: rgb(17, 17, 19);
  --bg-secondary: rgb(26, 28, 30);
  --bg-tertiary: rgb(38, 40, 42);
  
  /* Text Colors */
  --text-primary: rgb(255, 255, 255);
  --text-secondary: rgb(218, 218, 218);
  --text-muted: rgb(161, 161, 170);
  
  /* Border Colors */
  --border-primary: rgb(63, 63, 63);
  --border-subtle: rgba(255, 255, 255, 0.1);
  
  /* Accent Colors - Neon Green */
  --accent-primary: rgb(218, 255, 1);
  --accent-hover: rgb(166, 190, 21);
  --accent-pressed: rgb(134, 155, 16);
  --accent-bg: rgba(218, 255, 1, 0.1);
  
  /* Spacing Scale */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 32px;
  --space-xl: 48px;
  --space-2xl: 64px;
  --space-3xl: 80px;
  --space-4xl: 120px;
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.6s ease;
}

/* ================================
   RESET & BASE STYLES
   ================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ================================
   TYPOGRAPHY SYSTEM
   ================================ */
.display-lg {
  font-size: 60px;
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.02em;
}

.display-md {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.015em;
}

.h2 {
  font-size: 32px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.h3 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
}

.h4 {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
}

.body-lg {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-secondary);
}

.body-md {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-secondary);
}

.body-sm {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-muted);
}

.text-accent {
  color: var(--accent-primary);
}

/* ================================
   LAYOUT SYSTEM
   ================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* ================================
   BUTTON COMPONENTS
   ================================ */
.btn-primary {
  display: inline-block;
  background: var(--accent-primary);
  color: var(--bg-primary);
  border: none;
  border-radius: var(--radius-md);
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  min-height: 52px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(218, 255, 1, 0.3);
}

.btn-primary:active {
  transform: translateY(0);
  background: var(--accent-pressed);
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--border-primary);
  border-radius: var(--radius-md);
  padding: 14px 30px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  min-height: 52px;
  text-decoration: none;
}

.btn-secondary:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  background: var(--accent-bg);
  transform: translateY(-1px);
}

.btn-lg {
  padding: 18px 40px;
  font-size: 18px;
  min-height: 60px;
}

.btn-full {
  width: 100%;
}

/* ================================
   NAVIGATION
   ================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(17, 17, 19, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  padding: var(--space-sm) 0;
  z-index: 1000;
  transition: all var(--transition-fast);
}

.navbar.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

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

.logo {
  font-size: 24px;
  font-weight: 700;
  display: flex;
  gap: 4px;
}

.logo-text {
  color: var(--text-primary);
}

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

.nav-links {
  display: flex;
  list-style: none;
  gap: var(--space-lg);
  align-items: center;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-fast);
  position: relative;
}

.nav-link:hover {
  color: var(--accent-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-primary);
  transition: width var(--transition-fast);
}

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

.nav-cta {
  padding: 12px 24px;
  min-height: 44px;
}

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

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

/* ================================
   HERO SECTION
   ================================ */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: var(--space-4xl) 0 var(--space-3xl);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(218, 255, 1, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-content {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-subtitle {
  margin: var(--space-lg) auto;
  max-width: 700px;
}

.hero-cta {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  margin: var(--space-xl) 0;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: var(--space-2xl);
  justify-content: center;
  margin-top: var(--space-2xl);
  flex-wrap: wrap;
}

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

.stat-number {
  font-size: 48px;
  font-weight: 700;
  color: var(--accent-primary);
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.stat-label {
  font-size: 14px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ================================
   SECTIONS
   ================================ */
section {
  padding: var(--space-3xl) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.section-header h2 {
  margin-bottom: var(--space-sm);
}

/* ================================
   SERVICES SECTION
   ================================ */
.services-section {
  background: var(--bg-secondary);
}

.service-category {
  margin-bottom: var(--space-3xl);
}

.service-category:last-child {
  margin-bottom: 0;
}

.category-title {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
  color: var(--text-primary);
}

.category-icon {
  width: 32px;
  height: 32px;
  stroke: var(--accent-primary);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
}

/* ================================
   FEATURE CARD
   ================================ */
.feature-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-primary);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-primary);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

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

.card-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-bg);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
}

.card-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--accent-primary);
}

.feature-card h4 {
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.feature-card p {
  margin-bottom: var(--space-md);
}

.feature-list {
  list-style: none;
  padding: 0;
}

.feature-list li {
  padding: 8px 0;
  color: var(--text-muted);
  font-size: 14px;
  position: relative;
  padding-left: 24px;
}

.feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-primary);
  font-weight: 700;
}

/* ================================
   TESTIMONIALS SECTION
   ================================ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-lg);
}

.testimonial-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: all var(--transition-normal);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-primary);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.testimonial-rating {
  display: flex;
  gap: 4px;
  margin-bottom: var(--space-md);
}

.testimonial-rating svg {
  width: 18px;
  height: 18px;
  color: var(--accent-primary);
}

.testimonial-text {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-subtle);
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--accent-primary);
  flex-shrink: 0;
}

.author-name {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 15px;
}

.author-title {
  font-size: 13px;
  color: var(--text-muted);
}

/* ================================
   CONTACT SECTION
   ================================ */
.contact-section {
  background: var(--bg-secondary);
}

.contact-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--space-2xl);
  margin-top: var(--space-2xl);
}

/* Contact Form */
.contact-form-wrapper {
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.form-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.input-field {
  background: var(--bg-secondary);
  border: 2px solid var(--border-primary);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  font-size: 16px;
  color: var(--text-primary);
  font-family: inherit;
  transition: all var(--transition-fast);
  width: 100%;
}

.input-field::placeholder {
  color: var(--text-muted);
}

.input-field:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 4px rgba(218, 255, 1, 0.1);
}

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

/* Contact Info Cards */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.contact-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: all var(--transition-normal);
}

.contact-card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-2px);
}

.contact-icon {
  width: 40px;
  height: 40px;
  background: var(--accent-bg);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-sm);
}

.contact-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--accent-primary);
}

.contact-card h4 {
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.contact-card p {
  margin: 0;
}

.contact-link {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.contact-link:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

/* ================================
   FOOTER
   ================================ */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  padding: var(--space-3xl) var(--space-md) var(--space-xl);
  margin-top: var(--space-4xl);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer-logo {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: var(--space-md);
}

.footer-description {
  margin-bottom: var(--space-lg);
  max-width: 400px;
}

.footer-social {
  display: flex;
  gap: var(--space-sm);
}

.footer-social-link {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.footer-social-link:hover {
  background: var(--accent-primary);
  color: var(--bg-primary);
  transform: translateY(-2px);
}

.footer-social-link svg {
  width: 18px;
  height: 18px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.footer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--accent-primary);
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

/* ================================
   SCROLL TO TOP BUTTON
   ================================ */
.scroll-to-top {
  position: fixed;
  bottom: var(--space-lg);
  right: var(--space-lg);
  width: 50px;
  height: 50px;
  background: var(--accent-primary);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
  z-index: 999;
  box-shadow: 0 4px 15px rgba(218, 255, 1, 0.3);
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  background: var(--accent-hover);
  transform: translateY(-3px);
}

.scroll-to-top svg {
  width: 24px;
  height: 24px;
  stroke: var(--bg-primary);
}

/* ================================
   ANIMATIONS
   ================================ */
@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fade-in-up 0.6s ease-out;
}

/* ================================
   RESPONSIVE DESIGN
   ================================ */

/* Tablet */
@media (max-width: 1024px) {
  .display-lg {
    font-size: 48px;
  }
  
  .display-md {
    font-size: 40px;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
  
  .footer-links {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 768px) {
  .display-lg {
    font-size: 36px;
  }
  
  .display-md {
    font-size: 32px;
  }
  
  .h2 {
    font-size: 28px;
  }
  
  .body-lg {
    font-size: 16px;
  }
  
  /* Navigation */
  .mobile-menu-toggle {
    display: flex;
  }
  
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    flex-direction: column;
    padding: var(--space-md);
    border-top: 1px solid var(--border-subtle);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
  }
  
  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .nav-cta {
    display: none;
  }
  
  /* Hero */
  .hero-section {
    min-height: auto;
    padding: var(--space-3xl) 0 var(--space-2xl);
  }
  
  .hero-cta {
    flex-direction: column;
  }
  
  .hero-cta .btn-primary,
  .hero-cta .btn-secondary {
    width: 100%;
    max-width: 300px;
  }
  
  .hero-stats {
    gap: var(--space-lg);
  }
  
  .stat-number {
    font-size: 36px;
  }
  
  /* Cards */
  .card-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  
  .feature-card {
    padding: var(--space-md);
  }
  
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  
  /* Contact */
  .contact-content {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  
  .contact-form-wrapper {
    padding: var(--space-md);
  }
  
  /* Footer */
  .footer-links {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  /* Sections */
  section {
    padding: var(--space-2xl) 0;
  }
  
  .service-category {
    margin-bottom: var(--space-2xl);
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .display-lg {
    font-size: 32px;
  }
  
  .display-md {
    font-size: 28px;
  }
  
  .container {
    padding: 0 var(--space-sm);
  }
  
  .hero-stats {
    flex-direction: column;
    gap: var(--space-md);
  }
}
