/* ================= VARIABLES ================= */
:root {
    --dark: #0a0a0a;
    --dark-alt: #161616;
    --beige: #e8dcca;
    --brown: #a67c52;
    --brown-light: #c29b74;
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(232, 220, 202, 0.1);
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Poppins', sans-serif;
}

/* ================= RESET ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--dark);
    color: var(--beige);
    font-family: var(--font-body);
    overflow-x: hidden;
    cursor: none; /* Custom cursor */
}

/* ================= CUSTOM CURSOR ================= */
.cursor {
    width: 8px;
    height: 8px;
    background: var(--brown);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background 0.3s;
}

.cursor-follower {
    width: 30px;
    height: 30px;
    border: 1px solid var(--brown);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: 0.1s ease-out;
}

.cursor.hover {
    width: 40px;
    height: 40px;
    background: rgba(166, 124, 82, 0.2);
}

/* ================= PRELOADER ================= */
.preloader {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100vh;
    background: var(--dark);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease-out;
}

.loader-text {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--beige);
    letter-spacing: 5px;
    animation: pulse 1.5s infinite alternate;
}

@keyframes pulse {
    0% { opacity: 0.3; filter: blur(2px); }
    100% { opacity: 1; filter: blur(0); text-shadow: 0 0 20px var(--brown); }
}

/* ================= SCROLL PROGRESS ================= */
.scroll-progress {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    background: var(--brown);
    width: 0%;
    z-index: 9999;
    transition: width 0.1s;
}

/* ================= UTILITIES ================= */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
}

.section-padding {
    padding: 100px 10%;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--white);
    margin-bottom: 10px;
}

.section-title p {
    color: var(--brown-light);
    font-size: 1.1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ================= NAVBAR ================= */
.navbar {
    position: fixed;
    top: 0; left: 0; width: 100%;
    padding: 25px 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 15px 10%;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

.logo a {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    color: var(--beige);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
    transition: var(--transition);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0%;
    height: 2px;
    background: var(--brown);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 25px;
    font-size: 1.2rem;
}

.hover-glow {
    cursor: pointer;
    transition: var(--transition);
}

.hover-glow:hover {
    color: var(--brown);
    text-shadow: 0 0 10px var(--brown);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger .line {
    width: 25px; height: 2px;
    background: var(--beige);
    margin: 5px;
    transition: var(--transition);
}

/* ================= HERO SECTION ================= */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.video-container {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -2;
}

.bg-video {
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0.4;
}

.video-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle, transparent 0%, var(--dark) 100%);
    z-index: -1;
}

.hero-content {
    text-align: center;
    z-index: 1;
    max-width: 800px;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 5rem;
    line-height: 1.2;
    color: var(--white);
    margin-bottom: 20px;
}

.typing-text {
    color: var(--brown);
    font-style: italic;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 40px;
    color: #cccccc;
}

.btn {
    padding: 15px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 1px;
    transition: var(--transition);
    display: inline-block;
    margin: 0 10px;
}

.btn-primary {
    background: var(--brown);
    color: var(--white);
    border: 1px solid var(--brown);
}

.btn-primary:hover {
    background: transparent;
    box-shadow: 0 0 20px rgba(166, 124, 82, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--beige);
    border: 1px solid var(--beige);
}

.btn-secondary:hover {
    background: var(--beige);
    color: var(--dark);
}

/* Particles */
.particles {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: -1;
}

.particle {
    position: absolute;
    background: var(--brown);
    border-radius: 50%;
    filter: blur(2px);
    animation: float 10s infinite linear;
    opacity: 0.3;
}

@keyframes float {
    0% { transform: translateY(0) rotate(0deg); opacity: 0; }
    50% { opacity: 0.5; }
    100% { transform: translateY(-100vh) rotate(360deg); opacity: 0; }
}

/* ================= SHOWCASE (SWIPER) ================= */
.showcase {
    background: linear-gradient(180deg, var(--dark) 0%, var(--dark-alt) 100%);
}

.swiper {
    width: 100%;
    padding-bottom: 60px;
}

.book-card {
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: var(--transition);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.book-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    border-color: rgba(166, 124, 82, 0.3);
}

.book-3d {
    width: 200px;
    height: 300px;
    margin-bottom: 20px;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-style: preserve-3d;
}

.book-3d img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
    box-shadow: 5px 5px 20px rgba(0,0,0,0.5);
}

.book-card:hover .book-3d {
    transform: rotateY(-20deg) scale(1.05);
}

.stars {
    color: var(--brown);
    margin-bottom: 10px;
}

.book-info h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 5px;
}

.author {
    font-size: 0.9rem;
    color: #999;
    margin-bottom: 20px;
}

.book-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.price {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--beige);
}

