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

:root {
  /* Color Scheme */
  --primary-black: #0a0a0b;
  --secondary-black: #1a1a1a;
  --electric-blue: #00d4ff;
  --cyber-green: #39ff14;
  --neon-purple: #bf00ff;
  --warm-orange: #ff6b35;
  --pure-white: #ffffff;
  --light-gray: #e0e0e0;
  --medium-gray: #888888;
  --dark-gray: #333333;

  /* Gradients */
  --cyber-gradient: linear-gradient(
    135deg,
    var(--electric-blue),
    var(--neon-purple)
  );
  --warm-gradient: linear-gradient(135deg, var(--warm-orange), #ff8a50);
  --green-blue-gradient: linear-gradient(
    135deg,
    var(--cyber-green),
    var(--electric-blue)
  );

  /* Typography */
  --font-primary: "Poppins", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-secondary: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-accent: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --container-max-width: 1200px;
  --section-padding: 80px 0;
  --container-padding: 0 20px;

  /* Animation Timings */
  --transition-fast: 0.3s ease;
  --transition-medium: 0.5s ease;
  --transition-slow: 0.8s ease;

  /* Z-Index Layers */
  --z-loading: 10000;
  --z-nav: 2000;
  --z-modal: 999;
  --z-overlay: 100;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px; /* For fixed header and smoother anchor scrolling */
}

body {
  font-family: var(--font-secondary);
  background-color: var(--primary-black);
  color: var(--pure-white);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--secondary-black);
}

::-webkit-scrollbar-thumb {
  background: var(--cyber-gradient);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--electric-blue);
}

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

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(10, 10, 11, 0.85) !important;
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 212, 255, 0.3);
  z-index: var(--z-nav) !important;
  transition: all var(--transition-medium);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
}

.navbar.scrolled {
  background: rgba(10, 10, 11, 0.95) !important;
  box-shadow: 0 8px 32px rgba(0, 212, 255, 0.4);
  border-bottom: 1px solid rgba(0, 212, 255, 0.6);
}

/* Enhanced Navbar for Home Page */
body:has(.hero) .navbar {
  background: rgba(0, 0, 0, 0.9);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

body:has(.hero) .navbar.scrolled {
  background: linear-gradient(
    90deg,
    rgba(10, 10, 11, 0.95) 0%,
    rgba(26, 26, 30, 0.95) 50%,
    rgba(10, 10, 11, 0.95) 100%
  ) !important;
  border-image: linear-gradient(
      90deg,
      transparent 0%,
      rgba(0, 212, 255, 0.8) 25%,
      rgba(57, 255, 20, 0.8) 50%,
      rgba(191, 0, 255, 0.8) 75%,
      transparent 100%
    )
    1;
  box-shadow: 0 8px 32px rgba(0, 212, 255, 0.3), 0 0 60px rgba(0, 212, 255, 0.2);
}

.nav-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 30px;
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  opacity: 1 !important;
  visibility: visible !important;
  position: relative;
}

/* Enhanced Logo Area */
.nav-logo {
  position: relative;
  z-index: 10;
  text-decoration: none;
  display: block;
}

.nav-logo .logo-text {
  font-family: var(--font-primary);
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: 2px;
  opacity: 1 !important;
  visibility: visible !important;
}

.nav-logo .logo-image {
  height: 60px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
  margin-top: 5px;
  transition: all var(--transition-fast);
  filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.3));
}

.nav-logo .logo-image:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 0 15px rgba(0, 212, 255, 0.6));
}

/* Enhanced Navigation Menu */
.nav-menu {
  display: flex !important;
  list-style: none;
  gap: 40px;
  align-items: center;
  margin: 0;
  padding: 0;
  opacity: 1 !important;
  visibility: visible !important;
}

.nav-item {
  position: relative;
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
}

.nav-link {
  color: var(--pure-white) !important;
  text-decoration: none;
  font-family: var(--font-secondary);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.01em;
  transition: all var(--transition-fast);
  position: relative;
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--electric-blue);
  transition: width var(--transition-fast);
}

.nav-link:hover {
  color: var(--electric-blue);
}

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

