/**
 * ITUNE International - Professional Multi-Page Website
 * Main Stylesheet
 * Author: Professional Web Developer
 */

/* ========================================
   CSS VARIABLES
   ======================================== */
:root {
  /* Brand Colors */
  --primary: #0066CC;
  --primary-dark: #004499;
  --primary-light: #3388DD;
  --secondary: #FF6B35;
  --secondary-dark: #E55A2B;
  
  /* Neutral Colors */
  --dark: #0a0a0a;
  --dark-900: #111111;
  --dark-800: #1a1a1a;
  --dark-700: #222222;
  --gray-900: #1f2937;
  --gray-800: #374151;
  --gray-700: #4b5563;
  --gray-600: #6b7280;
  --gray-500: #9ca3af;
  --gray-400: #d1d5db;
  --gray-300: #e5e7eb;
  --gray-200: #f3f4f6;
  --gray-100: #f9fafb;
  --white: #ffffff;
  
  /* Service Colors */
  --energy: #10B981;
  --security: #EF4444;
  --network: #8B5CF6;
  --training: #F59E0B;
  
  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Spacing */
  --section-padding: 8rem;
  --container-max: 1400px;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1);
  --shadow-glow: 0 0 40px rgba(0,102,204,0.3);
}

/* ========================================
   RESET & BASE
   ======================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-primary);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--gray-800);
  background: var(--white);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-normal);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: var(--section-padding) 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 4rem;
}

.section-label {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 1rem;
  position: relative;
}

.section-label::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: var(--primary);
  margin: 0.5rem auto 0;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 1.5rem;
  color: var(--dark);
}

.section-subtitle {
  font-size: 1.25rem;
  color: var(--gray-600);
  line-height: 1.8;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  transition: var(--transition-normal);
  cursor: pointer;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(0,102,204,0.4);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,102,204,0.5);
}

.btn-secondary {
  background: var(--secondary);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(255,107,53,0.4);
}

.btn-secondary:hover {
  background: var(--secondary-dark);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--dark);
}

.btn-lg {
  padding: 1.25rem 2.5rem;
  font-size: 1.125rem;
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.5rem 0;
  transition: var(--transition-normal);
  background: transparent;
}

.header.scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-md);
  padding: 1rem 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  width: 45px;
  height: 45px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.5rem;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}

.header.scrolled .logo-title {
  color: var(--dark);
}

.logo-subtitle {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
}

.header.scrolled .logo-subtitle {
  color: var(--gray-600);
}

.nav {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  position: relative;
  padding: 0.5rem 0;
}

.header.scrolled .nav-link {
  color: var(--gray-700);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition-normal);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
}

.menu-toggle span {
  width: 25px;
  height: 2px;
  background: var(--white);
  transition: var(--transition-normal);
}

.header.scrolled .menu-toggle span {
  background: var(--dark);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 400px;
  height: 100vh;
  background: var(--white);
  z-index: 1001;
  transition: var(--transition-slow);
  overflow-y: auto;
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--gray-200);
}

.mobile-nav-list {
  padding: 2rem;
}

.mobile-nav-link {
  display: block;
  padding: 1rem 0;
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--gray-800);
  border-bottom: 1px solid var(--gray-200);
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: var(--primary);
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-normal);
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ========================================
   HERO SECTION - BREATHTAKING
   ======================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--dark);
}

.hero-video-container {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0,0,0,0.9) 0%,
    rgba(0,0,0,0.7) 50%,
    rgba(0,102,204,0.3) 100%
  );
  z-index: 1;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 10;
  padding-top: 100px;
  max-width: 900px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 100px;
  margin-bottom: 2rem;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: #10B981;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}

.hero-badge-text {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-title-line {
  display: block;
}

.hero-title-accent {
  color: var(--secondary);
}

.hero-description {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  color: rgba(255,255,255,0.8);
  max-width: 600px;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

.hero-stat {
  position: relative;
}

.hero-stat::after {
  content: '';
  position: absolute;
  right: -1.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.2);
}

.hero-stat:last-child::after {
  display: none;
}

.hero-stat-value {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--white);
  display: block;
}

.hero-stat-label {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Hero Scroll Indicator */
.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.6);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.hero-scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.6), transparent);
  animation: scrollLine 2s infinite;
}

@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ========================================
   SERVICES PREVIEW
   ======================================== */
.services-preview {
  background: var(--gray-100);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--white);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--primary);
  transform: scaleX(0);
  transition: var(--transition-normal);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.service-card.energy::before { background: var(--energy); }
.service-card.security::before { background: var(--security); }
.service-card.network::before { background: var(--network); }
.service-card.training::before { background: var(--training); }

