/* Hero Section Styles */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 700px;
    overflow: hidden;
/*    color: #fff;*/
}

/* Background Elements */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background-color: rgba(15, 23, 42, 0.7); */
    z-index: 1;
}

.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient( circle at 70% 50%, rgba(56, 189, 248, 0.15) 0%, rgba(15, 23, 42, 0) 70% );
    z-index: 2;
}

/* Particle Effects */
.particle-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background-color: rgba(56, 189, 248, 0.6);
    border-radius: 50%;
    opacity: 0;
}

@for $i from 1 through 20 {
    .particle-# {
        $i
    }
{
    top: random(100) * 1%;
    left: random(100) * 1%;
}

}

/* Financial Grid */
.financial-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.grid-line {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.05);
}

.vertical {
    width: 1px;
    height: 100%;
    top: 0;
}

.horizontal {
    height: 1px;
    width: 100%;
    left: 0;
}

@for $i from 1 through 15 {
    .line-v-# {
        $i
    }

{
    left: ($i * 6.66) * 1%;
}

}

@for $i from 1 through 8 {
    .line-h-# {
        $i
    }

{
    top: ($i * 12.5) * 1%;
}

}

/* Chart Elements */
.chart-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    z-index: 3;
}

.chart-line {
    position: absolute;
    bottom: 20%;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient( 90deg, rgba(56, 189, 248, 0), rgba(56, 189, 248, 0.3), rgba(56, 189, 248, 0) );
    transform-origin: left center;
    transform: scaleX(0);
}

.chart-points {
    position: absolute;
    bottom: 20%;
    left: 0;
    width: 100%;
    height: 2px;
}

.chart-point {
    position: absolute;
    width: 4px;
    height: 4px;
    background-color: #38bdf8;
    border-radius: 50%;
    bottom: 0;
    transform: translate(-50%, 50%);
    opacity: 0;
}

@for $i from 1 through 10 {
    .point-# {
        $i
    }

{
    left: ($i * 10) * 1%;
}

}

.candlesticks {
    position: absolute;
    bottom: 20%;
    left: 0;
    width: 100%;
    height: 100px;
}

.candlestick {
    position: absolute;
    bottom: 0;
    width: 8px;
    opacity: 0;
}

.candle-body {
    position: absolute;
    width: 100%;
    background-color: #38bdf8;
    border-radius: 1px;
}

.candle-wick-top,
.candle-wick-bottom {
    position: absolute;
    left: 50%;
    width: 1px;
    background-color: rgba(255, 255, 255, 0.5);
    transform: translateX(-50%);
}

@for $i from 1 through 12 {
    .candle-# {
        $i
    }

{
    left: (($i * 8) - 4) * 1%;
    height: random(40) + 10px;
}

}

/* Lightning Effects */
.lightning-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
}

.lightning {
    position: absolute;
    background-color: rgba(56, 189, 248, 0.7);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    opacity: 0;
}

.lightning-1 {
    top: 20%;
    right: 30%;
    width: 20px;
    height: 30px;
    transform: rotate(180deg);
}

.lightning-2 {
    top: 40%;
    right: 20%;
    width: 15px;
    height: 25px;
    transform: rotate(180deg);
}

.lightning-3 {
    top: 60%;
    right: 40%;
    width: 25px;
    height: 40px;
    transform: rotate(180deg);
}

/* Hero Content */
.hero-container {
    position: relative;
    z-index: 10;
    height: 100%;
}

.hero-content-row {
    height: 100%;
    padding-top: 80px;
    padding-bottom: 80px;
}

.hero-content {
    max-width: 600px;
}

.hero-subtitle {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    opacity: 0;
}

.subtitle-text {
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #38bdf8;
}

