/*
 * S-Tech Solutions Website Styles
 * A dark, modern, vibrant design for cybersecurity services
 */

/* ======================================
 * BASE STYLES
 * ====================================== */

/* CSS Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Custom Properties */
:root {
  /* Colors - Dark Modern Vibrant Theme */
  --primary: #4e54ff;
  --primary-dark: #3a3fd1;
  --primary-light: #7a7eff;
  --secondary: #00e5ff;
  --secondary-dark: #00b8cc;
  --accent: #ff3e7f;
  --accent-dark: #d93370;
  --dark: #0a0e17;
  --dark-secondary: #141a26;
  --dark-tertiary: #1e2636;
  --light: #f8f9fa;
  --gray: #8b97a8;
  --gray-light: #c4cad4;
  --success: #00e676;
  --warning: #ffab00;
  --danger: #ff3d71;
  --neon-glow: 0 0 10px rgba(78, 84, 255, 0.6), 0 0 20px rgba(78, 84, 255, 0.4), 0 0 30px rgba(78, 84, 255, 0.2);
  --neon-glow-accent: 0 0 10px rgba(255, 62, 127, 0.6), 0 0 20px rgba(255, 62, 127, 0.4), 0 0 30px rgba(255, 62, 127, 0.2);
  --neon-glow-secondary: 0 0 10px rgba(0, 229, 255, 0.6), 0 0 20px rgba(0, 229, 255, 0.4), 0 0 30px rgba(0, 229, 255, 0.2);

  /* Typography */
  --font-primary: 'Roboto', sans-serif;
  --font-secondary: 'Montserrat', sans-serif;
  --font-size-base: 1rem;
  --font-size-sm: 0.875rem;
  --font-size-lg: 1.25rem;
  --font-size-xl: 1.5rem;
  --font-size-xxl: 2rem;
  --font-size-xxxl: 3rem;

  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-xxl: 5rem;

  /* Borders */
  --border-radius: 0.25rem;
  --border-radius-lg: 0.5rem;

  /* Shadows */
  --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.2);
  --shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.4);
  --shadow-neon: 0 0 15px rgba(78, 84, 255, 0.5);
  --shadow-neon-accent: 0 0 15px rgba(255, 62, 127, 0.5);

  /* Transitions */
  --transition: all 0.3s ease;
  --transition-slow: all 0.5s ease;
  --transition-fast: all 0.2s ease;
}

/* Typography */
body {
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--light);
  background-color: var(--dark);
  background-image:
    radial-gradient(circle at 10% 20%, rgba(78, 84, 255, 0.1) 0%, transparent 20%),
    radial-gradient(circle at 90% 80%, rgba(0, 229, 255, 0.1) 0%, transparent 20%),
    radial-gradient(circle at 50% 50%, rgba(255, 62, 127, 0.05) 0%, transparent 30%);
  background-attachment: fixed;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-secondary);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
}

h1 {
  font-size: var(--font-size-xxxl);
}

h2 {
  font-size: var(--font-size-xxl);
}

h3 {
  font-size: var(--font-size-xl);
}

p {
  margin-bottom: var(--spacing-md);
}

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

a:hover {
  color: var(--primary-dark);
}

/* ======================================
 * LAYOUT
 * ====================================== */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -1rem;
}

.col {
  flex: 1 0 0%;
  padding: 0 1rem;
}

/* Grid system */
.grid {
  display: grid;
  gap: var(--spacing-md);
}

