:root {
  --primary-color: #1a1a2e;
  --primary-dark: #0a0a14;
  --primary-light: #2d2d47;
  --secondary-color: #16213e;
  --accent-color: #e67e22;
  --accent-dark: #d35400;
  --accent-light: #f39c12;
  --text-dark: #ffffff;
  --text-medium: #e2e8f0;
  --text-light: #cbd5e1;
  --text-lighter: #94a3b8;
  --bg-light: #1e1e2f;
  --bg-lighter: #252540;
  --bg-white: #181829;
  --bg-glass: rgba(24, 24, 41, 0.85);
  --border-color: #2d2d47;
  --border-light: #3a3a5c;
  --border-focus: #e67e22;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
  --gradient-primary: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  --gradient-secondary: linear-gradient(135deg, #2d2d47 0%, #3a3a5c 100%);
  --gradient-accent: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
  --gradient-hero: linear-gradient(135deg, #0a0a14 0%, #1a1a2e 50%, #16213e 100%);
  --gradient-card: linear-gradient(145deg, #181829 0%, #1e1e2f 100%);
  --success-color: #10b981;
  --warning-color: #e67e22;
  --error-color: #dc2626;
  --info-color: #3b82f6;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-white);
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  box-sizing: border-box;
}

img, svg, video {
  max-width: 100%;
  height: auto;
}

.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  transition: opacity 0.5s ease;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(212, 175, 55, 0.2);
  border-top: 3px solid var(--accent-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

header {
  background: var(--gradient-primary);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  transition: all 0.3s ease;
  position: relative;
}

header .nav-links a {
  color: var(--text-dark);
}

header.scrolled {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
}

header.scrolled .nav-links a {
  color: var(--text-medium);
}

header.scrolled .logo-text {
  color: var(--accent-color);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 0;
  min-height: 100px;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1;
}

.logo img {
  height: 120px;
  width: auto;
  max-width: 100%;
}

.logo-text, .logo-text2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  transition: color 0.3s ease;
}

.logo-text2 {
  color: var(--accent-color);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-medium);
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--accent-color);
}

.nav-links a:hover::after, .nav-links a.active::after {
  width: 100%;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  background: none;
  border: none;
  padding: 5px;
  z-index: 1001;
  position: relative;
}

.line {
  width: 25px;
  height: 3px;
  background: var(--text-dark);
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

.hero {
  min-height: 100vh;
  background: var(--gradient-hero);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-dark);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23d4af37" fill-opacity="0.05"><circle cx="30" cy="30" r="4"/></g></svg>') repeat;
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 20px;
  animation: fadeInUp 1s ease-out;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  background: linear-gradient(45deg, #ffffff, #d4af37, #ffffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.hero p {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  margin-bottom: 2.5rem;
  opacity: 0.9;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-light);
}

.cta-button {
  display: inline-block;
  background: var(--accent-color);
  color: var(--primary-color);
  padding: 1rem 2rem;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  border: 2px solid var(--accent-color);
  backdrop-filter: blur(10px);
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.cta-button:hover {
  background: var(--accent-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5);
  border-color: var(--accent-light);
}

.particles {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.particle {
  position: absolute;
  display: block;
  pointer-events: none;
  width: 4px;
  height: 4px;
  background: rgba(212, 175, 55, 0.4);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 1; }
  50% { transform: translateY(-20px) rotate(180deg); opacity: 0.6; }
}

section {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 3rem;
  color: var(--text-dark);
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--gradient-accent);
  border-radius: 2px;
}

.highlight-section {
  background: var(--bg-light);
}

.project-card {
  background: var(--gradient-card);
  padding: 3rem;
  border-radius: 20px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  max-width: 800px;
  margin: 0 auto;
  transition: all 0.3s ease;
  border: 1px solid var(--border-light);
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-2xl);
  border-color: var(--accent-color);
}

.project-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  display: block;
  color: var(--accent-color);
}

.project-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.project-description {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  background: var(--bg-white);
  padding: 2.5rem;
  border-radius: 16px;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient-accent);
  opacity: 0;
  transition: all 0.5s ease;
  z-index: 1;
}