.subtitle-line {
    height: 1px;
    width: 0;
    background-color: #38bdf8;
    margin-left: 15px;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.title-line {
    overflow: hidden;
    height: 5rem;
}

.word {
    display: inline-block;
    transform: translateY(100%);
    opacity: 0;
}

.hero-description {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 500px;
    opacity: 0;
}

.hero-cta {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    opacity: 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: #38bdf8;
    color: #fff;
    border: none;
}

.btn-outline {
    background-color: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-icon {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.btn-primary:hover {
    background-color: #0ea5e9;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(14, 165, 233, 0.3);
}

    .btn-primary:hover .btn-icon {
        transform: translateX(4px);
    }

.btn-outline:hover {
    border-color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.1);
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    opacity: 0;
}

.stat-item {
    display: flex;
    align-items: center;
    margin-right: 20px;
}

.stat-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    color: #38bdf8;
}

.stat-text {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    height: 400px;
    opacity: 0;
}

.card-visual {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    perspective: 1000px;
    width: 300px;
    height: 190px;
}

.card-container {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.8s;
}

.credit-card {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.card-front {
    background: linear-gradient(135deg, #38bdf8, #0284c7);
    display: flex;
    flex-direction: column;
}

.card-back {
    background-color: #1e293b;
    transform: rotateY(180deg);
}

.card-chip {
    width: 40px;
    height: 30px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border-radius: 5px;
    margin-bottom: 20px;
}

.card-logo {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 60px;
    height: 30px;
}

    .card-logo img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

.card-number {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    letter-spacing: 2px;
    margin-bottom: 20px;
    margin-top: auto;
}

.card-details {
    display: flex;
    justify-content: space-between;
    font-size: 0.6rem;
    margin-bottom: 5px;
    opacity: 0.7;
}

.card-name,
.card-date {
    font-size: 0.9rem;
    font-weight: 500;
}

.card-stripe {
    width: 100%;
    height: 40px;
    background-color: #000;
    margin: 20px 0;
}

.card-signature {
    background-color: #fff;
    height: 40px;
    margin: 0 20px;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.signature-line {
    width: 70%;
    height: 2px;
    background: repeating-linear-gradient( 90deg, #999, #999 2px, transparent 2px, transparent 4px );
}

.card-cvv {
    font-size: 0.8rem;
    color: #000;
    font-weight: 600;
}

.card-info {
    padding: 20px;
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
}

.device-visual {
    position: absolute;
    bottom: 20px;
    right: 0;
    width: 120px;
    height: 180px;
    transform: rotate(15deg);
}

.device-screen {
    width: 100%;
    height: 70%;
    background-color: #1e293b;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
    padding: 10px;
}

.screen-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.payment-amount {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.payment-status {
    font-size: 0.7rem;
    font-weight: 600;
    color: #10b981;
    margin-bottom: 10px;
}

.payment-icon {
    font-size: 1.5rem;
    color: #10b981;
}

.device-body {
    width: 100%;
    height: 30%;
    background-color: #334155;
    border-radius: 0 0 8px 8px;
}

.device-buttons {
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #64748b;
}

.savings-badge {
    position: absolute;
    top: 20px;
    left: 0;
    width: 100px;
    height: 100px;
    background-color: #ef4444;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(239, 68, 68, 0.3);
    transform: rotate(-15deg);
}

.badge-content {
    text-align: center;
}

.badge-title {
    font-size: 0.7rem;
    font-weight: 600;
}

.badge-value {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
}

.badge-text {
    font-size: 0.7rem;
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.float-element {
    position: absolute;
    width: 30px;
    height: 30px;
    background-color: rgba(56, 189, 248, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #38bdf8;
}

.element-1 {
    top: 30%;
    left: 20%;
}

.element-2 {
    top: 60%;
    left: 10%;
}

.element-3 {
    top: 40%;
    right: 10%;
}

/* Hero Navigation */
.hero-nav {
    position: absolute;
    bottom: 30px;
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.nav-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .nav-arrow:hover {
        background-color: rgba(56, 189, 248, 0.3);
    }

.nav-indicators {
    display: flex;
    gap: 10px;
    margin: 0 20px;
}

.indicator {
    width: 30px;
    height: 3px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .indicator.active {
        background-color: #38bdf8;
        width: 50px;
    }

/* Responsive Adjustments */
@media (max-width: 1199.98px) {
    .hero-title {
        font-size: 4rem;
    }

    .title-line {
        height: 4.5rem;
    }
}

@media (max-width: 991.98px) {
    .hero-section {
        height: auto;
        min-height: 800px;
    }

    .hero-content-row {
        padding-top: 60px;
        padding-bottom: 100px;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .title-line {
        height: 4rem;
    }

    .hero-visual {
        margin-top: 60px;
    }
}

@media (max-width: 767.98px) {
    .hero-title {
        font-size: 3rem;
    }

    .title-line {
        height: 3.5rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .hero-stats {
        flex-direction: column;
        gap: 10px;
    }

    .card-visual {
        width: 260px;
        height: 165px;
    }
}

@media (max-width: 575.98px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .title-line {
        height: 3rem;
    }

    .hero-subtitle {
        font-size: 0.8rem;
    }

    .card-visual {
        width: 240px;
        height: 152px;
    }

    .card-number {
        font-size: 1rem;
    }
}