/* CTA Button */
.cta-nav {
  background: var(--electric-blue) !important;
  color: var(--pure-white) !important;
  padding: 10px 20px !important;
  border-radius: 50px;
  text-decoration: none !important;
  font-family: var(--font-secondary);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: all var(--transition-fast);
  border: 2px solid var(--electric-blue) !important;
}

.cta-nav:hover {
  background: transparent !important;
  color: var(--electric-blue) !important;
  border-color: var(--electric-blue) !important;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 212, 255, 0.3);
}

/* Hamburger Menu - Hidden by default, shown on mobile */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
  z-index: 2001;
  position: relative;
}

.hamburger .bar {
  width: 25px;
  height: 3px;
  background: var(--electric-blue);
  transition: all 0.3s ease;
}

/* Hero Section - Completely Redesigned */
/* Hero Section - Updated to match about/projects structure */
.hero {
  position: relative;
  min-height: 100vh;
  width: 100%;
  background-color: var(--primary-black);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Navigation Placeholder */
.hero-nav-placeholder {
  height: 80px; /* Height of the navbar */
  width: 100%;
  flex-shrink: 0;
}

/* Background Image/Video */
.hero-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: auto;
  contain: layout style paint;
}

/* Gentle panning animation for background - disabled to prevent shaking on tab switch */
/* @keyframes gentle-pan-bg {
  0%,
  100% {
    transform: scale(1.1) translateX(0) translateY(0);
  }
  25% {
    transform: scale(1.1) translateX(10px) translateY(-5px);
  }
  50% {
    transform: scale(1.1) translateX(-10px) translateY(5px);
  }
  75% {
    transform: scale(1.1) translateX(5px) translateY(-2px);
  }
} */

/* Text Content Block */
.hero-text-block {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 0 40px 120px; /* Extra bottom padding for scroll indicator */
  position: relative;
  z-index: 2;
}

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

.hero-text-content::before {
  content: "";
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--electric-blue),
    transparent
  );
  border-radius: 2px;
}

.hero-text-content::after {
  content: "";
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateY(-50%);
  width: 80px;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--neon-purple),
    transparent
  );
  border-radius: 1px;
}

.hero-headline {
  font-family: var(--font-primary);
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--pure-white);
  margin: 0 0 30px 0;
  opacity: 0;
  transform: translateY(30px);
  animation: slide-up-reveal 1s ease-out 0.3s forwards;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  position: relative;
  display: inline-block;
}

.hero-headline::before {
  content: "";
  position: absolute;
  top: -15px;
  left: -20px;
  width: 6px;
  height: 6px;
  background: var(--electric-blue);
  border-radius: 50%;
  box-shadow: 0 0 15px var(--electric-blue);
  animation: pulse 2s ease-in-out infinite;
}

.hero-headline::after {
  content: "";
  position: absolute;
  bottom: -15px;
  right: -20px;
  width: 4px;
  height: 4px;
  background: var(--neon-purple);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--neon-purple);
  animation: pulse 2s ease-in-out infinite 0.5s;
}

.hero-description {
  font-family: var(--font-secondary);
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--light-gray);
  margin: 0;
  max-width: 700px;
  margin: 0 auto;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  position: relative;
  padding: 0 20px;
}

.hero-description::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 2px;
  height: 60%;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(0, 212, 255, 0.3),
    transparent
  );
  border-radius: 1px;
}

.hero-description::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  width: 2px;
  height: 60%;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(128, 0, 255, 0.3),
    transparent
  );
  border-radius: 1px;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.6;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

/* Slide-up reveal animation for headline */
@keyframes slide-up-reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: var(--pure-white);
  z-index: 3;
  animation: fade-in-out 2s ease-in-out infinite;
  cursor: pointer;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.scroll-arrow {
  font-size: 1.5rem;
  margin-bottom: 8px;
  animation: bounce 2s infinite;
}

.scroll-text {
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 300;
  font-family: var(--font-secondary);
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

@keyframes fade-in-out {
  0%,
  100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}

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

.hero-description {
  margin: 2rem 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  font-family: var(--font-secondary);
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--light-gray);
  opacity: 0.95;
}

