/* --- Blog Page Styles --- */
@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Poppins:wght@200;300;400;500;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #e9e5e2;
    color: #1a1a1a;
    font-family: 'Poppins', sans-serif;
    overflow: hidden;
    /* Kinetic 3D scroll logic */
    height: 100vh;
}

/* --- Header --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.5s ease;
}

.header.scrolled {
    background-color: #e9e5e2;
    padding: 15px 40px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.header.active-header {
    opacity: 1;
    transform: translateY(0);
}

.header-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-decoration: none;
    z-index: 1002;
}

.header-logo img {
    width: 8vw;
    min-width: 80px;
}

.header-icons {
    display: flex;
    gap: 25px;
    align-items: center;
    color: #000;
}

.header-icons i,
.header-icons svg {
    font-size: 24px;
    cursor: pointer;
    color: #000;
}

/* --- Mobile Menu --- */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #e9e5e2;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.hamburger {
    width: 30px;
    height: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    z-index: 1001;
    transition: all 0.3s ease;
}

.hamburger span {
    width: 100%;
    height: 2px;
    background: #000;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.menu-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    max-height: 80vh;
    overflow-y: auto;
    padding: 20px;
    width: 100%;
}

.menu-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    max-width: 300px;
}

.menu-content>.menu-link {
    width: 100%;
    max-width: 300px;
    text-align: left;
}

.menu-link {
    font-family: 'Baskerville Display PT', 'Copperplate Gothic 29 BC', 'Copperplate Gothic', 'Copperplate', sans-serif;
    font-size: clamp(20px, 5vw, 20px);
    color: #000;
    text-decoration: none;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    width: 100%;
    padding: 10px 0;
}

.menu-group .menu-link::after {
    content: '+';
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    font-weight: 300;
    margin-left: 10px;
    transition: transform 0.3s;
}

.menu-group.open .menu-link::after {
    content: '−';
}

.submenu-links {
    display: flex;
    flex-direction: column;
    gap: 5px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease;
    width: 100%;
}

.menu-group.open .submenu-links {
    max-height: 500px;
    opacity: 1;
}

.submenu-links a {
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    color: #555;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 0.1em;
    padding: 2px 0;
}

.mobile-menu-overlay.active .menu-link {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu-overlay.active .menu-link:nth-child(1),
.mobile-menu-overlay.active .menu-group:nth-child(1) .menu-link {
    transition-delay: 0.1s;
}

.mobile-menu-overlay.active .menu-link:nth-child(2),
.mobile-menu-overlay.active .menu-group:nth-child(2) .menu-link {
    transition-delay: 0.2s;
}

.mobile-menu-overlay.active .menu-link:nth-child(3),
.mobile-menu-overlay.active .menu-group:nth-child(3) .menu-link {
    transition-delay: 0.3s;
}

.mobile-menu-overlay.active .menu-link:nth-child(4),
.mobile-menu-overlay.active .menu-group:nth-child(4) .menu-link {
    transition-delay: 0.4s;
}

.mobile-menu-overlay.active .menu-link:nth-child(5),
.mobile-menu-overlay.active .menu-group:nth-child(5) .menu-link {
    transition-delay: 0.5s;
}

.menu-footer {
    position: absolute;
    bottom: 40px;
    font-size: 14px;
    color: #666;
    opacity: 0;
    transition: 0.5s ease 0.6s;
}

.mobile-menu-overlay.active .menu-footer {
    opacity: 1;
}

/* --- Blog Content --- */
.blog-container {
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 100px;
    position: relative;
    overflow-x: hidden;
}

.blog-hero {
    text-align: center;
    margin-bottom: 30px;
    max-width: 90%;
    z-index: 10;
    padding: 0 20px;
}

.hero-quote {
    font-size: clamp(24px, 4vw, 30px);
    color: #000;
    letter-spacing: 0.05em;
    font-family: 'Baskerville Display PT', 'Copperplate Gothic 29 BC', 'Copperplate Gothic', 'Copperplate', sans-serif, 'Baskerville', serif;
    font-weight: 400;
    line-height: 1.2;
    text-transform: uppercase;
}

.hero-subtext {
    font-size: clamp(10px, 2vw, 12px);
    color: #333;
    letter-spacing: 1.5px;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
    margin-bottom: 25px;
}

.side-label {
    position: absolute;
    left: 40px;
    top: 50%;
    transform: translateY(-50%);
    font-family: 'Poppins', sans-serif;
    font-size: 55px;
    font-weight: 700;
    color: #1a1a1a;
    width: 150px;
    line-height: 1.1;
    z-index: 5;
}

/* --- 3D Carousel --- */
.blog-scene {
    width: 100%;
    height: 500px;
    perspective: 2000px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: visible;
}

.blog-wheel {
    width: 300px;
    height: 400px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
}

.blog-card {
    position: absolute;
    width: 300px;
    height: 400px;
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transform-style: preserve-3d;
    backface-visibility: hidden;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    cursor: pointer;
}

.card-link-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 20;
    text-decoration: none;
}

.card-image {
    width: 100%;
    height: 300px;
    position: relative;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    backdrop-filter: blur(5px);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 60%, rgba(0, 0, 0, 0.3));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.blog-card:hover .image-overlay {
    opacity: 1;
}

.card-content {
    padding: 20px;
}

.card-content h4 {
    font-family: 'Copperplate Gothic 29 BC', 'Copperplate Gothic', 'Copperplate', sans-serif;
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 10px;
    height: 40px;
    overflow: hidden;
}

/* --- Video Card Specifics --- */
.video-card {
    background: #fff;
    display: flex;
    flex-direction: column;
    height: 100% !important;
    transform-origin: center center;
}

.video-wrapper {
    height: 500px !important;
    background: #000;
}

.blog-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.save-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #e60023;
    /* Pinterest Red */
    color: #fff;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
}

.play-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.video-desc {
    font-size: 13px;
    line-height: 1.5;
    color: #1a1a1a;
    font-weight: 500;
    margin-bottom: 12px;
}

.mini-logo {
    width: 40px;
    height: auto;
    object-fit: contain;
}

.card-meta {
    font-size: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.scroll-instruction {
    position: absolute;
    bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: #666;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.dot-indicator {
    width: 6px;
    height: 6px;
    background: #1a1a1a;
    border-radius: 50%;
    animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(2);
        opacity: 0.3;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@media (max-width: 992px) {
    .side-label {
        display: none;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 15px 20px;
    }

    .header-icons {
        gap: 15px;
    }

    .blog-scene {
        height: 400px;
    }

    .blog-wheel {
        width: 240px;
        height: 320px;
    }

    .blog-card {
        width: 240px;
        height: 320px;
    }

    .card-image {
        height: 220px;
    }

    .video-wrapper {
        height: 320px !important;
    }

    .hero-quote {
        font-size: 24px;
    }

    .scroll-instruction {
        bottom: 20px;
    }
}

@media (max-width: 480px) {
    .header-logo img {
        width: 80px;
    }

    .header-icons {
        gap: 12px;
    }

    .blog-scene {
        height: 350px;
    }

    .blog-wheel,
    .blog-card {
        width: 200px;
        height: 280px;
    }

    .card-image {
        height: 180px;
    }

    .video-wrapper {
        height: 280px !important;
    }

    .hero-quote {
        font-size: 20px;
    }
}
