/* ==========================================================================
   Hero Section
   ========================================================================== */

/* Base Hero Styles
   ========================================================================== */
.hero {
    padding-top: calc(var(--spacing-unit) + 60px);
}

.hero-content {
    text-align: center;
    z-index: 2;
    position: relative;
    width: 100%;
    max-width: 880px;
    margin: 0 auto;
    padding-top: 45px;
}

.hero h1 {
    font-size: 32px;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-weight: 500;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.hero h1 br {
    display: block;
    margin-bottom: -0.2em;
}

/* Hero Frame & Image Gallery
   ========================================================================== */
.hero-frame {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    aspect-ratio: 16/9;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
}

.hero-frame:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.25);
}

.frame-content {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.frame-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    animation: imageRotation 14s infinite;
}

/* Image Animation Delays */
.frame-image:nth-child(1) { animation-delay: 0s; }
.frame-image:nth-child(2) { animation-delay: 2s; }
.frame-image:nth-child(3) { animation-delay: 4s; }
.frame-image:nth-child(4) { animation-delay: 6s; }
.frame-image:nth-child(5) { animation-delay: 8s; }
.frame-image:nth-child(6) { animation-delay: 10s; }
.frame-image:nth-child(7) { animation-delay: 12s; }

@keyframes imageRotation {
    0% { opacity: 1; }
    14.28% { opacity: 1; }
    14.29% { opacity: 0; }
    100% { opacity: 0; }
}

.frame-image.active {
    opacity: 1;
    display: block;
}

/* CTA Button Styles
   ========================================================================== */
.hero .cta-button {
    margin-bottom: 38px;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    flex-direction: row-reverse;
    padding: 6px 10px;
    background-color: #4C6FFF;
    color: var(--white);
    text-decoration: none;
    font-weight: 400;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    font-size: 16px;
    border-radius: 10px;
    line-height: 1;
    gap: 8px;
}

.cta-button:hover {
    background-color: #3955CC;
    opacity: 1;
    transform: translateX(-4px);
}

.cta-icon {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.cta-button:hover .cta-icon {
    transform: translateX(-4px);
}

.cta-button span {
    display: inline-block;
}

/* Text Columns
   ========================================================================== */
.text-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    max-width: 650px;
    margin: 15px auto 0px;
    text-align: right;
}

.text-column {
    max-width: 280px;
    margin: 0 auto;
}

.text-column p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-color);
    opacity: 0.85;
    margin: 0;
}

/* Text Effects
   ========================================================================== */
.rotating-text {
    display: inline-block;
    opacity: 1;
    transition: opacity 0.3s ease-out;
}

.rotating-text.fade {
    opacity: 0;
}

.subtitle-text {
    color: rgba(26, 26, 26, 0.4);
}

/* Responsive Design
   ========================================================================== */
@media (max-width: 768px) {
    .hero {
        padding-top: calc(var(--spacing-unit) + 80px);
    }
    
    .hero-content {
        max-width: 100%;
        padding-top: 0;
    }

    .hero-frame {
        margin-bottom: 32px;
        border-radius: 8px;
        max-width: 100%;
    }
    
    .hero h1 {
        font-size: 28px;
        line-height: 1.2;
        margin-bottom: 12px;
    }

    .hero .cta-button {
        margin-bottom: 32px;
    }

    /* Section Headings Responsive */
    .features h2,
    .about h2,
    .process h2 {
        font-size: 32px;
    }

    /* CTA Button Responsive */
    .cta-button {
        padding: 10px 20px;
        font-size: 18px;
    }

    .cta-icon {
        width: 14px;
        height: 14px;
    }

    /* Text Columns Responsive */
    .text-columns {
        grid-template-columns: 1fr;
        gap: 24px;
        margin: 32px auto;
        padding: 0 var(--spacing-unit);
    }

    .text-column p {
        font-size: 15px;
    }
}