/* static/css/components/hero.css */
/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/* Hero Component */
.hero {
    position: relative;
    width: 100%;
    background: var(--bg-primary);
    overflow: hidden;
}

/* Header Integration */
.hero .header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: transparent;
    margin-top: 0;
}

/* Hero Container */
.hero__container {
    position: relative;
    height: 100%;
    max-width: 100%;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    z-index: 2;
}

/* Image Side - 40% on desktop */
.hero__image-side {
    position: relative;
    order: 2;
    height: clamp(300px, 50vh, 500px);
    overflow: hidden;
}

.hero__image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero__main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero__stats {
    position: absolute;
    bottom: clamp(1rem, 4vw, 2rem);
    right: clamp(1rem, 4vw, 2rem);
    backdrop-filter: blur(10px);
    padding: clamp(1rem, 3vw, 1.5rem);
    border-radius: clamp(0.5rem, 2vw, 1rem);
    text-align: left;
    z-index: 11;
}

.hero__ctacontain {
    display: flex;
    gap: clamp(16px, 2vw, 18px);
}

.hero__stats-number {
    color: #FFF;
    font-family: var(--font-family);
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    font-weight: 600;
    line-height: 1.2;
    margin: 0;
}

.hero__stats-label {
    color: #E3E1EB;
    font-family: 'Poppins', sans-serif;
    font-size: clamp(0.75rem, 2.5vw, 1rem);
    font-weight: 500;
    line-height: 1.5;
    margin: 0;
}

/* Gradient Overlays */
.hero__gradient-right {
  position: absolute;
  bottom: 10%;
  right: -10%;
  width: 353.296px;
  height: 271.711px;
  transform: rotate(-98.161deg);
  flex-shrink: 0;
  opacity: 0.87;
  background: linear-gradient(322deg, #EB1260 7.42%, #040548 82.2%);
  filter: blur(136.21163940429688px);
  z-index: 2;
  pointer-events: none;
}

.hero__gradient-left {
  position: absolute;
  bottom: 10%;
  right: 100px;
  width: 353.296px;
  width: clamp(2rem, 8vw, 4rem);
  height: 100%;
  border-radius: 353.296px;
  opacity: 0.87;
  background: linear-gradient(322deg, #EB1260 7.42%, #040548 82.2%);
  filter: blur(136.21163940429688px);
  z-index: 1;
  pointer-events: none;
  display: none;
}

.hero__gradient-bottom {
  position: absolute;
  bottom: 10%;
  right: 100px;
  width: 353.296px;
  height: 271.711px;
  transform: rotate(-98.161deg);
  flex-shrink: 0;
  opacity: 0.87;
  background: linear-gradient(322deg, #EB1260 7.42%, #040548 82.2%);
  filter: blur(136.21163940429688px);
  z-index: 10000;
  pointer-events: none;
  display: none;
}

/* Content Side - 60% on desktop */
.hero__content-side {
  order: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Changed from center to space-between */
  padding: clamp(6rem, 10vw, 8rem) clamp(1rem, 4vw, 2rem) clamp(2rem, 4vw, 3rem);
  background: var(--bg-primary);
  position: relative;
  z-index: 2;
  min-height: 100vh; /* Ensure full height for space-between to work */
}

/* Main content container - will be centered */
.hero__content {
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 3vw, 1.5rem);
  max-width: clamp(300px, 90vw, 621px);
  flex: 1; /* Take available space */
  justify-content: center; /* Center the main content vertically */
}

.hero__tag {
    display: inline-flex;
    width: fit-content;
    padding: clamp(0.6rem, 2vw, 0.8rem) clamp(0.8rem, 3vw, 1.1rem);
    justify-content: center;
    align-items: center;
    border-radius: clamp(2rem, 5vw, 2.65rem);
    border: clamp(0.5px, 0.1vw, 0.85px) solid #040548;
    background: radial-gradient(50.91% 97.54% at 50% 2.46%, #11127C 0%, #040548 100%);
    color: #FFF;
    font-family: 'Poppins', sans-serif;
    font-size: clamp(0.75rem, 2.5vw, 0.875rem);
    font-weight: 400;
    line-height: 1.8;
    text-decoration: none;
    transition: all var(--transition-base);
}

.hero__tag:hover {
    transform: translateY(-1px);
    color: var(--text-primary);
    box-shadow: 0px clamp(4px, 1vw, 8px) clamp(8px, 2vw, 16px) rgba(17, 18, 124, 0.4);
}

.hero__title {
    color: #E3E1EB;
    font-family: var(--font-family);
    font-size: clamp(2rem, 7vw, 3.5rem);
    font-weight: 600;
    line-height: 1.2;
    margin: 0;
}

.hero__description {
    color: #E3E1EB;
    font-family: 'Poppins', sans-serif;
    font-size: clamp(0.875rem, 3vw, 1rem);
    font-weight: 500;
    line-height: 1.5;
    margin: 0;
}

.hero__cta-btn {
    display: inline-flex;
    width: fit-content;
    padding: clamp(0.75rem, 3vw, 0.75rem) clamp(1rem, 4vw, 1rem);
    justify-content: center;
    align-items: center;
    gap: clamp(0.4rem, 1.5vw, 0.5rem);
    border-radius: clamp(2rem, 5vw, 2.65rem);
    border: clamp(0.5px, 0.1vw, 0.85px) solid #EB1260;
    background: radial-gradient(50.91% 97.54% at 50% 2.46%, #7B1B3D 0%, #EB1260 100%);
    color: #E3E1EB;
    font-family: 'Poppins', sans-serif;
    font-size: clamp(0.875rem, 3vw, 1rem);
    font-weight: 500;
    line-height: 1.5;
    cursor: pointer;
    transition: all var(--transition-base);
    border: none;
}

.hero__cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0px clamp(6px, 2vw, 12px) clamp(12px, 3vw, 24px) rgba(235, 18, 96, 0.4);
}

/* Bottom Info Section - Horizontal Layout */
.hero__bottom-info {
    margin-top: auto;
}

.hero__unlock-section {
    margin-bottom: clamp(1rem, 2vw, 1.5rem);
}

.hero__unlock-title {
    color: #FFF;
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1rem, 3vw, 1.25rem);
    font-weight: 600;
    line-height: 1.2;
    max-width: 130px;
    margin: 0;
}

.hero__info-horizontal {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 2vw, 1.5rem);
    flex-wrap: wrap;
}

.hero__server-images {
    height: clamp(48px, 6vw, 72px);
    flex-shrink: 0;
}

.hero__server-img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

.hero__separator {
    display: flex;
    align-items: center;
    height: clamp(48px, 6vw, 81px);
    flex-shrink: 0;
}

.hero__image-side::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(180deg, transparent 0%, #060825 100%);
    z-index: 10;
  }

.hero__separator svg {
    height: 100%;
    width: auto;
}

.hero__impact-text {
    color: #E3E1EB;
    font-family: 'Poppins', sans-serif;
    font-size: clamp(0.875rem, 3vw, 1rem);
    font-weight: 500;
    line-height: 1.5;
    max-width: clamp(200px, 40vw, 300px);
    flex: 1;
}

/* Decorative Gradient */
.hero__decorative-gradient {
    position: absolute;
    bottom: clamp(2rem, 6vw, 4rem);
    left: clamp(2rem, 6vw, 4rem);
    width: clamp(200px, 30vw, 353px);
    height: clamp(150px, 20vw, 272px);
    border-radius: 50%;
    opacity: 0.87;
    background: linear-gradient(322deg, #EB1260 7.42%, #040548 82.2%);
    filter: blur(clamp(60px, 12vw, 136px));
    transform: rotate(-98.161deg);
    z-index: 1;
    pointer-events: none;
}

/* Desktop Layout - 40/60 split */
@media (min-width: 1024px) {
    .hero__container {
        grid-template-columns: 40% 60%;
        max-width: none;
        gap: clamp(32px, 1.5vw, 100px);
        width: 100%;
    }
    
    .hero__image-side {
        order: 1;
        height: 100vh;
    }
    
    .hero__content-side {
        order: 2;
        justify-content: center;
        padding: clamp(8rem, 12vw, 10rem) clamp(2rem, 4vw, 4rem) clamp(3rem, 6vw, 4rem);
    }
    
    .hero__info-horizontal {
        flex-wrap: nowrap;
    }
}

/* Mobile-specific */
@media (max-width: 1023px) {
    .hero {
        height: auto;
        min-height: 100vh;
    }

    .hero__ctacontain {
        flex-direction: column;
    }
    
    .hero__ctacontain > a {

        width: 100%;
    }

    .hero__container {
        height: auto;
        min-height: 100vh;
    }
    
    .hero__content-side {
        min-height: 40vh;
    }
    
    .hero__bottom-info {
        display: none;
    }
}

/* Messages styling */
.messages-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1000;
}

.alert {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 1rem;
    margin-bottom: 0.5rem;
    border-radius: 0.5rem;
    color: white;
    z-index: 1000; /* Ensure it appears above other elements */
    animation: fadeOut 5s ease-in-out forwards; /* Add fade-out animation */
}

.alert--success { background: var(--accent-secondary); }
.alert--error { background: var(--accent-danger); }
.alert--warning { background: var(--accent-warning); }
.alert--info { background: var(--accent-primary); }

/* Fade-out animation */
@keyframes fadeOut {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        visibility: hidden;
    }
}

/* Dark theme adjustments */
[data-theme="light"] .hero {
    background: var(--bg-primary);
}

[data-theme="light"] .hero__content-side {
    background: var(--bg-primary);
}

[data-theme="light"] .hero__bg-left,
[data-theme="light"] .hero__bg-right {
    background: linear-gradient(90deg, var(--bg-primary) 0%, transparent 100%);
}

[data-theme="light"] .hero__stats {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

[data-theme="light"] .hero__stats-number {
    color: var(--text-primary);
}

[data-theme="light"] .hero__stats-label {
    color: var(--text-secondary);
}