/* Light theme */
body {
    background-image: url('background.png');
    background-repeat: no-repeat;
    background-size: cover;
    color: #262626;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

/* Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 999px;
    z-index: 1000;
    padding: 12px 28px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.navbar.hidden {
    transform: translateX(-50%) translateY(-100%);
    opacity: 0;
}

.nav-menu {
    list-style: none;
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0.75rem 1.5rem;
}

.nav-item {
    margin: 0 1rem;
}

.nav-link {
    color: #262626;
    text-decoration: none;
    padding: 0.5rem 1rem;
    font-size: 1.2rem;
    transition: color 0.3s, transform 0.3s;
}

.nav-link img {
    width: 24px;
    height: 24px;
    vertical-align: middle;
}

.nav-link:hover {
    color: #8f7f6b;
    transform: scale(1.08);
}

/* Main content */
main {
    padding: 2rem;
    min-height: 100vh;
}

.hero {
    position: relative;
    min-height: 100vh;
    background-image: url('background.png');
    background-repeat: no-repeat;
    background-size: cover;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-bg {
    display: none;
}

.hero-content {
    text-align: center;
    z-index: 1;
}

.animated-text {
    font-size: 5rem;
    font-family: 'Allura', cursive;
    margin-bottom: 16px;
    color: #262626;
    animation: fadeInUp 2s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    margin: 0 auto 24px;
    font-size: 1.2rem;
    opacity: 0.85;
    white-space: nowrap;
    animation: fadeInUp 2s ease-out 0.5s both;
}

.button-primary {
    display: inline-block;
    padding: 14px 36px;
    background: #2b2b2b;
    color: #ffffff;
    text-decoration: none;
    border-radius: 999px;
    font-weight: 500;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    animation: fadeInUp 2s ease-out 1s both;
}

.button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(0,0,0,0.2);
}

.services {
    max-width: 1100px;
    margin: 0 auto;
    text-align: left;
    padding: 4rem 2rem;
}

.services h2 {
    color: #262626;
    margin-bottom: 2rem;
    text-align: center;
}

.service-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.card {
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    padding: 32px;
    width: 250px;
    transition: transform 0.3s ease;
}

.card::before {
    content: "";
    width: 40px;
    height: 2px;
    background: #8f7f6b;
    display: block;
    margin-bottom: 14px;
}

.card h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.card p {
    opacity: 0.85;
}

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

.projects, .contact {
    max-width: 800px;
    margin: 0 auto;
    padding-top: 6rem;
}

.pricing {
    max-width: 800px;
    margin: 0 auto;
    padding-top: 6rem;
}

h1 {
    color: #262626;
    text-align: center;
}

/* Projects */
.projects {
    padding-top: 6rem;
}

.projects h1 {
    text-align: center;
    margin-top: 2rem;
    font-family: 'Segoe UI', Tahoma, sans-serif;
    font-size: 2.5rem;
    font-weight: 300;
    color: #262626;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    letter-spacing: 2px;
    opacity: 0;
    animation: fadeInUp 2s ease-out forwards, titleGlow 2s ease-in-out 2s infinite alternate;
}

@keyframes titleGlow {
    from {
        text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    }
    to {
        text-shadow: 0 2px 4px rgba(38,38,38,0.5), 0 0 10px rgba(38,38,38,0.3);
    }
}

.book-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 2rem auto;
    max-width: 600px;
}

.book {
    position: relative;
    width: 400px;
    height: 600px;
    perspective: 1500px;
    transform-style: preserve-3d;
    cursor: pointer;
    opacity: 0;
    animation: fadeInBook 1.5s ease-out 0.5s forwards;
}

@keyframes fadeInBook {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.page {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    border-radius: 15px;
    padding: 2rem;
    box-sizing: border-box;
    transition: transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 1s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1), inset 0 0 20px rgba(38,38,38,0.1);
    z-index: 10;
}

.page.cover {
    background: linear-gradient(145deg, #B7A996, #a09080);
    color: #262626;
}

.page.active {
    transform: translateX(0) scale(1);
    opacity: 1;
}

.page:not(.active) {
    transform: translateX(0) scale(1);
    opacity: 0;
}

.project {
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.book-controls {
    margin-top: 2rem;
}

.book-controls button {
    background: #2b2b2b;
    color: #ffffff;
    border: none;
    padding: 14px 36px;
    margin: 0 0.5rem;
    border-radius: 999px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.book-controls button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(0,0,0,0.2);
}

/* Contact card */
.contact-card {
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 32px;
    border-radius: 18px;
    max-width: 500px;
    min-height: 450px;
    margin: 0 auto;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-card::before {
    content: "";
    width: 40px;
    height: 2px;
    background: #8f7f6b;
    display: block;
    margin: 0 auto 14px;
}

.contact-card h2 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.contact-card p {
    font-size: 1.1rem;
    opacity: 0.85;
}

.contact-card:hover {
    transform: translateY(-6px);
}

/* Pricing */
.pricing-plans {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    justify-content: center;
    max-width: 800px;
    margin: 0 auto;
}

.featured-plan {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}

.plan {
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 32px;
    border-radius: 18px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.plan::before {
    content: "";
    width: 40px;
    height: 2px;
    background: #8f7f6b;
    display: block;
    margin: 0 auto 14px;
}

.plan h2 {
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.plan p, .plan ul {
    opacity: 0.85;
}

.plan:hover {
    transform: translateY(-6px);
}

.plan.featured {
    width: 100%;
    max-width: 1200px;
    padding: 48px 32px;
}

.plan ul {
    list-style: none;
    padding: 0;
}