@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Shrikhand&display=swap');

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: #F5EFE7;
    background-image: url('bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100vh;
    overflow: hidden;
}

/* ── Page fade in/out ── */
.page-wrapper {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transition: opacity 1s ease;
}

.page-wrapper.visible { opacity: 1; }

.page-wrapper.fading {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.9s ease;
}

/* ── Navbar ── */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 40px;
    position: relative;
    z-index: 10;
}

.logo img {
    height: 52px;
    width: auto;
    cursor: pointer;
}

.nav-links {
    display: flex;
    gap: 28px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #5A5A5A;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover { color: #9FB19F; }

.login-btn {
    background-color: #E8B4B4;
    color: #3A3A3A;
    border: none;
    padding: 10px 30px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    transition: background-color 0.3s, transform 0.2s;
}

.login-btn:hover {
    background-color: #D4A5A5;
    transform: scale(1.04);
}

/* ── Hero ── */
.hero {
    flex: 1;
    position: relative;
    overflow: hidden;
}

/* ── Brand text ── */
.brand-text {
    position: absolute;
    top: 5%;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Shrikhand', cursive;
    font-size: clamp(130px, 19vw, 260px);
    color: #9FB19F;
    white-space: nowrap;
    z-index: 1;
    user-select: none;
    pointer-events: none;
    letter-spacing: -3px;
    line-height: 1;
    text-shadow:
        4px 6px 0px #7a9a7a,
        6px 10px 20px rgba(0, 0, 0, 0.15);
}

/* ── Tagline — small, snug above the C in CopyCook ── */
.tagline-img {
    position: absolute;
    top: -1%;
    left: 54%;
    transform: translateX(-50%);
    width: clamp(180px, 15vw, 260px);
    z-index: 4;
    pointer-events: none;
    user-select: none;
}

/* ── Plates track ── */
.plates-track {
    position: absolute;
    bottom: -45px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 2;
}

.plate {
    flex-shrink: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    margin-right: -50px;
}

.plate:last-child { margin-right: 0; }

.plate img {
    display: block;
    object-fit: contain;
    width: clamp(340px, 38vw, 560px);
    height: clamp(340px, 38vw, 560px);
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.15));
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .brand-text { font-size: 100px; }
    .plate img  { width: 260px; height: 260px; }
    .tagline-img { width: 160px; }
}

@media (max-width: 550px) {
    .navbar { padding: 14px 18px; }
    .nav-links a { display: none; }
    .brand-text { font-size: 64px; letter-spacing: -1px; }
    .plate img  { width: 170px; height: 170px; }
    .plate { margin-right: -20px; }
    .tagline-img { width: 130px; }
}