.grid-2 {
  grid-template-columns: repeat(1, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(1, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(1, 1fr);
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Utility classes */
.text-center {
  text-align: center;
}

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

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.mb-1 {
  margin-bottom: var(--spacing-sm);
}

.mb-2 {
  margin-bottom: var(--spacing-md);
}

.mb-3 {
  margin-bottom: var(--spacing-lg);
}

.mb-4 {
  margin-bottom: var(--spacing-xl);
}

.mb-5 {
  margin-bottom: var(--spacing-xxl);
}

.mt-1 {
  margin-top: var(--spacing-sm);
}

.mt-2 {
  margin-top: var(--spacing-md);
}

.mt-3 {
  margin-top: var(--spacing-lg);
}

.mt-4 {
  margin-top: var(--spacing-xl);
}

.mt-5 {
  margin-top: var(--spacing-xxl);
}

.py-1 {
  padding-top: var(--spacing-sm);
  padding-bottom: var(--spacing-sm);
}

.py-2 {
  padding-top: var(--spacing-md);
  padding-bottom: var(--spacing-md);
}

.py-3 {
  padding-top: var(--spacing-lg);
  padding-bottom: var(--spacing-lg);
}

.py-4 {
  padding-top: var(--spacing-xl);
  padding-bottom: var(--spacing-xl);
}

.py-5 {
  padding-top: var(--spacing-xxl);
  padding-bottom: var(--spacing-xxl);
}

.px-1 {
  padding-left: var(--spacing-sm);
  padding-right: var(--spacing-sm);
}

.px-2 {
  padding-left: var(--spacing-md);
  padding-right: var(--spacing-md);
}

.px-3 {
  padding-left: var(--spacing-lg);
  padding-right: var(--spacing-lg);
}

.px-4 {
  padding-left: var(--spacing-xl);
  padding-right: var(--spacing-xl);
}

.px-5 {
  padding-left: var(--spacing-xxl);
  padding-right: var(--spacing-xxl);
}

/* ======================================
 * COMPONENTS
 * ====================================== */

/* Buttons */
.btn {
  display: inline-block;
  font-weight: 500;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  user-select: none;
  border: 2px solid transparent;
  padding: 0.5rem 1.2rem; /* Smaller padding for mobile */
  font-size: var(--font-size-base);
  line-height: 1.5;
  border-radius: var(--border-radius);
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  z-index: 1;
  margin-right: var(--spacing-sm); /* Smaller margin for mobile */
  margin-bottom: var(--spacing-md);
  width: 100%; /* Full width on mobile */
  max-width: 250px; /* Prevent buttons from getting too wide */
}

@media (min-width: 768px) {
  .btn {
    padding: 0.6rem 1.8rem; /* Larger padding for tablets and up */
    margin-right: var(--spacing-md); /* Larger margin for tablets and up */
    width: auto; /* Auto width on larger screens */
  }
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: translateX(-100%);
  transition: var(--transition-slow);
  z-index: -1;
}

.btn:hover::before {
  transform: translateX(100%);
}

.btn-primary {
  color: white;
  background-color: var(--primary);
  border-color: var(--primary-light);
  box-shadow: 0 4px 15px rgba(78, 84, 255, 0.3);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-neon), 0 6px 20px rgba(78, 84, 255, 0.4);
  color: white; /* Ensure text remains white on hover */
}

.btn-secondary {
  color: white;
  background-color: var(--secondary);
  border-color: var(--secondary);
  box-shadow: 0 4px 15px rgba(0, 229, 255, 0.3);
}

.btn-secondary:hover {
  background-color: var(--secondary-dark);
  border-color: var(--secondary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-neon-secondary), 0 6px 20px rgba(0, 229, 255, 0.4);
}

/* KairOS Platform Button */
.btn-kairos {
  color: white;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border: none;
  box-shadow: 0 4px 15px rgba(78, 84, 255, 0.3);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn-kairos::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.btn-kairos:hover {
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(78, 84, 255, 0.4);
}

.btn-kairos:hover::before {
  opacity: 1;
}

.btn-kairos i {
  margin-right: 6px;
  transition: transform 0.3s ease;
}

.btn-kairos:hover i {
  transform: scale(1.2);
}

.btn-accent {
  color: white;
  background-color: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 4px 15px rgba(255, 62, 127, 0.3);
}

.btn-accent:hover {
  background-color: var(--accent-dark);
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-neon-accent), 0 6px 20px rgba(255, 62, 127, 0.4);
}

.btn-outline {
  color: var(--primary-light);
  background-color: transparent;
  border-color: var(--primary-light);
  box-shadow: none;
}

.btn-outline:hover {
  color: white;
  background-color: var(--primary);
  border-color: var(--primary-light);
  transform: translateY(-3px);
  box-shadow: var(--shadow-neon), 0 6px 20px rgba(78, 84, 255, 0.4);
}

/* Cards */
.card {
  background-color: var(--dark-secondary);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid rgba(78, 84, 255, 0.1);
  position: relative;
  margin-bottom: var(--spacing-lg);
}

.card::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--primary), #8000ff, var(--primary));
  z-index: -1;
  border-radius: calc(var(--border-radius-lg) + 2px);
  opacity: 0;
  transition: var(--transition);
  background-size: 400%;
  animation: none;
}

.card:hover::before {
  opacity: 1;
  animation: borderAnimation 3s linear infinite;
}

@keyframes borderAnimation {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-lg);
}

.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-body {
  padding: var(--spacing-lg);
}

