:root {
  --main-gradient: linear-gradient(135deg, #0F1419 0%, #1a2332 100%);
  --accent: #4F46E5;
  --accent-secondary: #7C3AED;
  --dark: #0F1419;
  --light: #FAFBFC;
  --gray: #6B7280;
  --header-height: 620px;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Manrope', 'Inter', Arial, sans-serif;
  background: var(--light);
  color: #222;
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

/* Header Styles */
header {
  position: relative;
  min-height: var(--header-height);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 60px 8vw 80px 8vw;
  background: var(--main-gradient);
  color: #fff;
  overflow: hidden;
  z-index: 1;
  text-align: center;
}

/* Navigation Menu */
.nav-menu {
  position: absolute;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 20px;
  background: rgba(15, 20, 25, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 12px 24px;
  border-radius: 50px;
  z-index: 10;
}

.nav-menu a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 20px;
  transition: background 0.2s;
}

.nav-menu a:hover {
  background: rgba(255,255,255,0.15);
}

.menu-divider {
  width: 1px;
  height: 20px;
  background: rgba(255,255,255,0.2);
  margin: 0 8px;
}

.nav-menu .lang-link {
  padding: 6px 12px;
  font-weight: 700;
  opacity: 0.7;
  transition: opacity 0.2s, background 0.2s;
  cursor: pointer;
}

.nav-menu .lang-link:hover,
.nav-menu .lang-link.active {
  opacity: 1;
  background: rgba(255,255,255,0.15);
}

/* Header Background Effects */
header::before {
  content: '';
  position: absolute;
  right: -200px;
  top: -200px;
  width: 600px;
  height: 600px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-secondary) 100%);
  opacity: 0.1;
  border-radius: 50%;
  filter: blur(100px);
  z-index: 0;
  pointer-events: none;
}

header::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0) 50%);
  z-index: 1;
  pointer-events: none;
}

/* Header Content */
.header-content {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 540px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 18px;
}

.logo-icon {
  height: 60px;
  width: auto;
  object-fit: contain;
}

.logo {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 4.5rem;
  font-weight: 800;
  letter-spacing: -2px;
  margin: 0;
  line-height: 1;
  text-shadow: 0 8px 32px #1d267180;
  color: #fff;
}

.header-sub {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 32px;
  line-height: 1.4;
  max-width: 600px;
  color: #fff;
  opacity: 0.95;
}

.header-accent {
  color: var(--accent);
  font-weight: 800;
  font-size: 2.2rem;
  letter-spacing: 1px;
  display: inline-block;
  margin-bottom: 18px;
  text-shadow: none;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Social Links */
.social-links {
  margin-bottom: 32px;
}

.social-links a {
  color: #fff;
  background: rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 10px 22px;
  margin-right: 12px;
  font-weight: 600;
  text-decoration: none;
  font-size: 1.1em;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: none;
  border: 1px solid rgba(255,255,255,0.2);
}

.social-links a.telegram {
  background: #229ED9;
  box-shadow: 0 2px 12px #229ed920;
}

.social-links a:hover {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 12px rgba(79, 70, 229, 0.2);
  transform: translateY(-2px);
}

.social-links a.telegram:hover {
  background: #1769aa;
  box-shadow: 0 4px 24px #229ed960;
}

/* Header Button */
.header-btn {
  display: inline-block;
  padding: 18px 44px;
  font-size: 1.3rem;
  font-weight: 800;
  border-radius: 12px;
  background: #C33764;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 6px 32px #c3376460;
  border: none;
  margin-top: 18px;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
  letter-spacing: 1px;
}

.header-btn:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 12px 48px #c3376480;
  background: #d13d6f;
}

/* Main Content */
main {
  position: relative;
  z-index: 2;
}

section {
  padding: 60px 8vw 50px 8vw;
  text-align: center;
  background: none;
}

/* About Section Styling */
.about {
  background: linear-gradient(135deg, #f8f9ff 0%, #f1f4fd 100%);
  position: relative;
  overflow: hidden;
}

.about::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-secondary) 100%);
  opacity: 0.03;
  border-radius: 50%;
  filter: blur(80px);
}

.about::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -20%;
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, var(--accent-secondary) 0%, var(--accent) 100%);
  opacity: 0.04;
  border-radius: 50%;
  filter: blur(60px);
}

section:first-of-type {
  padding-top: 40px;
}

h2 {
  font-family: 'Manrope', 'Inter', Arial, sans-serif;
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 24px;
  color: var(--dark);
  letter-spacing: -1px;
}

.about-text {
  font-size: 1.35rem;
  max-width: 700px;
  margin: 0 auto 32px auto;
  color: #444;
  font-weight: 500;
  line-height: 1.7;
  position: relative;
  z-index: 2;
}

.about-accent {
  color: var(--gray);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  display: block;
  margin-bottom: 12px;
  position: relative;
  z-index: 2;
}

.about h2 {
  position: relative;
  z-index: 2;
}

/* Projects Grid */
.projects-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  margin-top: 40px;
}

.project-card {
  background: #fff;
  box-shadow: 0 8px 32px #1d267120;
  border-radius: 20px;
  padding: 32px 28px 28px 28px;
  width: 350px;
  max-width: 95vw;
  transition: transform 0.12s cubic-bezier(0.4,0.2,0.2,1);
  position: relative;
  overflow: hidden;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.project-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 16px 48px #c3376430;
}

