/* Custom Premium Stylesheet for Pinocho Landing Page */

:root {
    --primary-color: #3b82f6; /* Blue */
    --primary-hover: #2563eb;
    --secondary-color: #f59e0b; /* Orange/Gold */
    --secondary-hover: #d97706;
    --success-color: #10b981; /* Green */
    --success-hover: #059669;
    --text-color: #1e293b;
    --text-light: #64748b;
    --font-header: 'Fredoka One', cursive;
    --font-body: 'Nunito', sans-serif;
}

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

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

/* Common Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navbar */
header {
    background-color: #ffffff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 15px 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-face {
    height: 45px;
    width: auto;
}

.logo-text {
    font-family: var(--font-header);
    font-size: 1.8rem;
    color: #4a3728; /* Brown color like original */
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 20px;
    list-style: none;
}

.nav-link {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 700;
    font-size: 1rem;
    transition: color 0.2s;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color);
}

.nav-link.active {
    background-color: #ebf8ff;
    color: var(--primary-color);
    padding: 6px 15px;
    border-radius: 9999px;
}

.btn-nav-login {
    background-color: var(--success-color);
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 9999px;
    text-decoration: none;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s, transform 0.2s;
    font-size: 0.95rem;
}

.btn-nav-login:hover {
    background-color: var(--success-hover);
    transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
    position: relative;
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: center;
    padding: 80px 0;
}

.hero-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.15); /* Subtle dark overlay for contrast */
    z-index: 2;
}

