/* ===================================================
   OTTOMIE - Home Page Styles
   =================================================== */

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, var(--cream) 0%, #FFE4CC 50%, var(--cream) 100%);
    overflow: hidden;
    padding-top: var(--header-height);
}

.hero-bg-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
}

.hero-shape-1 {
    width: 600px;
    height: 600px;
    background: var(--primary);
    top: -200px;
    right: -100px;
    animation: float1 15s ease-in-out infinite;
}

.hero-shape-2 {
    width: 400px;
    height: 400px;
    background: var(--secondary);
    bottom: -100px;
    left: -100px;
    animation: float2 12s ease-in-out infinite;
}

.hero-shape-3 {
    width: 200px;
    height: 200px;
    background: var(--primary);
    top: 50%;
    left: 30%;
    animation: float3 10s ease-in-out infinite;
}

@keyframes float1 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-50px, 50px) rotate(180deg); }
}

@keyframes float2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -30px) scale(1.1); }
}

@keyframes float3 {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(20px, -20px); }
    66% { transform: translate(-20px, 20px); }
}

/* Floating Icons */
.hero-floating-icons {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-floating-icons i {
    position: absolute;
    font-size: 1.5rem;
    opacity: 0.15;
    animation: floatIcon 15s linear infinite;
}

@keyframes floatIcon {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 0.15; }
    90% { opacity: 0.15; }
    100% { transform: translateY(-100px) rotate(360deg); opacity: 0; }
}

/* Hero Container - index7.html style */
.hero-container {
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* Hero Content */
.hero-content {
    animation: slideInLeft 1s ease-out;
    display: flex;
    align-items: stretch;
    gap: 40px;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Hero Characters */
.hero-characters {
    flex-shrink: 0;
    display: flex;
    align-items: flex-end;
    position: relative;
    z-index: 0;
}

.hero-characters img {
    height: 600px;
    width: auto;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.2));
}

/* Hero Text Content */
.hero-text-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--light);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 25px;
    animation: bounceIn 0.8s ease-out 0.3s both;
    width: fit-content;
}

@keyframes bounceIn {
    0% { opacity: 0; transform: scale(0.5); }
    60% { transform: scale(1.1); }
    100% { opacity: 1; transform: scale(1); }
}

.hero-badge i {
    animation: wiggle 2s ease-in-out infinite;
}

@keyframes wiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 7vw, 5.5rem);
    line-height: 1;
    color: var(--dark);
    margin-bottom: 25px;
    letter-spacing: 2px;
}

.hero-title .highlight {
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.hero-title .highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 12px;
    background: rgba(255, 107, 0, 0.2);
    z-index: -1;
    transform: skewX(-5deg);
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 35px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: slideInRight 1s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-product-wrapper {
    position: relative;
    width: 500px;
    height: 500px;
}

.hero-main-product {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 480px;
    z-index: 10;
    filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.2));
    animation: mainProductFloat 4s ease-in-out infinite;
    cursor: pointer;
    transition: all 0.5s ease;
}

.hero-main-product:hover {
    transform: translate(-50%, -50%) scale(1.08) rotate(-3deg);
}

.hero-main-product.zoomed {
    transform: translate(-50%, -50%) scale(2) rotate(0deg) !important;
    z-index: 100;
    cursor: zoom-out;
    filter: drop-shadow(0 50px 80px rgba(0, 0, 0, 0.4));
    animation: none !important;
}

@keyframes mainProductFloat {
    0%, 100% { transform: translate(-50%, -50%) rotate(-3deg); }
    50% { transform: translate(-50%, calc(-50% - 15px)) rotate(3deg); }
}

/* Hero Orbit */
.hero-orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    animation: orbitSpin 30s linear infinite;
}

@keyframes orbitSpin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.hero-orbit-product {
    position: absolute;
    width: 100px;
    cursor: pointer;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.15));
    transition: all 0.4s ease;
    animation: counterSpin 30s linear infinite;
}

@keyframes counterSpin {
    to { transform: rotate(-360deg); }
}

.hero-orbit-product:hover {
    transform: scale(1.3) rotate(0deg) !important;
    z-index: 20;
}

.hero-orbit-product:nth-child(1) { top: 0; left: 50%; transform: translateX(-50%); }
.hero-orbit-product:nth-child(2) { top: 50%; right: 0; transform: translateY(-50%); }
.hero-orbit-product:nth-child(3) { bottom: 0; left: 50%; transform: translateX(-50%); }
.hero-orbit-product:nth-child(4) { top: 50%; left: 0; transform: translateY(-50%); }

/* Hero Circles */
.hero-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 2px dashed rgba(255, 107, 0, 0.2);
}

.hero-circle-1 {
    width: 350px;
    height: 350px;
    animation: circleRotate 20s linear infinite;
}

.hero-circle-2 {
    width: 450px;
    height: 450px;
    animation: circleRotate 25s linear infinite reverse;
}

@keyframes circleRotate {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Hero 3min Badge */
.hero-badge-3min {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary);
    color: var(--light);
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    box-shadow: 0 10px 30px rgba(255, 107, 0, 0.4);
    animation: badgePulse 2s ease-in-out infinite;
    z-index: 15;
}

.hero-badge-3min span:first-child {
    font-size: 2rem;
    line-height: 1;
}

