/* ==========================================================================
   Edge C.C (Edge Computing Center LLC) - Primary Design System & CSS
   Replicating Around25 Design Aesthetics, Layout, and Responsiveness
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@500;600;700;800&family=Quicksand:wght@600;700&display=swap');

:root {
  --font-primary: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Outfit', 'Inter', system-ui, sans-serif;
  --font-rounded: 'Quicksand', 'Comfortaa', 'Varela Round', sans-serif;

  /* Color Palette */
  --primary-50: #EEF2FF;
  --primary-100: #E0E7FF;
  --primary-200: #C7D2FE;
  --primary-500: #6366F1;
  --primary-600: #4F46E5;
  --primary-700: #4338CA;
  --primary-900: #312E81;

  --slate-50: #F8FAFC;
  --slate-100: #F1F5F9;
  --slate-200: #E2E8F0;
  --slate-300: #CBD5E1;
  --slate-400: #94A3B8;
  --slate-500: #64748B;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1E293B;
  --slate-900: #0F172A;

  --success-50: #ECFDF5;
  --success-600: #059669;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

  --max-width: 1240px;
  --header-height: 80px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  color: var(--slate-800);
  background-color: #FFFFFF;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

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

ul {
  list-style: none;
}

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

.text-center { text-align: center; }
.text-primary { color: var(--primary-600); }
.bg-slate-50 { background-color: var(--slate-50); }

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--slate-900);
  line-height: 1.25;
  font-weight: 700;
}

h1 { font-size: clamp(2.5rem, 5vw, 3.75rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.875rem, 4vw, 2.75rem); letter-spacing: -0.015em; }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.125rem; }

p {
  color: var(--slate-600);
  font-size: 1.0625rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--primary-600);
  color: #FFFFFF;
  box-shadow: 0 2px 4px rgba(79, 70, 229, 0.3);
}

.btn-primary:hover {
  background-color: var(--primary-700);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
}

.btn-secondary {
  background-color: #FFFFFF;
  color: var(--slate-700);
  border-color: var(--slate-300);
}

.btn-secondary:hover {
  background-color: var(--slate-100);
  color: var(--slate-900);
}

.btn-large {
  padding: 16px 32px;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
}

.badge-primary {
  background-color: var(--primary-50);
  color: var(--primary-700);
  border: 1px solid var(--primary-200);
}

.badge-success {
  background-color: var(--success-50);
  color: var(--success-600);
}

/* ==========================================================================
   Header & Navigation Bar
   ========================================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--slate-200);
  height: var(--header-height);
  display: flex;
  align-items: center;
}

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

.logo-link {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-img {
  height: 42px;
  width: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-item {
  position: relative;
}

.nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--slate-700);
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-600);
}

/* Dropdown Menu */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: -20px;
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--slate-200);
  padding: 20px;
  min-width: 520px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s ease;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.nav-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-section-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--slate-400);
  font-weight: 700;
  margin-bottom: 12px;
}

.dropdown-item {
  display: flex;
  gap: 12px;
  padding: 10px;
  border-radius: var(--radius-md);
  transition: background-color 0.2s ease;
}

.dropdown-item:hover {
  background-color: var(--slate-50);
}

.dropdown-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background-color: var(--primary-50);
  color: var(--primary-600);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dropdown-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--slate-900);
}

.dropdown-desc {
  font-size: 0.8rem;
  color: var(--slate-500);
  line-height: 1.3;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--slate-800);
  margin: 5px 0;
  transition: 0.3s;
}

/* Mobile Nav Drawer */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #FFFFFF;
  padding: 24px;
  overflow-y: auto;
  z-index: 999;
}

.mobile-menu.active {
  display: block;
}

.mobile-nav-link {
  display: block;
  font-size: 1.25rem;
  font-weight: 600;
  padding: 16px 0;
  border-bottom: 1px solid var(--slate-100);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  padding: 80px 0 60px;
  position: relative;
  background: radial-gradient(circle at top center, var(--primary-50) 0%, #FFFFFF 70%);
}

.hero-badge-container {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.hero-badge-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px;
  background: #FFFFFF;
  border: 1px solid var(--primary-200);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
  font-size: 0.875rem;
}

.hero-content {
  max-width: 840px;
  margin: 0 auto;
  text-align: center;
}

.hero-title {
  margin-bottom: 16px;
  color: var(--slate-900);
}

.hero-subtitle {
  font-size: 1.35rem;
  color: var(--slate-600);
  font-weight: 400;
  margin-bottom: 32px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 48px;
}

/* Lightbox Thumbnail */
.hero-video-wrapper {
  max-width: 960px;
  margin: 0 auto;
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--slate-200);
  cursor: pointer;
}

