/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10rem 5% 6rem;
  position: relative;
  overflow: hidden;
  background: black;
}
/* Logo container animation (bounce + zoom + ease-in-out) */
.logo-container {
  animation: bounceZoom 3s ease-in-out infinite;
}

/* Define bounce + zoom animation */
@keyframes bounceZoom {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  25% {
    transform: translateY(-10px) scale(1.05);
  }
  50% {
    transform: translateY(-20px) scale(1.1);
  }
  75% {
    transform: translateY(-10px) scale(1.05);
  }
}

/* Enhanced logo styling */
.logo-container img {
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.25));
  transform-origin: center;
}

.logo-container:hover img {
  transform: scale(1.15) rotate(-2deg);
  filter: drop-shadow(0 16px 30px rgba(99, 102, 241, 0.5));
}

/* Crisp logo rendering */
.header-logo,
.logo-container img {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
  image-rendering: high-quality;
  -ms-interpolation-mode: bicubic;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform-style: preserve-3d;
}

/* Glow pulse effect */
.logo-container .hero-logo {
  position: relative;
  animation: pulseGlow 3s ease-in-out infinite;
}

.logo-container .hero-logo::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 160%;
  height: 160%;
  background: radial-gradient(
    circle,
    rgba(99, 102, 241, 0.25) 0%,
    transparent 70%
  );
  border-radius: 50%;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
  animation: glow 3s ease-in-out infinite;
}

.logo-container:hover .hero-logo::before {
  opacity: 1;
}

/* Glow animation */
@keyframes glow {
  0%,
  100% {
    opacity: 0.3;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 0.8;
    transform: translate(-50%, -50%) scale(1.15);
  }
}

/* Soft breathing pulse with glow sync */
@keyframes pulseGlow {
  0%,
  100% {
    filter: drop-shadow(0 6px 12px rgba(99, 102, 241, 0.2));
  }
  50% {
    filter: drop-shadow(0 12px 25px rgba(99, 102, 241, 0.6));
  }
}

.hero-content {
  max-width: 800px;
  z-index: 10;
  animation: heroFadeIn 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.hero h1 {
  font-size: clamp(2.5rem, 7vw, 3.2rem);
  font-weight: 900;
  margin-bottom: 2rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.gradient-text {
  background: linear-gradient(135deg, #6366f1, #8b5cf6, #d946ef);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientFlow 4s ease infinite;
}

@keyframes gradientFlow {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.hero p {
  font-size: clamp(1.1rem, 2.5vw, 1.2rem);
  color: rgba(232, 233, 243, 0.8);
  margin-bottom: 3rem;
  line-height: 1.8;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  text-decoration: none;
  display: inline-block;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white;
  box-shadow: 0 10px 40px rgba(108, 99, 255, 0.3);
}

.btn-primary::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.5s ease;
}

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

.btn-primary:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 50px rgba(108, 99, 255, 0.5);
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid rgba(108, 99, 255, 0.5);
}

.btn-secondary:hover {
  background: rgba(108, 99, 255, 0.1);
  border-color: var(--primary);
  transform: translateY(-5px);
}

/* Floating SVG Icons */
.floating-icon {
  position: absolute;
  animation: floatIcon 6s ease-in-out infinite;
  opacity: 0.1;
}

@keyframes floatIcon {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-30px) rotate(10deg);
  }
}

.icon-1 {
  top: 15%;
  left: 10%;
  animation-delay: 0s;
}
.icon-2 {
  top: 25%;
  right: 15%;
  animation-delay: 1s;
}
.icon-3 {
  bottom: 20%;
  left: 15%;
  animation-delay: 2s;
}
.icon-4 {
  bottom: 30%;
  right: 10%;
  animation-delay: 3s;
}

/* Section Styles */
section {
  padding: 8rem 5%;
  position: relative;
}

.section-title {
  text-align: center;
  font-size: clamp(2.5rem, 5vw, 3rem);
  font-weight: 900;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.section-subtitle {
  text-align: center;
  font-size: 1.3rem;
  color: rgba(232, 233, 243, 0.7);
  margin-bottom: 5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* responsive */
/* Responsive Design for Hero Section */

/* Large tablets and smaller desktops */
@media (max-width: 1200px) {
  .hero {
    padding: 8rem 4% 5rem;
  }

  .hero h1 {
    font-size: clamp(2.3rem, 6vw, 4.5rem);
  }

  .hero p {
    font-size: 1.1rem;
    max-width: 700px;
  }

  .hero-buttons {
    gap: 1.5rem;
  }

  .btn {
    padding: 1.1rem 2.8rem;
  }

  .floating-icon {
    opacity: 0.08;
  }
}

/* Tablets (portrait & small laptops) */
@media (max-width: 992px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 7rem 3% 5rem;
  }

  .logo-container {
    margin-bottom: 2.5rem;
  }

  .hero h1 {
    font-size: clamp(2rem, 6vw, 4rem);
    line-height: 1.15;
  }

  .hero p {
    font-size: 1rem;
    line-height: 1.7;
    max-width: 600px;
  }

  .btn {
    padding: 1rem 2.4rem;
    font-size: 1rem;
  }

  .floating-icon {
    width: 50px;
    height: 50px;
    opacity: 0.07;
  }
}

/* Tablets (portrait) and large phones */
@media (max-width: 768px) {
  .hero {
    padding: 6rem 2rem 4rem;
    min-height: auto;
  }

  .logo-container img {
    max-width: 180px;
  }

  .hero h1 {
    font-size: clamp(1.8rem, 7vw, 3rem);
    margin-bottom: 1.5rem;
  }

  .hero p {
    font-size: 0.95rem;
    margin-bottom: 2.5rem;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 1rem;
  }

  .btn {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }

  .floating-icon {
    display: none; /* Hide background icons for cleaner small view */
  }
}

/* Mobile Phones */
@media (max-width: 480px) {
  .hero {
    padding: 5rem 1.5rem 3rem;
  }

  .logo-container img {
    max-width: 100px;
  }

  .hero h1 {
    font-size: clamp(1.6rem, 8vw, 2.4rem);
  }

  .hero p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 2rem;
  }

  .btn {
    font-size: 0.85rem;
    padding: 0.9rem 2rem;
    border-radius: 40px;
  }

  .section-title {
    font-size: 2rem;
  }

  .section-subtitle {
    font-size: 1rem;
    margin-bottom: 3rem;
  }
}
