:root {
    --primary-red: #E01919;
    --red-hover: #b31212;
    --bg-white: #FFFFFF;
    --bg-light: #F8F9FA;
    --text-black: #0A0A0A;
    --text-grey: #555555;
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Poppins', sans-serif;
    --container-width: 1200px;
}

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

body {
    font-family: var(--font-body);
    font-weight: 300;
    color: var(--text-black);
    line-height: 1.6;
    background-color: var(--bg-white);
}

h1,
h2,
h3,
h4,
h5 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-weight: 700;
    line-height: 1.1;
}

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

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.text-red {
    color: var(--primary-red);
}

.text-white {
    color: #fff;
}

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

.bg-light {
    background-color: var(--bg-light);
}

.bg-black {
    background-color: var(--text-black);
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mb-5 {
    margin-bottom: 3rem;
}

.mt-5 {
    margin-top: 3rem;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background-color: var(--primary-red);
    color: #fff;
    padding: 15px 35px;
    font-family: var(--font-heading);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: var(--red-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(224, 25, 25, 0.3);
}

.btn-sm {
    background-color: var(--text-black);
    color: #fff;
    padding: 8px 20px;
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-size: 0.9rem;
}

.btn-sm:hover {
    background-color: var(--primary-red);
}

.link-secondary {
    display: inline-block;
    margin-left: 20px;
    color: var(--text-black);
    border-bottom: 1px solid var(--text-black);
    font-size: 0.95rem;
}

.link-secondary:hover {
    color: var(--primary-red);
    border-color: var(--primary-red);
}

.btn-outline {
    display: inline-block;
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
    padding: 13px 33px;
    font-family: var(--font-heading);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1.1rem;
    cursor: pointer;
    margin-left: 15px;
}

.btn-outline:hover {
    background: #fff;
    color: var(--text-black);
}

.btn-outline-dark {
    display: inline-block;
    background: transparent;
    border: 2px solid var(--text-black);
    color: var(--text-black);
    padding: 13px 33px;
    font-family: var(--font-heading);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1.1rem;
    cursor: pointer;
    margin-left: 15px;
}

.btn-outline-dark:hover {
    background: var(--text-black);
    color: #fff;
}

/* Sections */
.section-padding {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

/* Navigation */
.navbar {
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

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

.logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    /* Offset for fixed nav */
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    align-items: center;
    z-index: 2;
    position: relative;
}

.hero-title {
    font-size: 4.8rem;
    line-height: 0.95;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: 1.2rem;
    color: var(--text-grey);
    text-transform: none;
    font-weight: 400;
    margin-bottom: 2.5rem;
}

.book-container {
    position: relative;
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
    perspective: 1000px;
}

.book-3d {
    width: 100%;
    display: block;
    /* Basic shadow/float applied via animation css mostly but here's base styling */
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.3));
    transform: rotateY(-15deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.book-3d:hover {
    transform: rotateY(0deg) rotateX(0deg) scale(1.05);
}

/* Agitation Section */
.agitation-card {
    background: #fff;
    padding: 30px;
    border: 1px solid #eee;
    border-top: 4px solid var(--primary-red);
    transition: transform 0.3s ease;
}

.agitation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.card-icon {
    font-size: 2rem;
    color: var(--primary-red);
    margin-bottom: 1rem;
}

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

/* Author Section */
.author-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.author-img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    /* Attempt to crop to the author face if it is the full back cover */
    object-fit: cover;
    max-height: 600px;
}

.lead {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

/* Features (ZigZag) */
.zigzag-layout {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.zigzag-item {
    display: flex;
    align-items: center;
    border-left: 2px solid var(--primary-red);
    padding-left: 30px;
}

.zigzag-item h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--primary-red);
}

/* Youth Vibe (Video Grid) */
.video-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 3rem;
}

.video-card {
    background-color: #222;
    aspect-ratio: 9/16;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.video-card:hover {
    transform: scale(1.05);
    border: 1px solid var(--primary-red);
    box-shadow: 0 8px 25px rgba(224, 25, 25, 0.3);
}

.play-icon {
    font-size: 3rem;
    color: #fff;
    opacity: 0.8;
    margin-bottom: 10px;
}

.video-caption {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    text-transform: uppercase;
    text-align: center;
    position: absolute;
    bottom: 20px;
    width: 100%;
    padding: 0 10px;
}

/* Events Section */
.event-card {
    background: #fff;
    display: flex;
    align-items: center;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
    padding: 30px;
    border: 1px solid #eee;
    border-left: 5px solid var(--primary-red);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.event-image img {
    max-width: 400px;
    width: 100%;
    border-radius: 5px;
}

.event-details h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.event-date,
.event-location {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-grey);
}

.event-details .btn-primary {
    margin-top: 20px;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-title {
        font-size: 3.5rem;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
    }

    .hero-cta {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .link-secondary {
        margin-left: 0;
    }

    .author-grid {
        grid-template-columns: 1fr;
    }

    .author-image-container {
        order: -1;
    }

    .grid-3 {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 576px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .video-grid {
        grid-template-columns: 1fr;
        padding: 0 50px;
    }

    .cta-group {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .btn-outline {
        margin-left: 0;
    }
}

/* Payment Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s;
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 40px;
    border: 1px solid #888;
    width: 90%;
    max-width: 500px;
    border-radius: 10px;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s;
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.close-modal:hover {
    color: var(--primary-red);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    text-transform: uppercase;
    font-family: var(--font-heading);
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #eee;
    border-radius: 5px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-red);
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

.mb-3 {
    margin-bottom: 1rem;
}

.divider {
    text-align: center;
    margin: 15px 0;
    color: #999;
    font-size: 0.9rem;
    position: relative;
}

.divider::before,
.divider::after {
    content: "";
    display: inline-block;
    width: 40%;
    height: 1px;
    background: #eee;
    vertical-align: middle;
    margin: 0 10px;
}

.btn-whatsapp {
    background-color: #25D366;
    color: #fff;
    padding: 15px 35px;
    font-family: var(--font-heading);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-whatsapp:hover {
    background-color: #1ebc57;
}

.secure-notice {
    text-align: center;
    margin-top: 20px;
    font-size: 0.8rem;
    color: #888;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Cart Styles */
.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cart-icon-container {
    position: relative;
    cursor: pointer;
    font-size: 1.4rem;
    color: var(--text-black);
    transition: color 0.3s;
}

.cart-icon-container:hover {
    color: var(--primary-red);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--primary-red);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    height: 18px;
    width: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    /* Hidden by default via JS if 0, but good to have base style */
}

/* Cart Modal Specifics */
.cart-items {
    max-height: 300px;
    overflow-y: auto;
    margin: 20px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f9f9f9;
}

.cart-item:last-child {
    border-bottom: none;
}

.item-info h4 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.item-price {
    font-size: 0.9rem;
    color: var(--text-grey);
}

.item-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.qty-btn {
    background: #eee;
    border: none;
    width: 25px;
    height: 25px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.qty-btn:hover {
    background: #ddd;
}

.remove-btn {
    color: var(--primary-red);
    cursor: pointer;
    margin-left: 10px;
    transition: all 0.3s ease;
}

.remove-btn:hover,
.remove-btn:focus {
    opacity: 0.7;
    outline: 2px solid var(--primary-red);
    outline-offset: 2px;
}

.remove-btn:active {
    opacity: 0.5;
}

.cart-summary {
    margin-top: 20px;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: 700;
    font-family: var(--font-heading);
    margin-bottom: 20px;
}

/* Add to Cart Button override */
/* Add to Cart Button override */
.add-to-cart-btn {
    /* Inherits btn-primary but we can add specific icon spacing if needed */
    position: relative;
}

/* Distribution & Contact Section */
.distribution-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 3rem;
}

.dist-column h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-black);
    border-bottom: 2px solid var(--primary-red);
    display: inline-block;
    padding-bottom: 5px;
}

.dist-list,
.contact-list {
    list-style: none;
}

.dist-list li,
.contact-list li {
    margin-bottom: 15px;
    font-size: 1.05rem;
}

.dist-list li a,
.contact-list li a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-black);
    font-weight: 500;
}

