:root {
  /* Core Palette - Deep Space Theme */
  --bg-dark: #050A14;
  --bg-card: rgba(20, 27, 46, 0.7);
  --bg-glass: rgba(20, 27, 46, 0.4);

  /* Primary Accent - Electric Blue */
  --primary: #00F0FF;
  --primary-glow: rgba(0, 240, 255, 0.4);
  --primary-dim: rgba(0, 240, 255, 0.1);

  /* Secondary Accent - Cyber Purple */
  --secondary: #7000FF;
  --secondary-glow: rgba(112, 0, 255, 0.4);

  /* Text Colors */
  --text-light: #FFFFFF;
  --text-muted: #94A3B8;
  --text-dim: #64748B;

  /* UI Elements */
  --border-light: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(0, 240, 255, 0.3);
  --glass-blur: blur(12px);

  /* Spacing & Layout */
  --section-padding: clamp(60px, 8vw, 120px);
  --card-gap: 2rem;
  --container-width: 1400px;

  /* Transitions */
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --font-main: 'Outfit', sans-serif;
}

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1rem;
  color: var(--text-light);
}

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

h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  background: linear-gradient(135deg, #fff 0%, var(--text-muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--primary);
}

p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

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

.glass {
  background: var(--bg-glass);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-light);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Header */
header {
  background: rgba(5, 10, 20, 0.85);
  backdrop-filter: blur(20px);
  padding: 1.2rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-light);
}

header h1 {
  font-size: 1.8rem;
  margin: 0;
  background: linear-gradient(90deg, var(--text-light), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

nav {
  display: flex;
  gap: 2.5rem;
}

nav a {
  font-weight: 500;
  color: var(--text-muted);
  font-size: 1rem;
  position: relative;
  padding: 0.5rem 0;
}

nav a:hover,
nav a.active {
  color: var(--primary);
  text-shadow: 0 0 20px var(--primary-glow);
}

nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transition: var(--transition);
}

nav a:hover::after,
nav a.active::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--text-light);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 120px 20px 60px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, var(--primary-dim) 0%, transparent 70%);
  z-index: -1;
  filter: blur(100px);
}

.hero h2 {
  font-size: clamp(3rem, 6vw, 5rem);
  margin-bottom: 1.5rem;
  text-shadow: 0 0 40px rgba(0, 240, 255, 0.2);
}

.hero p {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  max-width: 700px;
  margin-bottom: 3rem;
  color: var(--text-muted);
}

.cta-button {
  padding: 1.2rem 3rem;
  background: transparent;
  color: var(--primary);
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: 50px;
  border: 1px solid var(--primary);
  box-shadow: 0 0 20px var(--primary-dim);
  transition: var(--transition);
  display: inline-block;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background: var(--primary);
  z-index: -1;
  transition: var(--transition);
}

.cta-button:hover {
  color: #000;
  box-shadow: 0 0 40px var(--primary-glow);
}

.cta-button:hover::before {
  width: 100%;
}

/* Cards & Grid Systems */
.services-grid,
.benefits-grid,
.video-gallery,
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--card-gap);
  padding: 2rem 0;
}

.card,
.service-card-numbered,
.benefit-card,
.video-card,
.blog-card {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  padding: 2.5rem;
  border-radius: 20px;
  border: 1px solid var(--border-light);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.card:hover,
.service-card-numbered:hover,
.benefit-card:hover,
.video-card:hover,
.blog-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5), 0 0 20px var(--primary-dim);
}

/* Numbered Services Specifics */
.numbered-services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--card-gap);
  padding: var(--section-padding) 0;
}

.service-number {
  font-size: 6rem;
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 2px var(--border-light);
  line-height: 1;
  margin-bottom: 1.5rem;
  opacity: 0.5;
  transition: var(--transition);
}

.service-card-numbered:hover .service-number {
  -webkit-text-stroke: 2px var(--primary);
  opacity: 1;
  text-shadow: 0 0 30px var(--primary-glow);
}

/* Tech Tabs */
.tech-section {
  padding: var(--section-padding) 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 240, 255, 0.03) 50%, transparent 100%);
}

.tech-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 4rem;
  flex-wrap: wrap;
}

.tech-tab {
  padding: 1rem 2rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  border-radius: 50px;
  color: var(--text-muted);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-main);
}

.tech-tab:hover,
.tech-tab.active {
  background: var(--primary-dim);
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 0 20px var(--primary-dim);
}

.tech-content {
  display: none;
  animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.tech-content.active {
  display: block;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1.5rem;
}

.tech-item {
  background: var(--bg-card);
  padding: 1.5rem;
  border-radius: 16px;
  text-align: center;
  border: 1px solid var(--border-light);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100px;
}

.tech-item:hover {
  border-color: var(--secondary);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(112, 0, 255, 0.15);
}

.tech-item span {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-light);
}

/* Contact Form */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  padding: var(--section-padding) 0;
}

.contact-form {
  background: var(--bg-card);
  padding: 3rem;
  border-radius: 24px;
  border: 1px solid var(--border-light);
  backdrop-filter: blur(20px);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1.2rem;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  color: var(--text-light);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 20px var(--primary-dim);
  background: rgba(0, 0, 0, 0.4);
}

/* Blog Specific Styles */
.blog-hero {
  text-align: center;
  padding: 180px 2rem 80px;
  background: radial-gradient(circle at 50% 0%, var(--primary-dim) 0%, transparent 60%);
}

.blog-card {
  padding: 0;
  /* Override default card padding for image */
  display: flex;
  flex-direction: column;
}

.blog-card-image {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-bottom: 1px solid var(--border-light);
}

.blog-card-content {
  padding: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.blog-card-date {
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.blog-card-title {
  color: var(--text-light);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.blog-card-excerpt {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.blog-card-author {
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
  color: var(--text-dim);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Post Detail Styles */
.post-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 140px 2rem 60px;
}

.post-header {
  text-align: center;
  margin-bottom: 4rem;
}

.post-meta {
  display: flex;
  justify-content: center;
  gap: 2rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.post-image {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
  border-radius: 20px;
  margin-bottom: 4rem;
  border: 1px solid var(--border-light);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.post-content {
  font-size: 1.2rem;
  line-height: 1.8;
  color: #CBD5E1;
}

.post-content h2 {
  font-size: 2.5rem;
  margin-top: 3rem;
  color: var(--text-light);
}

.post-content p {
  margin-bottom: 1.5rem;
}

/* Footer */
footer {
  background: #020408;
  padding: 4rem 2rem;
  text-align: center;
  border-top: 1px solid var(--border-light);
  margin-top: auto;
}

/* Animations */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

/* Floating Buttons */
.instagram-float,
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  z-index: 1000;
  transition: var(--transition);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.instagram-float {
  bottom: 110px;
  right: 30px;
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.whatsapp-float {
  bottom: 30px;
  right: 30px;
  background: #25D366;
}

.instagram-float:hover,
.whatsapp-float:hover {
  transform: scale(1.1) translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  nav {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background: rgba(5, 10, 20, 0.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    transform: translateY(-150%);
    transition: var(--transition);
    border-bottom: 1px solid var(--border-light);
  }

  nav.active {
    transform: translateY(0);
  }

  .contact-container {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 140px;
  }
}
}
}