/* Hero Actions (Button Container) */
.hero-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  text-align: center;
  transition: all 0.3s ease;
  min-width: 180px;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn-primary {
  background: var(--electric-blue);
  color: var(--pure-white);
  border: 2px solid var(--electric-blue);
}

.btn-primary:hover {
  background: transparent;
  color: var(--electric-blue);
  border-color: var(--electric-blue);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 212, 255, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--pure-white);
  border: 2px solid var(--pure-white);
}

.btn-secondary:hover {
  background: var(--pure-white);
  color: var(--primary-black);
  border-color: var(--pure-white);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

/* Enhanced button text styling */
.btn-text {
  position: relative;
  z-index: 2;
  font-weight: 600;
  letter-spacing: 0.5px;
}

@keyframes heroFadeIn {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 992px) {
  .hero-container {
    padding: 0 1rem;
  }

  .hero-actions {
    margin: 2rem 0;
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .btn-hero {
    width: 100%;
    max-width: 280px;
    padding: 1rem 2rem;
    font-size: 1rem;
  }

  /* Updated hero responsive styles for mobile */
  .hero-text-block {
    padding: 20px 15px 90px;
  }

  .hero-text-content::before {
    width: 80px;
    top: -30px;
  }

  .hero-text-content::after {
    width: 50px;
    bottom: -30px;
  }

  .hero-headline {
    font-size: 2.8rem;
    margin-bottom: 20px;
  }

  .hero-description {
    font-size: 1rem;
    padding: 0 10px;
  }

  .hero-description::before,
  .hero-description::after {
    height: 40%;
  }

  /* Navigation Mobile */
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 80px;
    flex-direction: column;
    background: rgba(10, 10, 11, 0.98);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    padding: 40px 0;
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(0, 212, 255, 0.2);
    z-index: 2000;
  }

  .nav-menu.active {
    left: 0;
  }

  .hamburger {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 2001 !important;
  }

  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

@media (max-width: 480px) {
  .hero-brand {
    font-size: 2.5rem;
  }

  .hero-tagline {
    font-size: 1rem;
  }

  /* Enhanced hero actions for small screens */
  .hero-actions {
    gap: 12px;
    margin-top: 1.5rem;
    width: 100%;
  }

  .btn-hero {
    padding: 0.875rem 1.75rem;
    font-size: 0.95rem;
    min-width: 160px;
    max-width: 260px;
  }

  /* Updated hero responsive styles for small screens */
  .hero-text-block {
    padding: 15px 10px 80px;
  }

  .hero-text-content::before,
  .hero-text-content::after {
    display: none;
  }

  .hero-headline {
    font-size: 2.4rem;
    margin-bottom: 18px;
  }

  .hero-description {
    font-size: 0.95rem;
    padding: 0;
  }

  .hero-description::before,
  .hero-description::after {
    display: none;
  }
}

/* Extra small screens (320px and below) */
@media (max-width: 320px) {
  .hero-actions {
    gap: 10px;
    margin-top: 1.25rem;
  }

  .btn-hero {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    min-width: 140px;
    max-width: 240px;
  }
}

/* Add fade-in animation for hero content */

@keyframes glow-pulse {
  0% {
    filter: brightness(1) drop-shadow(0 0 5px var(--electric-blue));
  }
  100% {
    filter: brightness(1.2) drop-shadow(0 0 20px var(--electric-blue));
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes pulse-text {
  0%,
  100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border: none;
  border-radius: 30px;
  font-family: var(--font-secondary);
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--cyber-gradient);
  color: var(--pure-white);
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 212, 255, 0.5);
}

.btn-secondary {
  background: transparent;
  color: var(--pure-white);
  border: 2px solid var(--electric-blue);
}

.btn-secondary:hover {
  background: var(--electric-blue);
  color: var(--primary-black);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 212, 255, 0.3);
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: var(--light-gray);
  z-index: 3;
}

.scroll-arrow {
  font-size: 1.5rem;
  margin-bottom: 10px;
  animation: scroll-bounce 2s ease-in-out infinite;
}

.scroll-text {
  font-size: 0.9rem;
  letter-spacing: 1px;
}

@keyframes scroll-bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* Stats Section */
.stats-section {
  padding: 100px 0;
  background: linear-gradient(
    0deg,
    rgba(10, 10, 11, 0.95) 0%,
    rgba(26, 26, 30, 0.9) 100%
  );
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--electric-blue),
    transparent
  );
  opacity: 0.5;
}