.card-title {
  font-size: var(--font-size-lg);
  margin-bottom: var(--spacing-sm);
  color: var(--light);
  position: relative;
  display: inline-block;
}

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

.card:hover .card-title::after {
  width: 100%;
}

.card-text {
  color: var(--gray-light);
  margin-bottom: var(--spacing-md);
}

/* Header & Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(10, 14, 23, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  transition: var(--transition);
  border-bottom: 1px solid rgba(78, 84, 255, 0.2);
}

.header.scrolled {
  background-color: rgba(10, 14, 23, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-md) 0;
}

.logo {
  height: 40px;
  filter: drop-shadow(0 0 5px rgba(78, 84, 255, 0.5));
  transition: var(--transition);
}

.logo:hover {
  filter: drop-shadow(0 0 8px rgba(78, 84, 255, 0.7));
}

.nav-menu {
  display: none;
  list-style: none;
}

.nav-menu.active {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: rgba(10, 14, 23, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  padding: var(--spacing-md) 0;
  border-bottom: 1px solid rgba(78, 84, 255, 0.2);
  z-index: 1000;
}

.nav-item {
  margin: 0 var(--spacing-md);
  position: relative;
}

.nav-link {
  display: block;
  padding: var(--spacing-sm) 0;
  font-weight: 500;
  color: var(--light);
  transition: var(--transition);
  position: relative;
}

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

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

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

/* Dropdown Menu */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--dark-secondary);
  border: 1px solid rgba(78, 84, 255, 0.2);
  border-radius: var(--border-radius);
  min-width: 250px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s, max-height 0.3s ease;
  z-index: 100;
  padding: 0.5rem 0;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

@media (min-width: 992px) {
  .dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}

.dropdown-item {
  display: block;
  padding: 0.75rem 1.5rem;
  color: var(--light);
  font-weight: 400;
  transition: var(--transition);
  font-size: 0.95rem;
}

.dropdown-item i {
  margin-right: 0.5rem;
  color: var(--primary);
  transition: var(--transition);
}

.dropdown-item:hover {
  background-color: rgba(78, 84, 255, 0.1);
  color: var(--secondary);
}

.dropdown-item:hover i {
  color: var(--secondary);
  transform: translateX(3px);
}

/* DMARC Link Styling */
.dmarc-link {
  color: var(--accent) !important;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  background-color: rgba(255, 62, 127, 0.1);
  transition: var(--transition);
  box-shadow: 0 0 0 rgba(255, 62, 127, 0.4);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 62, 127, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(255, 62, 127, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 62, 127, 0);
  }
}

.dmarc-link:hover {
  background-color: rgba(255, 62, 127, 0.2);
  transform: translateY(-2px);
  color: white !important;
}

.dmarc-link:hover::after {
  opacity: 0;
}

.hamburger {
  display: block;
  cursor: pointer;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  background-color: var(--light);
  transition: var(--transition);
}

/* Mobile menu styles */
.hamburger {
  display: block;
  cursor: pointer;
  z-index: 1001;
}

@media (max-width: 992px) {
  .nav-menu.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: rgba(10, 14, 23, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    padding: var(--spacing-md) 0;
    border-bottom: 1px solid rgba(78, 84, 255, 0.2);
    z-index: 1000;
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    width: 100%;
    box-shadow: none;
    background-color: rgba(20, 26, 38, 0.5);
    border: none;
    border-top: 1px solid rgba(78, 84, 255, 0.1);
    border-bottom: 1px solid rgba(78, 84, 255, 0.1);
    padding: 0;
    margin: 0.5rem 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
  }

  /* Remove hover effect for mobile dropdown */
  .dropdown:hover .dropdown-menu {
    max-height: 0;
  }

  /* Style for dropdown items on mobile */
  .dropdown-item {
    padding: 0.75rem 3rem;
    border-bottom: 1px solid rgba(78, 84, 255, 0.1);
  }

  .dropdown-item:last-child {
    border-bottom: none;
  }

  /* Style for dropdown link on mobile */
  .dropdown .nav-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-right: 1.5rem;
  }

  /* Add indicator for dropdown on mobile */
  .dropdown .nav-link i {
    transition: transform 0.3s ease;
    margin-left: 0.5rem;
  }

  /* Rotate caret when dropdown is open */
  .dropdown.active .nav-link i {
    transform: rotate(180deg);
  }

  /* Enhance mobile menu items */
  .mobile-menu-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    transition: background-color 0.3s ease;
  }

  .mobile-menu-item:hover {
    background-color: rgba(78, 84, 255, 0.1);
  }
}

