/* Next-Gen IT Consulting CSS - Iterate IT */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* Modern CSS Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Root Variables - Next-Gen Color Palette */
:root {
  --primary-bg: #0a0a0a;
  --secondary-bg: #0f0f0f;
  --accent-color: #00d9ff;
  --accent-secondary: #7c3aed;
  --accent-tertiary: #f59e0b;
  --accent-glow: #00d9ff;
  --text-primary: #ffffff;
  --text-secondary: #e5e7eb;
  --text-muted: #9ca3af;
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --card-glow: rgba(0, 217, 255, 0.15);
  --purple-glow: rgba(124, 58, 237, 0.2);
}

/* Base Styles with Modern Typography */
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

/* Selection styling */
::selection {
  background: rgba(0, 217, 255, 0.2);
  color: var(--text-primary);
}

::-moz-selection {
  background: rgba(0, 217, 255, 0.2);
  color: var(--text-primary);
}

body {
  min-height: 100vh;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--primary-bg);
  background-image: 
    radial-gradient(circle at 25% 25%, rgba(0, 217, 255, 0.03) 0%, transparent 90%),
    radial-gradient(circle at 75% 75%, rgba(124, 58, 237, 0.03) 0%, transparent 90%);
  background-attachment: fixed;
  position: relative;
  overflow-x: hidden;
}

/* Utility Classes */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.section-padding {
  padding: 6rem 0;
}

/* Enhanced Next-Gen Button Styles */
.btn-primary {
  background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-secondary) 100%);
  color: white;
  padding: 1rem 2.5rem;
  border-radius: 2rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
  border: none;
  cursor: pointer;
  box-shadow: 
    0 4px 20px rgba(0, 217, 255, 0.15),
    0 8px 32px rgba(124, 58, 237, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  overflow: hidden;
  isolation: isolate;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
  z-index: 1;
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 
    0 12px 40px rgba(0, 217, 255, 0.3),
    0 8px 25px rgba(124, 58, 237, 0.25),
    0 0 30px rgba(0, 217, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-primary:active {
  transform: translateY(-1px) scale(0.98);
  transition: all 0.1s ease;
}

.btn-primary:hover::before {
  left: 100%;
}

/* Next-Gen Navigation */
.nav {
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--glass-border);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: all 0.3s ease;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 1001;
  position: relative;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.logo:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.logo:hover .logo-image {
  filter: brightness(1.2);
}

.logo-image {
  height: 50px;
  width: auto;
  object-fit: contain;
  transition: all 0.3s ease;
  filter: brightness(1.1);
}

.logo-text {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-primary);
  text-decoration: none;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-text .accent {
  background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 3rem;
  height: 2.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
  position: relative;
}

.hamburger-line {
  width: 2rem;
  height: 3px;
  background: var(--accent-color);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}

.mobile-menu-btn.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-btn.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Navigation Links */
.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  align-items: center;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0.5rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--text-primary);
  text-shadow: 0 0 10px rgba(0, 217, 255, 0.5);
}

.nav-links a:hover::after {
  width: 100%;
}

/* Scroll indicator for better UX */
.scroll-indicator {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 50px;
  border: 2px solid var(--accent-color);
  border-radius: 25px;
  opacity: 0.7;
  z-index: 100;
  transition: opacity 0.3s ease;
}

.scroll-indicator::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--accent-color);
  border-radius: 2px;
  animation: scroll-bounce 2s infinite;
}

@keyframes scroll-bounce {
  0%, 20% { transform: translateX(-50%) translateY(0); opacity: 1; }
  100% { transform: translateX(-50%) translateY(15px); opacity: 0; }
}

