/* 
  RouteTel Design System 
  Professional Telecom Aesthetics
*/

:root {
  /* Colors */
  --primary-dark: #0a192f;
  --secondary-dark: #112240;
  --accent-blue: #00d2ff;
  --accent-blue-hover: #00b4db;
  --text-main: #e6f1ff;
  --text-muted: #8892b0;
  --bg-light: #f8fafc;
  --white: #ffffff;
  --success: #10b981;
  --card-bg: rgba(17, 34, 64, 0.8);
  --border-color: rgba(255, 255, 255, 0.1);

  /* Fonts */
  --font-main: 'Inter', sans-serif;
  
  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}

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

html {
  scroll-behavior: smooth;
}

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

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

ul {
  list-style: none;
}

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

/* Typography */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1rem;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); color: var(--accent-blue); }
h3 { font-size: 1.5rem; }

p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 100px 0;
}

.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

/* Header & Nav */
header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.5rem 0;
  background: transparent;
  z-index: 1000;
  transition: var(--transition);
}

header.sticky {
  padding: 1rem 0;
  background: rgba(10, 25, 47, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px -10px rgba(2, 12, 27, 0.7);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent-blue);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a:hover {
  color: var(--accent-blue);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 2rem;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  line-height: 1;
}

.btn-primary {
  background: var(--accent-blue);
  color: var(--primary-dark);
}

.btn-primary:hover {
  background: var(--accent-blue-hover);
  transform: translateY(-3px);
}

.btn-outline {
  border: 2px solid var(--accent-blue);
  color: var(--accent-blue);
  background: transparent;
}

.btn-outline:hover {
  background: rgba(0, 210, 255, 0.1);
}

/* Ensure links in nav are also vertically centered if they have different heights */
.nav-links a {
  display: flex;
  align-items: center;
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(rgba(10, 25, 47, 0.8), rgba(10, 25, 47, 0.8)), url('../img/hero-bg.png');
  background-size: cover;
  background-position: center;
}

.hero-content {
  max-width: 800px;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

/* Cards */
.card {
  background: var(--secondary-dark);
  padding: 2.5rem;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-10px);
  border-color: var(--accent-blue);
}

.card i {
  font-size: 2.5rem;
  color: var(--accent-blue);
  margin-bottom: 1.5rem;
  display: block;
}

/* Features Section */
.features {
  background-color: var(--secondary-dark);
}

.feature-item {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.feature-icon {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  background: rgba(0, 210, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-blue);
  font-size: 1.5rem;
}

/* Footer */
footer {
  background: #020c1b;
  padding: 80px 0 30px;
  border-top: 1px solid var(--border-color);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 50px;
}

.footer-col h4 {
  color: var(--white);
  margin-bottom: 1.5rem;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: var(--text-muted);
}

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

.copyright {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Animations */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: 0.8s all ease;
}

[data-reveal].active {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile Menu */
.menu-toggle {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background: var(--secondary-dark);
    flex-direction: column;
    padding: 100px 40px;
    transition: 0.4s;
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
  }

  .nav-links.active {
    right: 0;
  }

  .menu-toggle {
    display: block;
    z-index: 1001;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}
