/* ===================================
   PostVira Landing Page Styles
   =================================== */

/* Navigation */
.navbar {
    position: fixed;
    height: 60px;
    width: 100%;
    z-index: 100;
    background-color: var(--color-black);
    border-bottom: 1px solid rgba(0, 255, 0, 0.1);
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content:space-between;
    margin-top: -42px;
    margin-left: -115px;
    margin-right: -115px;
}

.logo {
    display: flex;
    justify-content: flex-start;
}

.logo-img {
    height: 159px;
    width: 159px;
    transition: transform var(--transition-normal);
}

.logo:hover .logo-img {
    transform: scale(1.05);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0 4rem;
    margin-left: 24px;
    padding-top: calc(60px + 35px); /* Navbar height + 44px gap */
    position: relative;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    width: 100%;
}

/* 3D Carousel Container */
.carousel-container {
    position: relative;
    width: 100%;
    height: 500px;
    margin-bottom: 3rem;
    perspective: 1200px;
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 700ms ease-in-out;
}

.carousel-track.paused {
    animation-play-state: paused;
}

/* Carousel Cards */
.product-card {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 700ms ease-in-out;
    backface-visibility: hidden;
    
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Center Card (Position 0) */
.product-card[data-position="0"] {
    width: 400px;
    height: 450px;
    z-index: 5;
    opacity: 1;
    transform: translateX(0) translateY(0) rotateY(0deg) scale(1);
    box-shadow: 6px 4px 6px 0px rgba(0, 255, 0, 0.5);
}

/* Right Adjacent Card (Position 1) - 20px gap from center, vertically centered */
.product-card[data-position="1"] {
    width: 200px;
    height: 350px;
    z-index: 4;
    opacity: 0.85;
    /* X: center width (400/2) + gap (20) + half of this card (200/2) = 320px */
    /* Y: vertically center to position 0: (450-350)/2 = 50px */
    transform: translateX(320px) translateY(10px) rotateY(-15deg) scale(0.95);
}

/* Far Right Card (Position 2) - 20px gap from position 1, vertically centered */
.product-card[data-position="2"] {
    width: 150px;
    height: 200px;
    z-index: 3;
    opacity: 0.6;
    /* X: 315 + (200/2) + 20 + (150/2) = 515px */
    /* Y: vertically center to position 0: (450-200)/2 = 125px */
    transform: translateX(490px) translateY(5px) rotateY(-25deg) scale(0.85);
}

/* Left Adjacent Card (Position -1) - 20px gap from center, vertically centered */
.product-card[data-position="-1"] {
    width: 200px;
    height: 350px;
    z-index: 4;
    opacity: 0.85;
    /* X: -(center width (400/2) + gap (20) + half of this card (200/2)) = -320px */
    /* Y: vertically center to position 0: (450-350)/2 = 50px */
    transform: translateX(-320px) translateY(10px) rotateY(15deg) scale(0.95);
}

/* Far Left Card (Position -2) - 20px gap from position -1, vertically centered */
.product-card[data-position="-2"] {
    width: 150px;
    height: 200px;
    z-index: 3;
    opacity: 0.6;
    /* X: -320 - (200/2) - 20 - (150/2) = -515px */
    /* Y: vertically center to position 0: (450-200)/2 = 125px */
    transform: translateX(-490px) translateY(5px) rotateY(25deg) scale(0.85);
}

.hero-text-box {
    border: 3px solid var(--color-green);
    border-radius: var(--radius-xl);
    padding: 3rem 2rem;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    max-width: 800px;
    margin: 2rem auto 0;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 3.5vw, 3rem);
    line-height: 1.3;
    color: var(--color-white);
    margin: 0;
}

.hero-cta {
    margin-top: 20PX;
}

.btn-generate-posters {
    width: 240px;
    height: 60px;
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
    border-radius: 20px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: -20px;
    margin-bottom: -40px;
}