.scroll-indicator.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Enhanced Mobile Responsive Navigation */
@media (max-width: 768px) {
  .mobile-menu-btn {
    display: flex;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    height: 100vh;
    background: rgba(10, 10, 10, 0.97);
    backdrop-filter: blur(30px) saturate(180%);
    border-left: 1px solid var(--glass-border);
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 0;
    padding: 8rem 2rem 2rem;
    transition: right 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 50px rgba(0, 0, 0, 0.3);
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .nav-links li {
    width: 100%;
  }
  
  .nav-links a {
    display: block;
    width: 100%;
    padding: 1.5rem 0;
    font-size: 1.125rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-align: left;
    transition: all 0.3s ease;
    position: relative;
  }
  
  .nav-links a:hover {
    padding-left: 1rem;
    color: var(--accent-color);
    background: rgba(0, 217, 255, 0.05);
  }
  
  .nav-links a:last-child {
    border-bottom: none;
  }
  
  .nav-links a::after {
    display: none;
  }
  
  .mobile-cta {
    margin-top: 2rem !important;
    padding: 2rem 3.5rem !important;
    text-align: center !important;
    width: 100% !important;
    color: var(--text-primary) !important;
    background: rgba(0, 217, 255, 0.1) !important;
    border: 2px solid var(--accent-color) !important;
    border-radius: 1.5rem !important;
    backdrop-filter: blur(10px) !important;
  }
  
  .mobile-cta:hover {
    background: rgba(0, 217, 255, 0.2) !important;
    color: var(--text-primary) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(0, 217, 255, 0.3) !important;
  }
  
  .logo {
    gap: 0.5rem;
  }
  
  .logo-image {
    height: 40px;
  }
  
  .logo-text {
    font-size: 1.5rem;
  }
  
  /* Navigation specific button padding */
  .nav .btn-primary {
    padding: 1.25rem 3rem !important;
    font-size: 0.95rem;
  }
}

/* Tablet Navigation */
@media (max-width: 1024px) and (min-width: 769px) {
  .nav-links {
    gap: 1.5rem;
  }
  
  .nav-links a {
    font-size: 0.9rem;
  }
  
  .btn-primary {
    padding: 0.875rem 1.75rem;
    font-size: 0.875rem;
  }
}

/* Next-Gen Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: transparent;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Ccircle cx='30' cy='30' r='1'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  animation: float 20s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(180deg); }
}

.hero-content {
  text-align: center;
  position: relative;
  z-index: 2;
  animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero h1 {
  font-size: 4rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-color) 50%, var(--accent-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: glow 3s ease-in-out infinite alternate;
}

@keyframes glow {
  from {
    text-shadow: 0 0 20px rgba(0, 217, 255, 0.3);
  }
  to {
    text-shadow: 0 0 30px rgba(0, 217, 255, 0.6), 0 0 40px rgba(124, 58, 237, 0.3);
  }
}

.hero .accent-text {
  background: linear-gradient(45deg, var(--accent-color), var(--accent-tertiary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.375rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  max-width: 750px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 400;
  line-height: 1.7;
  opacity: 0;
  animation: fadeInUp 1s ease-out 0.3s forwards;
}

.hero .btn-primary {
  opacity: 0;
  animation: fadeInUp 1s ease-out 0.6s forwards;
  margin-top: 1rem;
}

/* Redesigned Pillars Section */
.pillars {
  padding: 8rem 0;
  position: relative;
  background: transparent;
}

/* Pillars Header */
.pillars-header {
  text-align: center;
  margin-bottom: 5rem;
  position: relative;
  z-index: 2;
}

.pillars-header h2 {
  font-size: 3.5rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-color) 50%, var(--accent-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pillars-header p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  font-weight: 400;
}

/* Pillars Showcase Layout */
.pillars-showcase {
  position: relative;
  z-index: 2;
}

/* Featured Pillar */
.pillar-featured {
  background: var(--glass-bg);
  backdrop-filter: blur(25px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: 2rem;
  padding: 3rem;
  margin-bottom: 3rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 16px 64px rgba(0, 0, 0, 0.2);
}

.pillar-featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--card-glow) 0%, var(--purple-glow) 100%);
  opacity: 0.3;
  transition: opacity 0.5s ease;
}

.pillar-featured:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 217, 255, 0.4);
  box-shadow: 
    0 32px 80px rgba(0, 0, 0, 0.3),
    0 0 60px rgba(0, 217, 255, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.pillar-featured:hover::before {
  opacity: 0.5;
}

/* Pillar Visual Elements */
.pillar-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  position: relative;
  z-index: 2;
}

.pillar-icon-wrapper {
  position: relative;
  width: 8rem;
  height: 8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 217, 255, 0.1);
  border-radius: 2rem;
  border: 1px solid rgba(0, 217, 255, 0.2);
}

.pillar-featured .pillar-icon-wrapper {
  width: 10rem;
  height: 10rem;
}

.pillar-icon {
  width: 4rem;
  height: 4rem;
  stroke: var(--accent-color);
  stroke-width: 2;
  filter: drop-shadow(0 0 15px rgba(0, 217, 255, 0.4));
  transition: all 0.5s ease;
  position: relative;
  z-index: 2;
}

.pillar-featured .pillar-icon {
  width: 5rem;
  height: 5rem;
}

.icon-glow {
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle, var(--accent-color) 0%, transparent 70%);
  opacity: 0.2;
  border-radius: 50%;
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.2; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.1); }
}

.pillar-number {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--accent-color);
  background: rgba(0, 217, 255, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(0, 217, 255, 0.2);
}

.pillar-featured .pillar-number {
  font-size: 1.5rem;
  padding: 0.75rem 1.5rem;
}

/* Pillar Content */
.pillar-content {
  position: relative;
  z-index: 2;
}

.pillar-featured .pillar-content h3 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  line-height: 1.2;
}

.pillar-featured .pillar-content p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.pillar-link {
  display: inline-block;
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 1rem;
  transition: all 0.3s ease;
  position: relative;
}

.pillar-link:hover {
  color: var(--accent-secondary);
  transform: translateX(4px);
}

.pillar-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-secondary) 100%);
  transition: width 0.3s ease;
}