@media (min-width: 992px) {
  .hamburger {
    display: none;
  }

  .nav-menu {
    display: flex;
    flex-direction: row;
    position: static;
    width: auto;
    background-color: transparent;
    box-shadow: none;
    padding: 0;
  }
}

/* Hero Section - Enhanced with 404 styling */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-top: 60px;
  background-color: var(--dark);
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(10, 14, 23, 0.9), rgba(20, 26, 38, 0.8));
  z-index: 1;
}

.hero-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 20% 30%, rgba(78, 84, 255, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(0, 229, 255, 0.15) 0%, transparent 50%);
  z-index: -1;
}

.hero-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 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='%234e54ff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  z-index: -1;
  opacity: 0.5;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(78, 84, 255, 0.1) 0%, transparent 70%);
  z-index: 2;
}

#particle-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
}

.hero-content {
  color: white;
  max-width: 800px;
  padding: var(--spacing-lg);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease forwards;
  position: relative;
  z-index: 4;
}

.hero-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 0;
  background: linear-gradient(to bottom, var(--primary), var(--secondary));
  animation: lineGrow 1.5s ease forwards 0.5s;
}

@keyframes lineGrow {
  from {
    height: 0;
  }
  to {
    height: 100%;
  }
}

.hero-title {
  font-size: 2.5rem; /* Smaller base size for mobile */
  margin-bottom: var(--spacing-md);
  background: linear-gradient(90deg, var(--primary-light), var(--secondary), var(--accent), var(--primary-light));
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  display: inline-block;
  text-shadow: 0 5px 15px rgba(78, 84, 255, 0.3);
  animation: gradientFlow 8s linear infinite;
  position: relative;
}

.hero-title::before {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--primary-light), var(--secondary), var(--accent), var(--primary-light));
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  filter: blur(8px);
  opacity: 0.7;
  animation: gradientFlow 8s linear infinite;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: var(--font-size-xxxl); /* Larger size for tablets and up */
  }
}

@keyframes gradientFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Page title gradient - for inner pages */
.page-title-gradient {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
}

#typing-effect {
  margin-top: 0;
  font-size: 1.3rem; /* Even smaller font size for mobile */
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: var(--light); /* Fallback color for mobile browsers */
  font-weight: 600;
  text-shadow: 0 0 8px rgba(78, 84, 255, 0.5);
  margin-bottom: 1rem;
  min-height: 3rem; /* Reduced minimum height for mobile */
  line-height: 1.3; /* Tighter line height for mobile */
  display: block;
  position: relative;
  padding-right: 2px;
  width: 100%;
  overflow: visible; /* Changed from hidden to visible */
  word-wrap: break-word; /* Allow word wrapping */
  white-space: normal; /* Allow text to wrap */
  max-width: 100%; /* Ensure it doesn't exceed container width */
  text-align: center; /* Center text on mobile */
}

/* Apply the gradient text only on browsers that support it properly */
@supports (background-clip: text) or (-webkit-background-clip: text) {
  #typing-effect {
    color: transparent; /* Make text transparent only when background-clip is supported */
  }
}

@media (min-width: 768px) {
  #typing-effect {
    font-size: 1.8rem; /* Larger font for tablets and up */
    min-height: 2.6rem; /* Smaller height on larger screens */
    text-align: left; /* Left align on larger screens */
  }
}

#typing-effect::after {
  content: '|';
  display: inline;
  animation: blink 1s infinite;
  color: var(--light);
  position: relative;
  margin-left: 2px; /* Add a small margin to separate from text */
}

.typing-placeholder {
  color: var(--light); /* Use light color instead of transparent */
  opacity: 0.5; /* Make it slightly faded */
  min-height: 1.5rem; /* Ensure it has height even when empty */
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-subtitle {
  font-size: var(--font-size-lg); /* Smaller for mobile */
  margin-bottom: var(--spacing-lg);
  opacity: 0;
  animation: fadeIn 1s ease forwards 0.5s;
}

@media (min-width: 768px) {
  .hero-subtitle {
    font-size: var(--font-size-xl); /* Larger for tablets and up */
  }
}

.hero-buttons {
  display: flex;
  gap: var(--spacing-md); /* Smaller gap for mobile */
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeIn 1s ease forwards 1s;
  margin-top: var(--spacing-lg);
  justify-content: center; /* Center buttons on mobile */
}

@media (min-width: 768px) {
  .hero-buttons {
    gap: var(--spacing-lg); /* Larger gap for tablets and up */
    justify-content: flex-start; /* Left align on larger screens */
  }
}

/* Sections */
.section {
  padding: var(--spacing-xl) 0; /* Smaller padding for mobile */
  position: relative;
  overflow: hidden;
  background-color: var(--dark);
  margin-bottom: var(--spacing-lg);
  transition: var(--transition);
}

@media (min-width: 768px) {
  .section {
    padding: var(--spacing-xxl) 0; /* Larger padding for tablets and up */
  }
}

.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 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='%234e54ff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  z-index: -1;
  opacity: 0.5;
}