.project-card img.project-image {
  width: 120px;
  height: 120px;
  border-radius: 20px;
  margin: 0 auto 20px auto;
  box-shadow: 0 4px 24px #1d267120;
  background: #f8f9fa;
  object-fit: cover;
  display: block;
}

.project-title {
  font-family: 'Manrope', 'Inter', Arial, sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 10px;
}

.project-desc {
  font-size: 1.1rem;
  color: #444;
  margin-bottom: 18px;
  font-weight: 500;
}

.project-links {
  display: flex;
  gap: 12px;
  margin-top: auto;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
}

.store-badge {
  display: inline-block;
  transition: transform 0.15s, box-shadow 0.2s;
  border-radius: 8px;
  box-shadow: 0 2px 12px #c3376420;
  background: #fff;
}

.store-badge img {
  height: 48px;
  width: auto;
  object-fit: contain;
  border-radius: 8px;
  display: block;
}

.store-badge:hover {
  transform: scale(1.07) translateY(-2px);
  box-shadow: 0 6px 24px #c3376460;
}

/* Services Grid */
.services-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  margin-top: 40px;
}

.service-card {
  background: #fff;
  box-shadow: 0 8px 32px #1d267120;
  border-radius: 20px;
  padding: 40px 32px;
  width: 300px;
  max-width: 95vw;
  transition: transform 0.12s cubic-bezier(0.4,0.2,0.2,1);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.service-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 16px 48px #c3376430;
}

.service-icon {
  font-size: 3rem;
  margin-bottom: 24px;
  line-height: 1;
}

.service-title {
  font-family: 'Manrope', 'Inter', Arial, sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 16px;
}

.service-desc {
  font-size: 1rem;
  color: #666;
  line-height: 1.6;
  font-weight: 500;
}

/* Contact Section */
.contact-section {
  background: var(--main-gradient);
  color: #fff;
  border-radius: 0;
  margin: 60px 0 0 0;
  padding: 60px 8vw 60px 8vw;
  box-shadow: 0 8px 32px #1d267120;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.contact-section h2 {
  color: #fff;
}

.contact-section p {
  font-size: 1.3rem;
  margin-bottom: 32px;
  color: #fff;
  font-weight: 500;
}

.contact-btn {
  display: inline-block;
  padding: 18px 44px;
  font-size: 1.2rem;
  font-weight: 800;
  border-radius: 12px;
  background: #fff;
  color: var(--accent);
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(79, 70, 229, 0.3);
  border: none;
  margin-top: 18px;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s, color 0.2s;
  letter-spacing: 1px;
}

.contact-btn:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 12px 48px #c3376480;
}

/* Media Queries */
@media (max-width: 900px) {
  .nav-menu {
    left: 50%;
    transform: translateX(-50%);
  }
  header, section, .contact-section {
    padding-left: 4vw;
    padding-right: 4vw;
  }
  .logo {
    font-size: 2.8rem;
  }
  .header-sub {
    font-size: 1.2rem;
  }
}

@media (max-width: 600px) {
  header {
    min-height: 580px;
    padding: 100px 20px 60px 20px;
    text-align: center;
    align-items: center;
  }
  .nav-menu {
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 12px;
    gap: 6px;
    font-size: 0.8rem;
    background: rgba(15, 20, 25, 0.9);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.15);
    width: calc(100% - 30px);
    max-width: none;
  }
  .nav-menu a {
    padding: 6px 8px;
    font-weight: 500;
  }
  .menu-divider {
    height: 16px;
    margin: 0 4px;
  }
  .nav-menu .lang-link {
    padding: 6px 8px;
  }
  .logo-container {
    gap: 12px;
    margin-bottom: 20px;
    margin-top: 10px;
  }
  .logo-icon {
    height: 45px;
  }
  .logo {
    font-size: 2.8rem;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
  }
  .header-accent {
    font-size: 1.4rem;
    margin-bottom: 18px;
    font-weight: 700;
  }
  .header-sub {
    font-size: 1rem;
    margin-bottom: 30px;
    line-height: 1.5;
    text-shadow: 0 2px 10px rgba(0,0,0,0.4);
    padding: 0 10px;
  }
  .social-links {
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 8px;
    display: flex;
    justify-content: center;
  }
  .social-links a {
    min-width: unset;
    width: auto;
    flex: none;
    display: inline-block;
    margin-right: 0;
    padding: 8px 14px;
    font-size: 0.95rem;
  }
  .header-btn, .contact-btn {
    padding: 14px 28px;
    font-size: 1rem;
    margin-top: 12px;
  }
  h2 {
    font-size: 1.8rem;
  }
  .project-card, .service-card {
    padding: 24px 20px;
    width: 90vw;
    margin: 0 auto;
  }
  .service-card {
    padding: 32px 24px;
  }
  .store-badge {
    min-width: 140px;
    height: 44px;
  }
  .store-badge img {
    height: 36px;
  }
  .service-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
  }
  .contact-section {
    padding: 40px 4vw 40px 4vw;
  }
  section {
    padding: 50px 4vw 35px 4vw;
  }
  section:first-of-type {
    padding-top: 30px;
  }
}