/* Mahdora Coming Soon Landing Page Styles */

/* CSS Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  line-height: 1.6;
  color: #2d3748;
  background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
  overflow-x: hidden;
  min-height: 100vh;
}

/* Main Hero Container - Vertical Split Layout */
.hero-container {
  display: flex;
  min-height: 100vh;
  position: relative;
}

/* Left Section - Slogan */
.slogan-section {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: linear-gradient(135deg, #48bb78 0%, #38a169 50%, #2f855a 100%);
  position: relative;
  overflow: hidden;
}

.slogan-content {
  text-align: center;
  z-index: 10;
  position: relative;
}

/* Slogan Typography */
.slogan-text {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1rem;
  color: white;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.slogan-word {
  display: inline-block;
  margin-right: 0.5rem;
  opacity: 0;
  transform: translateY(50px);
}

.slogan-word.electric {
  color: #ffd700;
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
  position: relative;
}

.slogan-word.electric::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 70%
  );
  transform: translateX(-100%);
  animation: electricSweep 3s infinite;
}

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

.slogan-subtitle {
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 2rem;
}

.subtitle-word {
  display: inline-block;
  margin-right: 0.3rem;
  opacity: 0;
  transform: translateY(30px);
}

.company-name {
  margin-bottom: 1.5rem;
}

.brand-logo {
  height: clamp(3.5rem, 7vw, 5.5rem);
  width: auto;
  opacity: 0;
  transform: scale(0.8);
}

.tagline {
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  color: #cbd5e0;
  font-weight: 400;
  max-width: 400px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(20px);
}