.service-card:hover::before {
  left: 0;
  opacity: 0.05;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
  border-color: var(--accent-color);
}

.service-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  display: block;
  position: relative;
  z-index: 2;
  color: var(--accent-color);
}

.service-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-dark);
  position: relative;
  z-index: 2;
}

.service-description {
  color: var(--text-light);
  line-height: 1.7;
  position: relative;
  z-index: 2;
}

.about-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-medium);
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.stat-item {
  text-align: center;
  padding: 2rem;
  background: var(--bg-white);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  border: 1px solid var(--border-light);
}

.stat-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-color);
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent-color);
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--text-light);
  font-weight: 500;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-form {
  background: var(--bg-white);
  padding: 3rem;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-dark);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
  font-family: inherit;
  background-color: var(--bg-light);
  color: var(--text-dark);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
  background-color: var(--bg-lighter);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--bg-white);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  border: 1px solid var(--border-light);
}

.contact-item:hover {
  transform: translateX(10px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-color);
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: var(--gradient-accent);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 1.2rem;
  box-shadow: var(--shadow-sm);
}

.contact-text {
  flex: 1;
}

.contact-text strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--text-dark);
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  overflow-y: auto;
  padding: 20px 0;
}

.modal-content {
  background-color: #fefefe;
  margin: auto;
  padding: 20px;
  border: none;
  border-radius: 15px;
  width: 80%;
  max-width: 600px;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.close-modal {
  position: sticky;
  top: 0;
  float: right;
  font-size: 28px;
  font-weight: bold;
  color: #aaa;
  cursor: pointer;
  z-index: 1001;
  background: white;
  padding: 5px 10px;
  border-radius: 50%;
}

.close-modal:hover,
.close-modal:focus {
  color: #000;
  text-decoration: none;
}

.modal-content h3 {
  margin-bottom: 15px;
  font-size: 1.8rem;
  color: var(--bg-light);
  clear: both;
}

.modal-content img {
  max-width: 70%;
  width: 40%;
  height: auto;
  display: block;
  margin: 5px auto 15px auto;
  border-radius: 8px;
  max-height: 200px;
  object-fit: cover;
}

.modal-content p {
  margin-bottom: 15px;
  color: var(--bg-light);
  line-height: 1.5;
}

.modal-content ul {
  margin-bottom: 20px;
  padding-left: 0;
  list-style: none;
}

.modal-content li {
  margin-bottom: 10px;
  padding: 12px;
  background: var(--bg-lighter);
  border-radius: 8px;
  border-left: 4px solid var(--accent-color);
  color: var(--text-medium);
  font-size: 14px;
  line-height: 1.4;
}

@keyframes modalSlideIn {
  from { opacity: 0; transform: translateY(-50px); }
  to { opacity: 1; transform: translateY(0); }
}

.modal.show .modal-content {
  animation: modalSlideIn 0.3s ease;
}

footer {
  background: var(--primary-color);
  color: var(--text-dark);
  position: relative;
  overflow: hidden;
}

.footer-wave {
  position: relative;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.footer-wave svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 120px;
  transform: rotateY(180deg);
}

.footer-wave .shape-fill {
  fill: #1e40af;
}

.footer-wave.primary .shape-fill {
  fill: #3b82f6;
}

.footer-wave.secondary .shape-fill {
  fill: #6366f1;
}

.footer-wave.accent .shape-fill {
  fill: #8b5cf6;
}

.footer-wave.success .shape-fill {
  fill: #10b981;
}

.footer-wave.warning .shape-fill {
  fill: #f59e0b;
}

.footer-wave.gradient .shape-fill {
  fill: url(#wave-gradient);
}

@media (max-width: 768px) {
  .footer-wave svg {
    height: 80px;
  }
}

@media (max-width: 480px) {
  .footer-wave svg {
    height: 60px;
  }
}

.footer-wave.animated svg {
  animation: wave-motion 4s ease-in-out infinite alternate;
}

@keyframes wave-motion {
  0% { transform: rotateY(180deg) translateX(0px); }
  100% { transform: rotateY(180deg) translateX(-10px); }
}

.footer-wave.section-divider {
  margin: 2rem 0;
}

.footer-wave.inverted svg {
  transform: rotateY(180deg) rotateX(180deg);
}

.footer-wave.overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 1;
}

.footer-wave.overlay .shape-fill {
  fill: rgba(255, 255, 255, 0.1);
}

.footer-main {
  padding: 4rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.footer-logo img {
  height: 60px;
}

.footer-logo-text {
  font-size: 1.5rem;
  font-weight: 700;
}

.highlight {
  color: var(--accent-color);
}

.footer-about {
  margin-bottom: 2rem;
  line-height: 1.7;
  color: var(--text-lighter);
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  background: rgba(212, 175, 55, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.footer-social a:hover {
  background: var(--accent-color);
  transform: translateY(-2px);
  border-color: var(--accent-light);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
  color: var(--primary-color);
}

.footer-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

.footer-links,
.footer-contact {
  list-style: none;
}

.footer-links li,
.footer-contact li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--text-lighter);
  text-decoration: none;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-links a:hover {
  color: var(--accent-color);
}

.footer-contact li {
  color: var(--text-lighter);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
  text-align: center;
  color: var(--text-lighter);
}

.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--accent-color);
  color: var(--primary-color);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  cursor: pointer;
  font-size: 1.2rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: var(--shadow-lg);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--accent-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }
  .hamburger .line {
    background: var(--text-dark);
  }
  header.scrolled .hamburger .line {
    background: var(--text-medium);
  }
  .logo img {
    height: 80px;
  }
  .nav-links {
    position: fixed;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border-top: 1px solid var(--border-color);
    z-index: 999;
  }
  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  span .logo-text, .logo-text2 {
    font-size: 1.1rem;
  }
  .hero h1 {
    font-size: 2.5rem;
  }
  .hero p {
    font-size: 1.1rem;
  }
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .service-card {
    padding: 2rem;
  }
  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .about-stats {
    grid-template-columns: 1fr 1fr;
  }
  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  .modal-content {
    margin: 10% auto;
    padding: 2rem;
  }
  .hamburger.active .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
  }
  .hamburger.active .line2 {
    opacity: 0;
  }
  .hamburger.active .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 10px;
  }
  section {
    padding: 3rem 0;
  }
  .hero {
    padding: 0 15px;
  }
  .project-card {
    padding: 2rem;
  }
  .contact-form {
    padding: 2rem;
  }
  .stat-item {
    padding: 1.5rem;
  }
  .about-stats {
    grid-template-columns: 1fr;
  }
  .footer-logo img {
    height: 50px;
  }
  .footer-social a {
    width: 35px;
    height: 35px;
    font-size: 0.9rem;
  }
  .footer-about, .footer-links li, .footer-contact li, .contact-text {
    font-size: 0.9rem;
    word-break: break-word;
  }
  .contact-item {
    padding: 1rem;
    gap: 0.5rem;
  }
  .contact-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}

@media (max-width: 320px) {
  .container {
    padding: 0 8px;
  }
  .hero h1 {
    font-size: 1.8rem;
  }
  .hero p {
    font-size: 0.9rem;
  }
  .logo img {
    height: 60px;
  }
  .footer-logo img {
    height: 40px;
  }
  .footer-social a {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
  }
}

button, input, textarea, .cta-button, .contact-item {
  max-width: 100%;
  box-sizing: border-box;
}

.success-popup {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.6);
  justify-content: center; align-items: center;
}
.success-popup.show {
  display: flex;
  animation: fadeInUp 0.4s;
}
.success-popup-content {
  background: var(--bg-white);
  padding: 2rem 2.5rem;
  border-radius: 16px;
  box-shadow: var(--shadow-xl);
  text-align: center;
  color: var(--success-color);
}
.success-popup-content i {
  font-size: 3rem;
  color: var(--success-color);
  margin-bottom: 1rem;
}
.success-popup-content h3 {
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}
.success-popup-content p {
  color: var(--text-medium);
  margin-bottom: 1.5rem;
}
