:root {
    --primary-color: #2c3e50;
    --accent-color: #d35400;
    /* Burnt Orange for urgency/CTA */
    --text-color: #333;
    --light-bg: #f9f9f9;
    --white: #ffffff;
    --hero-overlay: rgba(0, 0, 0, 0.4);
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

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

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

/* Typography */
h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2;
}

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

.highlight {
    color: var(--accent-color);
    font-style: italic;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(45deg, var(--accent-color), #e67e22);
    color: var(--white);
    border: none;
    box-shadow: 0 4px 15px rgba(211, 84, 0, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(211, 84, 0, 0.6);
}

.btn-outline {
    background: transparent;
    border: 2px solid #d35400;
    color: #d35400;
    margin-left: 15px;
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary-color);
}

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

.btn-lg {
    padding: 16px;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Pulse Animation */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(211, 84, 0, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(211, 84, 0, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(211, 84, 0, 0);
    }
}

.pulse-animation {
    animation: pulse 2s infinite;
}

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

/* Sticky Timer */
.sticky-timer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(90deg, #c0392b, #e74c3c);
    /* Red urgency background */
    color: var(--white);
    padding: 12px 0;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(192, 57, 43, 0.4);
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.sticky-timer.hidden {
    transform: translateY(-100%);
}

.timer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.countdown {
    font-weight: 800;
    font-family: 'Courier New', monospace;
    /* Digital clock feel */
    font-size: 1.8rem;
    color: #fff;
    background: rgba(0, 0, 0, 0.2);
    padding: 5px 15px;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    letter-spacing: 2px;
    animation: urgentPulse 1.5s infinite;
}

@keyframes urgentPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

.btn-micro {
    background: var(--white);
    color: #c0392b;
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 800;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.2s;
}

.btn-micro:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    background: #fff;
}

/* Hero Section */
@media(min-width:768px) {
    .hero-section {
        padding: 120px 0 100px;
    }
}

.hero-section {
    background: linear-gradient(to right, #ece9e6, #ffffff);
    position: relative;
    overflow: hidden;
}

.hero-section .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.hero-content {
    flex: 1;
    z-index: 2;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 30px;
    max-width: 500px;
}

.badge {
    background: #e1ecf4;
    color: var(--primary-color);
    padding: 5px 12px;
    border-radius: 15px;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    display: inline-block;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-item strong {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.stat-item span {
    font-size: 0.9rem;
    color: #888;
}

.book-cover-3d img {
    max-width: 600px;
    border-radius: 5px;
    box-shadow: -15px 15px 25px rgba(0, 0, 0, 0.3);
    transform: rotateY(-20deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

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

/* Custom Shape Divider */
.custom-shape-divider-bottom-1689 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.custom-shape-divider-bottom-1689 svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
}

.custom-shape-divider-bottom-1689 .shape-fill {
    fill: #FFFFFF;
}

/* Video Section */
.video-wrapper {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.video-container {
    position: relative;
    width: 100%;
    /* Changed from 80% to full width of grid cell */
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 5px solid #fff;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    width: 100%;
    margin-top: 40px;
}

@media (max-width: 768px) {
    .video-grid {
        grid-template-columns: 1fr;
    }
}

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

.section-desc {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 30px;
}

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

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 200px);
    gap: 15px;
    margin-top: 40px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 10px;
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Grid masonry feel */
.item-1 {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
}

.item-2 {
    grid-column: 3 / 5;
}

.item-3 {
    grid-column: 3 / 4;
}

.item-4 {
    grid-column: 4 / 5;
}

/* Features */
.features-wrapper {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
}

.feature-card {
    flex: 1;
    min-width: 250px;
    text-align: center;
    padding: 30px;
    border-radius: 15px;
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.icon-box {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.feature-card p {
    font-size: 0.9rem;
    color: #666;
}

/* Form Section */
.form-section-bg {
    background: linear-gradient(135deg, #2c3e50, #4ca1af);
    color: white;
}

.form-wrapper {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    color: var(--text-color);
}

.form-header {
    text-align: center;
    margin-bottom: 30px;
}

.highlight-text {
    color: #e74c3c;
    font-weight: 800;
    font-size: 1.5rem;
    background: #fde8e8;
    padding: 0 10px;
    border-radius: 5px;
    border: 1px dashed #e74c3c;
    display: inline-block;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

.required {
    color: red;
}

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

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(211, 84, 0, 0.1);
}

.quantity-control {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    width: fit-content;
}

.qty-btn {
    background: #eee;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: bold;
}

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

#quantity {
    width: 50px;
    text-align: center;
    border: none;
    margin: 0;
    padding: 0;
}

.form-note {
    text-align: center;
    font-size: 0.85rem;
    color: #888;
    margin-top: 15px;
    display: block;
}

/* Success Message */
.hidden {
    display: none !important;
}

.success-content {
    text-align: center;
    padding: 20px;
}

.check-icon {
    font-size: 4rem;
    color: #27ae60;
    margin-bottom: 20px;
    animation: scaleUp 0.5s ease;
}

@keyframes scaleUp {
    from {
        transform: scale(0);
    }

    to {
        transform: scale(1);
    }
}

/* Footer */
footer {
    background: #222;
    color: #888;
    padding: 30px 0;
    text-align: center;
}

.social-links {
    margin-top: 15px;
}

.social-links a {
    color: #fff;
    margin: 0 10px;
    font-size: 1.2rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--accent-color);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-section .container {
        flex-direction: column-reverse;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-actions {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

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

    .hero-stats {
        justify-content: center;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .item-1,
    .item-2,
    .item-3,
    .item-4 {
        grid-column: auto;
        grid-row: auto;
    }

    .video-container {
        width: 100%;
    }
}

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-fade-in {
    opacity: 0;
    transition: opacity 1s ease-out;
}

.animate-fade-in.is-visible {
    opacity: 1;
}

.animate-zoom-in {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-zoom-in.is-visible {
    opacity: 1;
    transform: scale(1);
}

.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}
/* Utility Classes */
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mb-40 { margin-bottom: 40px; }

/* Book Detail Layout */
.book-detail-row {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 30px;
}

.book-detail-row.reverse {
    flex-direction: row-reverse;
}

.book-image {
    flex: 1;
    min-width: 300px;
}

.book-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.book-image:hover img {
    transform: scale(1.02);
}

.book-content {
    flex: 1.5;
    min-width: 300px;
}

.highlight-box {
    background: white;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--accent-color);
}

.check-list {
    list-style: none;
}

.check-list li {
    margin-bottom: 10px;
    font-size: 1.05rem;
    display: flex;
    align-items: flex-start;
}

.check-list li i {
    color: green;
    margin-right: 12px;
    margin-top: 5px; /* Align icon with text top */
}

/* Author Section */
.author-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.author-img {
    flex-shrink: 0;
}

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

.author-info ul li i {
    color: var(--accent-color);
}

/* FAQ Section */
.faq-list {
    margin-top: 30px;
}

.faq-item {
    background: white;
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.3s;
}

.faq-item:hover {
    box-shadow: var(--shadow-lg);
}

.faq-question {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.faq-answer {
    color: #555;
    font-size: 1.1rem;
    padding-left: 20px;
    border-left: 3px solid #ddd;
}

/* Mobile Responsive Updates */
@media (max-width: 768px) {
    .book-detail-row, 
    .book-detail-row.reverse {
        flex-direction: column;
        text-align: left;
    }
    
    .author-wrapper {
        text-align: center;
    }
    
    .check-list li {
        text-align: left;
    }
}

/* Price Highlighting */
.price-highlight {
    font-size: 2.5rem;
    color: #e74c3c;
    font-weight: 900;
    display: inline-block;
    background: #ffeaa7;
    padding: 5px 15px;
    border-radius: 10px;
    margin: 10px 0;
    box-shadow: 0 4px 10px rgba(231, 76, 60, 0.2);
    transform: rotate(-2deg);
    border: 2px dashed #e74c3c;
}

.price-original {
    font-size: 1.2rem;
    color: #95a5a6;
    margin-left: 10px;
}