.stats-section .section-header {
  margin-bottom: 60px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}

.stat-item {
  padding: 40px 20px;
  background: rgba(15, 15, 20, 0.7);
  border: 1px solid rgba(0, 212, 255, 0.15);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: all 0.4s ease-out;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.stat-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 212, 255, 0.1) 0%,
    rgba(0, 0, 0, 0) 75%
  );
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.stat-item::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 20%;
  right: 20%;
  height: 3px;
  background: var(--electric-blue);
  transform: scaleX(0.7);
  opacity: 0.6;
  transition: all 0.4s ease;
  border-radius: 3px;
}

.stat-item:hover {
  transform: translateY(-15px);
  border-color: var(--electric-blue);
  box-shadow: 0 20px 40px rgba(0, 212, 255, 0.2);
}

.stat-item:hover::before {
  opacity: 1;
}

.stat-item:hover::after {
  transform: scaleX(1);
  opacity: 1;
  left: 10%;
  right: 10%;
}

.stat-item:hover .stat-icon {
  transform: scale(1.15);
  color: #fff;
  text-shadow: 0 0 15px var(--electric-blue);
}

.stat-icon-container {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto 25px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-icon-container::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(0, 212, 255, 0.1);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.95);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.3;
  }
  100% {
    transform: scale(0.95);
    opacity: 0.7;
  }
}

.stat-icon {
  font-size: 2.8rem;
  color: var(--electric-blue);
  position: relative;
  z-index: 2;
  transition: all 0.4s ease;
}

.stat-number {
  font-family: var(--font-orbitron);
  font-size: 3.5rem;
  font-weight: 900;
  background: linear-gradient(90deg, var(--electric-blue), #00ffcc);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 15px;
  line-height: 1;
  letter-spacing: 1px;
  position: relative;
}

.stat-label {
  font-size: 1.2rem;
  color: var(--light-gray);
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 80px;
}

.section-title {
  font-family: var(--font-primary);
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 20px;
  background: var(--cyber-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-family: var(--font-secondary);
  font-size: 1.2rem;
  color: var(--light-gray);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: 0.01em;
  opacity: 0.9;
}

/* Services Section */
.services-section {
  padding: var(--section-padding);
  background: linear-gradient(
    180deg,
    var(--primary-black) 0%,
    rgba(26, 26, 30, 0.95) 100%
  );
  position: relative;
  overflow: hidden;
}

.services-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("https://www.shutterstock.com/image-photo/industrial-concept-close-new-generation-600nw-1284976810.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  opacity: 0.12;
  z-index: 1;
}

.services-section .container {
  position: relative;
  z-index: 2;
}

.services-section::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--electric-blue),
    transparent
  );
  opacity: 0.5;
  z-index: 2;
}

.services-intro {
  max-width: 800px;
  margin: 0 auto 60px;
  text-align: center;
}

.services-intro p {
  color: var(--light-gray);
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 30px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  position: relative;
  z-index: 1;
}

/* New Card Style with Image */
.service-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.4s ease;
  height: 380px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 212, 255, 0.2);
}

.service-card-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.service-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.service-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.85) 30%,
    rgba(0, 0, 0, 0.4) 100%
  );
  z-index: 2;
  transition: background 0.4s ease;
}

.service-card:hover .service-overlay {
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.9) 50%,
    rgba(0, 0, 0, 0.5) 100%
  );
}

.service-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 30px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.service-card:hover .service-content {
  transform: translateY(-5px);
}

.service-card h3 {
  font-family: var(--font-orbitron);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--pure-white);
  margin-bottom: 12px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.service-card p {
  color: var(--light-gray);
  line-height: 1.6;
  margin-bottom: 20px;
  font-size: 1rem;
  max-width: 90%;
}

.service-btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  padding: 10px 22px;
  background-color: transparent;
  border: 1.5px solid var(--electric-blue);
  border-radius: 30px;
  color: var(--electric-blue);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.service-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--electric-blue), var(--cyber-green));
  z-index: -1;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.service-btn:hover {
  color: var(--primary-black);
  border-color: transparent;
}

