/* Social Media Landing Page Styles */

.social-media-hero {
    position: relative;
    height:90vh;
    overflow: hidden;
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/social-media-bg (2).png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4.5px);
}

.container {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 40px 40px;
    z-index: 1;
}

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.text-content {
    flex: 2;
    margin-top:40px;
    max-width: 800px;
}

.hero-title {
    font-size: 55px;
    font-weight: 450;
    color: white;
    line-height: 1.1;
    margin-top:40px;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 24px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
    margin-bottom: 40px;
}

.app-buttons {
    display: flex;
    gap: 15px;
}

/* Learn More Button */
.learn-more-btn {
    display: inline-block;
    background: white;
    color: black;
    padding: 16px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
    position: relative;
    overflow: hidden;
}


.learn-more-btn:hover {
    background:black;
    color:white;
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.6);
}

.learn-more-btn:hover::before {
    left: 0;
}

.learn-more-btn:active {
    transform: translateY(-1px);
}

/* Mockup Devices Section */
.mockup-devices {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    min-height: 500px;
}

/* Device Wrapper Styles */
.device-wrapper {
    position: relative;
    transition: transform 0.3s ease;
    will-change: transform;
}

.tablet-wrapper {
    z-index: 2;
    animation: floatDevice 6s ease-in-out infinite;
}

.phone-wrapper {
    z-index: 3;
    animation: floatDevice 6s ease-in-out infinite;
    animation-delay: 1s;
}

/* Float Animation */
@keyframes floatDevice {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(1deg);
    }
}

/* Device Images */
.device-image {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius:20px;
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.4))
            drop-shadow(0 15px 40px rgba(0, 0, 0, 0.25));
    transition: transform 0.3s ease;
    opacity: 1;
}

.tablet-image {
    width: 500px;
    max-width: 90vw;
}

.phone-image {
    width: 320px;
    max-width: 60vw;
}

/* Hover Effects */
.device-wrapper:hover .device-image {
    transform: scale(1.05);
}

/* Parallax Effect Class (will be applied by JS) */
.device-wrapper.parallax {
    transition: transform 0.1s ease-out;
}

/* How the App Works Section */
.how-app-works {
    background: #f8f9fa;
    padding: 100px 0;
}

.works-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.section-main-title {
    font-size: 56px;
    font-weight: 300;
    color: #1a1a1a;
    margin-bottom: 80px;
    text-align: center;
    letter-spacing: -1px;
}

/* Work Item Container */
.work-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 80px;
    margin-bottom: 120px;
    position: relative;
    opacity: 1;
    transform: none;
}

.work-item:last-child {
    margin-bottom: 0;
}

/* Reverse Layout (Image Left, Text Right) - QUAN TRỌNG */
.work-item.reverse {
    flex-direction: row-reverse;
}

/* Work Content */
.work-content {
    flex: 1;
    max-width: 500px;
}

.work-number {
    display: block;
    font-size: 16px;
    color: #999;
    margin-bottom: 15px;
    font-weight: 300;
    letter-spacing: 1px;
}

.work-title {
    font-size: 42px;
    font-weight: 300;
    color: #1a1a1a;
    margin-bottom: 25px;
    line-height: 1.2;
}

.work-description {
    font-size: 18px;
    line-height: 1.8;
    color: #666;
    font-weight: 300;
}

/* Work Image */
.work-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.mockup-img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.15));
    transition: transform 0.3s ease;
}

.work-image:hover .mockup-img {
    transform: scale(1.05);
}

/* Additional Animations */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Performance Optimization */
.mockup-img {
    backface-visibility: hidden;
    perspective: 1000px;
}