.pillar-link:hover::after {
  width: 100%;
}

/* Feature Tags */
.pillar-features {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.feature-tag {
  background: rgba(0, 217, 255, 0.1);
  color: var(--accent-color);
  padding: 0.5rem 1rem;
  border-radius: 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid rgba(0, 217, 255, 0.2);
  transition: all 0.3s ease;
}

.feature-tag:hover {
  background: rgba(0, 217, 255, 0.2);
  transform: translateY(-2px);
}

/* Secondary Pillars Grid */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.pillar-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--glass-border);
  padding: 2.5rem;
  border-radius: 1.5rem;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--card-glow) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.pillar-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(0, 217, 255, 0.3);
  box-shadow: 
    0 24px 60px rgba(0, 0, 0, 0.3),
    0 0 40px rgba(0, 217, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.pillar-card:hover::before {
  opacity: 1;
}

.pillar-card:nth-child(2):hover::before {
  background: linear-gradient(135deg, var(--purple-glow) 0%, transparent 60%);
}

.pillar-card .pillar-visual {
  margin-bottom: 2rem;
}

.pillar-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
  position: relative;
  z-index: 2;
}

.pillar-card p {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 1rem;
  position: relative;
  z-index: 2;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .pillar-featured {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
    padding: 2.5rem;
  }
  
  .pillars-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .pillars-header h2 {
    font-size: 2.5rem;
  }
  
  .pillar-featured .pillar-content h3 {
    font-size: 2rem;
  }
  
  .pillar-featured .pillar-content p {
    font-size: 1.125rem;
  }
  
  .pillars-grid {
    grid-template-columns: 1fr;
  }
}

/* Advantage section - Enhanced Styling */
.advantage {
  padding: 8rem 0;
  background: transparent;
  position: relative;
  overflow: hidden;
}

