/* Color Palette & CSS Variables */
:root {
    --bg-color: #FDFCF5; /* Soft Ivory */
    --primary-text: #786C60; /* Warm Taupe */
    --body-text: #9E948B; /* Boz Kahve */
    --accent-color: #E0BFB8; /* Rose Gold */
    --accent-hover: #D1A9A1;
    --border-color: #EAE6DF;
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
    
    --shadow-sm: 0 4px 6px rgba(120, 108, 96, 0.05);
    --shadow-md: 0 10px 25px rgba(120, 108, 96, 0.08);
    --shadow-lg: 0 20px 40px rgba(120, 108, 96, 0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--body-text);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary-text);
    font-weight: 600;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.header {
    padding: 20px 0;
    position: sticky;
    top: 0;
    background-color: rgba(253, 252, 245, 0.85);
    backdrop-filter: blur(12px);
    z-index: 100;
    border-bottom: 1px solid rgba(226, 217, 208, 0.3);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo img {
    height: 54px;
    width: auto;
    border-radius: 12px;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 700;
    color: var(--primary-text);
    letter-spacing: 1.5px;
}

.nav {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-size: 16px;
    font-weight: 500;
    color: var(--primary-text);
    position: relative;
    padding-bottom: 4px;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    padding: 100px 0 120px;
    min-height: calc(100vh - 100px);
    display: flex;
    align-items: center;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 80px;
    align-items: center;
}

.hero-title {
    font-size: 3.8rem;
    line-height: 1.15;
    margin-bottom: 28px;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 48px;
    max-width: 520px;
}

.app-badges {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.store-badge-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: #111;
    color: #fff;
    padding: 10px 20px;
    border-radius: 12px;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
}

.store-badge-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.store-badge-btn svg {
    width: 28px;
    height: 28px;
}

.badge-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.badge-sub {
    font-size: 0.65rem;
    line-height: 1;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

.badge-title {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.1;
    font-family: var(--font-body);
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.image-wrapper {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transform: rotate(3deg);
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-width: 480px;
    width: 100%;
}

.image-wrapper:hover {
    transform: rotate(0deg) scale(1.03);
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 4/5;
    object-fit: cover;
}

.glow-effect {
    position: absolute;
    top: -20%;
    right: -20%;
    width: 140%;
    height: 140%;
    background: radial-gradient(circle, rgba(224, 191, 184, 0.35) 0%, rgba(253, 252, 245, 0) 70%);
    z-index: -1;
    pointer-events: none;
}

/* Gallery Section */
.gallery {
    padding: 120px 0;
    background-color: rgba(234, 230, 223, 0.25);
}

.section-title {
    text-align: center;
    font-size: 2.75rem;
    margin-bottom: 70px;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    bottom: -16px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--accent-color);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.gallery-card {
    background-color: #fff;
    border-radius: 24px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s ease;
    border: 1px solid var(--border-color);
}

.gallery-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-color);
}

.card-image-wrapper {
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 28px;
    aspect-ratio: 1;
    position: relative;
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.gallery-card:hover .card-image-wrapper img {
    transform: scale(1.08);
}

.card-title {
    font-size: 1.6rem;
    margin-bottom: 12px;
}

.card-desc {
    font-size: 1.05rem;
}

/* Footer */
.footer {
    padding: 70px 0 40px;
    background-color: #FAF8EF;
    border-top: 1px solid var(--border-color);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.copyright {
    font-size: 0.95rem;
}

.footer-links {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}

.footer-link {
    font-size: 0.95rem;
    color: var(--primary-text);
    font-weight: 500;
}

.footer-link:hover {
    color: var(--accent-color);
}

/* Legal Pages Styling */
.legal-page {
    padding: 80px 0;
}

.legal-header {
    text-align: center;
    margin-bottom: 60px;
}

.legal-title {
    font-size: 3rem;
    margin-bottom: 20px;
}

.legal-date {
    font-size: 1rem;
    font-style: italic;
}

.legal-summary {
    background-color: rgba(224, 191, 184, 0.15);
    border-left: 4px solid var(--accent-color);
    padding: 24px 32px;
    border-radius: 0 12px 12px 0;
    margin-bottom: 60px;
}

.legal-summary h3 {
    margin-bottom: 16px;
    font-family: var(--font-body);
    font-size: 1.25rem;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h2 {
    font-size: 1.8rem;
    margin: 40px 0 20px;
}

.legal-content h3 {
    font-size: 1.4rem;
    margin: 30px 0 16px;
}

.legal-content p, .legal-content ul {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.legal-content ul {
    padding-left: 24px;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-container {
        gap: 40px;
    }
    
    .hero-title {
        font-size: 3.2rem;
    }
}

@media (max-width: 900px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 60px;
    }
    
    .hero-subtitle {
        margin: 0 auto 40px;
    }
    
    .app-badges {
        justify-content: center;
    }
    
    .image-wrapper {
        transform: none;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .header-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .nav {
        gap: 20px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* ==========================================
   Gateway Selection Screen (Split Layout)
   ========================================== */
.gateway-container {
    display: flex;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

.gateway-logo-container {
    position: absolute;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    pointer-events: none;
    text-align: center;
}

.gateway-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(253, 252, 245, 0.4);
    backdrop-filter: blur(10px);
    padding: 12px 24px;
    border-radius: 50px;
    border: 1px solid rgba(120, 108, 96, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.gateway-logo img {
    height: 40px;
    width: auto;
    border-radius: 8px;
}

.gateway-logo span {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-text);
    letter-spacing: 2px;
}

.gateway-panel {
    position: relative;
    flex: 1;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    text-decoration: none;
    transition: flex 0.7s cubic-bezier(0.25, 1, 0.5, 1);
    overflow: hidden;
}

.gateway-panel::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.15;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.panel-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 1.2s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 1;
}

.panel-logo {
    width: 90px;
    height: 90px;
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    margin-bottom: 10px;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.gateway-panel:hover .panel-logo {
    transform: scale(1.08) rotate(2deg);
}

.panel-content {
    position: relative;
    z-index: 2;
    max-width: 480px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    transition: transform 0.5s ease;
}

.panel-subtitle {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

.panel-title {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
}

.panel-description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 10px;
    opacity: 0.85;
}

.panel-btn {
    padding: 14px 32px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

/* Baby Panel specific */
.panel-baby {
    background-color: #FDFCF5;
}
.panel-baby .panel-background {
    background-image: linear-gradient(to right, rgba(253, 252, 245, 0.95), rgba(253, 252, 245, 0.8)), url('assets/images/fairy_tale_forest.webp');
}
.panel-baby .panel-subtitle {
    color: var(--primary-text);
}
.panel-baby .panel-title {
    color: var(--primary-text);
}
.panel-baby .panel-description {
    color: var(--body-text);
}
.panel-baby .panel-btn {
    background-color: var(--primary-text);
    color: #FDFCF5;
    border: 1px solid var(--primary-text);
}
.panel-baby:hover .panel-btn {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(224, 191, 184, 0.4);
}

/* Wedding Panel specific */
.panel-wedding {
    background-color: #0A0A0B;
}
.panel-wedding .panel-background {
    background-image: linear-gradient(to left, rgba(10, 10, 11, 0.95), rgba(10, 10, 11, 0.8)), url('https://cdn.bevua.app/concept_010.png');
}
.panel-wedding .panel-subtitle {
    color: #E0A098;
}
.panel-wedding .panel-title {
    color: #FFFFFF;
    background: linear-gradient(135deg, #FFFFFF 0%, #E0A098 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.panel-wedding .panel-description {
    color: rgba(255, 255, 255, 0.7);
}
.panel-wedding .panel-btn {
    background-color: #E0A098;
    color: #0A0A0B;
    border: 1px solid #E0A098;
}
.panel-wedding:hover .panel-btn {
    background-color: #FFFFFF;
    border-color: #FFFFFF;
    color: #0A0A0B;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(224, 160, 152, 0.3);
}

/* Hover dynamics */
.gateway-panel:hover {
    flex: 1.25;
}

.gateway-panel:hover .panel-background {
    transform: scale(1.05);
}

.panel-baby:hover .panel-background {
    background-image: linear-gradient(to right, rgba(253, 252, 245, 0.85), rgba(253, 252, 245, 0.6)), url('assets/images/fairy_tale_forest.webp');
}

.panel-wedding:hover .panel-background {
    background-image: linear-gradient(to left, rgba(10, 10, 11, 0.85), rgba(10, 10, 11, 0.6)), url('https://cdn.bevua.app/concept_010.png');
}

/* Responsive */
@media (max-width: 768px) {
    .gateway-container {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
        overflow-y: auto;
    }
    
    .gateway-panel {
        width: 100%;
        height: auto;
        min-height: 50vh;
        padding: 60px 24px;
    }

    .panel-baby .panel-content {
        padding-top: 50px; /* Leave space for floating header logo */
    }
    
    .panel-title {
        font-size: 2.2rem;
    }

    .panel-logo {
        width: 75px;
        height: 75px;
        border-radius: 16px;
    }

    .panel-content {
        gap: 14px;
    }

    .panel-description {
        font-size: 0.95rem;
        margin-bottom: 5px;
    }
    
    .gateway-panel:hover {
        flex: none; /* Disable vertical flex growing on hover on touch screens */
    }
    
    .gateway-logo-container {
        top: 20px;
    }
    
    .gateway-logo {
        padding: 8px 16px;
    }
    
    .gateway-logo span {
        font-size: 18px;
    }
}

