/* public/css/home.css - Complete Home Page Styles */

.home-page {
  background: var(--bg-primary);
}

/* Hero Header */
.hero-header {
  position: relative;
  text-align: center;
  padding: 5rem 1rem 7rem;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.hero-header::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent, rgba(31, 76, 143, 0.1), transparent);
  animation: headerRotate 15s linear infinite;
}

@keyframes headerRotate {
  from { transform: rotate(0); }
  to { transform: rotate(360deg); }
}
.brandmark {
    width: 100px;
}
.logo-icon img {width: 50px; height: 50px;}
.hero-header .logo {
  width: 100px;
  height: 100px;
  border-radius: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto 2rem;
  animation: logoFloat 3s ease-in-out infinite;
  box-shadow: 0 15px 40px rgba(31, 76, 143, 0.4);
  position: relative;
  z-index: 1;
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-15px) scale(1.05); }
}

.hero-header h1 {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5rem;
  animation: titlePulse 3s ease-in-out infinite;
  position: relative;
  z-index: 1;
}

@keyframes titlePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

.hero-header .subtitle {
  font-size: 1.4rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  animation: fadeInUp 1s ease-out 0.5s both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Home Container */
.home-container {
  max-width: 1200px;
  margin: -3rem auto 0;
  padding: 0 1rem;
  position: relative;
  z-index: 2;
}

/* Section Styles */
.section {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 3rem;
  margin: 3rem 0;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
  opacity: 0;
  transform: translateY(40px);
  animation: sectionFadeIn 0.8s ease forwards;
}

.section:nth-child(1) { animation-delay: 0.1s; }
.section:nth-child(2) { animation-delay: 0.2s; }
.section:nth-child(3) { animation-delay: 0.3s; }
.section:nth-child(4) { animation-delay: 0.4s; }
.section:nth-child(5) { animation-delay: 0.5s; }
.section:nth-child(6) { animation-delay: 0.6s; }

@keyframes sectionFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary-light), transparent);
  opacity: 0.6;
}

.section:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
  border-color: var(--primary-light);
}

.section h2 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
}

.section h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-light), var(--accent));
  border-radius: 2px;
  transform: scaleX(0);
  animation: underlineExpand 0.8s ease forwards 0.3s;
}

@keyframes underlineExpand {
  to { transform: scaleX(1); }
}

.section p {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 1.05rem;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.feature-card {
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(31, 76, 143, 0.05) 100%);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.5rem;
  text-align: center;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(45deg, var(--primary), var(--accent), var(--secondary), var(--primary));
  border-radius: 20px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover::before {
  opacity: 0.3;
}

.feature-card:hover {
  transform: translateY(-15px) scale(1.03);
  box-shadow: 0 20px 40px rgba(31, 76, 143, 0.3);
}

.feature-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1.5rem;
  transition: transform 0.3s ease;
  box-shadow: 0 10px 25px rgba(31, 76, 143, 0.3);
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
}

.feature-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.feature-description {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
}

/* Highlight Box */
.highlight-box {
  margin: 2.5rem 0;
  padding: 2.5rem;
  background: linear-gradient(135deg, rgba(31, 76, 143, 0.1) 0%, rgba(59, 130, 246, 0.05) 100%);
  border-radius: 16px;
  border-left: 5px solid var(--primary-light);
  position: relative;
  overflow: hidden;
}

.highlight-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.02), transparent);
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.highlight-box p {
  color: var(--text-primary);
  font-weight: 600;
}

/* Progress Container */
.progress-container {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  border-radius: 16px;
  padding: 2.5rem;
  margin: 2.5rem 0;
  text-align: center;
  border: 1px solid var(--border);
}