.section::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(78, 84, 255, 0.1), rgba(128, 0, 255, 0.1));
  z-index: -1;
  opacity: 0;
  transition: var(--transition);
}

.section:hover::after {
  left: 0;
  opacity: 1;
}

.section-title {
  text-align: center;
  margin-bottom: var(--spacing-xl);
  position: relative;
  display: block; /* Changed from inline-block to block */
  width: 100%; /* Full width to prevent overflow */
  max-width: 100%; /* Ensure it doesn't exceed container width */
  left: 0; /* Reset left positioning */
  transform: none; /* Remove transform that was causing the issue */
  padding-bottom: var(--spacing-sm);
  font-size: 2rem; /* Smaller font size for mobile */
  word-wrap: break-word; /* Allow word wrapping */
  white-space: normal; /* Allow text to wrap */
  line-height: 1.2; /* Tighter line height for mobile */
  padding-left: var(--spacing-sm); /* Add padding to prevent text from touching edges */
  padding-right: var(--spacing-sm); /* Add padding to prevent text from touching edges */
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%; /* Center the underline */
  transform: translateX(-50%); /* Center the underline */
  width: 150px; /* Smaller width for mobile */
  max-width: 80%; /* But limit to 80% on small screens */
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
  border-radius: 3px;
}

@media (min-width: 768px) {
  .section-title {
    font-size: var(--font-size-xxl); /* Larger font size for tablets and up */
    line-height: 1.3; /* Better line height for larger screens */
    padding-left: 0; /* Remove padding on larger screens */
    padding-right: 0; /* Remove padding on larger screens */
  }

  .section-title::after {
    width: 200px; /* Larger width for tablets and up */
  }
}

.section-subtitle {
  text-align: center;
  color: var(--gray-light);
  max-width: 800px;
  margin: 0 auto var(--spacing-xl);
}

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: var(--spacing-lg);
}

@media (min-width: 768px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .features {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature {
  text-align: center;
  padding: var(--spacing-lg);
  border-radius: var(--border-radius-lg);
  background-color: var(--dark-secondary);
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid rgba(78, 84, 255, 0.1);
  margin-bottom: var(--spacing-md);
}

.feature:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: var(--spacing-md);
}

.feature-title {
  margin-bottom: var(--spacing-sm);
}

.feature-text {
  color: var(--gray-light);
}

/* Binary code mini for feature cards */
.binary-code-mini {
  font-family: monospace;
  font-size: 0.7rem;
  color: rgba(78, 84, 255, 0.4);
  margin-top: 1rem;
  margin-bottom: 1rem;
  opacity: 0.7;
  transition: var(--transition);
  overflow: hidden;
  white-space: nowrap;
}

.feature:hover .binary-code-mini {
  color: rgba(0, 229, 255, 0.6);
  opacity: 1;
}

/* Binary fade animation */
@keyframes binaryFade {
  0% {
    opacity: 0.3;
    color: rgba(78, 84, 255, 0.15);
  }
  50% {
    opacity: 0.4;
    color: rgba(0, 229, 255, 0.15);
  }
  100% {
    opacity: 0.3;
    color: rgba(78, 84, 255, 0.15);
  }
}

/* Feature card enhancement */
.feature-card {
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--primary), var(--secondary), var(--primary));
  z-index: -1;
  border-radius: calc(var(--border-radius-lg) + 2px);
  opacity: 0;
  transition: var(--transition);
  background-size: 400%;
  animation: none;
}

.feature-card:hover::before {
  opacity: 1;
  animation: borderAnimation 3s linear infinite;
}

/* Clients */
.clients {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--spacing-xl);
}

.client-logo {
  max-width: 150px;
  height: auto;
  opacity: 0.7;
  transition: var(--transition);
}

.client-logo:hover {
  opacity: 1;
}

