/* ==========================================================
   SMALL PHONES (320-375px) - BASE STYLES
========================================================== */

/* ============================
    HERO SECTION
============================ */
.hero-section {
    position: relative;
    width: 100%;
    height: 43vh;
    overflow: hidden;
    z-index: 1;
}

/* Top & bottom fade overlays */
.hero-section::before,
.hero-section::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    z-index: 50;
    pointer-events: none;
}

.hero-section::before {
    top: 0;
    height: 10%;
    background: linear-gradient(to top, transparent, var(--color-bg));
}

.hero-section::after {
    bottom: 0;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, transparent 20%, #000 100%);
}

/* Canvas + Split Slider */
#main {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.hero-split-slider {
    position: absolute;
    inset: 0;
    display: flex;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.hero-split-slider .panel {
    flex: 1;
    background-size: 500% 100%;
    background-position: center;
    transform: translateY(0) rotate(0);
    transition: transform 1.2s cubic-bezier(.7,0,.3,1);
}

.panel.exit-up {
    transform: translateY(-100%) rotate(5deg);
}

.panel.exit-down {
    transform: translateY(100%) rotate(-5deg);
}

.panel.pre-enter-up {
    transform: translateY(-100%);
}

.panel.pre-enter-down {
    transform: translateY(100%);
}

.panel.enter {
    transform: translateY(0) rotate(0);
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 90;
    max-width: 1200px;
    margin: 0 auto;
    padding: 5.5rem 1rem 2rem;
    color: var(--color-text);
}

.hero-badge {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 2rem;
    font-size: 0.55rem;
    color: var(--color-text-light);
    backdrop-filter: blur(0.625rem);
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

.main-title {
    text-transform: uppercase;
    margin-bottom: 0;
    letter-spacing: 0;
    font-size: clamp(1.3rem, 6vw, 1.65rem);
    line-height: 1.3;
}

.animated-gradient-text {
    background: linear-gradient(
        135deg,
        #667eea 0%,
        #764ba2 25%,
        #f093fb 50%,
        #667eea 75%,
        #764ba2 100%
    );
    background-size: 300%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradientFlow 6s ease-in-out infinite;
    position: relative;
    z-index: 200;
}

@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-content p {
    font-size: 0.9rem;
    line-height: 1.45;
    margin-top: 0.5rem;
}

/* Scroll Hint - Hidden on mobile, shown on desktop (1025px+) */
.scroll-hint-hero {
    display: none;
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 101;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    animation: fadeIn 1s ease 0.8s both;
}

.scroll-arrow {
    font-size: 2rem;
    animation: bounce 2s infinite;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

/* ============================
    TECHNOLOGY TEXT
============================ */
.text {
    text-align: left;
    margin-top: 0;
    padding: 0 1rem;
}

.text-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    text-align: center;
    margin-top: 2rem;
    margin-bottom: 3rem;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb, #764ba2, #667eea);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text p {
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.text-closing {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 2rem;
}

.text-cta {
    font-style: italic;
    font-weight: 500;
    color: rgba(240, 147, 251, 0.9);
    margin-top: 1.5rem;
    font-size: 0.65rem;
}

/* ==========================================================
   LARGER PHONES (376-480px)
========================================================== */
@media (min-width: 376px) {
    /* Hero Section */
    .hero-section {
        height: 50vh;
    }

    .hero-section::after {
        height: 70%;
    }

    .main-title {
        font-size: 1.65rem;
    }

    .hero-badge {
        padding: 0.4rem 0.8rem;
        font-size: 0.6rem;
        margin-bottom: 1.5rem;
    }

    .hero-content {
        padding: 6rem 1.5rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    #subtile {
        font-size: 0.6rem;
    }

    /* Technology Text */
    .text {
        margin-top: 0;
        padding: 0 1.5rem;
    }

    .text-section-title {
        font-size: 1.375rem;
        margin-bottom: 3rem;
    }

    .text p {
        font-size: 1rem;
        line-height: 1.7;
        margin-bottom: 1.25rem;
    }

    .text-cta {
        font-size: 0.8rem;
    }
}

/* ==========================================================
   TABLET (481-768px)
========================================================== */
@media (min-width: 481px) {
    /* Hero Section */
    .hero-section {
        height: 58vh;
    }

    .main-title {
        font-size: 2rem;
    }

    .hero-badge {
        padding: 0.5rem 1rem;
        font-size: 0.7rem;
    }

    .hero-content {
        padding: 7rem 2rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }

    #subtile {
        font-size: 0.75rem;
    }

    /* Technology Text */
    .text {
        margin-top: 2rem;
        padding: 0 2rem;
    }

    .text-section-title {
        font-size: 1.5rem;
        margin-bottom: 3rem;
    }

    .text p {
        font-size: 1.1rem;
        line-height: 1.75;
        margin-bottom: 1.5rem;
    }

    .text-cta {
        font-size: 0.9rem;
    }
}

/* ==========================================================
   SMALL DESKTOP (769-1024px)
========================================================== */
@media (min-width: 769px) {
    /* Hero Section */
    .hero-section {
        height: 65vh;
    }

    .main-title {
        font-size: 2.5rem;
    }

    .hero-badge {
        padding: 0.6rem 1.2rem;
        font-size: 0.8rem;
    }

    .hero-content {
        padding: 8rem 3rem;
    }

    .hero-content p {
        font-size: 1.3rem;
    }

    #subtile {
        font-size: 0.9rem;
    }

    /* Technology Text */
    .text {
        margin-top: 4rem;
        padding: 0 3rem;
    }

    .text-section-title {
        font-size: 1.75rem;
        margin-bottom: 3.5rem;
    }

    .text p {
        font-size: 1.25rem;
        line-height: 1.8;
        margin-bottom: 1.75rem;
    }

    .text-cta {
        font-size: 1rem;
    }
}

