/* Design System & Variables */
:root {
  --bg-color: #0f0f13;
  --text-color: #e0e0e0;
  --text-muted: #a0a0a0;
  --primary: #00f0ff;
  /* Neon Cyan */
  --secondary: #7000ff;
  /* Deep Purple */
  --accent: #ff0055;
  /* Vibrant Pink for specific highlights */
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --font-main: 'Outfit', sans-serif;
  --transition: all 0.3s ease;
  --container-width: 1200px;
  --header-height: 80px;
}

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

html {
  scroll-behavior: smooth;
}

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

/* Page Background */
.page-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

.page-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  /* Adjusted opacity for global coverage */
}

.page-bg .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, transparent 0%, var(--bg-color) 100%);
}

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

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

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

.gradient-text {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

.btn-primary {
  display: inline-block;
  padding: 12px 32px;
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  color: #fff;
  border-radius: 50px;
  font-weight: 600;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(0, 240, 255, 0.3);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

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

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

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(112, 0, 255, 0.4);
}

.btn-secondary {
  display: inline-block;
  padding: 12px 32px;
  background: transparent;
  color: var(--text-color);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  font-weight: 600;
  backdrop-filter: blur(5px);
}

.btn-secondary:hover {
  border-color: var(--primary);
  background: rgba(0, 240, 255, 0.1);
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  text-align: center;
}

/* Header */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  transition: var(--transition);
  background: rgba(15, 15, 19, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
}

.main-header.scrolled {
  background: rgba(15, 15, 19, 0.95);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}

.logo img {
  height: 150px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-links a:not(.btn-primary) {
  font-weight: 500;
  position: relative;
}

.nav-links a:not(.btn-primary)::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.nav-links a:not(.btn-primary):hover::after,
.nav-links a.active:not(.btn-primary)::after {
  width: 100%;
}

.nav-links a.active:not(.btn-primary) {
  color: var(--primary);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
}

.bar {
  width: 25px;
  height: 2px;
  background-color: var(--text-color);
  transition: var(--transition);
}

/* Hero Section */
.hero-section {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  overflow: hidden;
}

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

.hero-content h1 {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.hero-content p {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-logo {
  width: 600px;
  max-width: 100%;
  height: auto;
  margin-top: -6rem;
  margin-bottom: -3.5rem;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.cta-group {
  display: flex;
  gap: 20px;
  justify-content: center;
}

/* Services Section */
.services-section {
  padding: 100px 0;
  background: var(--bg-color);
  position: relative;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 40px 30px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.glass-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
  box-shadow: 0 10px 40px rgba(0, 240, 255, 0.1);
}

.glass-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 60%);
  transform: rotate(45deg);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

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

.icon-box {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--primary);
  font-size: 1.5rem;
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #fff;
}

.service-card p {
  color: var(--text-muted);
}

/* About Section */
.about-section {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text .section-tag {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
  background: rgba(0, 240, 255, 0.1);
  padding: 5px 15px;
  border-radius: 20px;
  border: 1px solid rgba(0, 240, 255, 0.2);
}

.about-text h2 {
  font-size: 3rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.about-text p {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.about-stats {
  display: flex;
  gap: 40px;
  margin-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  margin-bottom: 0.5rem;
  background: var(--gradient);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.about-image {
  position: relative;
}

.image-wrapper {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--glass-border);
}

.image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.image-wrapper:hover img {
  transform: scale(1.05);
}

.floating-card {
  position: absolute;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  padding: 15px 25px;
  border-radius: 15px;
  font-weight: 600;
  color: var(--white);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  z-index: 2;
  animation: float 6s ease-in-out infinite;
}

.card-1 {
  top: 10%;
  right: -20px;
  animation-delay: 0s;
}

.card-2 {
  bottom: 10%;
  left: -20px;
  animation-delay: 3s;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }

  100% {
    transform: translateY(0px);
  }
}

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-text {
    text-align: center;
  }

  .about-stats {
    justify-content: center;
  }
}

/* Contact Section */
.contact-section {
  padding: 100px 0;
  background: linear-gradient(to top, #0a0a0c, var(--bg-color));
  position: relative;
}

.contact-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 60px;
  font-size: 1.2rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 50px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.info-item h4 {
  color: var(--primary);
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.info-item a {
  color: var(--text-color);
}

.info-item a:hover {
  color: var(--primary);
}

.social-links {
  display: flex;
  gap: 20px;
}

.social-links a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 15px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  color: #fff;
  font-family: var(--font-main);
  font-size: 1rem;
  transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.1);
}

.full-width {
  width: 100%;
}

/* Footer */
.main-footer {
  padding: 40px 0;
  border-top: 1px solid var(--glass-border);
  font-size: 0.9rem;
  color: var(--text-muted);
}

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

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a:hover {
  color: var(--primary);
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeIn 0.8s ease forwards;
}

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

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

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

.glow-effect {
  animation: glow 3s infinite alternate;
}

@keyframes glow {
  from {
    box-shadow: 0 4px 15px rgba(0, 240, 255, 0.3);
  }

  to {
    box-shadow: 0 4px 25px rgba(112, 0, 255, 0.6);
  }
}

/* Media Queries */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }

  /* Fix Header Logo on Mobile */
  .logo img {
    height: 50px;
    /* Reset to smaller size on mobile */
  }

  .main-header {
    height: 70px;
  }

  .hero-section {
    padding-top: 70px;
  }

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

  .mobile-menu-btn {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    /* Match new header height */
    left: 0;
    width: 100%;
    background: rgba(15, 15, 19, 0.95);
    flex-direction: column;
    padding: 2rem;
    height: calc(100vh - 70px);
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    backdrop-filter: blur(10px);
  }

  .nav-links.active {
    transform: translateX(0);
  }

  .main-footer .container {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  /* About Section Mobile Fixes */
  .about-text h2 {
    font-size: 2rem;
  }

  .about-stats {
    flex-direction: column;
    gap: 30px;
  }

  .floating-card {
    display: none;
    /* Hide floating elements on mobile for cleaner look */
  }

  .image-wrapper {
    margin: 0 20px;
  }
}