.advantage-content {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.advantage h2 {
  font-size: 3.5rem;
  font-weight: 900;
  margin-bottom: 2.5rem;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-tertiary) 50%, var(--accent-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.advantage p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  line-height: 1.8;
  font-weight: 400;
}

/* Contact section - Enhanced Styling */
.contact {
  background: transparent;
  padding: 8rem 0;
  position: relative;
  overflow: hidden;
}

.contact-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.contact h2 {
  font-size: 3.5rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-color) 50%, var(--accent-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.contact p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  font-weight: 400;
  line-height: 1.6;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: var(--glass-bg);
  backdrop-filter: blur(25px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: 2rem;
  padding: 3rem;
  box-shadow: 0 16px 64px rgba(0, 0, 0, 0.2);
}

.form-group {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.form-group label {
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  font-weight: 600;
  font-size: 1.1rem;
}

.form-group input,
.form-group textarea {
  padding: 1.25rem 1.5rem;
  border-radius: 1rem;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(10px);
  color: var(--text-primary);
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: rgba(0, 217, 255, 0.5);
  background: rgba(0, 217, 255, 0.05);
  box-shadow: 0 0 0 3px rgba(0, 217, 255, 0.1);
  transform: translateY(-1px);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.6;
}

/* Responsive design */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero p {
    font-size: 1.125rem;
    max-width: 90%;
  }
  
  .scroll-indicator {
    display: none;
  }
  
  .nav-links {
    gap: 1rem;
  }
  
  .pillars-grid {
    grid-template-columns: 1fr;
  }
  
  .container {
    padding: 0 1rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
    line-height: 1.1;
  }
  
  .hero p {
    font-size: 1rem;
    margin-bottom: 2rem;
  }
  
  .pillars h2,
  .advantage h2,
  .contact h2 {
    font-size: 2.5rem;
  }
  
  .contact-form {
    padding: 2rem;
    border-radius: 1.5rem;
  }
  
  .advantage,
  .contact {
    padding: 4rem 0;
  }
  
  .btn-primary {
    padding: 1.5rem 3rem;
    font-size: 0.9rem;
  }
}

/* Footer Styles */
.footer {
  background: transparent;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--glass-border);
}

.footer-content {
  position: relative;
  z-index: 2;
  padding: 4rem 0 2rem;
}

.footer-main {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Footer Brand Section */
.footer-brand {
  max-width: 400px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.footer-logo:hover {
  transform: translateX(5px);
  opacity: 0.9;
}

.footer-logo:hover .footer-logo-image {
  filter: brightness(1.2);
}

.footer-logo-image {
  height: 40px;
  width: auto;
  object-fit: contain;
  filter: brightness(1.1);
  transition: all 0.3s ease;
}

.footer-logo-text {
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-logo-text .accent {
  background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-tagline {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--accent-color);
  margin-bottom: 1rem;
  text-shadow: 0 0 10px rgba(0, 217, 255, 0.3);
}

.footer-description {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* Footer Links Section */
.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.footer-column h4 {
  color: var(--text-primary);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  position: relative;
}

.footer-column h4::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 2rem;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-color), var(--accent-secondary));
  border-radius: 1px;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column ul li {
  margin-bottom: 0.75rem;
}

.footer-column ul li a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 400;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.footer-column ul li a:hover {
  color: var(--text-primary);
  text-shadow: 0 0 8px rgba(0, 217, 255, 0.4);
  transform: translateX(4px);
}

/* Footer Contact & Social */
.footer-contact {
  margin-bottom: 2rem;
}

.footer-contact p {
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.footer-contact p strong {
  color: var(--text-primary);
  font-weight: 600;
}

.footer-contact a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-contact a:hover {
  color: var(--accent-color);
  text-shadow: 0 0 8px rgba(0, 217, 255, 0.4);
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.social-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-secondary) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: inherit;
}

.social-link svg {
  position: relative;
  z-index: 2;
  transition: all 0.4s ease;
}

.social-link:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 217, 255, 0.4);
  box-shadow: 
    0 8px 25px rgba(0, 0, 0, 0.3),
    0 0 20px rgba(0, 217, 255, 0.3);
}

.social-link:hover::before {
  opacity: 0.1;
}

.social-link:hover svg {
  color: var(--accent-color);
  transform: scale(1.1);
}

/* Footer Bottom */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 2rem;
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copyright {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin: 0;
}

.footer-legal-link {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-legal-link:hover {
  color: var(--text-secondary);
}

.footer-built {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin: 0;
}

.footer-built .accent-text {
  background: linear-gradient(45deg, var(--accent-color), var(--accent-tertiary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 500;
}

/* Footer Responsive Design */
@media (max-width: 1024px) {
  .footer-main {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .footer-links {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .footer-content {
    padding: 3rem 0 1.5rem;
  }
  
  .footer-main {
    gap: 2.5rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
  }
  
  .footer-links {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .footer-copyright {
    order: 2;
  }
  
  .footer-built {
    order: 1;
  }
}

@media (max-width: 480px) {
  .footer-content {
    padding: 2rem 0 1rem;
  }
  
  .footer-brand {
    text-align: center;
  }
  
  .footer-logo {
    justify-content: center;
  }
  
  .footer-social {
    justify-content: center;
  }
  
  .footer-column {
    text-align: center;
  }
  
  .footer-column h4::after {
    left: 50%;
    transform: translateX(-50%);
  }
}

/* Service Pages Styles */
.service-hero {
  background: linear-gradient(135deg, rgba(0, 217, 255, 0.05) 0%, rgba(124, 58, 237, 0.05) 100%);
  padding: 8rem 0 4rem 0;
  margin-top: 4rem;
}

.service-hero-content {
  max-width: 800px;
  text-align: left;
}

.breadcrumb {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.breadcrumb a {
  color: var(--accent-color);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.service-hero h1 {
  font-size: 3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 0;
}

.service-overview {
  padding: 4rem 0;
}

.service-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  align-items: start;
}

.service-main h2 {
  font-size: 2.2rem;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.service-main h3 {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin: 2.5rem 0 1rem 0;
  font-weight: 600;
}

.service-main h4 {
  font-size: 1.2rem;
  color: var(--text-primary);
  margin: 1.5rem 0 0.5rem 0;
  font-weight: 600;
}

.service-main p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.service-list,
.service-limitations,
.service-tools,
.service-approach,
.service-outcomes,
.service-formats {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.service-list li,
.service-limitations li,
.service-tools li,
.service-approach li,
.service-outcomes li,
.service-formats li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.8rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.service-list li::before,
.service-tools li::before,
.service-approach li::before,
.service-outcomes li::before,
.service-formats li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-weight: bold;
}

.service-limitations li::before {
  content: '×';
  position: absolute;
  left: 0;
  color: #ff6b6b;
  font-weight: bold;
}

.service-examples {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.example-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  padding: 2rem;
  transition: all 0.3s ease;
}

.example-card:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

.example-card h4 {
  margin-top: 0;
  color: var(--accent-color);
}

.time-estimate {
  display: inline-block;
  background: rgba(0, 217, 255, 0.1);
  color: var(--accent-color);
  padding: 0.3rem 0.8rem;
  border-radius: 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  margin-top: 0.5rem;
}

.service-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.pricing-card,
.cta-card,
.process-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.5rem;
  padding: 2rem;
}

.pricing-card h3,
.cta-card h3,
.process-card h3 {
  margin-top: 0;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  font-size: 1.3rem;
}

.price-item {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.price-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.price-item h4 {
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
  color: var(--text-primary);
}

.price {
  display: block;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 0.5rem;
}

.price-item p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.price-note {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.price-note p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-style: italic;
}

.cta-card p {
  margin: 0 0 1.5rem 0;
  color: var(--text-secondary);
  line-height: 1.6;
}

.process-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.process-list li {
  margin-bottom: 1.5rem;
  padding-left: 2.5rem;
  position: relative;
  line-height: 1.5;
}

.process-list li:before {
  content: counter(process-counter);
  counter-increment: process-counter;
  position: absolute;
  left: 0;
  top: 0;
  background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-secondary) 100%);
  color: white;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
}

.process-list {
  counter-reset: process-counter;
}

.faq-section {
  background: rgba(255, 255, 255, 0.02);
  padding: 4rem 0;
}

.faq-section h2 {
  text-align: center;
  font-size: 2.5rem;
  color: var(--text-primary);
  margin-bottom: 3rem;
  font-weight: 600;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.faq-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  padding: 2rem;
}

.faq-item h3 {
  margin: 0 0 1rem 0;
  font-size: 1.2rem;
  color: var(--text-primary);
  font-weight: 600;
}

.faq-item p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Mobile Responsiveness for Service Pages */
@media (max-width: 768px) {
  .service-hero {
    padding: 6rem 0 3rem 0;
    margin-top: 3rem;
  }
  
  .service-hero h1 {
    font-size: 2.2rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .service-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .service-examples {
    grid-template-columns: 1fr;
  }
  
  .faq-grid {
    grid-template-columns: 1fr;
  }
  
  .service-main h2 {
    font-size: 1.8rem;
  }
  
  .faq-section h2 {
    font-size: 2rem;
  }
}

/* Legal Pages Styles */
.legal-page {
  padding-top: 8rem;
  min-height: 100vh;
  background: var(--primary-bg);
  position: relative;
}

.legal-page::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 25% 25%, rgba(0, 217, 255, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(124, 58, 237, 0.05) 0%, transparent 50%);
}

.legal-content {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  padding: 4rem 0;
}

.legal-header {
  text-align: center;
  margin-bottom: 4rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--glass-border);
}

.legal-header h1 {
  font-size: 3.5rem;
  font-weight: 900;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-color) 50%, var(--accent-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.last-updated {
  color: var(--text-muted);
  font-size: 1rem;
  font-style: italic;
  margin: 0;
}

.legal-body {
  line-height: 1.8;
}

.legal-section {
  margin-bottom: 3rem;
  background: var(--glass-bg);
  backdrop-filter: blur(15px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: 1.5rem;
  padding: 2.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.legal-section h2 {
  color: var(--text-primary);
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  position: relative;
  padding-left: 1rem;
}

.legal-section h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 4px;
  height: 1.5rem;
  background: linear-gradient(135deg, var(--accent-color), var(--accent-secondary));
  border-radius: 2px;
}

.legal-section h3 {
  color: var(--text-secondary);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 2rem 0 1rem;
}

.legal-section p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.legal-section ul,
.legal-section ol {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.legal-section li {
  margin-bottom: 0.75rem;
  line-height: 1.7;
}

.legal-section li strong {
  color: var(--text-primary);
  font-weight: 600;
}

.legal-section a {
  color: var(--accent-color);
  text-decoration: none;
  transition: all 0.3s ease;
  border-bottom: 1px solid transparent;
}

.legal-section a:hover {
  color: var(--text-primary);
  border-bottom-color: var(--accent-color);
  text-shadow: 0 0 8px rgba(0, 217, 255, 0.4);
}

/* Inline link styling for better integration */
.inline-link {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid rgba(0, 217, 255, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.inline-link:hover {
  color: var(--text-primary);
  border-bottom-color: var(--accent-color);
  text-shadow: 0 0 8px rgba(0, 217, 255, 0.4);
  transform: translateY(-1px);
}

.contact-details {
  background: rgba(0, 217, 255, 0.05);
  border: 1px solid rgba(0, 217, 255, 0.2);
  border-radius: 1rem;
  padding: 1.5rem;
  margin-top: 1rem;
}

.contact-details p {
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.contact-details strong {
  color: var(--accent-color);
  font-weight: 600;
}

/* Enhanced Contact Form Styles */


/* Form Row Layout */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 0.25rem;
}

@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}

/* Enhanced Form Group Styles */
.form-group {
  position: relative;
  margin-bottom: 0.5rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.form-group label .required {
  color: #ff6b6b;
  font-weight: 700;
  margin-left: 2px;
}

/* Enhanced Input Styles - Compact */
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--glass-border);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(10px);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: inherit;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--glass-border);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(10px);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: inherit;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-group select option {
  background: #2a2a2a !important;
  color: #ffffff !important;
  padding: 0.75rem !important;
  border: none !important;
}

.form-group select option:hover {
  background: #3a3a3a !important;
}

.form-group select option:checked {
  background: var(--accent-color) !important;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  background: rgba(0, 217, 255, 0.05);
  box-shadow: 
    0 0 0 3px rgba(0, 217, 255, 0.15),
    0 8px 25px rgba(0, 217, 255, 0.1);
  transform: translateY(-1px);
}

.form-group select:focus {
  outline: 2px solid var(--accent-color);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.8;
}


/* Textarea Enhancements */
.form-group textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.6;
}

.textarea-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.5rem;
  min-height: 20px;
}

.character-count {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.character-count.warning {
  color: #ff6b6b;
  font-weight: 600;
}

/* Error Styling */
.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: #ff6b6b;
  background: rgba(255, 107, 107, 0.05);
  box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.15);
}

.error-message {
  display: none;
  color: #ff6b6b;
  font-size: 0.875rem;
  font-weight: 500;
  margin-top: 0.5rem;
  padding-left: 0.5rem;
  position: relative;
}

.error-message::before {
  content: '\26A0\FE0F';
  margin-right: 0.25rem;
}

/* Checkbox Styling */
.checkbox-group {
  margin: 1.5rem 0;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-secondary);
  font-weight: 400 !important;
  margin-bottom: 0 !important;
}

.checkbox-label input[type="checkbox"] {
  display: none;
}

.checkmark {
  width: 20px;
  height: 20px;
  border: 2px solid var(--glass-border);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
  margin-top: 2px;
}

.checkbox-label:hover .checkmark {
  border-color: var(--accent-color);
  background: rgba(0, 217, 255, 0.05);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
  background: var(--accent-color);
  border-color: var(--accent-color);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
  content: '✓';
  color: white;
  font-size: 12px;
  font-weight: bold;
}

/* Enhanced Button States */
.btn-primary {
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-primary:disabled:hover {
  transform: none;
  box-shadow: 
    0 4px 20px rgba(0, 217, 255, 0.15),
    0 8px 32px rgba(124, 58, 237, 0.1);
}

.btn-primary .btn-loading,
.btn-primary .btn-success {
  display: none;
}

.btn-primary.loading .btn-text {
  display: none;
}

.btn-primary.loading .btn-loading {
  display: inline-block;
  animation: pulse 1.5s ease-in-out infinite;
}

.btn-primary.success .btn-text,
.btn-primary.success .btn-loading {
  display: none;
}

.btn-primary.success .btn-success {
  display: inline-block;
  animation: bounce 0.6s ease-out;
}

.btn-primary.success {
  background: linear-gradient(135deg, #10b981 0%, #065f46 100%);
}

@keyframes bounce {
  0%, 20%, 53%, 80%, 100% {
    transform: translate3d(0,0,0);
  }
  40%, 43% {
    transform: translate3d(0, -8px, 0);
  }
  70% {
    transform: translate3d(0, -4px, 0);
  }
  90% {
    transform: translate3d(0, -2px, 0);
  }
}

/* Form Footer Text */
.form-footer-text {
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 1.5rem;
  line-height: 1.5;
}

/* Success Modal */
.success-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.success-modal.show {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--glass-bg);
  backdrop-filter: blur(25px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: 2rem;
  padding: 3rem;
  text-align: center;
  max-width: 500px;
  margin: 2rem;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.4);
  transform: scale(0.8) translateY(30px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.success-modal.show .modal-content {
  transform: scale(1) translateY(0);
}

.success-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--accent-color), var(--accent-secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: white;
  margin: 0 auto 2rem;
  animation: success-bounce 0.8s ease-out;
}

@keyframes success-bounce {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.1);
    opacity: 1;
  }
  100% {
    transform: scale(1);
  }
}

.modal-content h3 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.modal-content p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.modal-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-secondary {
  background: transparent;
  color: var(--text-secondary);
  border: 2px solid var(--glass-border);
  padding: 1rem 2rem;
  border-radius: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--accent-color);
  color: var(--text-primary);
  transform: translateY(-2px);
}

/* Form Error Banner */
.form-error-banner {
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.1) 0%, rgba(220, 38, 38, 0.1) 100%);
  border: 1px solid rgba(255, 107, 107, 0.3);
  border-radius: 1rem;
  padding: 1rem;
  margin-bottom: 2rem;
  display: none;
}

.error-content {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.error-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.error-text {
  flex: 1;
  color: var(--text-secondary);
  font-weight: 500;
  line-height: 1.5;
}

.error-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.error-close:hover {
  background: rgba(255, 107, 107, 0.2);
  color: #ff6b6b;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
  .modal-content {
    padding: 2rem;
    margin: 1rem;
    border-radius: 1.5rem;
  }
  
  .modal-actions {
    flex-direction: column;
  }
  
  .btn-secondary,
  .modal-actions .btn-primary {
    width: 100%;
    justify-content: center;
  }
  
}

@media (max-width: 480px) {
  .success-icon {
    width: 60px;
    height: 60px;
    font-size: 2rem;
    margin-bottom: 1.5rem;
  }
  
  .modal-content h3 {
    font-size: 1.5rem;
  }
  
  .modal-content p {
    font-size: 1rem;
  }
  
  .btn-primary {
    padding: 1.25rem 2rem;
  }
  
  .contact-form {
    padding: 2rem;
  }
}

/* Legal Pages Responsive Design */
@media (max-width: 768px) {
  .legal-page {
    padding-top: 6rem;
  }
  
  .legal-content {
    padding: 2rem 0;
  }
  
  .legal-header h1 {
    font-size: 2.5rem;
  }
  
  .legal-header {
    margin-bottom: 2rem;
  }
  
  .legal-section {
    padding: 2rem;
    margin-bottom: 2rem;
  }
  
  .legal-section h2 {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .legal-header h1 {
    font-size: 2rem;
  }
  
  .legal-section {
    padding: 1.5rem;
    border-radius: 1rem;
  }
  
  .legal-section h2 {
    font-size: 1.25rem;
  }
  
  .legal-section ul,
  .legal-section ol {
    padding-left: 1.5rem;
  }
}

/* Blog Post Content Styling (Quill Editor Output) */
.post-content {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 1.05rem;
}

.post-content p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
  color: var(--text-primary);
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 600;
  line-height: 1.3;
}

.post-content h1 { font-size: 2rem; }
.post-content h2 { font-size: 1.75rem; }
.post-content h3 { font-size: 1.5rem; }

.post-content strong {
  color: var(--text-primary);
  font-weight: 600;
}

.post-content em {
  font-style: italic;
}

.post-content ul,
.post-content ol {
  margin: 1.5rem 0;
  padding-left: 2rem;
  color: var(--text-secondary);
}

.post-content ul {
  list-style-type: disc;
}

.post-content ol {
  list-style-type: decimal;
}

.post-content li {
  margin-bottom: 0.75rem;
  line-height: 1.7;
}

.post-content li::marker {
  color: var(--accent-color);
}

.post-content a {
  color: var(--accent-color);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 217, 255, 0.3);
  transition: all 0.3s ease;
}

.post-content a:hover {
  color: var(--text-primary);
  border-bottom-color: var(--accent-color);
  text-shadow: 0 0 8px rgba(0, 217, 255, 0.4);
}

.post-content blockquote {
  margin: 2rem 0;
  padding: 1.5rem;
  border-left: 4px solid var(--accent-color);
  background: rgba(0, 217, 255, 0.05);
  border-radius: 0.5rem;
  font-style: italic;
  color: var(--text-secondary);
}

.post-content code {
  background: rgba(255, 255, 255, 0.05);
  padding: 0.2rem 0.5rem;
  border-radius: 0.25rem;
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
  color: var(--accent-color);
}

.post-content pre {
  background: rgba(255, 255, 255, 0.05);
  padding: 1.5rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.post-content pre code {
  background: none;
  padding: 0;
  color: var(--text-secondary);
}

.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin: 2rem 0;
}

.post-content hr {
  border: none;
  border-top: 1px solid var(--glass-border);
  margin: 2rem 0;
}

/* Quill-specific classes */
.post-content .ql-align-center {
  text-align: center;
}

.post-content .ql-align-right {
  text-align: right;
}

.post-content .ql-align-justify {
  text-align: justify;
}

.post-content .ql-indent-1 {
  padding-left: 3rem;
}

.post-content .ql-indent-2 {
  padding-left: 6rem;
}

.post-content .ql-indent-3 {
  padding-left: 9rem;
}

/* ============================================
   Animated Background Lines Effect
   ============================================ */

.lines {
  position: fixed;
  top: 0;
  left: 5vw;
  height: 100vh;
  width: 90vw;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: screen;
  perspective: 1000px;
  transform-style: preserve-3d;
}

.line {
  position: relative;
  width: 3px;
  height: 100%;
  overflow: visible;
  transform-style: preserve-3d;
}

.line::after {
  content: '';
  display: block;
  position: absolute;
  height: 20vh;
  width: 100%;
  top: -50%;
  left: 0;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, #ffffff 75%, #ffffff 100%);
  animation: drop 7s 0s infinite;
  animation-fill-mode: forwards;
  animation-timing-function: cubic-bezier(0.4, 0.26, 0, 0.97);
  box-shadow: 0 0 8px currentColor;
}

/* Different colors for each line's pseudo-element */
.line:nth-child(1) {
  transform: translateZ(50px) scale(1.2);
}

.line:nth-child(1)::after {
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, #FF4500 75%, #FF4500 100%);
  animation: drop 6.5s 0.5s infinite;
  animation-timing-function: cubic-bezier(0.4, 0.26, 0, 0.97);
  height: 18vh;
}

.line:nth-child(2) {
  transform: translateZ(-80px) scale(0.7);
}

.line:nth-child(2)::after {
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, #32CD32 75%, #32CD32 100%);
  animation: drop 8s 1s infinite, glitch 15s 3s infinite;
  animation-timing-function: cubic-bezier(0.4, 0.26, 0, 0.97);
  height: 28vh;
}

.line:nth-child(3) {
  transform: translateZ(100px) scale(1.4);
}

.line:nth-child(3)::after {
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, #1E90FF 75%, #1E90FF 100%);
  animation: drop 5.5s 1.5s infinite;
  animation-timing-function: cubic-bezier(0.4, 0.26, 0, 0.97);
  height: 15vh;
}

.line:nth-child(4) {
  transform: translateZ(-40px) scale(0.85);
}

.line:nth-child(4)::after {
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, #FFD700 75%, #FFD700 100%);
  animation: drop 7s 2s infinite;
  animation-timing-function: cubic-bezier(0.4, 0.26, 0, 0.97);
  height: 22vh;
}

.line:nth-child(5) {
  transform: translateZ(20px) scale(1.1);
}

.line:nth-child(5)::after {
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, #8A2BE2 75%, #8A2BE2 100%);
  animation: drop 8.5s 2.5s infinite, glitch 18s 7s infinite;
  animation-timing-function: cubic-bezier(0.4, 0.26, 0, 0.97);
  height: 30vh;
}

.line:nth-child(6) {
  transform: translateZ(-100px) scale(0.6);
}

.line:nth-child(6)::after {
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, #20B2AA 75%, #20B2AA 100%);
  animation: drop 6s 3s infinite;
  animation-timing-function: cubic-bezier(0.4, 0.26, 0, 0.97);
  height: 16vh;
}

.line:nth-child(7) {
  transform: translateZ(70px) scale(1.3);
}

.line:nth-child(7)::after {
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, #DC143C 75%, #DC143C 100%);
  animation: drop 7.5s 3.5s infinite, glitch 12s 1s infinite;
  animation-timing-function: cubic-bezier(0.4, 0.26, 0, 0.97);
  height: 25vh;
}

.line:nth-child(8) {
  transform: translateZ(-60px) scale(0.75);
}

.line:nth-child(8)::after {
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, #00FA9A 75%, #00FA9A 100%);
  animation: drop 6.8s 4s infinite;
  animation-timing-function: cubic-bezier(0.4, 0.26, 0, 0.97);
  height: 20vh;
}

.line:nth-child(9) {
  transform: translateZ(30px) scale(1.15);
}

.line:nth-child(9)::after {
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, #FF1493 75%, #FF1493 100%);
  animation: drop 7.8s 4.5s infinite, glitch 20s 10s infinite;
  animation-timing-function: cubic-bezier(0.4, 0.26, 0, 0.97);
  height: 26vh;
}

.line:nth-child(10) {
  transform: translateZ(-20px) scale(0.9);
}

.line:nth-child(10)::after {
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, #00BFFF 75%, #00BFFF 100%);
  animation: drop 6.3s 5s infinite;
  animation-timing-function: cubic-bezier(0.4, 0.26, 0, 0.97);
  height: 19vh;
}

@keyframes drop {
  0% {
    top: -50%;
    opacity: 0;
  }
  10% {
    opacity: 0.5;
  }
  85% {
    opacity: 0.5;
  }
  100% {
    top: 110%;
    opacity: 0;
  }
}

/* Subtle glitch effect */
@keyframes glitch {
  0%, 100% {
    transform: translate(0, 0);
    filter: hue-rotate(0deg);
  }
  10% {
    transform: translate(-2px, 1px);
  }
  20% {
    transform: translate(2px, -1px);
  }
  30% {
    transform: translate(-1px, -2px);
    filter: hue-rotate(5deg);
  }
  40%, 60% {
    transform: translate(0, 0);
    filter: hue-rotate(0deg);
  }
  70% {
    transform: translate(1px, 2px);
  }
  80% {
    transform: translate(-2px, -1px);
    filter: hue-rotate(-5deg);
  }
  90% {
    transform: translate(1px, -1px);
  }
}

/* ============================================
   Hexagonal Grid Overlay Effect
   ============================================ */

.hex-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.03;
  background-image: 
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='49' viewBox='0 0 28 49'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%2300d9ff' fill-opacity='1'%3E%3Cpath d='M13.99 9.25l13 7.5v15l-13 7.5L1 31.75v-15l12.99-7.5zM3 17.9v12.7l10.99 6.34 11-6.35V17.9l-11-6.34L3 17.9zM0 15l12.98-7.5V0h-2v6.35L0 12.69v2.3zm0 18.5L12.98 41v8h-2v-6.85L0 35.81v-2.3zM15 0v7.5L27.99 15H28v-2.31h-.01L17 6.35V0h-2zm0 49v-8l12.99-7.5H28v2.31h-.01L17 42.15V49h-2z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  animation: hexSlowDrift 60s linear infinite;
  mix-blend-mode: screen;
}

@keyframes hexSlowDrift {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(49px);
  }
}

/* Fade out at top and bottom for seamless effect */
.hex-grid::before,
.hex-grid::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 200px;
  pointer-events: none;
  z-index: 2;
}

.hex-grid::before {
  top: 0;
  background: linear-gradient(to bottom, var(--primary-bg) 0%, transparent 100%);
}

.hex-grid::after {
  bottom: 0;
  background: linear-gradient(to top, var(--primary-bg) 0%, transparent 100%);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hex-grid {
    opacity: 0.02;
  }
}
