@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');

/* ============================================================================
   TC TELECOM — PREMIUM DESIGN SYSTEM (theme-premium.css)
   Inspired by Apple, Cisco, Stripe, Linear, Vercel & Ubiquiti
   ============================================================================ */

:root {
  /* Color Palette (Deep Space & High-Tech Cyan/Blue Glows) */
  --bg-deep: #05070c;
  --bg-dark: #090c15;
  --bg-panel: rgba(13, 19, 33, 0.62);
  --bg-panel-solid: #0d1321;
  --bg-panel-hover: rgba(20, 30, 50, 0.78);
  
  --text-primary: #f4f7fb;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-glow: #e0f2fe;

  --accent-blue: #0b5cff;
  --accent-cyan: #00d4ff;
  --accent-mint: #10b981;
  --accent-purple: #7c3aed;
  
  --border-light: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(0, 212, 255, 0.22);
  --border-active: rgba(11, 92, 255, 0.45);
  
  --glow-blue: rgba(11, 92, 255, 0.15);
  --glow-cyan: rgba(0, 212, 255, 0.12);

  /* Easing curves */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-elastic: cubic-bezier(0.25, 1, 0.5, 1);
  
  /* Layout constraints */
  --radius-card: 20px;
  --radius-button: 12px;
  --radius-pill: 999px;
  --max-width: 1280px;

  /* Typography variables */
  --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: 
    radial-gradient(1100px 720px at 80% -5%, rgba(11, 92, 255, 0.18), transparent 60%),
    radial-gradient(900px 600px at 10% 20%, rgba(0, 212, 255, 0.09), transparent 55%),
    radial-gradient(1200px 900px at 50% 110%, rgba(124, 58, 237, 0.06), transparent 60%),
    var(--bg-deep);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Custom premium scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-deep);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-cyan);
}

/* Typography scale and styles */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1.1;
}

.text-gradient {
  background: linear-gradient(135deg, #fff 30%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.text-cyan-gradient {
  background: linear-gradient(135deg, #00d4ff 0%, #0b5cff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-button);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s var(--ease-out-expo);
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-blue) 0%, #1e40af 100%);
  color: #fff;
  box-shadow: 0 10px 30px rgba(11, 92, 255, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(11, 92, 255, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  border-color: rgba(255, 255, 255, 0.15);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-light);
  color: var(--text-primary);
  backdrop-filter: blur(12px);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-hover);
  color: #fff;
  transform: translateY(-2px);
}

/* Cards (Glassmorphism & Interactive Glow) */
.premium-card {
  position: relative;
  background: var(--bg-panel);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  padding: 30px;
  backdrop-filter: blur(20px) saturate(120%);
  -webkit-backdrop-filter: blur(20px) saturate(120%);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: all 0.4s var(--ease-out-expo);
  overflow: hidden;
}

.premium-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(800px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(255, 255, 255, 0.06), transparent 40%);
  opacity: 0;
  transition: opacity 0.5s var(--ease-out-expo);
  z-index: 1;
}

.premium-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: 0 30px 60px rgba(0, 212, 255, 0.08), 0 0 0 1px rgba(0, 212, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

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

/* Form Controls */
.premium-input, .premium-textarea {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 15px;
  transition: all 0.3s var(--ease-out-expo);
  backdrop-filter: blur(6px);
}
.premium-input:focus, .premium-textarea:focus {
  outline: none;
  border-color: var(--accent-cyan);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.15);
}

/* ----------------------------------------------------------------------------
   DYNAMIC NAVIGATION STYLES (Header)
   ---------------------------------------------------------------------------- */

.site-header {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: min(var(--max-width), calc(100% - 40px));
  height: 64px;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-light);
  background: rgba(13, 20, 37, 0.45);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: all 0.4s var(--ease-out-expo);
}

.site-header.scrolled {
  top: 10px;
  width: min(1040px, calc(100% - 24px));
  height: 56px;
  background: rgba(8, 12, 23, 0.76);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.03em;
}

