/* ============================================
   IT ADVERTISING AGENCY - LANDING PAGE STYLES
   Digital/Tech Aesthetic | Black-White-Red
   ============================================ */

/* ---------- CSS VARIABLES ---------- */
:root {
  /* Colors */
  --color-black: #0a0a0a;
  --color-white: #ffffff;
  --color-red: #ff0033;
  --color-red-dark: #cc0029;
  --color-gray-dark: #1a1a1a;
  --color-gray: #2a2a2a;
  --color-gray-light: #888888;
  --color-gray-lighter: #cccccc;
  
  /* Typography */
  --font-display: 'Orbitron', sans-serif;
  --font-body: 'Rajdhani', sans-serif;
  
  /* Spacing */
  --section-padding: 100px 0;
  --container-width: 1200px;
  
  /* Effects */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.4s ease;
  --glow-red: 0 0 20px rgba(255, 0, 51, 0.5);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  color: var(--color-white);
  background-color: var(--color-black);
  overflow-x: hidden;
}

/* Scanline effect overlay */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.1) 0px,
    rgba(0, 0, 0, 0.1) 1px,
    transparent 1px,
    transparent 2px
  );
  pointer-events: none;
  z-index: 9999;
  opacity: 0.3;
}

/* Grid pattern background */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(255, 0, 51, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 0, 51, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: -1;
}

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

a:hover {
  color: var(--color-red);
}

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

ul {
  list-style: none;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 2px;
}

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

.section-title {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background: var(--color-red);
  margin: 20px auto 0;
  box-shadow: var(--glow-red);
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 15px 40px;
  border: 2px solid var(--color-red);
  background: transparent;
  color: var(--color-white);
  cursor: pointer;
  transition: var(--transition-medium);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--color-red);
  transition: var(--transition-medium);
  z-index: -1;
}

.btn:hover {
  color: var(--color-white);
  box-shadow: var(--glow-red);
}

.btn:hover::before {
  left: 0;
}

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

.btn-primary::before {
  background: var(--color-red-dark);
}

/* ---------- HEADER ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition-medium);
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 0, 51, 0.2);
}

.header.scrolled {
  padding: 10px 0;
  background: rgba(10, 10, 10, 0.95);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo */
.logo {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: 3px;
  position: relative;
}

.logo span {
  color: var(--color-red);
  text-shadow: var(--glow-red);
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-menu {
  display: flex;
  gap: 30px;
}

.nav-link {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  padding: 5px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-red);
  transition: var(--transition-fast);
  box-shadow: var(--glow-red);
}

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

/* Language Switcher */
.lang-switcher {
  display: flex;
  gap: 10px;
  padding-left: 20px;
  border-left: 1px solid var(--color-gray);
}

.lang-btn {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
  background: transparent;
  border: 1px solid var(--color-gray);
  color: var(--color-gray-light);
  cursor: pointer;
  transition: var(--transition-fast);
}

.lang-btn:hover,
.lang-btn.active {
  border-color: var(--color-red);
  color: var(--color-white);
  background: rgba(255, 0, 51, 0.1);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 10px;
}

.menu-toggle span {
  width: 25px;
  height: 2px;
  background: var(--color-white);
  transition: var(--transition-fast);
}

/* ---------- HERO SECTION ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 120px 20px 80px;
  overflow: hidden;
}

/* Animated background */
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-bg::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(255, 0, 51, 0.15) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
  50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.8; }
}

/* Floating elements */
.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--color-red);
  box-shadow: var(--glow-red);
  animation: float 15s infinite linear;
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { left: 20%; animation-delay: 2s; }
.particle:nth-child(3) { left: 30%; animation-delay: 4s; }
.particle:nth-child(4) { left: 40%; animation-delay: 6s; }
.particle:nth-child(5) { left: 50%; animation-delay: 8s; }
.particle:nth-child(6) { left: 60%; animation-delay: 10s; }
.particle:nth-child(7) { left: 70%; animation-delay: 12s; }
.particle:nth-child(8) { left: 80%; animation-delay: 14s; }
.particle:nth-child(9) { left: 90%; animation-delay: 1s; }
.particle:nth-child(10) { left: 95%; animation-delay: 3s; }