.device-wrapper,
.device-image {
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .social-media-hero {
        height: 85vh;
    }
    .container {
        padding: 15px 40px 35px;
    }
    
    .hero-content {
        gap: 30px;
    }
    
    .hero-title {
        font-size: 56px;
    }
    
    .mockup-devices {
        min-height: 450px;
    }
    
    .tablet-image {
        width: 420px;
    }
    
    .phone-image {
        width: 280px;
    }
    
    .works-container {
        padding: 0 30px;
    }
    
    .section-main-title {
        font-size: 48px;
        margin-bottom: 60px;
    }
    
    .work-item {
        gap: 50px;
        margin-bottom: 100px;
    }
    
    .work-title {
        font-size: 36px;
    }
    
    .work-description {
        font-size: 16px;
    }
}

@media (max-width: 968px) {
    .social-media-hero {
        height: auto;
        min-height: 80vh;
        padding: 40px 0;
    }
    .container {
        padding: 15px 30px 30px;
    }
    
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    
    .text-content {
        max-width: 100%;
    }
    
    .app-buttons {
        justify-content: center;
    }
    
    .mockup-devices {
        flex-direction: row;
        gap: 30px;
        min-height: 400px;
    }
    
    .tablet-image {
        width: 380px;
    }
    
    .phone-image {
        width: 250px;
    }
    
    .how-app-works {
        padding: 80px 0;
    }
    
    .section-main-title {
        font-size: 40px;
        margin-bottom: 50px;
    }
    
    /* QUAN TRỌNG: Trên mobile tất cả đều stack vertically */
    .work-item,
    .work-item.reverse {
        flex-direction: column;
        text-align: center;
        gap: 40px;
        margin-bottom: 80px;
    }
    
    .work-content {
        max-width: 100%;
    }
    
    .work-title {
        font-size: 32px;
    }
    
    .work-image {
        width: 100%;
    }
    
    .mockup-img {
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    .social-media-hero {
        height: auto;
        min-height: 70vh;
        padding: 30px 0;
    }
    .container {
        padding: 15px 20px 30px;
    }
    
    .hero-title {
        font-size: 42px;
    }
    
    .hero-subtitle {
        font-size: 18px;
        margin-bottom: 30px;
    }
    
    .learn-more-btn {
        padding: 14px 35px;
        font-size: 16px;
    }
    
    .mockup-devices {
        gap: 20px;
        min-height: 380px;
    }
    
    .tablet-image {
        width: 300px;
    }
    
    .phone-image {
        width: 200px;
    }
    
    .how-app-works {
        padding: 60px 0;
    }
    
    .works-container {
        padding: 0 20px;
    }
    
    .section-main-title {
        font-size: 36px;
        margin-bottom: 40px;
    }
    
    .work-item {
        margin-bottom: 60px;
    }
    
    .work-title {
        font-size: 28px;
        margin-bottom: 20px;
    }
    
    .work-description {
        font-size: 15px;
        line-height: 1.7;
    }
    
    .work-number {
        font-size: 14px;
        margin-bottom: 10px;
    }
    
    .mockup-img {
        max-width: 300px;
    }
}

@media (max-width: 576px) {
    .social-media-hero {
        height: auto;
        min-height: 60vh;
        padding: 20px 0;
    }
    .container {
        padding: 10px 15px 20px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .learn-more-btn {
        padding: 12px 30px;
        font-size: 15px;
    }
    
    .mockup-devices {
        flex-direction: column;
        gap: 30px;
        min-height: auto;
    }
    
    .tablet-wrapper,
    .phone-wrapper {
        animation: none;
    }
    
    .tablet-image {
        width: 280px;
    }
    
    .phone-image {
        width: 180px;
    }
    
    .section-main-title {
        font-size: 32px;
    }
    
    .work-title {
        font-size: 24px;
    }
    
    .work-description {
        font-size: 14px;
    }
    
    .mockup-img {
        max-width: 250px;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .device-wrapper {
        animation: none !important;
    }
    
    .device-wrapper:hover .device-image {
        transform: none;
    }
    
    .learn-more-btn {
        transition: none;
    }
    
    .work-image:hover .mockup-img {
        transform: none;
    }
}

/* High DPI Screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .device-image,
    .mockup-img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}