.nav-brand-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-cyan) 100%);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  box-shadow: 0 5px 15px rgba(11, 92, 255, 0.4);
}

.nav-brand-logo {
  display: block;
  width: auto;
  height: 52px;
  max-width: 148px;
  object-fit: contain;
  border-radius: 6px;
  background: transparent;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.38));
}

.footer-brand-logo {
  height: 56px;
  max-width: 158px;
}

img[src$="tc-telecom-logo-transparent.png"] {
  background: transparent;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.38));
}

/* Horizontal Main Nav List */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: block;
  padding: 8px 16px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-pill);
  transition: all 0.3s var(--ease-out-expo);
}

.nav-link:hover, .nav-item:hover .nav-link {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.nav-link.active {
  color: #fff;
  background: rgba(11, 92, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Expandable Mega Dropdown Drawer */
.dropdown-drawer {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(10px) scale(0.96);
  width: 580px;
  background: var(--bg-panel-solid);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(0, 212, 255, 0.05);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.3s var(--ease-out-expo);
  z-index: 1000;
}

.dropdown-drawer::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: var(--bg-panel-solid);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-item:hover .dropdown-drawer {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0) scale(1);
}

/* Mega menu structure */
.mega-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

.mega-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.mega-title {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.mega-item {
  display: flex;
  flex-direction: column;
  padding: 10px;
  border-radius: 12px;
  transition: all 0.2s ease;
  text-decoration: none;
}
.mega-item:hover {
  background: rgba(255, 255, 255, 0.04);
}
.mega-item strong {
  font-size: 13.5px;
  color: #fff;
  font-weight: 600;
}
.mega-item span {
  font-size: 11.5px;
  color: var(--text-secondary);
}

/* Burger Mobile Button */
.burger-btn {
  display: none;
  background: transparent;
  border: 0;
  width: 38px;
  height: 38px;
  cursor: pointer;
  z-index: 2200;
}
.burger-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  margin: 6px auto;
  border-radius: 2px;
  transition: all 0.3s var(--ease-out-expo);
}

.site-header.open .burger-btn span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.site-header.open .burger-btn span:nth-child(2) { opacity: 0; }
.site-header.open .burger-btn span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Mobile Menu Panel */
.mobile-menu-panel {
  position: fixed;
  inset: 0;
  background: rgba(5, 7, 12, 0.96);
  z-index: 1999;
  display: flex;
  flex-direction: column;
  padding: 100px 24px 40px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.4s var(--ease-out-expo);
  backdrop-filter: blur(20px);
}
.mobile-menu-panel.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
  list-style: none;
}
.mobile-menu-links a {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
}
.mobile-menu-links .sub-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-left: 16px;
  margin-top: 8px;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}
.mobile-menu-links .sub-links a {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-secondary);
}

/* ----------------------------------------------------------------------------
   DYNAMIC FOOTER STYLES
   ---------------------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--border-light);
  background: linear-gradient(180deg, transparent, rgba(5, 7, 12, 0.6));
  padding: 80px 0 40px;
  margin-top: 80px;
  font-size: 14px;
  color: var(--text-secondary);
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.45fr 0.9fr 1.1fr;
  gap: 40px;
  margin-bottom: 60px;
}
.footer-brand p {
  margin-top: 14px;
  max-width: 320px;
  color: var(--text-muted);
}
.footer-col h5 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fff;
  margin-bottom: 20px;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
}
.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-links a:hover {
  color: var(--accent-cyan);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 30px;
  color: var(--text-muted);
  font-size: 12.5px;
}

/* Interactive Card Mouse Position script utility selector */
.effects-ready .premium-card {
  --mouse-x: 0px;
  --mouse-y: 0px;
}

/* RESPONSIVE LAYOUT BREAKPOINTS */
@media (max-width: 960px) {
  .site-header {
    height: 56px;
  }
  .nav-menu {
    display: none; /* Switch to Mobile burger */
  }
  .burger-btn {
    display: block;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}