.service-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.service-card.energy .service-icon { background: rgba(16,185,129,0.1); color: var(--energy); }
.service-card.security .service-icon { background: rgba(239,68,68,0.1); color: var(--security); }
.service-card.network .service-icon { background: rgba(139,92,246,0.1); color: var(--network); }
.service-card.training .service-icon { background: rgba(245,158,11,0.1); color: var(--training); }

.service-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--dark);
}

.service-description {
  font-size: 0.95rem;
  color: var(--gray-600);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary);
}

.service-link:hover {
  gap: 0.75rem;
}

/* ========================================
   ABOUT PREVIEW
   ======================================== */
.about-preview {
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-images {
  position: relative;
}

.about-image-main {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.about-image-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-image-accent {
  position: absolute;
  bottom: -2rem;
  right: -2rem;
  width: 200px;
  height: 200px;
  border-radius: 16px;
  overflow: hidden;
  border: 4px solid var(--white);
  box-shadow: var(--shadow-lg);
}

.about-image-accent img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-content h2 {
  margin-bottom: 1.5rem;
}

.about-content p {
  font-size: 1.1rem;
  color: var(--gray-600);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.about-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin: 2.5rem 0;
}

.about-feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.about-feature-icon {
  width: 24px;
  height: 24px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.about-feature-text {
  font-weight: 500;
  color: var(--gray-800);
}

/* ========================================
   CTA SECTION
   ======================================== */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}

.cta-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.cta-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--white);
  margin-bottom: 1rem;
}

.cta-description {
  font-size: 1.25rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 2.5rem;
}

.cta-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background: var(--dark);
  color: var(--white);
  padding-top: 5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .logo-title {
  color: var(--white);
}

.footer-brand .logo-subtitle {
  color: rgba(255,255,255,0.6);
}

.footer-description {
  margin: 1.5rem 0;
  color: rgba(255,255,255,0.7);
  line-height: 1.8;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social-link {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-normal);
}

.footer-social-link:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

.footer-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--white);
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-link {
  color: rgba(255,255,255,0.7);
  transition: var(--transition-normal);
}

.footer-link:hover {
  color: var(--white);
  padding-left: 0.5rem;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: rgba(255,255,255,0.7);
}

