/* ========================================
   WOPRO - Static Website Stylesheet
   Design: Precision Edge Architecture
   Colors: Charcoal Grey, Electric Blue, White
   ======================================== */

/* ========== CSS VARIABLES ========== */
:root {
  /* Colors */
  --color-background: #0d0d12;
  --color-card: #16161d;
  --color-border: rgba(255, 255, 255, 0.1);
  --color-primary: #0088ff;
  --color-primary-hover: #0077e6;
  --color-text: #e8e8ed;
  --color-text-muted: #8a8a9a;
  --color-white: #ffffff;
  
  /* Typography */
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  
  /* Spacing */
  --container-max: 1280px;
  --section-padding: 6rem;
  
  /* Effects */
  --transition: 0.3s ease;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* ========== RESET & BASE ========== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-background);
  -webkit-font-smoothing: antialiased;
}

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

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* ========== UTILITIES ========== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }
}

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

.icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0.375rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.btn-primary:hover {
  background-color: var(--color-primary-hover);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

/* ========== HEADER ========== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: rgba(13, 13, 18, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.5rem;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-white);
}

.nav-desktop {
  display: none;
  gap: 2rem;
}

@media (min-width: 768px) {
  .nav-desktop {
    display: flex;
  }
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color var(--transition);
}

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

.header-cta {
  display: none;
}

@media (min-width: 768px) {
  .header-cta {
    display: inline-flex;
  }
}

/* Mobile Menu */
.mobile-menu-btn {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
}

@media (min-width: 768px) {
  .mobile-menu-btn {
    display: none;
  }
}

.hamburger-line {
  width: 24px;
  height: 2px;
  background-color: var(--color-text);
  transition: all var(--transition);
}

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem 1rem;
  background-color: var(--color-card);
  border-top: 1px solid var(--color-border);
}

.nav-mobile.active {
  display: flex;
}

/* ========== HERO SECTION ========== */
.hero {
  position: relative;
  padding: 8rem 0 4rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(0, 136, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 136, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.5;
}

.hero-inner {
  position: relative;
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background-color: rgba(0, 136, 255, 0.1);
  border: 1px solid rgba(0, 136, 255, 0.3);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background-color: var(--color-primary);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-description {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
  max-width: 500px;
}

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

.hero-images {
  position: relative;
  display: none;
}

@media (min-width: 1024px) {
  .hero-images {
    display: block;
  }
}

.hero-image-main {
  position: relative;
  border: 1px solid var(--color-border);
  overflow: hidden;
}

.hero-image-main img {
  width: 100%;
  height: auto;
}

.hero-image-secondary {
  position: absolute;
  bottom: -2rem;
  left: -3rem;
  width: 200px;
  border: 1px solid var(--color-border);
  background-color: var(--color-card);
  overflow: hidden;
}

.hero-image-secondary img {
  width: 100%;
  height: auto;
}

.image-label {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.25rem 0.75rem;
  background-color: rgba(13, 13, 18, 0.8);
  border: 1px solid var(--color-border);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  z-index: 10;
}

/* ========== TECHNOLOGIES SECTION ========== */
.technologies {
  padding: 4rem 0;
  text-align: center;
}

.section-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--color-primary);
  margin-bottom: 2rem;
}

.tech-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

@media (min-width: 768px) {
  .tech-logos {
    gap: 4rem;
  }
}

.tech-logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 140px;
  height: 60px;
  padding: 0.75rem;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
}

.tech-logo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.8;
  transition: opacity var(--transition);
}

.tech-logo-item:hover .tech-logo {
  opacity: 1;
}

/* ========== SERVICES SECTION ========== */
.services {
  padding: var(--section-padding) 0;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-description {
  font-size: 1.125rem;
  color: var(--color-text-muted);
}

.services-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.service-card {
  display: flex;
  flex-direction: column;
  padding: 2rem;
  background-color: var(--color-card);
  border: 1px solid var(--color-border);
  transition: all var(--transition);
}

.service-card:hover {
  border-color: rgba(0, 136, 255, 0.3);
  transform: translateY(-4px);
}

.service-icon {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 136, 255, 0.1);
  border: 1px solid rgba(0, 136, 255, 0.3);
  margin-bottom: 1.5rem;
}

.service-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--color-primary);
}

.service-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.service-description {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  flex-grow: 1;
  margin-bottom: 1.5rem;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-primary);
}

.service-link .icon {
  width: 1rem;
  height: 1rem;
  transition: transform var(--transition);
}

.service-card:hover .service-link .icon {
  transform: translateX(4px);
}

/* ========== 3D SERVICES SECTION ========== */
.section-3d {
  padding: var(--section-padding) 0;
  background-color: var(--color-card);
}

.section-3d-inner {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .section-3d-inner {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.section-3d-content .section-label {
  text-align: left;
  margin-bottom: 1rem;
}

.section-3d-content .section-title {
  text-align: left;
}

.section-3d-content .section-description {
  text-align: left;
  margin-bottom: 2rem;
}

.feature-list {
  margin-bottom: 2rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-border);
}

.feature-check {
  color: var(--color-primary);
  font-weight: 600;
}

.section-3d-image {
  border: 1px solid var(--color-border);
  overflow: hidden;
}

.section-3d-image img {
  width: 100%;
  height: auto;
}

/* ========== GRAPHICS SECTION ========== */
.section-graphics {
  padding: var(--section-padding) 0;
}

.section-graphics-inner {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .section-graphics-inner {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.section-graphics-image {
  border: 1px solid var(--color-border);
  overflow: hidden;
  order: 2;
}

@media (min-width: 1024px) {
  .section-graphics-image {
    order: 1;
  }
}

.section-graphics-image img {
  width: 100%;
  height: auto;
}

.section-graphics-content {
  order: 1;
}

@media (min-width: 1024px) {
  .section-graphics-content {
    order: 2;
  }
}

.section-graphics-content .section-label {
  text-align: left;
  margin-bottom: 1rem;
}

.section-graphics-content .section-title {
  text-align: left;
}

.section-graphics-content .section-description {
  text-align: left;
  margin-bottom: 2rem;
}

/* ========== FOOTER ========== */
.footer {
  padding: 2rem 0;
  background-color: var(--color-card);
  border-top: 1px solid var(--color-border);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

@media (min-width: 640px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.footer-email {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  transition: color var(--transition);
}

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

.footer-email .icon {
  width: 1rem;
  height: 1rem;
}

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

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content,
.hero-images,
.service-card,
.section-3d-content,
.section-3d-image,
.section-graphics-content,
.section-graphics-image {
  animation: fadeInUp 0.6s ease forwards;
}

/* Staggered animations */
.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }
