/* Hero Section Styles */
@import url("https://fonts.googleapis.com/css2?family=Raleway:wght@400;700&display=swap");

.hero-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    /* Using margin instead of padding */
    margin-left: 16px;
    margin-right: 16px;
}

.hero-text-container {
    width: 100%;
    max-width: 1200px;
}

.hero-headline {
    font-size: clamp(28px, 4.5vw, 90px);
    font-weight: bold;
    margin-bottom: 16px;
    max-width: 75%;

    background-clip: text;
    color: #00F6A7;
}

.hero-subheading {
    font-size: clamp(22px, 3.15vw, 63px);
    color: white;
    margin-bottom: 20px;
    max-width: 65%;
}

.hero-cta-container {
    margin-top: 10px;
    position: relative;
}

/* Neon button styling combined with original styles */
.hero-cta-button {
    position: relative;
    background-color: transparent;
    border: none;
    padding: 15px 36px;
    cursor: pointer;
    transition: 0.5s;
    overflow: hidden;
    display: inline-block;
}

/* Preserve the original content styling */
.cta-content {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* Keep the original text color from gradient */
.cta-text {
    color: #00F6A7;
    font-size: 14px;
    transition: font-size 0.2s;
    position: relative;
    z-index: 2;
}

.cta-text-wrapper {
    margin-right: 4px;
}

/* Original animation for line */
.cta-line {
    width: 0;
    height: 2px;
    background-color: #00F6A7;
    margin: 0 4px;
    transition: width 0.8s ease-out;
    position: relative;
    z-index: 2;
}

/* Original animation for icon */
.cta-icon {
    height: 20px;
    margin-left: 4px;
    transition: transform 0.8s ease-out;
    position: relative;
    z-index: 2;
}

/* Hover effects - combining both styles */
.hero-cta-button:hover {
    background: #00F6A7;
    color: #121212;
    box-shadow: 0 0 5px #00F6A7, 0 0 25px #00F6A7, 0 0 50px #00F6A7, 0 0 100px #00F6A7;
    -webkit-box-reflect: below 1px linear-gradient(transparent, rgba(0, 0, 0, 0.2));
}

.hero-cta-button:hover .cta-text {
    font-size: 16px;
    color: #121212;
}

.hero-cta-button:hover .cta-line {
    width: 50px;
    background-color: #121212;
}

.hero-cta-button:hover .cta-icon {
    transform: rotate(360deg);
    filter: brightness(0) saturate(100%);
}

/* Fixed: Hide border lines when hovering */
.hero-cta-button:hover .border-line {
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Neon border animations - MODIFIED for two chasing lines */
.hero-cta-button span.border-line {
    position: absolute;
    display: block;
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Primary line set */
/* Top border - first line */
.hero-cta-button span.border-line:nth-child(1) {
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00F6A7);
    animation: animate1 2s linear infinite;
}

@keyframes animate1 {
    0% {
        left: -100%;
    }
    50%, 100% {
        left: 100%;
    }
}

/* Right border - first line */
.hero-cta-button span.border-line:nth-child(2) {
    top: -100%;
    right: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, transparent, #00F6A7);
    animation: animate2 2s linear infinite;
    animation-delay: 0.5s;
}

@keyframes animate2 {
    0% {
        top: -100%;
    }
    50%, 100% {
        top: 100%;
    }
}

/* Bottom border - first line */
.hero-cta-button span.border-line:nth-child(3) {
    bottom: 0;
    right: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(270deg, transparent, #00F6A7);
    animation: animate3 2s linear infinite;
    animation-delay: 1s;
}

@keyframes animate3 {
    0% {
        right: -100%;
    }
    50%, 100% {
        right: 100%;
    }
}

/* Left border - first line */
.hero-cta-button span.border-line:nth-child(4) {
    bottom: -100%;
    left: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(360deg, transparent, #00F6A7);
    animation: animate4 2s linear infinite;
    animation-delay: 1.5s;
}

@keyframes animate4 {
    0% {
        bottom: -100%;
    }
    50%, 100% {
        bottom: 100%;
    }
}

/* Secondary line set - chasing the first set */
/* Top border - second line */
.hero-cta-button span.border-line:nth-child(5) {
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #23A67D);
    animation: animate1 2s linear infinite;
    animation-delay: 1s;
}

/* Right border - second line */
.hero-cta-button span.border-line:nth-child(6) {
    top: -100%;
    right: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, transparent, #23A67D);
    animation: animate2 2s linear infinite;
    animation-delay: 1.5s;
}

/* Bottom border - second line */
.hero-cta-button span.border-line:nth-child(7) {
    bottom: 0;
    right: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(270deg, transparent, #23A67D);
    animation: animate3 2s linear infinite;
    animation-delay: 0s;
}

/* Left border - second line */
.hero-cta-button span.border-line:nth-child(8) {
    bottom: -100%;
    left: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(360deg, transparent, #23A67D);
    animation: animate4 2s linear infinite;
    animation-delay: 0.5s;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .hero-content {
        margin-left: 16px;
        margin-right: 16px;
    }
    
    .hero-headline {
        font-size: 28px;
        max-width: 95%;
    }
    
    .hero-subheading {
        font-size: 22px;
        max-width: 85%;
    }
    
    .hero-cta-button {
        padding: 12px 30px;
    }
}

/* Medium screens */
@media screen and (min-width: 769px) and (max-width: 1200px) {
    .hero-content {
        margin-left: 28px;
        margin-right: 28px;
    }
}

/* Larger screens */
@media screen and (min-width: 1201px) {
    .hero-content {
        margin-left: 32px;
        margin-right: 32px;
    }
}

/* Reveal Animation */
.reveal-animation {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s, transform 0.8s ease-out;
}

.reveal-animation.visible {
    opacity: 1;
    transform: translateY(0);
}