.footer-bottom {
  padding: 2rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copyright {
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1280px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1024px) {
  .nav-list {
    display: none;
  }
  
  .nav-cta .btn {
    display: none;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 5rem;
  }
  
  .container {
    padding: 0 1.5rem;
  }
  
  .hero-stats {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .hero-stat::after {
    display: none;
  }
  
  .hero-cta {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .about-features {
    grid-template-columns: 1fr;
  }
  
  .about-image-accent {
    display: none;
  }
  
  .cta-buttons {
    flex-direction: column;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
}


/* ========================================
   3D PREMIUM SERVICE CARDS
   ======================================== */
.services-grid {
  perspective: 2000px;
}

.service-card-3d {
  background: var(--white);
  border-radius: 24px;
  padding: 2.5rem;
  position: relative;
  transform-style: preserve-3d;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  overflow: hidden;
  box-shadow: 
    0 4px 6px -1px rgba(0,0,0,0.1),
    0 2px 4px -1px rgba(0,0,0,0.06),
    0 20px 40px -10px rgba(0,0,0,0.1);
}

.service-card-3d::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,0.4) 0%, transparent 50%);
  z-index: 1;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.service-card-3d:hover::before {
  opacity: 1;
}

.service-card-3d::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  transform: scaleX(0);
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.service-card-3d:hover::after {
  transform: scaleX(1);
}

.service-card-3d:hover {
  transform: translateY(-15px) rotateX(5deg);
  box-shadow: 
    0 30px 60px -15px rgba(0,0,0,0.2),
    0 0 0 1px rgba(255,255,255,0.1);
}

/* Energy Card */
.service-card-3d.energy { border-top: 4px solid var(--energy); }
.service-card-3d.energy::after { background: linear-gradient(90deg, var(--energy), #34D399); }
.service-card-3d.energy .service-icon-3d { 
  background: linear-gradient(135deg, var(--energy), #34D399);
  box-shadow: 0 10px 30px -10px rgba(16,185,129,0.5);
}

/* Security Card */
.service-card-3d.security { border-top: 4px solid var(--security); }
.service-card-3d.security::after { background: linear-gradient(90deg, var(--security), #F87171); }
.service-card-3d.security .service-icon-3d { 
  background: linear-gradient(135deg, var(--security), #F87171);
  box-shadow: 0 10px 30px -10px rgba(239,68,68,0.5);
}

/* Network Card */
.service-card-3d.network { border-top: 4px solid var(--network); }
.service-card-3d.network::after { background: linear-gradient(90deg, var(--network), #A78BFA); }
.service-card-3d.network .service-icon-3d { 
  background: linear-gradient(135deg, var(--network), #A78BFA);
  box-shadow: 0 10px 30px -10px rgba(139,92,246,0.5);
}

/* Training Card */
.service-card-3d.training { border-top: 4px solid var(--training); }
.service-card-3d.training::after { background: linear-gradient(90deg, var(--training), #FBBF24); }
.service-card-3d.training .service-icon-3d { 
  background: linear-gradient(135deg, var(--training), #FBBF24);
  box-shadow: 0 10px 30px -10px rgba(245,158,11,0.5);
}

/* Communication Card */
.service-card-3d.communication { border-top: 4px solid #7C3AED; }
.service-card-3d.communication::after { background: linear-gradient(90deg, #7C3AED, #A78BFA); }
.service-card-3d.communication .service-icon-3d { 
  background: linear-gradient(135deg, #7C3AED, #A78BFA);
  box-shadow: 0 10px 30px -10px rgba(124,58,237,0.5);
}

.service-icon-3d {
  width: 70px;
  height: 70px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.75rem;
  color: var(--white);
  transform: translateZ(30px);
  transition: transform 0.3s ease;
}

.service-card-3d:hover .service-icon-3d {
  transform: translateZ(50px) scale(1.1);
}

.service-card-content {
  transform: translateZ(20px);
}

.service-title-3d {
  font-size: 1.35rem;
  margin-bottom: 1rem;
  color: var(--dark);
  font-weight: 700;
}

.service-description-3d {
  font-size: 0.95rem;
  color: var(--gray-600);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.service-link-3d {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--primary);
  position: relative;
  overflow: hidden;
}

.service-link-3d::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: currentColor;
  transition: width 0.3s ease;
}

.service-link-3d:hover::after {
  width: 100%;
}

.service-link-3d:hover {
  gap: 0.75rem;
}

/* Card Glow Effects */
.service-card-3d.energy:hover {
  box-shadow: 
    0 30px 60px -15px rgba(16,185,129,0.25),
    0 0 0 1px rgba(16,185,129,0.1);
}

.service-card-3d.security:hover {
  box-shadow: 
    0 30px 60px -15px rgba(239,68,68,0.25),
    0 0 0 1px rgba(239,68,68,0.1);
}

.service-card-3d.network:hover {
  box-shadow: 
    0 30px 60px -15px rgba(139,92,246,0.25),
    0 0 0 1px rgba(139,92,246,0.1);
}

.service-card-3d.training:hover {
  box-shadow: 
    0 30px 60px -15px rgba(245,158,11,0.25),
    0 0 0 1px rgba(245,158,11,0.1);
}

.service-card-3d.communication:hover {
  box-shadow: 
    0 30px 60px -15px rgba(124,58,237,0.25),
    0 0 0 1px rgba(124,58,237,0.1);
}

/* ========================================
   WHY CHOOSE US SECTION
   ======================================== */
.why-choose-section {
  background: linear-gradient(135deg, var(--dark-900) 0%, #0f172a 50%, var(--dark-800) 100%);
  position: relative;
  overflow: hidden;
}

.why-choose-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(0,102,204,0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,107,53,0.1) 0%, transparent 50%);
  pointer-events: none;
}

.why-choose-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
  z-index: 1;
}

.why-choose-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  padding: 2.5rem;
  text-align: center;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  overflow: hidden;
}

.why-choose-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.why-choose-card:hover::before {
  opacity: 1;
}

.why-choose-card:hover {
  transform: translateY(-10px);
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.15);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.4);
}

.why-choose-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--white);
  margin: 0 auto 1.5rem;
  position: relative;
  z-index: 1;
  box-shadow: 0 20px 40px -15px rgba(0,102,204,0.4);
}

.why-choose-card:nth-child(2) .why-choose-icon {
  background: linear-gradient(135deg, var(--secondary), #FB923C);
  box-shadow: 0 20px 40px -15px rgba(255,107,53,0.4);
}

.why-choose-card:nth-child(3) .why-choose-icon {
  background: linear-gradient(135deg, var(--energy), #34D399);
  box-shadow: 0 20px 40px -15px rgba(16,185,129,0.4);
}

.why-choose-card:nth-child(4) .why-choose-icon {
  background: linear-gradient(135deg, var(--network), #A78BFA);
  box-shadow: 0 20px 40px -15px rgba(139,92,246,0.4);
}

.why-choose-title {
  font-size: 1.25rem;
  color: var(--white);
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 1;
}

.why-choose-text {
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

/* ========================================
   PARTNERS LOGOS SECTION
   ======================================== */
.partners-section {
  background: var(--white);
  padding: 4rem 0;
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}

.partners-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap;
}

.partner-logo-item {
  flex: 1;
  min-width: 120px;
  max-width: 180px;
  height: 80px;
  background: var(--gray-100);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--gray-400);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  filter: grayscale(100%);
  opacity: 0.6;
}

.partner-logo-item:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: translateY(-5px);
  box-shadow: 0 20px 40px -15px rgba(0,0,0,0.15);
}

.partners-title {
  text-align: center;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gray-500);
  margin-bottom: 2.5rem;
}

/* ========================================
   TEAM SECTION
   ======================================== */
.team-section {
  background: var(--gray-100);
  position: relative;
}

.team-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../images/services-poster.png') center/cover;
  opacity: 0.03;
  pointer-events: none;
}

.team-showcase {
  position: relative;
  margin-bottom: 4rem;
}

.team-main-image {
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,0.3);
  position: relative;
}

.team-main-image img {
  width: 100%;
  height: auto;
  display: block;
}

.team-main-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.4) 0%, transparent 40%);
  pointer-events: none;
}

.team-image-caption {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  color: var(--white);
  z-index: 1;
}

.team-image-caption h3 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--white);
}

.team-image-caption p {
  font-size: 1.1rem;
  opacity: 0.9;
}

.team-grid-compact {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.team-card-compact {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.team-card-compact:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.team-card-image {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
}

.team-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.team-card-compact:hover .team-card-image img {
  transform: scale(1.1);
}

.team-card-info {
  padding: 1.25rem;
  text-align: center;
}

.team-card-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.25rem;
}

.team-card-role {
  font-size: 0.875rem;
  color: var(--primary);
  font-weight: 500;
}

/* ========================================
   TESTIMONIALS SECTION
   ======================================== */
.testimonials-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  position: relative;
  overflow: hidden;
}

.testimonials-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 10% 20%, rgba(255,255,255,0.1) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(255,107,53,0.15) 0%, transparent 40%);
  pointer-events: none;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  position: relative;
  z-index: 1;
}

.testimonial-card {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 24px;
  padding: 2.5rem;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
}

.testimonial-card:hover {
  transform: translateY(-10px);
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.25);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.3);
}