.progress-text {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.progress-bar {
  background: var(--bg-primary);
  border-radius: 25px;
  height: 20px;
  position: relative;
  overflow: hidden;
  margin: 1.5rem 0;
  border: 1px solid var(--border);
}

.progress-fill {
  background: linear-gradient(90deg, var(--primary), var(--primary-light), var(--accent));
  height: 100%;
  width: 80%;
  border-radius: 25px;
  position: relative;
  animation: progressPulse 2s ease-in-out infinite alternate;
}

@keyframes progressPulse {
  from {
    box-shadow: 0 0 15px rgba(31, 76, 143, 0.5);
    filter: brightness(1);
  }
  to {
    box-shadow: 0 0 25px rgba(31, 76, 143, 0.8);
    filter: brightness(1.1);
  }
}

.progress-details {
  color: var(--text-secondary);
  margin-top: 1rem;
  font-size: 1rem;
}

/* Social Section */
.social-section {
  margin: 2rem 0;
  text-align: center;
}

.social-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 15px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.social-link svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.social-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s;
}

.social-link:hover::before {
  transform: translateX(100%);
}

.social-link:hover {
  transform: translateY(-5px) scale(1.1);
  border-color: var(--primary-light);
  box-shadow: 0 10px 25px rgba(31, 76, 143, 0.3);
}

.social-link.youtube:hover {
  background: linear-gradient(135deg, #ff0000, #cc0000);
  border-color: #ff0000;
}

.social-link.facebook:hover {
  background: linear-gradient(135deg, #1877f2, #0d5dc7);
  border-color: #1877f2;
}

.social-link.twitter:hover {
  background: linear-gradient(135deg, #1da1f2, #0d8bd9);
  border-color: #1da1f2;
}

.social-link.instagram:hover {
  background: linear-gradient(135deg, #e4405f, #833ab4, #fcb045);
  border-color: #e4405f;
}

.social-link.telegram:hover {
  background: linear-gradient(135deg, #0088cc, #006699);
  border-color: #0088cc;
}

.social-link.tiktok:hover {
  background: linear-gradient(135deg, #010101, #25F4EE);
  border-color: #25F4EE;
}

/* Form Container */
.form-container {
  max-width: 520px;
  margin: 3rem auto;
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(31, 76, 143, 0.05) 100%);
  backdrop-filter: blur(25px);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 3.5rem;
  position: relative;
  overflow: hidden;
}

.form-container::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent, rgba(31, 76, 143, 0.1), transparent);
  animation: formRotate 8s linear infinite;
}

@keyframes formRotate {
  from { transform: rotate(0); }
  to { transform: rotate(360deg); }
}

.form-container h2 {
  text-align: center;
  margin-bottom: 2.5rem;
  color: var(--text-primary);
  position: relative;
  z-index: 1;
}

.form-container form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}

.form-group {
  position: relative;
}

.form-container input,
.form-container select {
  width: 100%;
  padding: 1.2rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 1rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.form-container input:focus,
.form-container select:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 4px rgba(31, 76, 143, 0.2);
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.form-container input::placeholder {
  color: var(--text-secondary);
}

.form-container select {
  cursor: pointer;
}

.form-container select option {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

/* Remove phone-group flex layout, use stacked layout */
.form-container .form-group select {
  width: 100%;
  margin-bottom: 0;
}

.form-container .form-group input[type="tel"] {
  width: 100%;
}

.submit-btn {
  background: var(--gradient);
  color: #fff;
  border: none;
  padding: 1.2rem 2.5rem;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  margin-top: 1rem;
}

.submit-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s;
}

.submit-btn:hover::before {
  left: 100%;
}

.submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(31, 76, 143, 0.5);
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent) 100%);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-header {
    padding: 4rem 1rem 5rem;
  }

  .hero-header .logo {
    width: 80px;
    height: 80px;
    font-size: 2rem;
  }

  .hero-header h1 {
    font-size: 2.5rem;
  }

  .hero-header .subtitle {
    font-size: 1.2rem;
  }

  .section {
    padding: 2rem;
    margin: 2rem 0;
  }

  .section h2 {
    font-size: 1.8rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .feature-card {
    padding: 2rem;
  }

  .form-container {
    padding: 2.5rem;
    margin: 2rem auto;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 1.5rem;
  }

  .form-container {
    padding: 2rem;
  }

  .social-links {
    gap: 1rem;
  }

  .social-link {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }

  .social-link svg {
    width: 24px;
    height: 24px;
  }
}