/* Footer */
.footer {
  background-color: var(--dark);
  color: white;
  padding: var(--spacing-xl) 0;
}

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

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-logo {
  height: 40px;
  margin-bottom: var(--spacing-md);
}

.footer-title {
  font-size: var(--font-size-lg);
  margin-bottom: var(--spacing-md);
  color: white;
}

.footer-links {
  list-style: none;
}

.footer-link {
  margin-bottom: var(--spacing-sm);
}

.footer-link a {
  color: var(--gray-light);
  transition: var(--transition);
}

.footer-link a:hover {
  color: var(--secondary);
}

.footer-bottom {
  margin-top: var(--spacing-xl);
  padding-top: var(--spacing-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: var(--gray-light);
}

/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background-color: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
}

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

.back-to-top:hover {
  background-color: var(--primary-dark);
  transform: translateY(-5px);
}

/* ======================================
 * ANIMATIONS
 * ====================================== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.fade-in {
  opacity: 0;
  animation: fadeIn 1s ease forwards;
}

.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease forwards;
}

.delay-1 {
  animation-delay: 0.2s;
}

.delay-2 {
  animation-delay: 0.4s;
}

.delay-3 {
  animation-delay: 0.6s;
}

.delay-4 {
  animation-delay: 0.8s;
}

/* Animation for scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-top: 60px;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: -1;
}

.hero-content {
  color: white;
  max-width: 800px;
  padding: var(--spacing-lg);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease forwards;
}

.hero-title {
  font-size: 2.5rem; /* Smaller size for mobile */
  margin-bottom: var(--spacing-md);
  word-wrap: break-word; /* Allow word wrapping */
  white-space: normal; /* Allow text to wrap */
  line-height: 1.2; /* Tighter line height for mobile */
  text-align: center; /* Center text on mobile */
  width: 100%; /* Full width to prevent overflow */
  max-width: 100%; /* Ensure it doesn't exceed container width */
  padding-left: var(--spacing-sm); /* Add padding to prevent text from touching edges */
  padding-right: var(--spacing-sm); /* Add padding to prevent text from touching edges */
  position: relative;
}

/* Enhanced gradient text effect */
.gradient-text {
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--primary-light), var(--accent));
  background-size: 300% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientText 8s linear infinite;
  text-shadow: none;
}

@keyframes gradientText {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Pulse animation for buttons */
.pulse-animation {
  animation: buttonPulse 2s infinite;
  box-shadow: 0 0 0 0 rgba(78, 84, 255, 0.7);
}

@keyframes buttonPulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(78, 84, 255, 0.7);
  }
  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 10px rgba(78, 84, 255, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(78, 84, 255, 0);
  }
}

/* Typing effect container */
#typing-effect {
  min-height: 3.5rem; /* Ensure consistent height */
  font-size: 1.2rem; /* Smaller font size for mobile */
  margin-bottom: var(--spacing-md);
  word-wrap: break-word; /* Allow word wrapping */
  white-space: pre-wrap; /* Allow text to wrap while preserving spaces */
  line-height: 1.4; /* Comfortable line height */
  text-align: center; /* Center text on mobile */
  width: 100%; /* Full width to prevent overflow */
  max-width: 100%; /* Ensure it doesn't exceed container width */
  color: var(--secondary); /* Use secondary color for contrast */
  font-weight: 500; /* Medium weight for better readability */
  position: relative; /* For cursor positioning */
  display: block; /* Block display for proper wrapping */
  overflow: hidden; /* Prevent overflow */
  padding: 0 var(--spacing-sm); /* Add padding to prevent text from touching edges */
}

@media (min-width: 768px) {
  #typing-effect {
    font-size: 1.5rem; /* Larger font size for desktop */
    text-align: left; /* Left align on larger screens */
    padding: 0; /* Remove padding on larger screens */
    min-height: 2.5rem; /* Smaller height needed on desktop */
  }
}

@media (min-width: 768px) {
  .hero-title {
    font-size: var(--font-size-xxxl); /* Larger font size for tablets and up */
    line-height: 1.3; /* Better line height for larger screens */
    text-align: left; /* Left align on larger screens */
    padding-left: 0; /* Remove padding on larger screens */
    padding-right: 0; /* Remove padding on larger screens */
  }
}

.hero-subtitle {
  font-size: var(--font-size-xl);
  margin-bottom: var(--spacing-lg);
  opacity: 0.9;
}