.testimonial-quote {
  font-size: 3rem;
  color: rgba(255,255,255,0.3);
  line-height: 1;
  margin-bottom: 1rem;
}

.testimonial-text {
  color: rgba(255,255,255,0.95);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-avatar {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.3);
  overflow: hidden;
}

.testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-info h4 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.testimonial-info p {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
}

.testimonial-rating {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1.5rem;
}

.testimonial-rating i {
  color: #FBBF24;
  font-size: 1rem;
}

/* ========================================
   SCROLL ANIMATIONS
   ======================================== */
[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

[data-animate="fade-up"] {
  opacity: 0;
  transform: translateY(50px);
}

[data-animate="fade-down"] {
  opacity: 0;
  transform: translateY(-50px);
}

[data-animate="fade-left"] {
  opacity: 0;
  transform: translateX(50px);
}

[data-animate="fade-right"] {
  opacity: 0;
  transform: translateX(-50px);
}

[data-animate="scale"] {
  opacity: 0;
  transform: scale(0.8);
}

[data-animate="rotate"] {
  opacity: 0;
  transform: rotateY(90deg);
}

[data-animate].animate-in {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1) rotateY(0);
}

/* Stagger delays */
[data-animate-delay="1"] { transition-delay: 0.1s; }
[data-animate-delay="2"] { transition-delay: 0.2s; }
[data-animate-delay="3"] { transition-delay: 0.3s; }
[data-animate-delay="4"] { transition-delay: 0.4s; }
[data-animate-delay="5"] { transition-delay: 0.5s; }

/* Tech Grid Background */
.tech-grid-bg {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(rgba(0,102,204,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,102,204,0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: -1;
}

/* Glowing Effects */
.glow {
  position: relative;
}

.glow::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background: inherit;
  filter: blur(30px);
  opacity: 0.5;
  z-index: -1;
  border-radius: inherit;
}

/* Floating Animation */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

.float-animation {
  animation: float 6s ease-in-out infinite;
}

/* Pulse Glow Animation */
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(0,102,204,0.3); }
  50% { box-shadow: 0 0 40px rgba(0,102,204,0.6); }
}

.pulse-glow {
  animation: pulse-glow 3s ease-in-out infinite;
}

/* Shimmer Effect */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.shimmer {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

/* Responsive for new sections */
@media (max-width: 1024px) {
  .why-choose-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .team-grid-compact {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .partners-container {
    justify-content: center;
  }
  
  .partner-logo-item {
    min-width: 100px;
    max-width: 140px;
    height: 70px;
  }
}

@media (max-width: 768px) {
  .why-choose-grid,
  .team-grid-compact,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  
  .partner-logo-item {
    min-width: 80px;
    max-width: 100px;
    height: 60px;
    font-size: 1.75rem;
  }
  
  .team-image-caption h3 {
    font-size: 1.5rem;
  }
}
