/* Глобальні налаштування */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-bg: #000814;
  --secondary-bg: #001D3D;
  --card-bg: #003566;
  --text-primary: #FFD60A;
  --text-secondary: #FFC300;
  --text-light: #E0E1DD;
  --text-muted: #778DA9;
  --accent: #FFB700;
  --border: #415A77;
  --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
  --max-width: 1280px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  background: linear-gradient(135deg, var(--primary-bg) 0%, var(--secondary-bg) 100%);
  color: var(--text-light);
  line-height: 1.7;
  min-height: 100vh;
}

/* Навігація */
.nav-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(0, 8, 20, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 214, 10, 0.1);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.main-logo {
  height: 45px;
}

.navigation-links {
  display: flex;
  gap: 2.5rem;
}

.nav-item {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  position: relative;
}

.nav-item::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--text-primary);
  transition: width 0.3s ease;
}

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

.menu-trigger {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.trigger-bar {
  width: 28px;
  height: 3px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Головний контент */
.main-content {
  padding-top: 80px;
}

/* Вступна секція */
.intro-section {
  padding: 5rem 2rem 4rem;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.intro-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 4rem;
  align-items: center;
}

.mega-title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -2px;
}

.highlight-text {
  color: var(--text-primary);
  font-style: normal;
  position: relative;
}

.intro-description {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 90%;
}

.intro-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.action-btn {
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
}

.action-btn--filled {
  background: linear-gradient(135deg, var(--text-primary), var(--accent));
  color: var(--primary-bg);
}

.action-btn--filled:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255, 214, 10, 0.3);
}

.action-btn--outlined {
  background: transparent;
  color: var(--text-light);
  border: 2px solid var(--border);
}

.action-btn--outlined:hover {
  background: rgba(255, 214, 10, 0.1);
  border-color: var(--text-primary);
}

/* Метрики */
.metrics-block {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.metric-item {
  background: rgba(0, 53, 102, 0.3);
  padding: 1.5rem;
  border-radius: 15px;
  border: 1px solid rgba(255, 214, 10, 0.1);
  backdrop-filter: blur(10px);
}

.metric-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-family: 'JetBrains Mono', monospace;
}

.metric-label {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

/* Секції */
.portfolio-section,
.solutions-section,
.tech-section,
.engage-section {
  padding: 5rem 2rem;
}

.section-container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -1px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
}

/* Портфоліо */
.projects-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.project-card {
  background: rgba(0, 53, 102, 0.2);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 214, 10, 0.1);
  transition: all 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--text-primary);
}

.project-visual img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.project-info {
  padding: 1.5rem;
}

.project-name {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.project-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Технології */
.tech-section {
  background: linear-gradient(180deg, transparent, rgba(0, 53, 102, 0.1));
}

.tech-heading {
  text-align: center;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  margin-bottom: 3rem;
}

.tech-logos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
  align-items: center;
  justify-items: center;
}

.tech-logo {
  height: 50px;
  filter: brightness(0) invert(1);
  opacity: 0.7;
  transition: all 0.3s ease;
}

.tech-logo:hover {
  opacity: 1;
  transform: scale(1.1);
}

.showcase-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.showcase-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 15px;
  border: 1px solid rgba(255, 214, 10, 0.1);
}

.certifications {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.cert-badge {
  height: 60px;
  filter: brightness(0) invert(1);
  opacity: 0.8;
}

/* Рішення */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.service-box {
  background: rgba(0, 29, 61, 0.5);
  padding: 2rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 214, 10, 0.1);
  transition: all 0.3s ease;
}

.service-box:hover {
  background: rgba(0, 53, 102, 0.4);
  transform: translateY(-3px);
}

.service-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-family: 'JetBrains Mono', monospace;
}

.service-title {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  color: var(--text-light);
}

.service-features {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.feature {
  padding: 0.5rem 0;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(255, 214, 10, 0.05);
  font-size: 0.95rem;
}

/* CTA секція */
.engage-section {
  background: radial-gradient(circle at center, rgba(255, 214, 10, 0.05), transparent);
  text-align: center;
  padding: 6rem 2rem;
}

.engage-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.engage-subtitle {
  color: var(--text-muted);
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.engage-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Футер */
.footer-section {
  background: var(--primary-bg);
  padding: 4rem 2rem 3rem;
  border-top: 1px solid rgba(255, 214, 10, 0.1);
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 3rem;
  align-items: center;
}

.footer-logo {
  height: 55px;
  margin-bottom: 1rem;
}

.footer-copyright {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--text-primary);
}

.footer-mascot {
  height: 180px;
  opacity: 0.8;
}

/* Адаптивність */
@media (max-width: 1024px) {
  .intro-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .metrics-block {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-links {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .menu-trigger {
    display: flex;
  }
  
  .navigation-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(0, 8, 20, 0.95);
    flex-direction: column;
    padding: 1rem;
    gap: 1rem;
  }
  
  .navigation-links.active {
    display: flex;
  }
  
  .mega-title {
    font-size: 2.5rem;
  }
  
  .service-grid {
    grid-template-columns: 1fr;
  }
}