.hero-grid {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    padding: 40px;
    border-radius: 32px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.hero-title {
    font-family: var(--font-header);
    font-size: 3.2rem;
    line-height: 1.15;
    color: #3b3028;
}

.hero-title span.blue {
    font-family: var(--font-header) !important;
    color: #3b82f6;
    -webkit-text-stroke: 1.5px #ffffff;
    text-shadow: 3px 3px 0px rgba(0,0,0,0.1);
}

.hero-title span.green {
    font-family: var(--font-header) !important;
    color: #10b981;
    -webkit-text-stroke: 1.5px #ffffff;
    text-shadow: 3px 3px 0px rgba(0,0,0,0.1);
}

.hero-carousel {
    position: relative;
    min-height: 440px;
    width: 100%;
}

.carousel-slide {
    display: none;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.carousel-slide.active {
    display: flex;
    animation: fadeInSlide 0.5s ease-in-out forwards;
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-description {
    font-size: 1.15rem;
    color: #4a5568;
    max-width: 500px;
    font-weight: 700;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 320px;
}

.btn-hero-primary {
    background-color: var(--secondary-color);
    color: #ffffff;
    text-align: center;
    padding: 14px 24px;
    border-radius: 9999px;
    text-decoration: none;
    font-family: var(--font-header);
    font-size: 1.15rem;
    box-shadow: 0 4px 6px rgba(245, 158, 11, 0.3), inset 0 -4px 0 rgba(0,0,0,0.15);
    transition: background-color 0.2s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-hero-primary:hover {
    background-color: var(--secondary-hover);
    transform: translateY(-2px);
}

.btn-hero-secondary {
    background-color: #ffffff;
    color: var(--primary-color);
    text-align: center;
    padding: 12px 24px;
    border-radius: 9999px;
    text-decoration: none;
    font-family: var(--font-header);
    font-size: 1.1rem;
    border: 3px solid var(--primary-color);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: background-color 0.2s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-hero-secondary:hover {
    background-color: #f8fafc;
    transform: translateY(-2px);
}

.hero-spacer {
    display: block;
}

/* Section 2: Cards */
.cards-section {
    background-color: #fffaf0; /* Warm light yellow background */
    padding: 80px 0 140px 0;
    position: relative;
    clip-path: ellipse(200% 100% at 50% 0%);
    margin-bottom: -60px;
    z-index: 5;
}

.cards-header {
    text-align: center;
    margin-bottom: 50px;
}

.cards-title {
    font-family: var(--font-header);
    font-size: 2.2rem;
    color: #4a3728;
    display: inline-flex;
    align-items: center;
    gap: 15px;
}

.cards-title .star-yellow {
    font-size: 1.8rem;
    color: #fbbf24;
}

.cards-title .star-purple {
    font-size: 1.8rem;
    color: #a78bfa;
}

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

.card {
    background-color: #ffffff;
    border: 2px solid #f3f4f6;
    border-radius: 24px;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.03);
    position: relative;
    padding-top: 60px;
    margin-top: 30px;
}

.card-icon {
    position: absolute;
    top: -35px;
    width: 70px;
    height: 70px;
    object-fit: contain;
}

.card-title {
    font-family: var(--font-header);
    font-size: 1.45rem;
    color: #4a3728;
    margin-bottom: 15px;
}

.card-title.purple { color: #8b5cf6; }
.card-title.blue { color: #3b82f6; }
.card-title.green { color: #10b981; }

.card-text {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 30px;
    flex-grow: 1;
}

.card-illustration-container {
    height: 180px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
}

.card-illustration {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

/* Mic specific bubble overlay */
.mic-bubbles {
    position: absolute;
    right: 20px;
    top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bubble-img {
    height: 35px;
    width: auto;
}

/* Section 3: Map */
.map-section {
    background: url('../img/map-bg.jpg') no-repeat center center;
    background-size: cover;
    padding: 100px 0 180px 0; /* Increased bottom padding to prevent clipping path nodes */
    position: relative;
    clip-path: ellipse(180% 100% at 50% 0%);
    margin-bottom: -80px;
    z-index: 4;
}

.map-header {
    text-align: left;
    max-width: 520px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.6);
    position: relative;
    margin-top: 30px;
}

.map-title {
    font-family: var(--font-header);
    font-size: 2.2rem;
    color: #3b3028;
    line-height: 1.2;
    margin-bottom: 15px;
}

.map-subtitle {
    font-size: 1.05rem;
    color: #4a5568;
    font-weight: 700;
    line-height: 1.5;
}

.map-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    pointer-events: none;
}

.map-overlay-img {
    position: absolute;
}

.marker-img {
    left: 36.3%; /* Adjusted based on visual coordinates */
    top: 34.5%;
    width: 4.8%;
    animation: bounce 2s infinite ease-in-out;
}

.sign-text-img {
    left: 5.2%;
    top: 69%;
    width: 11%;
}

/* Section 4: Footer-bg signup */
.signup-section {
    background: url('../img/footer-bg.jpg') no-repeat center center;
    background-size: cover;
    min-height: 540px;
    display: flex;
    align-items: center;
    position: relative;
    padding: 80px 0 60px 0;
    z-index: 3;
}

.signup-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    width: 100%;
}

.signup-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 500px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.signup-title {
    font-family: var(--font-header);
    font-size: 2.8rem;
    line-height: 1.15;
    color: #3b3028;
}

.signup-title span.purple {
    color: #8b5cf6;
}

.signup-subtitle {
    font-size: 1.15rem;
    color: #4a5568;
    font-weight: 700;
}

.signup-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 320px;
    margin-top: 10px;
}

.btn-signup-primary {
    background-color: var(--success-color);
    color: #ffffff;
    text-align: center;
    padding: 14px 24px;
    border-radius: 9999px;
    text-decoration: none;
    font-family: var(--font-header);
    font-size: 1.1rem;
    box-shadow: 0 4px 6px rgba(16, 185, 129, 0.3), inset 0 -4px 0 rgba(0,0,0,0.15);
    transition: background-color 0.2s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-signup-primary:hover {
    background-color: var(--success-hover);
    transform: translateY(-2px);
}

.btn-signup-secondary {
    background-color: #ffffff;
    color: var(--primary-color);
    text-align: center;
    padding: 12px 24px;
    border-radius: 9999px;
    text-decoration: none;
    font-family: var(--font-header);
    font-size: 1.1rem;
    border: 3px solid var(--primary-color);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: background-color 0.2s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-signup-secondary:hover {
    background-color: #f8fafc;
    transform: translateY(-2px);
}

.signup-illustration {
    position: relative;
    height: 100%;
}

.footer-pinocho-img {
    position: absolute;
    left: 45%;
    bottom: -60px;
    width: 150px;
    height: auto;
    z-index: 10;
}

/* Footer bottom bar */
.footer-bottom {
    background-color: #4a3728;
    color: #ffffff;
    padding: 20px 0;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.footer-logo-face {
    height: 30px;
}

.footer-logo-text {
    font-family: var(--font-header);
    color: #ffffff;
    font-size: 1.4rem;
}

.footer-menu {
    display: flex;
    gap: 20px;
    list-style: none;
}

.footer-link {
    color: #cbd5e0;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
}

.footer-link:hover {
    color: #ffffff;
}

.footer-socials {
    display: flex;
    gap: 15px;
}

.social-icon {
    font-size: 1.2rem;
    text-decoration: none;
    color: #cbd5e0;
}

.social-icon:hover {
    color: #ffffff;
}

/* Animations */
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Responsive design */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-content {
        align-items: center;
    }
    .hero-buttons {
        width: 100%;
    }
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .card {
        max-width: 400px;
        margin: 0 auto;
    }
    .signup-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .signup-content {
        align-items: center;
        margin: 0 auto;
    }
    .signup-buttons {
        width: 100%;
    }
    .footer-pinocho-img {
        display: none;
    }
    .map-section {
        background-position: right center;
    }
    .marker-img {
        left: 36.3%;
        top: 34.5%;
        width: 8%;
    }
    .sign-text-img {
        left: 5%;
        top: 69%;
        width: 20%;
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 15px;
    }
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }
    .hero-title {
        font-size: 2.4rem;
    }
    .map-header {
        position: relative;
        left: 0;
        top: 0;
        padding: 20px;
        background: rgba(255, 255, 255, 0.85);
        border-radius: 15px;
        margin: 0 20px;
    }
    .map-section {
        height: auto;
        min-height: 520px;
    }
    .footer-navbar {
        flex-direction: column;
        text-align: center;
    }
    .footer-menu {
        flex-direction: column;
        gap: 10px;
    }
}