/* Responsive Grid for Hero */
@media (min-width: 769px) and (max-width: 1024px) {
    .navbar {
        height: 64px;
    }

    .navbar .container {
        height: 100%;
        display: flex;
        align-items: center;
    }

    .nav-content {
        height: 100%;
        width: 100%;
        margin-top: 0;
        margin-left: 0;
        margin-right: 0;
        padding: 6px 0;
        gap: 16px;
    }

    .logo {
        height: 100%;
        align-items: center;
    }

    .logo-img {
        width: 120px;
        height: 120px;
    }

    .btn-signin {
        width: 88px;
        height: 34px;
        font-size: 14px;
        flex-shrink: 0;
    }

    .hero-section {
        margin-left: 0;
        padding-top: calc(64px + 24px);
    }
}

@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    .hero-text-box {
        grid-column: 1 / 4;
        padding: 2rem 1.5rem;
    }
    
    .product-1,
    .product-2 {
        grid-column: span 1;
    }
    
    .product-3,
    .product-4 {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .navbar {
        height: 68px;
    }

    .navbar .container {
        height: 100%;
        display: flex;
        align-items: center;
    }

    .nav-content {
        height: 100%;
        width: 100%;
        align-items: center;
        margin-top: 0;
        margin-left: 0;
        margin-right: 0;
        padding: 8px 0;
        gap: 12px;
    }

    .logo {
        height: 100%;
        align-items: center;
    }

    .logo-img {
        width: 120px;
        height: 120px;
        /* margin-bottom:-40px; */
        margin-top:10px;


    }

    .btn-signin {
        width: 80px;
        height: 26px;
        font-size: 13px;
        flex-shrink: 0;
        margin-top:10px;
    }

    .hero-section {
        margin-left: 0;
        padding-top: calc(68px + 20px);
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-text-box {
        grid-column: 1 / 3;
        padding: 2rem 1rem;
    }
    
    .product-card {
        padding: 0;
    }
    
    .product-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

@media (max-width: 480px) {
    .navbar {
        height: 64px;
    }

    .nav-content {
        padding: 6px 0;
    }

    .logo-img {
        width: 86px;
        height: 86px;
    }

    .btn-signin {
        width: 74px;
        height: 30px;
        font-size: 12px;
    }

    .hero-section {
        padding-top: calc(64px + 16px);
    }
}

/* Value Proposition Section */
.value-section {
    padding: 4rem 0;
    text-align: center;
}

.section-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 32px;
    line-height: 1.6;
    color: var(--color-white);
    margin-bottom: 3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.demo-container {
    margin: 3rem auto;
    width: 840px;
    height: 448px;
    max-width: 100%;
}

.demo-video {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-md);
    box-shadow: 0 8px 32px rgba(0, 255, 0, 0.15);
}

.value-cta {
    margin-top: 2.5rem;
}

.btn-try-free {
    width: 191.9px;
    height: 60px;
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 400;
    border-radius: 20px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Features Section */
.features-section {
    padding: 6rem 0 4rem;
}

.features-header {
    text-align: center;
    margin-bottom: 4rem;
}

.features-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 32px;
    color: var(--color-white);
    margin-bottom: 1rem;
}

.features-subtitle {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 24px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
}

.features-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.feature-card {
    background-color: rgba(0, 0, 0, 0.6);
    border: 2px solid var(--color-green);
    border-radius: 15px;
    width: 269px;
    height: 217px;
    padding: 1.5rem;
    transition: all var(--transition-normal);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 6px 4px 6px 0px rgba(0, 255, 0, 0.5);
}

.feature-card:hover {
    transform: translateY(-8px);
    background-color: rgba(0, 255, 0, 0.05);
    box-shadow: 8px 6px 12px 0px rgba(0, 255, 0, 0.6);
}

.feature-title {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 1rem;
}

.feature-description {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 12px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-card {
        padding: 2rem 1.5rem;
    }
}

/* Footer */
.footer {
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid rgba(0, 255, 0, 0.1);
    margin-top: 4rem;
}

.footer-text {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

/* Stagger Animation Delays */
.fade-in:nth-child(1) {
    transition-delay: 0.1s;
}

.fade-in:nth-child(2) {
    transition-delay: 0.2s;
}

.fade-in:nth-child(3) {
    transition-delay: 0.3s;
}

.fade-in:nth-child(4) {
    transition-delay: 0.4s;
}

.fade-in:nth-child(5) {
    transition-delay: 0.5s;
}

/* Smooth Scroll Padding for Fixed Nav */
html {
    scroll-padding-top: 80px;
}
