/* ========================================
   Global Styles
   ======================================== */

:root {
  --primary-color: #6366f1;
  --secondary-color: #8b5cf6;
  --accent-color: #ec4899;
  --dark-bg: #0f172a;
  --darker-bg: #020617;
  --light-text: #ffffff;
  --gray-text: #94a3b8;
  --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --transition-speed: 0.4s;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: "Noto Sans SC", "Poppins", -apple-system, BlinkMacSystemFont,
    sans-serif;
  background: var(--dark-bg);
  color: var(--light-text);
  overflow-x: hidden;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all var(--transition-speed) ease;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* ========================================
   Page Loader
   ======================================== */

.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--darker-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-content {
  text-align: center;
}

.spinner {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(99, 102, 241, 0.1);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loader-content p {
  color: var(--gray-text);
  font-size: 14px;
  letter-spacing: 2px;
}

/* ========================================
   Header
   ======================================== */

.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  backdrop-filter: blur(10px);
  transition: all var(--transition-speed) ease;
}

.main-header.scrolled {
  background: transparent;
  backdrop-filter: blur(10px);
  box-shadow: none;
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo h1 {
  font-size: 28px;
  font-weight: 900;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 2px;
}

.logo img {
  height: 50px;
  width: auto;
  display: block;
  transition: all var(--transition-speed) ease;
}

.logo img:hover {
  transform: scale(1.05);
}

.main-nav {
  display: flex;
  gap: 40px;
}

.nav-link {
  position: relative;
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  transition: color var(--transition-speed) ease;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width var(--transition-speed) ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--light-text);
  text-shadow: 0 2px 15px rgba(99, 102, 241, 0.5);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--light-text);
  border-radius: 2px;
  transition: all var(--transition-speed) ease;
}

/* ========================================
   Main Content & Sections
   ======================================== */

.main-content {
  position: relative;
}

.section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 20px;
  overflow: hidden;
}

.background-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.95) 0%,
    rgba(30, 41, 59, 0.95) 100%
  );
  z-index: -1;
}

.section-content {
  position: relative;
  width: 100%;
  z-index: 1;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ========================================
   Hero Section
   ======================================== */

.hero-section {
  background: transparent;
  position: relative;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  z-index: -2;
}

.hero-section .background-overlay {
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.2) 0%,
    rgba(30, 41, 59, 0.3) 100%
  );
  z-index: -1;
}

#particles-js {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 0;
}

.hero-content {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero-subtitle {
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 4px;
  color: var(--primary-color);
  margin-bottom: 20px;
  text-transform: uppercase;
}

.hero-title {
  font-size: 80px;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-title-image {
  max-width: 100%;
  height: auto;
  max-height: 200px;
  width: auto;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
  transition: all var(--transition-speed) ease;
}

.hero-title-image:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 15px 40px rgba(0, 0, 0, 0.5));
}

.hero-title .title-line {
  display: block;
}

.hero-description {
  font-size: 20px;
  color: var(--gray-text);
  margin-bottom: 50px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 16px 40px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
  border: 2px solid transparent;
  letter-spacing: 0.5px;
}

.btn-primary {
  background: var(--gradient-1);
  color: white;
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(99, 102, 241, 0.5);
}

.btn-outline {
  border-color: var(--primary-color);
  color: var(--primary-color);
  background: transparent;
}

.btn-outline:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-3px);
}

.btn-block {
  width: 100%;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  animation: bounce 2s infinite;
}

.mouse {
  width: 30px;
  height: 50px;
  border: 2px solid var(--gray-text);
  border-radius: 25px;
  position: relative;
  margin: 0 auto 10px;
}

.wheel {
  width: 4px;
  height: 10px;
  background: var(--gray-text);
  border-radius: 2px;
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll 1.5s infinite;
}