.service-btn:hover::before {
  transform: scaleX(1);
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.8);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.2;
  }
  100% {
    transform: scale(0.8);
    opacity: 0.8;
  }
}

.service-features {
  list-style: none;
  margin: 0 0 25px;
  padding: 0;
}

.service-features li {
  color: var(--light-gray);
  margin-bottom: 12px;
  position: relative;
  padding-left: 28px;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
}

.service-features li i {
  color: var(--cyber-green);
  font-size: 1rem;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}

.service-card-footer {
  padding: 20px 25px 30px;
  text-align: center;
  position: relative;
  width: 100%; /* Ensure full width on all devices */
}

/* Service button styles removed as requested */

/* Service button hover effects removed as requested */

.card-link {
  color: var(--electric-blue);
  text-decoration: none;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.card-link:hover {
  color: var(--cyber-green);
  text-shadow: 0 0 10px var(--cyber-green);
}

/* Projects Section */
.projects-section {
  padding: var(--section-padding);
  background: linear-gradient(
    180deg,
    var(--primary-black) 0%,
    rgba(26, 26, 30, 0.95) 100%
  );
  position: relative;
  overflow: hidden;
}

.projects-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("https://iili.io/Kc37mZB.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  opacity: 0.12;
  z-index: 1;
}

.projects-section .container {
  position: relative;
  z-index: 2;
}

.projects-section .section-header {
  margin-bottom: 60px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  position: relative;
  z-index: 1;
}

.project-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.4s ease;
  height: 380px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 212, 255, 0.2);
}

.project-card-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.project-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.85) 30%,
    rgba(0, 0, 0, 0.4) 100%
  );
  z-index: 2;
  transition: background 0.4s ease;
}

.project-card:hover .project-overlay {
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.9) 50%,
    rgba(0, 0, 0, 0.5) 100%
  );
}

.project-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 30px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.project-card:hover .project-content {
  transform: translateY(-5px);
}

.project-card h3 {
  font-family: var(--font-orbitron);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--pure-white);
  margin-bottom: 12px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8), 0 0 3px rgba(0, 0, 0, 0.5);
}

.project-card p {
  color: #000000;
  line-height: 1.6;
  margin-bottom: 20px;
  font-size: 1rem;
  max-width: 90%;
  font-weight: 500;
}

.project-tech {
  margin-bottom: 18px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.tech-tag {
  background: rgba(0, 212, 255, 0.15);
  color: var(--electric-blue);
  border-radius: 12px;
  padding: 5px 14px;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  margin-bottom: 5px;
  transition: background 0.3s;
}

.project-btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  padding: 10px 22px;
  background-color: transparent;
  border: 1.5px solid var(--electric-blue);
  border-radius: 30px;
  color: var(--electric-blue);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.project-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--electric-blue), var(--cyber-green));
  z-index: -1;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.project-btn:hover {
  color: var(--primary-black);
  border-color: transparent;
}

.project-btn:hover::before {
  transform: scaleX(1);
}

@media (max-width: 768px) {
  .projects-grid,
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .project-card,
  .service-card {
    height: 320px;
  }

  .project-card h3,
  .service-card h3 {
    font-size: 1.5rem;
  }

  .project-card p,
  .service-card p {
    font-size: 0.95rem;
  }

  .project-btn {
    padding: 8px 18px;
    font-size: 0.9rem;
  }

  .project-tech {
    gap: 6px;
  }

  .tech-tag {
    padding: 4px 10px;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .projects-grid,
  .services-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .project-card,
  .service-card {
    height: 300px;
  }

  .project-card h3,
  .service-card h3 {
    font-size: 1.4rem;
  }

  .project-btn {
    min-width: 120px;
    font-size: 0.85rem;
    padding: 8px 12px;
  }

  .project-tech {
    margin-bottom: 12px;
  }

  .tech-tag {
    font-size: 0.8rem;
    padding: 3px 10px;
  }
}

@media (max-width: 375px) {
  .project-card,
  .service-card {
    height: 280px;
  }

  .project-card h3,
  .service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
  }

  .project-card p,
  .service-card p {
    font-size: 0.85rem;
    margin-bottom: 15px;
  }

  .project-content,
  .service-content {
    padding: 20px;
  }
}