/* Right Section - Hero Image */
.hero-section {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: linear-gradient(135deg, #f7fafc 0%, #e2e8f0 50%, #cbd5e0 100%);
  position: relative;
  overflow: hidden;
  min-height: 100vh;
}

.hero-img {
  width: 100%;
  height: auto;
  max-width: 500px;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 12px;
  transition: transform 0.3s ease;
  opacity: 0;
}



.hero-content {
  position: relative;
  width: 100%;
  max-width: 500px;
  height: 100%;
}

/* Charger Showcase - Simplified */
.charger-showcase {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.charger-item {
  position: relative;
  opacity: 0;
  transform: translateY(50px) scale(0.8);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.charger-placeholder {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #48bb78, #68d391);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: white;
  font-weight: 600;
  text-align: center;
  filter: drop-shadow(0 10px 20px rgba(72, 187, 120, 0.3));
  transition: all 0.3s ease;
}

.charger-placeholder:hover {
  filter: drop-shadow(0 15px 30px rgba(72, 187, 120, 0.5));
  transform: translateY(-5px);
}

.charger-label {
  font-size: 0.9rem;
  color: #68d391;
  font-weight: 600;
  text-align: center;
  opacity: 0.8;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.charger-main {
  opacity: 0;
  transform: scale(0);
}

.charger-secondary {
  opacity: 0.8;
  transform: scale(0.9);
}

.charger-tertiary {
  opacity: 0.6;
  transform: scale(0.8);
}

.glow-effect {
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  background: radial-gradient(
    circle,
    rgba(72, 187, 120, 0.3) 0%,
    transparent 70%
  );
  border-radius: 25px;
  opacity: 0;
  animation: glowPulse 2s infinite alternate;
}

@keyframes glowPulse {
  0% {
    opacity: 0.3;
    transform: scale(1);
  }
  100% {
    opacity: 0.7;
    transform: scale(1.05);
  }
}

/* Background Animation Elements */
.bg-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.leaf-circuit {
  position: absolute;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50% 0;
  opacity: 0;
}

.leaf-1 {
  top: 20%;
  left: 10%;
  animation: floatLeaf 6s infinite ease-in-out;
}

.leaf-2 {
  bottom: 30%;
  right: 15%;
  animation: floatLeaf 8s infinite ease-in-out reverse;
}

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

.grass-element {
  position: absolute;
  width: 3px;
  height: 30px;
  background: linear-gradient(to top, rgba(255, 255, 255, 0.2), transparent);
  border-radius: 2px;
  opacity: 0;
}

.grass-1 {
  bottom: 10%;
  left: 20%;
  animation: grassSway 4s infinite ease-in-out;
}

.grass-2 {
  bottom: 15%;
  left: 80%;
  animation: grassSway 5s infinite ease-in-out reverse;
}

@keyframes grassSway {
  0%,
  100% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(5deg);
  }
}

/* Environment Elements */
.environment-showcase {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
}

.environment-element {
  position: absolute;
  opacity: 0.7;
  transition: all 0.3s ease;
}

.environment-element:hover {
  opacity: 1;
  transform: scale(1.1);
}

/* Butterfly */
.butterfly {
  top: 20%;
  left: 15%;
  width: 30px;
  height: 25px;
  animation: flutter 8s infinite ease-in-out;
}

.butterfly-wings {
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, #ffd700, #ffed4e);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  position: relative;
}

.butterfly-wings::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  right: 2px;
  bottom: 2px;
  background: linear-gradient(45deg, #ff6b6b, #ffd700);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  opacity: 0.8;
}

.butterfly-body {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 2px;
  height: 80%;
  background: #2d3748;
  border-radius: 1px;
}

/* Leaf Elements */
.leaf-circuit {
  width: 50px;
  height: 50px;
}

.leaf-circuit:first-of-type {
  top: 30%;
  right: 20%;
}

.leaf-circuit.secondary {
  top: 70%;
  left: 25%;
  width: 35px;
  height: 35px;
}

.leaf-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 2px 8px rgba(72, 187, 120, 0.3));
}

.leaf-svg.small {
  width: 80%;
  height: 80%;
}

/* Grass Elements */
.grass-element {
  bottom: 10%;
  left: 40%;
  width: 40px;
  height: 30px;
  display: flex;
  align-items: flex-end;
  gap: 3px;
}

.grass-blade {
  width: 3px;
  background: linear-gradient(to top, #2f855a, #68d391);
  border-radius: 1.5px 1.5px 0 0;
  transform-origin: bottom;
  animation: grassSway 4s infinite ease-in-out;
}

.grass-blade:nth-child(1) {
  height: 25px;
  animation-delay: 0s;
}

.grass-blade:nth-child(2) {
  height: 30px;
  animation-delay: 0.5s;
}

.grass-blade:nth-child(3) {
  height: 20px;
  animation-delay: 1s;
}

/* Wind Indicator */
.wind-indicator {
  top: 15%;
  right: 15%;
  width: 30px;
  height: 20px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.wind-line {
  height: 2px;
  background: linear-gradient(to right, transparent, #68d391, transparent);
  border-radius: 1px;
  animation: windFlow 3s infinite ease-in-out;
}

.wind-line:nth-child(1) {
  width: 100%;
  animation-delay: 0s;
}

.wind-line:nth-child(2) {
  width: 80%;
  animation-delay: 0.3s;
}

.wind-line:nth-child(3) {
  width: 60%;
  animation-delay: 0.6s;
}

@keyframes flutter {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(15px, -10px) rotate(5deg);
  }
  50% {
    transform: translate(30px, 5px) rotate(-3deg);
  }
  75% {
    transform: translate(20px, -5px) rotate(2deg);
  }
}

@keyframes windFlow {
  0% {
    opacity: 0.3;
    transform: translateX(-10px);
  }
  50% {
    opacity: 0.8;
    transform: translateX(0px);
  }
  100% {
    opacity: 0.3;
    transform: translateX(10px);
  }
}

@keyframes grassSway {
  0%,
  100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(3deg);
  }
  50% {
    transform: rotate(0deg);
  }
  75% {
    transform: rotate(-3deg);
  }
}

.energy-particles {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: #ffd700;
  border-radius: 50%;
  opacity: 0;
}

.particle:nth-child(1) {
  animation: particleFloat 3s infinite ease-in-out;
}

.particle:nth-child(2) {
  animation: particleFloat 3s infinite ease-in-out 1s;
}

.particle:nth-child(3) {
  animation: particleFloat 3s infinite ease-in-out 2s;
}

@keyframes particleFloat {
  0%,
  100% {
    opacity: 0;
    transform: translate(0, 0);
  }
  50% {
    opacity: 1;
    transform: translate(20px, -30px);
  }
}

/* Loading Screen */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

.loading-content {
  text-align: center;
  color: white;
}

.loading-logo {
  margin-bottom: 2rem;
}

.loading-logo-img {
  height: 3rem;
  width: auto;
}

.loading-bar {
  width: 200px;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
  margin: 0 auto;
}

.loading-progress {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #48bb78, #ffd700);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.hero-image {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .slogan-text {
    font-size: clamp(2rem, 6vw, 3.5rem);
  }

  .charger-body {
    width: 100px;
    height: 170px;
  }

  .charger-body.small {
    width: 70px;
    height: 110px;
  }
}

@media (max-width: 992px) {
  .slogan-text {
    font-size: clamp(1.8rem, 5vw, 3rem);
  }

  .slogan-subtitle {
    font-size: clamp(1.4rem, 4vw, 2.2rem);
  }

  .hero-content {
    max-width: 400px;
    height: 100%;
  }
}

@media (max-width: 768px) {
  .hero-container {
    flex-direction: column;
  }

  .slogan-section,
  .hero-section {
    flex: none;
    min-height: 50vh;
    padding: 2rem 1.5rem;
  }

  .slogan-text {
    font-size: clamp(1.5rem, 7vw, 2.5rem);
    margin-bottom: 0.8rem;
  }

  .slogan-subtitle {
    font-size: clamp(1.2rem, 4vw, 1.8rem);
    margin-bottom: 1.5rem;
  }

  .brand-logo {
    height: clamp(3rem, 6vw, 5rem);
  }

  .tagline {
    font-size: clamp(0.8rem, 2vw, 1rem);
  }

  .hero-img {
    max-width: 100%;
    max-height: 50vh;
  }

  .hero-content {
    max-width: 300px;
    height: 100%;
  }

  .charger-placeholder {
    width: 60px;
    height: 60px;
    font-size: 0.7rem;
  }

  .charger-secondary {
    top: 15%;
    right: 5%;
  }
}

@media (max-width: 480px) {
  .slogan-section,
  .hero-section {
    padding: 1.5rem 1rem;
    min-height: 45vh;
  }

  .slogan-text {
    font-size: clamp(1.3rem, 6vw, 2rem);
    line-height: 1.1;
  }

  .slogan-subtitle {
    font-size: clamp(1rem, 3.5vw, 1.5rem);
  }

  .brand-logo {
    height: clamp(2.5rem, 5vw, 4rem);
  }

  .tagline {
    font-size: clamp(0.7rem, 1.8vw, 0.9rem);
  }

  .hero-img {
    max-height: 50vh;
  }

  .hero-content {
    max-width: 250px;
    height: 100%;
  }

  .charger-placeholder {
    width: 50px;
    height: 50px;
    font-size: 0.6rem;
  }
}

@media (max-width: 320px) {
  .slogan-section,
  .hero-section {
    padding: 1rem 0.8rem;
  }

  .slogan-text {
    font-size: 1.5rem;
  }

  .slogan-subtitle {
    font-size: 1.1rem;
  }

  .brand-logo {
    height: 3rem;
  }

  .tagline {
    font-size: 0.7rem;
  }

  .hero-content {
    max-width: 200px;
    height: 100%;
  }

  .charger-body {
    width: 60px;
    height: 100px;
  }

  .charger-body.small {
    width: 45px;
    height: 75px;
  }
}

/* Landscape orientation adjustments */
@media (max-height: 500px) and (orientation: landscape) {
  .hero-container {
    flex-direction: row;
  }

  .slogan-section,
  .hero-section {
    flex: 1;
    min-height: 100vh;
    padding: 1rem;
  }

  .slogan-text {
    font-size: clamp(1.2rem, 4vw, 2rem);
  }

  .slogan-subtitle {
    font-size: clamp(1rem, 3vw, 1.5rem);
  }

  .tagline {
    font-size: clamp(0.7rem, 1.5vw, 0.9rem);
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .charger-body,
  .charger-screen {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus styles for accessibility */
.charger-body:focus {
  outline: 2px solid #ffd700;
  outline-offset: 4px;
}