.hero-video-img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.hero-video-wrapper:hover .hero-video-img {
  transform: scale(1.02);
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: all 0.3s ease;
}

.hero-video-wrapper:hover .play-button {
  transform: translate(-50%, -50%) scale(1.1);
  background: #FFFFFF;
}

/* Modal Lightbox */
.video-modal {
  display: none;
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.video-modal.active {
  display: flex;
}

.video-modal-content {
  position: relative;
  width: 90%;
  max-width: 900px;
  aspect-ratio: 16/9;
}

.video-modal-content iframe {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg);
  border: none;
}

.modal-close {
  position: absolute;
  top: -40px; right: 0;
  color: #FFFFFF;
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
}

/* ==========================================================================
   Logo Marquee Section
   ========================================================================== */
.logos-section {
  padding: 48px 0;
  border-bottom: 1px solid var(--slate-100);
  background-color: #FFFFFF;
  overflow: hidden;
}

.logos-heading {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 36px;
  font-size: 1.125rem;
  color: var(--slate-600);
  font-weight: 500;
}

.marquee-container {
  display: flex;
  overflow: hidden;
  user-select: none;
  mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 60px;
  animation: marquee 35s linear infinite;
  white-space: nowrap;
  flex-shrink: 0;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

.client-logo {
  height: 38px;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: all 0.3s ease;
}

.client-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* ==========================================================================
   Services Grid Section
   ========================================================================== */
.services-section {
  padding: 96px 0;
  background-color: var(--slate-50);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}

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

.service-card {
  background: #FFFFFF;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-200);
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--primary-50);
  color: var(--primary-600);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.service-title {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.service-desc {
  font-size: 0.975rem;
  color: var(--slate-600);
  margin-bottom: 24px;
  flex-grow: 1;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--primary-600);
}

.link-arrow:hover {
  gap: 10px;
}

/* ==========================================================================
   Testimonial & Reviews Section
   ========================================================================== */
.testimonial-section {
  padding: 96px 0;
  background: #FFFFFF;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  margin-top: 48px;
}

.testimonial-card {
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 32px;
  background: var(--slate-50);
}

.star-rating {
  color: #F59E0B;
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
}

.testimonial-quote {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--slate-800);
  margin-bottom: 24px;
}

.client-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.client-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.client-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--slate-900);
}

.client-title {
  font-size: 0.825rem;
  color: var(--slate-500);
}

/* ==========================================================================
   CTA Banner Section
   ========================================================================== */
.cta-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--slate-900) 0%, var(--primary-900) 100%);
  color: #FFFFFF;
}

.cta-box {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.cta-title {
  color: #FFFFFF;
  margin-bottom: 16px;
}

.cta-desc {
  color: var(--slate-300);
  font-size: 1.15rem;
  margin-bottom: 32px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background-color: var(--slate-900);
  color: var(--slate-400);
  padding: 80px 0 40px;
  border-top: 1px solid var(--slate-800);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: 48px;
  margin-bottom: 64px;
}

.footer-brand p {
  color: var(--slate-400);
  margin: 16px 0 24px;
  font-size: 0.925rem;
}

.footer-title {
  color: #FFFFFF;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}

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

.footer-links a {
  color: var(--slate-400);
  font-size: 0.925rem;
}

.footer-links a:hover {
  color: #FFFFFF;
}

.footer-bottom {
  border-top: 1px solid var(--slate-800);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
}

/* Responsive Media Queries & Utility Classes */
.grid-2-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

@media (max-width: 992px) {
  .nav-menu { display: none; }
  .nav-cta-desktop { display: none !important; }
  .mobile-toggle { display: block; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  
  /* Force 1-column layouts on tablet and mobile */
  .grid-2-col {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }

  .services-grid {
    grid-template-columns: 1fr !important;
  }

  .testimonial-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 16px;
  }

  h1 { font-size: 2.1rem !important; }
  h2 { font-size: 1.65rem !important; }
  .hero { padding: 50px 0 40px; }
  .hero-subtitle { font-size: 1.1rem; }
  .hero-buttons { flex-direction: column; width: 100%; }
  .btn-large { width: 100%; text-align: center; }
  
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
}

/* Custom Pop-up Form Success Modal */
.form-success-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.form-success-modal.active {
  opacity: 1;
  visibility: visible;
}

.form-success-card {
  background: #FFFFFF;
  border-radius: var(--radius-xl);
  padding: 40px 32px;
  max-width: 480px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--slate-200);
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.form-success-modal.active .form-success-card {
  transform: scale(1);
}

.success-icon-circle {
  width: 64px;
  height: 64px;
  background-color: var(--success-50);
  color: var(--success-600);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