@keyframes float {
  0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-100vh) rotate(720deg); opacity: 0; }
}

.hero-content {
  text-align: center;
  max-width: 900px;
}

.hero-subtitle {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 4px;
  color: var(--color-red);
  margin-bottom: 20px;
  text-transform: uppercase;
}

.hero-title {
  margin-bottom: 30px;
}

.hero-title .highlight {
  color: var(--color-red);
  text-shadow: var(--glow-red);
  position: relative;
}

.hero-description {
  font-size: 1.2rem;
  color: var(--color-gray-lighter);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Glitch effect */
.glitch {
  position: relative;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.glitch::before {
  animation: glitch-1 2s infinite linear alternate-reverse;
  color: var(--color-red);
  z-index: -1;
}

.glitch::after {
  animation: glitch-2 3s infinite linear alternate-reverse;
  color: rgba(255, 255, 255, 0.5);
  z-index: -2;
}

@keyframes glitch-1 {
  0%, 100% { clip-path: inset(0 0 95% 0); transform: translate(-2px, 2px); }
  20% { clip-path: inset(30% 0 50% 0); transform: translate(2px, -2px); }
  40% { clip-path: inset(60% 0 20% 0); transform: translate(-2px, 2px); }
  60% { clip-path: inset(80% 0 5% 0); transform: translate(2px, -2px); }
  80% { clip-path: inset(10% 0 70% 0); transform: translate(-2px, 2px); }
}

@keyframes glitch-2 {
  0%, 100% { clip-path: inset(95% 0 0 0); transform: translate(2px, -2px); }
  20% { clip-path: inset(50% 0 30% 0); transform: translate(-2px, 2px); }
  40% { clip-path: inset(20% 0 60% 0); transform: translate(2px, -2px); }
  60% { clip-path: inset(5% 0 80% 0); transform: translate(-2px, 2px); }
  80% { clip-path: inset(70% 0 10% 0); transform: translate(2px, -2px); }
}

/* ---------- ABOUT SECTION ---------- */
.about {
  padding: var(--section-padding);
  background: var(--color-gray-dark);
  position: relative;
}

.about::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-red), transparent);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text p {
  margin-bottom: 20px;
  color: var(--color-gray-lighter);
}

.about-text p:first-of-type {
  font-size: 1.3rem;
  color: var(--color-white);
}

.about-image {
  position: relative;
}

.about-image-placeholder {
  aspect-ratio: 4/3;
  background: var(--color-gray);
  border: 1px solid var(--color-red);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.about-image-placeholder::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(45deg, transparent 45%, rgba(255, 0, 51, 0.1) 50%, transparent 55%),
    linear-gradient(-45deg, transparent 45%, rgba(255, 0, 51, 0.1) 50%, transparent 55%);
  background-size: 30px 30px;
}

.about-image-placeholder span {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--color-gray-light);
  letter-spacing: 2px;
  text-transform: uppercase;
  z-index: 1;
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.stat-item {
  text-align: center;
  padding: 20px;
  border: 1px solid var(--color-gray);
  transition: var(--transition-medium);
}

.stat-item:hover {
  border-color: var(--color-red);
  box-shadow: var(--glow-red);
}

.stat-number {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--color-red);
  text-shadow: var(--glow-red);
}

.stat-label {
  font-size: 14px;
  color: var(--color-gray-light);
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

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

.service-card {
  background: var(--color-gray-dark);
  border: 1px solid var(--color-gray);
  padding: 40px 30px;
  transition: var(--transition-medium);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--color-red);
  transform: scaleX(0);
  transition: var(--transition-medium);
}

.service-card:hover {
  transform: translateY(-10px);
  border-color: var(--color-red);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  color: var(--color-red);
  border: 2px solid var(--color-red);
  position: relative;
}