/* Footer */
.footer {
  background: var(--secondary-black);
  padding: 60px 0 30px;
  border-top: 1px solid rgba(0, 212, 255, 0.2);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-title {
  font-family: var(--font-primary);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 20px;
  background: var(--cyber-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.01em;
}

.footer-subtitle {
  font-family: var(--font-secondary);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--pure-white);
  letter-spacing: 0.01em;
}

.footer-description {
  font-family: var(--font-secondary);
  color: var(--light-gray);
  line-height: 1.6;
  margin-bottom: 30px;
  font-weight: 400;
  letter-spacing: 0.01em;
  opacity: 0.9;
}

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

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(0, 212, 255, 0.1);
  color: var(--electric-blue);
  border-radius: 50%;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.social-link:hover {
  background: var(--electric-blue);
  color: var(--primary-black);
  transform: translateY(-3px);
}

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

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  font-family: var(--font-secondary);
  color: var(--light-gray);
  text-decoration: none;
  transition: color var(--transition-fast);
  font-weight: 400;
  letter-spacing: 0.01em;
}

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

.contact-info p {
  color: var(--light-gray);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-info i {
  color: var(--electric-blue);
  width: 20px;
}

.footer-bottom {
  margin-top: 40px;
}

.footer-divider {
  height: 1px;
  background: rgba(0, 212, 255, 0.2);
  margin-bottom: 30px;
}

.footer-copyright {
  font-family: var(--font-secondary);
  text-align: center;
  color: var(--medium-gray);
  font-weight: 400;
  letter-spacing: 0.01em;
  opacity: 0.8;
}

.footer-copyright p {
  margin-bottom: 5px;
}

/* SRI link styling */
.sri-link {
  color: #007bff; /* Blue color */
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 500;
}

.sri-link:hover {
  color: #ffffff; /* White on hover */
}

/* Responsive Design */
/* Responsive Design */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
    padding: 60px 20px 40px;
  }

  .hero-content {
    padding: 0;
    order: 1;
  }

  .hero-visual {
    order: 2;
    height: 400px;
  }

  .hero-title {
    font-size: 3.5rem;
  }

  .project-slide {
    grid-template-columns: 1fr;
    text-align: center;
  }

  /* Updated hero responsive styles */
  .hero-text-block {
    padding: 0 30px 100px;
  }

  .hero-text-content::before {
    width: 100px;
    top: -35px;
  }

  .hero-text-content::after {
    width: 60px;
    bottom: -35px;
  }

  .hero-headline {
    font-size: 3.2rem;
    margin-bottom: 25px;
  }

  .hero-headline::before,
  .hero-headline::after {
    display: none;
  }

  .hero-description {
    font-size: 1.1rem;
    padding: 0 15px;
  }

  .hero-description::before,
  .hero-description::after {
    height: 50%;
  }
}