.hero-buttons {
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

/* Sections */
.section {
  padding: var(--spacing-xxl) 0;
  background-color: var(--dark);
}

.section-title {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.section-subtitle {
  text-align: center;
  color: var(--gray-light);
  max-width: 800px;
  margin: 0 auto var(--spacing-xl);
}

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: var(--spacing-lg);
}

@media (min-width: 768px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .features {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature {
  text-align: center;
  padding: var(--spacing-lg);
  border-radius: var(--border-radius-lg);
  background-color: var(--dark-secondary);
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid rgba(78, 84, 255, 0.1);
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.feature::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(78, 84, 255, 0.2), rgba(128, 0, 255, 0.2));
  background-size: 200% 200%;
  z-index: -1;
  opacity: 0;
  transition: var(--transition);
}

.feature:hover::before {
  opacity: 1;
  animation: gradientFlow 3s ease infinite;
}

@keyframes gradientFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.feature:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(78, 84, 255, 0.3);
}

.feature-icon {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: var(--spacing-md);
  transition: var(--transition);
  filter: drop-shadow(0 0 5px rgba(78, 84, 255, 0.3));
}

.feature:hover .feature-icon {
  color: var(--secondary);
  transform: scale(1.1);
  filter: drop-shadow(0 0 8px rgba(0, 229, 255, 0.5));
}

.feature-title {
  margin-bottom: var(--spacing-sm);
  color: var(--light);
  position: relative;
  display: inline-block;
  padding-bottom: var(--spacing-xs);
}

.feature-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 30%;
  width: 40%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transition: var(--transition);
  transform: scaleX(0);
}

.feature:hover .feature-title::after {
  transform: scaleX(1);
}

.feature-text {
  color: var(--gray-light);
}

/* Clients */
.clients {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--spacing-xl);
}

.client-logo {
  max-width: 150px;
  height: auto;
  opacity: 0.7;
  transition: var(--transition);
}

.client-logo:hover {
  opacity: 1;
}

/* Footer */
.footer {
  background-color: var(--dark-tertiary);
  color: white;
  padding: var(--spacing-xl) 0;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 20% 80%, rgba(78, 84, 255, 0.1) 0%, transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(0, 229, 255, 0.1) 0%, transparent 40%);
  z-index: 0;
}

.footer::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), var(--secondary), var(--accent), transparent);
  opacity: 0.5;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: var(--spacing-lg);
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-logo {
  height: 40px;
  margin-bottom: var(--spacing-md);
  filter: drop-shadow(0 0 5px rgba(78, 84, 255, 0.5));
  transition: var(--transition);
}

.footer-logo:hover {
  filter: drop-shadow(0 0 8px rgba(78, 84, 255, 0.7));
  transform: scale(1.05);
}

.footer-title {
  font-size: var(--font-size-lg);
  margin-bottom: var(--spacing-md);
  color: white;
  position: relative;
  display: inline-block;
  padding-bottom: var(--spacing-xs);
}

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

.footer-links {
  list-style: none;
}

.footer-link {
  margin-bottom: var(--spacing-sm);
  transition: var(--transition);
}

.footer-link:hover {
  transform: translateX(5px);
}

.footer-link a {
  color: var(--gray-light);
  transition: var(--transition);
  position: relative;
  display: inline-block;
}

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

.footer-link a:hover {
  color: white;
}

.footer-link a:hover::before {
  width: 100%;
}

.footer-bottom {
  margin-top: var(--spacing-xl);
  padding-top: var(--spacing-md);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
  color: var(--gray-light);
  position: relative;
  z-index: 1;
}

/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 45px;
  height: 45px;
  background-color: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
  box-shadow: 0 0 10px rgba(78, 84, 255, 0.5);
  border: 1px solid rgba(78, 84, 255, 0.3);
  overflow: hidden;
}

.back-to-top::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, var(--primary), var(--secondary));
  opacity: 0;
  transition: var(--transition);
  z-index: -1;
}

.back-to-top i {
  transition: var(--transition);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(78, 84, 255, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(78, 84, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(78, 84, 255, 0);
  }
}

.back-to-top:hover {
  transform: translateY(-5px);
}

.back-to-top:hover::before {
  opacity: 1;
}

.back-to-top:hover i {
  transform: translateY(-3px);
}

/* ======================================
 * ANIMATIONS
 * ====================================== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.fade-in {
  opacity: 0;
  animation: fadeIn 1s ease forwards;
}

.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease forwards;
}

.delay-1 {
  animation-delay: 0.2s;
}

.delay-2 {
  animation-delay: 0.4s;
}

.delay-3 {
  animation-delay: 0.6s;
}

.delay-4 {
  animation-delay: 0.8s;
}

/* Animation for scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Contact Info */
.contact-info-container {
  background-color: var(--dark-secondary);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow);
  border: 1px solid rgba(78, 84, 255, 0.1);
}