.hero-badge-3min span:last-child {
    font-size: 0.7rem;
    letter-spacing: 1px;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* ===== Products Section ===== */
.products-section {
    background: var(--light);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-3xl);
}

.products-cta {
    text-align: center;
}

/* ===== Features Section ===== */
.features-section {
    background: linear-gradient(180deg, var(--cream) 0%, var(--light) 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-xl);
}

/* ===== Recipes Preview Section ===== */
.recipes-preview-section {
    background: var(--dark);
}

.recipes-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-3xl);
}

.recipes-preview-cta {
    text-align: center;
}

/* Placeholder for recipe images */
.recipe-card-image img {
    background: linear-gradient(135deg, #2D2D2D, #1A1A2E);
    min-height: 200px;
}

/* ===== How Section ===== */
.how-section {
    background: linear-gradient(180deg, var(--light) 0%, var(--cream) 100%);
}

.steps-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-3xl);
}

.step-card {
    flex: 1;
    max-width: 280px;
    text-align: center;
    position: relative;
}

.step-number {
    width: 140px;
    height: 140px;
    margin: 0 auto var(--spacing-xl);
    background: var(--light);
    border: 4px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 4rem;
    color: var(--primary);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.step-number::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--primary);
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.step-number span {
    position: relative;
    z-index: 1;
    transition: color 0.4s ease;
}

.step-card:hover .step-number::before {
    transform: translateY(0);
}

.step-card:hover .step-number {
    transform: scale(1.1);
    box-shadow: var(--shadow-primary-lg);
}

.step-card:hover .step-number span {
    color: var(--light);
}

.step-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
    display: block;
}

.step-title {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    color: var(--dark);
    letter-spacing: 2px;
    margin-bottom: var(--spacing-sm);
}

.step-desc {
    color: var(--text-light);
    font-size: var(--text-sm);
    line-height: 1.7;
    padding: 0 var(--spacing-sm);
}

.step-connector {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    margin-top: 70px;
    border-radius: var(--radius-full);
    flex-shrink: 0;
}

.how-video {
    text-align: center;
}

.how-video-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-lg) var(--spacing-2xl);
    background: var(--light);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
}

.how-video-btn i {
    width: 50px;
    height: 50px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    font-size: var(--text-lg);
}

.how-video-btn span {
    font-weight: 600;
    color: var(--dark);
}

.how-video-btn:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.how-video-btn:hover i {
    background: var(--primary-dark);
}

/* ===== CTA Section ===== */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    position: relative;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.cta-float-product {
    position: absolute;
    width: 120px;
    opacity: 0.15;
    animation: ctaFloat 20s ease-in-out infinite;
}

.cta-float-product:nth-child(1) { top: 10%; left: 5%; animation-delay: 0s; }
.cta-float-product:nth-child(2) { top: 60%; left: 8%; animation-delay: -5s; }
.cta-float-product:nth-child(3) { top: 15%; right: 5%; animation-delay: -10s; }
.cta-float-product:nth-child(4) { top: 65%; right: 8%; animation-delay: -15s; }

@keyframes ctaFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(10deg); }
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--light);
    letter-spacing: 3px;
    margin-bottom: var(--spacing-lg);
}

.cta-text {
    font-size: var(--text-lg);
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: var(--spacing-2xl);
    line-height: 1.8;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

/* ===== Responsive Styles ===== */
@media (max-width: 1200px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 60px;
    }

    .hero-content {
        order: 1;
        flex-direction: column;
        align-items: center;
    }

    .hero-visual {
        order: 0;
    }

    .hero-text-content {
        align-items: center;
        text-align: center;
    }

    .hero-description {
        margin: 0 auto 35px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-product-wrapper {
        width: 400px;
        height: 400px;
    }

    .hero-main-product {
        width: 260px;
    }

    .hero-orbit-product {
        width: 80px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .recipes-preview-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .steps-container {
        flex-direction: column;
        align-items: center;
    }

    .step-connector {
        width: 4px;
        height: 40px;
        margin: 0;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding-top: calc(var(--header-height) + var(--spacing-2xl));
        padding-bottom: var(--spacing-3xl);
    }

    .hero-container {
        padding: 0 20px;
        gap: 40px;
    }

    .hero-content {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .hero-characters img {
        height: 450px;
    }

    .hero-text-content {
        text-align: center;
        align-items: center;
    }

    .hero-title {
        font-size: clamp(2.5rem, 12vw, 4rem);
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-product-wrapper {
        width: 350px;
        height: 350px;
    }

    .hero-main-product {
        width: 320px;
    }

    .hero-orbit-product {
        width: 55px;
    }

    .hero-badge-3min {
        width: 70px;
        height: 70px;
        top: 10px;
        right: 10px;
    }

    .hero-badge-3min span:first-child {
        font-size: 1.5rem;
    }

    .hero-badge-3min span:last-child {
        font-size: 0.6rem;
    }

    .products-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }

    .recipes-preview-grid {
        grid-template-columns: 1fr;
    }

    .step-number {
        width: 110px;
        height: 110px;
        font-size: 3rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .hero-container {
        padding: 0 15px;
    }

    .hero-characters img {
        height: 350px;
    }

    .hero-title {
        font-size: clamp(2rem, 10vw, 3rem);
    }

    .hero-product-wrapper {
        width: 300px;
        height: 300px;
    }

    .hero-main-product {
        width: 280px;
    }

    .hero-orbit-product {
        width: 45px;
    }
}