@media (max-width: 768px) {
  /* Services Mobile */
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .service-card {
    min-height: 450px;
  }

  .service-icon {
    width: 70px;
    height: 70px;
  }

  .service-icon i {
    font-size: 2rem;
  }

  .service-card h3 {
    font-size: 1.4rem;
  }

  .service-card-body {
    padding: 0 20px 15px;
  }

  .service-features li {
    margin-bottom: 10px;
    font-size: 0.9rem;
  }

  /* Service button styles removed as requested */

  /* Stats Mobile */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .stat-icon-container {
    width: 70px;
    height: 70px;
    margin-bottom: 15px;
  }

  .stat-icon {
    font-size: 2.2rem;
  }

  .stat-number {
    font-size: 3rem;
    margin-bottom: 10px;
  }

  .stat-label {
    font-size: 1.1rem;
  }

  /* Hero Mobile */
  .spline-container {
    padding-top: 70px;
  }

  spline-viewer {
    top: 70px !important;
    height: calc(100vh - 70px) !important;
  }

  .hero-overlay {
    padding: 1.5rem; /* Smaller padding for mobile */
  }

  .hero-content {
    padding: 2rem 1.5rem;
    max-width: 95%;
    background: rgba(
      0,
      0,
      0,
      0.45
    ); /* More transparent background for mobile */
    border-radius: 15px;
  }

  .hero-title {
    font-size: 3rem;
    letter-spacing: 2px;
    margin-bottom: 15px;
  }

  .hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 15px;
  }

  .hero-description {
    font-size: 1.1rem;
    margin-bottom: 25px;
    line-height: 1.5;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .hero-buttons .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .animated-title {
    font-size: 3rem;
    letter-spacing: 2px;
  }

  .loading-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
  }

  .spinner {
    width: 60px;
    height: 60px;
  }

  .spinner-ring {
    width: 45px;
    height: 45px;
  }

  .spinner-ring:nth-child(2) {
    width: 35px;
    height: 35px;
  }

  .spinner-ring:nth-child(3) {
    width: 25px;
    height: 25px;
  }

  /* Stats Mobile */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .stat-item {
    padding: 20px 15px;
  }

  .stat-number {
    font-size: 2rem;
  }

  /* Services Mobile */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .service-card {
    min-height: auto;
    height: auto; /* Remove fixed height for better responsiveness */
    display: flex;
    flex-direction: column;
  }

  .service-card-body {
    flex-grow: 1;
  }

  .service-features li {
    margin-bottom: 8px;
  }

  /* Service button styles removed as requested */

  .card-front,
  .card-back {
    padding: 30px 20px;
  }

  /* Carousel Mobile */
  .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .carousel-prev {
    left: 10px;
  }

  .carousel-next {
    right: 10px;
  }

  .project-slide {
    padding: 20px;
  }
}

/* Extra Small Devices */
@media (max-width: 375px) {
  /* Service buttons for very small screens */
  /* Service button styles removed as requested */

  .service-card-footer {
    padding-bottom: 20px;
  }

  .service-features li {
    font-size: 0.85rem;
    margin-bottom: 6px;
  }

  .service-icon {
    width: 60px;
    height: 60px;
  }

  .service-card h3 {
    font-size: 1.3rem;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  :root {
    --electric-blue: #00ffff;
    --cyber-green: #00ff00;
    --pure-white: #ffffff;
    --primary-black: #000000;
  }
}

/* Print styles */
@media print {
  .navbar,
  .hero-visual,
  .scroll-indicator {
    display: none;
  }

  body {
    background: white;
    color: black;
  }
}

/* License link styling */
.license-link {
  color: var(--electric-blue);
  text-decoration: none;
  transition: var(--transition-fast);
  position: relative;
  margin-left: 5px;
}

.license-link:hover {
  color: var(--cyber-green);
  text-decoration: underline;
}

.license-link::after {
  content: "→";
  font-size: 0.8em;
  position: relative;
  top: -1px;
  opacity: 0;
  margin-left: 2px;
  transition: var(--transition-fast);
}

.license-link:hover::after {
  opacity: 1;
  margin-left: 5px;
}

/* Tablet-specific responsive design */
@media (min-width: 481px) and (max-width: 1024px) {
  .hero-overlay {
    padding: 2rem 1.5rem; /* Adjusted padding for tablets */
  }

  .hero-content {
    padding: 2rem;
    max-width: 90%;
  }
}

/* Scroll to Top Button */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--cyber-gradient);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(13, 110, 253, 0.3);
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top:hover {
  transform: translateY(-2px) scale(1.1);
  box-shadow: 0 6px 25px rgba(13, 110, 253, 0.5);
}

.scroll-to-top:active {
  transform: translateY(0) scale(0.95);
}

.scroll-to-top i {
  color: var(--pure-white);
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.scroll-to-top:hover i {
  transform: translateY(-2px);
}

/* Mobile responsive */
@media (max-width: 768px) {
  .scroll-to-top {
    width: 45px;
    height: 45px;
    bottom: 20px;
    right: 20px;
  }

  .scroll-to-top i {
    font-size: 1rem;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .scroll-to-top {
    transition: opacity 0.3s ease;
  }

  .scroll-to-top:hover {
    transform: none;
  }

  .scroll-to-top:hover i {
    transform: none;
  }
}