/* ==========================================================
   DESKTOP (1025-1280px)
========================================================== */
@media (min-width: 1025px) {
    /* Hero Section */
    .hero-section {
        height: 90vh;
    }

    .hero-section::after {
        height: 25%;
    }

    /* Show scroll hint on desktop */
    .scroll-hint-hero {
        display: block;
    }

    .main-title {
        font-size: 3rem;
        text-align: right;
    }

    .hero-badge {
        padding: 0.7rem 1.4rem;
        font-size: 0.85rem;
    }

    .hero-content {
        padding: 12rem 4rem 9rem;
        text-align: right;
    }

    .hero-content p {
        font-size: 1.4rem;
    }

    #subtile {
        font-size: 1rem;
    }

    /* Technology Text */
    .text {
        margin-top: 8rem;
        padding: 0 4rem;
    }

    .text-section-title {
        font-size: 2rem;
        margin-bottom: 6rem;
    }

    .text p {
        font-size: 1.4rem;
        line-height: 1.85;
        margin-bottom: 2rem;
    }

    .text-cta {
        font-size: 1.1rem;
    }
}

/* ==========================================================
   LARGE DESKTOP (1281px+)
========================================================== */
@media (min-width: 1281px) {
    /* Hero Section */
    .hero-section {
        height: 85vh;
    }

    .scroll-hint-hero {
        bottom: 0.5rem;
    }

    .main-title {
        font-size: 3.5rem;
    }

    .hero-badge {
        padding: 0.8rem 1.6rem;
        font-size: 1.1rem;
    }

    .hero-content {
        padding: 10rem 4rem;
    }

    .hero-content p {
        font-size: 1.5rem;
    }

    #subtile {
        font-size: 1.5rem;
    }

    /* Technology Text */
    .text {
        margin-top: 9rem;
        padding: 0 4rem;
    }

    .text-section-title {
        font-size: 2.25rem;
        margin-bottom: 6.5rem;
    }

    .text p {
        font-size: 1.6rem;
        line-height: 1.9;
    }

    .text-cta {
        font-size: 1.2rem;
    }
}