.dist-list li a:hover,
.contact-list li a:hover {
    color: var(--primary-red);
}

.dist-list i,
.contact-list i {
    width: 25px;
    color: var(--primary-red);
}

.campus-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

/* Product Showcase Section */
.showcase {
    background-color: #fff;
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    grid-auto-rows: 300px;
    gap: 20px;
    padding: 20px 0;
}

/* Make specific items span larger areas for "masonry-like" feel if possible, 
   or just keep uniform. For now, uniform is safer for dynamic content unless we calculate spans in JS. 
   Lets try a slight variation for the first item if screen is large enough */

@media (min-width: 992px) {
    .showcase-card:nth-child(1) {
        grid-column: span 2;
        grid-row: span 2;
    }
}

.showcase-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    background: #f0f0f0;
    /* skeleton data placeholder color */
}

.showcase-card:hover {
    transform: scale(1.02) translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

.showcase-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
    display: block;
}

.showcase-card:hover .showcase-img {
    transform: scale(1.1);
}

.showcase-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 30px 20px 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.showcase-card:hover .showcase-overlay {
    opacity: 1;
    transform: translateY(0);
}

.showcase-overlay h3 {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Responsive adjustments for showcase */
@media (max-width: 768px) {
    .showcase-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        grid-auto-rows: 250px;
    }
}

/* Interactive Campus Tags */
.campus-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.campus-tag {
    background: #f1f1f1;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-grey);
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.campus-tag:hover {
    background: #e9e9e9;
    color: var(--text-black);
    transform: translateY(-2px);
}

.campus-tag.active {
    background: var(--primary-red);
    color: #fff;
    box-shadow: 0 4px 10px rgba(224, 25, 25, 0.3);
}

.distributor-info-box {
    background: #fcfcfc;
    border: 1px solid #eee;
    padding: 15px;
    border-radius: 8px;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: all 0.3s ease;
}

.distributor-info-box h4 {
    margin-bottom: 5px;
    color: var(--primary-red);
    font-size: 1.1rem;
}

.distributor-info-box a {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-black);
}

.distributor-info-box a:hover {
    color: var(--primary-red);
    text-decoration: underline;
}

.text-sm {
    font-size: 0.85rem;
}

@media (max-width: 992px) {
    .distribution-grid {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }

    .dist-column h3 {
        display: inline-block;
    }

    .dist-list li a,
    .contact-list li a {
        justify-content: center;
    }

    .campus-tags {
        justify-content: center;
    }
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: #fff;
    background-color: #1ebc57;
}

@media (max-width: 576px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 25px;
    }
}