.service-icon::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border: 2px solid var(--color-red);
  transform: translate(5px, 5px);
  opacity: 0.3;
}

.service-card h3 {
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.service-card p {
  color: var(--color-gray-light);
  font-size: 16px;
}

/* ---------- ADVANTAGES SECTION ---------- */
.advantages {
  padding: var(--section-padding);
  background: var(--color-gray-dark);
  position: relative;
}

.advantages::before,
.advantages::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-red), transparent);
}

.advantages::before { top: 0; }
.advantages::after { bottom: 0; }

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
}

.advantage-item {
  display: flex;
  gap: 20px;
  padding: 30px;
  background: rgba(255, 255, 255, 0.02);
  border-left: 3px solid var(--color-red);
  transition: var(--transition-medium);
}

.advantage-item:hover {
  background: rgba(255, 0, 51, 0.05);
  transform: translateX(10px);
}

.advantage-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--color-red);
  text-shadow: var(--glow-red);
  line-height: 1;
  opacity: 0.5;
}

.advantage-content h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.advantage-content p {
  color: var(--color-gray-light);
  font-size: 16px;
}

/* ---------- CONTACT SECTION ---------- */
.contact {
  padding: var(--section-padding);
  position: relative;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-info h3 {
  margin-bottom: 20px;
}

.contact-info p {
  color: var(--color-gray-lighter);
  margin-bottom: 30px;
}

.contact-details {
  margin-top: 40px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.contact-item-icon {
  width: 40px;
  height: 40px;
  border: 1px solid var(--color-red);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-red);
}

.contact-item span {
  color: var(--color-gray-lighter);
}

/* Form */
.contact-form {
  background: var(--color-gray-dark);
  padding: 40px;
  border: 1px solid var(--color-gray);
  position: relative;
}

.contact-form::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--color-red);
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  font-family: var(--font-display);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
  color: var(--color-gray-lighter);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px;
  background: var(--color-black);
  border: 1px solid var(--color-gray);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 16px;
  transition: var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-red);
  box-shadow: 0 0 10px rgba(255, 0, 51, 0.2);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-gray-light);
}

/* Checkbox */
.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.form-checkbox input {
  width: auto;
  margin-top: 3px;
  accent-color: var(--color-red);
}

.form-checkbox span {
  font-size: 14px;
  color: var(--color-gray-light);
}

.form-checkbox a {
  color: var(--color-red);
}

.form-submit {
  margin-top: 30px;
}

.form-submit .btn {
  width: 100%;
}

/* Form messages */
.form-message {
  padding: 15px;
  margin-top: 20px;
  font-family: var(--font-display);
  font-size: 14px;
  text-align: center;
  display: none;
}

.form-message.success {
  display: block;
  background: rgba(0, 255, 100, 0.1);
  border: 1px solid #00ff64;
  color: #00ff64;
}

.form-message.error {
  display: block;
  background: rgba(255, 0, 51, 0.1);
  border: 1px solid var(--color-red);
  color: var(--color-red);
}

/* ---------- FOOTER ---------- */
.footer {
  padding: 40px 0;
  background: var(--color-gray-dark);
  border-top: 1px solid var(--color-gray);
}

.footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-copy {
  font-size: 14px;
  color: var(--color-gray-light);
}

.footer-links {
  display: flex;
  gap: 30px;
}

.footer-links a {
  font-size: 14px;
  color: var(--color-gray-light);
}

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

/* ---------- ANIMATIONS ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 992px) {
  .about-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .contact-wrapper {
    grid-template-columns: 1fr;
  }
  
  .advantages-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 60px 0;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--color-gray-dark);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    transition: var(--transition-medium);
    border-left: 1px solid var(--color-red);
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
  
  .lang-switcher {
    border-left: none;
    padding-left: 0;
  }
  
  .stats {
    grid-template-columns: 1fr;
  }
  
  .hero {
    padding-top: 100px;
  }
  
  .contact-form {
    padding: 30px 20px;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 16px;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .advantage-item {
    flex-direction: column;
    gap: 15px;
  }
}