.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: var(--spacing-xl);
  margin-top: var(--spacing-xl);
}

@media (min-width: 768px) {
  .contact-info-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.contact-item {
  display: flex;
  margin-bottom: var(--spacing-md);
  background-color: var(--dark-tertiary);
  padding: var(--spacing-lg);
  border-radius: var(--border-radius-lg);
  border: 1px solid rgba(78, 84, 255, 0.1);
  transition: var(--transition);
}

.contact-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(78, 84, 255, 0.3);
}

.contact-icon {
  font-size: 1.5rem;
  color: var(--primary);
  margin-right: var(--spacing-md);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(78, 84, 255, 0.1);
  border-radius: 50%;
  transition: var(--transition);
}

.contact-item:hover .contact-icon {
  background-color: var(--primary);
  color: white;
  box-shadow: var(--shadow-neon);
}

.contact-text {
  flex: 1;
}

.contact-text h3 {
  font-size: var(--font-size-lg);
  margin-bottom: var(--spacing-md);
  color: var(--light);
  position: relative;
  display: inline-block;
  padding-bottom: var(--spacing-xs);
}

.contact-text h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.contact-text p {
  margin-bottom: var(--spacing-sm);
  color: var(--gray-light);
}

.contact-text a {
  color: var(--primary-light);
  transition: var(--transition);
}

.contact-text a:hover {
  color: var(--secondary);
  text-decoration: underline;
}

.social-links {
  display: flex;
  gap: var(--spacing-md);
  margin-top: var(--spacing-md);
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(78, 84, 255, 0.1);
  border-radius: 50%;
  color: var(--primary);
  font-size: 1.2rem;
  transition: var(--transition);
}

.social-link:hover {
  background-color: var(--primary);
  color: white;
  transform: translateY(-3px);
  box-shadow: var(--shadow-neon);
}

/* Page Title Gradient Animation */
.page-title-gradient {
  background: linear-gradient(90deg,
    var(--primary-light),
    var(--secondary),
    var(--accent),
    var(--secondary),
    var(--primary-light));
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: var(--light); /* Fallback color for mobile browsers */
  animation: gradientFlow 8s linear infinite;
  display: block; /* Changed from inline-block to block for mobile */
  width: 100%; /* Full width to prevent overflow */
  max-width: 100%; /* Ensure it doesn't exceed container width */
  word-wrap: break-word; /* Allow word wrapping */
  white-space: normal; /* Allow text to wrap */
  text-align: center; /* Center text on mobile */
  font-size: 2rem; /* Smaller font size for mobile */
  line-height: 1.2; /* Tighter line height for mobile */
}

/* Apply the gradient text only on browsers that support it properly */
@supports (background-clip: text) or (-webkit-background-clip: text) {
  .page-title-gradient {
    color: transparent; /* Make text transparent only when background-clip is supported */
  }
}

@media (min-width: 768px) {
  .page-title-gradient {
    display: inline-block; /* Change back to inline-block for larger screens */
    text-align: left; /* Left align on larger screens */
    font-size: 2.5rem; /* Larger font size for tablets and up */
    line-height: 1.3; /* Better line height for larger screens */
  }
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: var(--spacing-xl);
  margin-top: var(--spacing-xl);
}

@media (min-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.product-card {
  background-color: var(--dark-secondary);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow);
  border: 1px solid rgba(78, 84, 255, 0.1);
  transition: var(--transition);
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(78, 84, 255, 0.3);
}

.product-icon {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: var(--spacing-md);
  transition: var(--transition);
  filter: drop-shadow(0 0 5px rgba(78, 84, 255, 0.3));
}

.product-card:hover .product-icon {
  color: var(--secondary);
  transform: scale(1.1);
  filter: drop-shadow(0 0 8px rgba(0, 229, 255, 0.5));
}

.product-title {
  margin-bottom: var(--spacing-sm);
  color: var(--light);
  position: relative;
  display: inline-block;
  padding-bottom: var(--spacing-xs);
}

.product-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 30%;
  width: 40%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transition: var(--transition);
  transform: scaleX(0);
}

.product-card:hover .product-title::after {
  transform: scaleX(1);
}

.product-text {
  color: var(--gray-light);
  margin-bottom: var(--spacing-md);
  flex-grow: 1;
}