.hero {
    position: relative;
    width: 100%;
    padding: 0 5%;
    overflow: hidden;
    @media screen and (max-width: 992px) {
        padding: 0;
    }
}

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

.hero-content {
    margin-top: 100px;
    position: relative;
    flex-direction: column;
    z-index: 10;
    height: 100%;
    align-items: center;
    padding: 0 5%;
}

.text-container {
    flex: 1;
    max-width: 100%;
    text-align: center;
}

.title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 2rem;
    color: var(--primary);
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
}

.title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, rgba(245,197,24,0) 100%);
    border-radius: 2px;
}

.subtitle {
    font-size: clamp(1rem, 1.5vw, 1.5rem);
    font-weight: 300;
    max-width: 100%;
    margin: 0 auto 16px;
    opacity: 0;
    transform: translateY(20px);
    color: var(--dark);
    line-height: 1.6;
    padding: 0 20px;
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background-color: var(--primary);
    color: #FAFAFA;
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    box-shadow: 0 4px 15px rgba(245, 197, 24, 0.3);
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: 0.5s;
}

.cta-button:hover {
    background-color: rgba(245, 197, 24, 0.9);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(245, 197, 24, 0.6);
}

.cta-button:hover::before {
    left: 100%;
}

/* Phone Container */
.phone-container {
    position: relative;
    margin: auto 0;
    left: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    perspective: 1000px;
    z-index: 20;
    width: 100%;
    scale: 0.7;
}

.phone-mockup {
    width: 280px;
    height: 560px;
    border-radius: 40px;
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.3),
        0 0 0 12px var(--dark),
        0 0 0 14px #333,
        inset 0 0 20px rgba(0,0,0,0.2);
    z-index: 5;
    opacity: 0;
    transform: translateY(50px) rotate(0deg); 
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    transition: transform 0.5s ease-out;
}

/* Phone Bezel */
.phone-mockup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 36px;
    border: 2px solid rgba(255,255,255,0.1);
    pointer-events: none;
    z-index: 10;
}

/* Notch */
.phone-mockup::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 20px;
    background-color: var(--dark);
    border-radius: 0 0 15px 15px;
    z-index: 11;
}

/* Screen with Video */
.phone-screen {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border-radius: 30px;
    overflow: hidden;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.screen-video {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease;
}

.screen-video.active {
    opacity: 1;
}

/* Home Indicator */
.home-indicator {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: rgba(255,255,255,0.8);
    border-radius: 5px;
    z-index: 11;
}

/* App Buttons */
.app-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    opacity: 0;
    transform: translateY(20px);
    justify-content: center;
    width: 100%;
}

.app-button {
    height: 45px;
    transition: all 0.3s ease;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
    border-radius: 10px;
}

.app-button:hover {
    transform: translateY(-5px) scale(1.05);
    filter: drop-shadow(0 8px 16px rgba(0,0,0,0.4));
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    width: 100%;
    bottom: 24px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    @media screen and (min-width: 992px) {
        width: 90%;
    }
}

.scroll-text {
    margin-bottom: 10px;
    font-weight: 300;
    font-size: 0.9rem;
    color: var(--dark);
    animation: pulse 2s infinite;
}

.scroll-arrow {
    width: 20px;
    height: 30px;
    border: 2px solid var(--primary);
    border-radius: 10px;
    position: relative;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 50%;
    width: 4px;
    height: 4px;
    background-color: var(--primary);
    border-radius: 50%;
    transform: translateX(-50%);
    animation: scrollBounce 1.5s infinite;
}

/* Phone Glow Effect */
.phone-glow {
    position: relative;
    z-index: 1;
}

.phone-glow::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: radial-gradient(circle at center, rgba(245,197,24,0.4) 0%, rgba(245,197,24,0) 70%);
    border-radius: 60px;
    z-index: -1;
    animation: glowPulse 4s infinite alternate;
}

@keyframes glowPulse {
    0% { opacity: 0.3; transform: scale(0.95); }
    100% { opacity: 0.6; transform: scale(1.05); }
}

/* Floating animation for phone */
@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(0deg);
    }
    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

.floating {
    animation: float 6s ease-in-out infinite;
}

/* Desktop Styles (992px and up) */
@media (min-width: 992px) {
    .hero {
        height: 100vh;
    }
    .hero-content {
        display: flex;
        margin: 0;
        flex-direction: row;
        justify-content: space-between;
        padding: 0 10%;
        text-align: left;
    }
    
    .text-container {
        max-width: 50%;
        text-align: left;
    }
    
    .title::after {
        left: 0;
        transform: none;
    }
    
    .subtitle {
        margin: 0 auto 3rem;
        max-width: 600px;
        margin-left: 0;
        margin-right: 0;
        padding: 0;
        text-align: left;
    }
    
    .phone-container {
        position: absolute;
        right: 5%;
        margin: 0;
        width: auto;
        scale: 1;
    }
    
    .phone-mockup {
        width: 350px;
        height: 700px;
    }
    
    .app-buttons {
        justify-content: flex-start;
        width: auto;
    }
}

/* Larger phone sizes */
@media (min-width: 576px) and (max-width: 991px) {
    .scroll-indicator {
        display: none;
    }
    .phone-mockup {
        width: 300px;
        height: 600px;
    }
}

@media screen and (max-width: 400px) {
    .scroll-indicator {
        display: none;
    }
    .phone-mockup {
        width: 300px;
        height: 500px;
    }
}