@keyframes scroll {
  0%,
  20% {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
  100% {
    transform: translateX(-50%) translateY(15px);
    opacity: 0;
  }
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

.scroll-indicator p {
  font-size: 12px;
  color: var(--gray-text);
  letter-spacing: 2px;
}

/* Animations */
.animate-fade-in {
  animation: fadeIn 1s ease forwards;
}

.animate-fade-in-delayed {
  animation: fadeIn 1s ease 0.3s forwards;
  opacity: 0;
}

.animate-fade-in-more-delayed {
  animation: fadeIn 1s ease 0.6s forwards;
  opacity: 0;
}

.animate-slide-up {
  animation: slideUp 1s ease 0.2s forwards;
  opacity: 0;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================================
   Section Header
   ======================================== */

.section-header {
  text-align: center;
  margin-bottom: 80px;
}

.section-label {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--primary-color);
  margin-bottom: 15px;
  text-transform: uppercase;
}

.section-title {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--light-text);
}

.title-underline {
  width: 80px;
  height: 4px;
  background: var(--gradient-1);
  margin: 0 auto;
  border-radius: 2px;
}

/* ========================================
   About Section
   ======================================== */

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-text h3 {
  font-size: 32px;
  margin-bottom: 25px;
  color: var(--light-text);
}

.about-text p {
  font-size: 18px;
  color: var(--gray-text);
  margin-bottom: 20px;
  line-height: 1.8;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.stat-item {
  text-align: center;
  padding: 30px;
  background: rgba(99, 102, 241, 0.1);
  border-radius: 20px;
  border: 1px solid rgba(99, 102, 241, 0.2);
  transition: all var(--transition-speed) ease;
}

.stat-item:hover {
  background: rgba(99, 102, 241, 0.15);
  transform: translateY(-5px);
}

.stat-number {
  font-size: 48px;
  font-weight: 900;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 10px;
}

.stat-label {
  font-size: 16px;
  color: var(--gray-text);
}

.about-visual {
  position: relative;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.visual-box {
  position: absolute;
  border-radius: 30px;
  transition: all var(--transition-speed) ease;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.visual-box.box-1 {
  width: 280px;
  height: 280px;
  background: var(--gradient-1);
  top: 0;
  left: 0;
  opacity: 0.9;
  z-index: 3;
  animation: float 6s ease-in-out infinite;
}

.visual-box.box-2 {
  width: 240px;
  height: 240px;
  background: var(--gradient-2);
  top: 60px;
  right: 20px;
  opacity: 0.85;
  z-index: 2;
  animation: float 7s ease-in-out infinite;
  animation-delay: 1s;
}

.visual-box.box-3 {
  width: 200px;
  height: 200px;
  background: var(--gradient-3);
  bottom: 20px;
  left: 80px;
  opacity: 0.8;
  z-index: 1;
  animation: float 8s ease-in-out infinite;
  animation-delay: 2s;
}

.visual-box:hover {
  transform: scale(1.1) rotate(5deg);
  opacity: 1 !important;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* ========================================
   Services Section
   ======================================== */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-card {
  padding: 40px 30px;
  background: rgba(99, 102, 241, 0.05);
  border: 1px solid rgba(99, 102, 241, 0.1);
  border-radius: 20px;
  transition: all var(--transition-speed) ease;
  text-align: center;
}

.service-card:hover {
  background: rgba(99, 102, 241, 0.1);
  border-color: var(--primary-color);
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(99, 102, 241, 0.2);
}

.service-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 25px;
  background: var(--gradient-1);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-speed) ease;
}

.service-card:hover .service-icon {
  transform: rotateY(360deg);
}

.service-icon svg {
  width: 40px;
  height: 40px;
  color: white;
}

.service-card h3 {
  font-size: 24px;
  margin-bottom: 15px;
  color: var(--light-text);
}

.service-card p {
  font-size: 16px;
  color: var(--gray-text);
  line-height: 1.6;
}

/* ========================================
   Team Section
   ======================================== */

.team-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.team-intro h3 {
  font-size: 32px;
  margin-bottom: 25px;
  color: var(--light-text);
}

.team-intro p {
  font-size: 18px;
  color: var(--gray-text);
  margin-bottom: 20px;
  line-height: 1.8;
}

.team-highlights {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.highlight-item {
  padding: 30px;
  background: rgba(139, 92, 246, 0.05);
  border: 1px solid rgba(139, 92, 246, 0.1);
  border-radius: 20px;
  transition: all var(--transition-speed) ease;
}

.highlight-item:hover {
  background: rgba(139, 92, 246, 0.1);
  transform: translateY(-5px);
}

.highlight-icon {
  font-size: 48px;
  margin-bottom: 15px;
}

.highlight-item h4 {
  font-size: 20px;
  margin-bottom: 10px;
  color: var(--light-text);
}

.highlight-item p {
  font-size: 14px;
  color: var(--gray-text);
}

/* ========================================
   Contact Section
   ======================================== */

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

.contact-info h3 {
  font-size: 32px;
  margin-bottom: 20px;
  color: var(--light-text);
}

.contact-info > p {
  font-size: 18px;
  color: var(--gray-text);
  margin-bottom: 40px;
  line-height: 1.8;
}

.info-items {
  margin-bottom: 40px;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 30px;
}

.info-icon {
  font-size: 32px;
  min-width: 50px;
}

.info-content h4 {
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--light-text);
}

.info-content p {
  font-size: 16px;
  color: var(--gray-text);
}

.social-links {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.social-link {
  padding: 12px 24px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 25px;
  font-size: 14px;
  transition: all var(--transition-speed) ease;
}

.social-link:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  transform: translateY(-3px);
}

/* Contact Form */
.contact-form {
  background: rgba(99, 102, 241, 0.05);
  border: 1px solid rgba(99, 102, 241, 0.1);
  border-radius: 20px;
  padding: 40px;
}

.form-group {
  margin-bottom: 25px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: var(--light-text);
  font-size: 16px;
  transition: all var(--transition-speed) ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  background: rgba(255, 255, 255, 0.08);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-message {
  margin-top: 20px;
  padding: 15px;
  border-radius: 10px;
  text-align: center;
  display: none;
}

.form-message.success {
  background: rgba(34, 197, 94, 0.2);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #4ade80;
  display: block;
}

.form-message.error {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
  display: block;
}

/* ========================================
   Footer
   ======================================== */

.main-footer {
  background: var(--darker-bg);
  padding: 30px 40px;
  border-top: 1px solid rgba(99, 102, 241, 0.1);
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-content p {
  color: var(--gray-text);
  font-size: 14px;
}

.footer-links {
  display: flex;
  gap: 30px;
}

.footer-links a {
  color: var(--gray-text);
  font-size: 14px;
  transition: color var(--transition-speed) ease;
}

.footer-links a:hover {
  color: var(--primary-color);
}

/* ========================================
   Back to Top Button
   ======================================== */

.back-to-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 50px;
  height: 50px;
  background: var(--gradient-1);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-speed) ease;
  z-index: 999;
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(99, 102, 241, 0.5);
}

.back-to-top svg {
  width: 24px;
  height: 24px;
  color: white;
}