.btn-buy {
    background: transparent;
    color: var(--brown);
    border: 1px solid var(--brown);
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-buy:hover {
    background: var(--brown);
    color: var(--white);
    box-shadow: 0 0 15px rgba(166, 124, 82, 0.4);
}

/* Pagination Dots */
.swiper-pagination-bullet {
    background: var(--beige) !important;
}
.swiper-pagination-bullet-active {
    background: var(--brown) !important;
}

/* ================= ABOUT US ================= */
.about {
    background: var(--dark-alt);
}

.about-container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-img {
    flex: 1;
    position: relative;
}

.about-img img {
    width: 100%;
    border-radius: 20px;
    filter: brightness(0.8);
}

.img-overlay {
    position: absolute;
    bottom: -20px; right: -20px;
    padding: 30px;
    background: rgba(20,20,20,0.8);
}

.img-overlay h4 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--brown);
}

.about-content {
    flex: 1;
}

.about-content h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--white);
    margin-bottom: 20px;
}

.about-content p {
    line-height: 1.8;
    color: #ccc;
    margin-bottom: 40px;
}

.counters {
    display: flex;
    gap: 40px;
}

.counter-box h3 {
    font-size: 2.5rem;
    color: var(--brown);
    font-weight: 600;
}

.counter-box span {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ================= SERVICES ================= */
.services {
    background: var(--dark);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.service-card {
    padding: 50px 30px;
    text-align: center;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    background: rgba(166, 124, 82, 0.05);
}

.service-card i {
    font-size: 3rem;
    color: var(--brown);
    margin-bottom: 20px;
    transition: var(--transition);
}

.service-card:hover i {
    text-shadow: 0 0 20px var(--brown);
    transform: scale(1.1);
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--white);
}

.service-card p {
    color: #aaa;
    line-height: 1.6;
}

/* ================= EXPERIENCE / TIMELINE ================= */
.experience {
    background: var(--dark-alt);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background: var(--glass-border);
    top: 0; bottom: 0; left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background: inherit;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-dot {
    position: absolute;
    width: 20px; height: 20px;
    right: -10px;
    background: var(--brown);
    border: 4px solid var(--dark);
    border-radius: 50%;
    top: 15px;
    z-index: 1;
    box-shadow: 0 0 10px var(--brown);
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -10px;
}

.timeline-content {
    padding: 30px;
}

.timeline-content h3 {
    color: var(--brown);
    font-size: 1.8rem;
    font-family: var(--font-heading);
}

.timeline-content h4 {
    color: var(--white);
    margin: 10px 0;
}

.timeline-content p {
    color: #aaa;
    font-size: 0.9rem;
}

/* ================= FOOTER ================= */
.footer {
    background: url('https://images.unsplash.com/photo-1456324504439-367cee3b3c32?q=80&w=1920&auto=format&fit=crop') center/cover;
    position: relative;
    z-index: 1;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(10, 10, 10, 0.9);
    z-index: -1;
}

.footer-container {
    margin: 50px 10%;
    padding: 60px;
    border-radius: 20px 20px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-brand h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 20px;
}

.footer-brand p {
    color: #aaa;
    margin-bottom: 20px;
}

.socials a {
    color: var(--beige);
    font-size: 1.2rem;
    margin-right: 15px;
    transition: var(--transition);
}

.socials a:hover {
    color: var(--brown);
    transform: translateY(-3px);
}

.footer-links h3, .footer-newsletter h3 {
    font-family: var(--font-heading);
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul a {
    color: #aaa;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links ul a:hover {
    color: var(--brown);
    padding-left: 5px;
}

.newsletter-form {
    display: flex;
    margin-top: 15px;
}

.newsletter-form input {
    width: 100%;
    padding: 12px 15px;
    border: none;
    background: rgba(255,255,255,0.1);
    color: var(--white);
    border-radius: 5px 0 0 5px;
    outline: none;
}

.newsletter-form button {
    border-radius: 0 5px 5px 0;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid var(--glass-border);
    padding-top: 20px;
    color: #777;
    font-size: 0.9rem;
}

/* ================= RESPONSIVE ================= */
@media screen and (max-width: 992px) {
    .section-padding { padding: 80px 5%; }
    .hero-content h1 { font-size: 3.5rem; }
    .about-container { flex-direction: column; }
    .timeline::after { left: 31px; }
    .timeline-item { width: 100%; padding-left: 70px; padding-right: 0; }
    .timeline-item:nth-child(even) { left: 0; }
    .timeline-dot { left: 21px !important; }
    .footer-grid { grid-template-columns: 1fr; }
}

@media screen and (max-width: 768px) {
    .nav-links, .nav-actions .fa-solid { display: none; }
    .hamburger { display: block; }
    .hero-content h1 { font-size: 2.8rem; }
    .counters { flex-direction: column; gap: 20px; }
    .footer-container { padding: 30px; margin: 0; border-radius: 0; }
    
    /* Mobile Menu Active */
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%; left: 0; width: 100%;
        background: rgba(10,10,10,0.95);
        backdrop-filter: blur(20px);
        padding: 20px;
        text-align: center;
        border-bottom: 1px solid var(--glass-border);
    }
}