:root {
    --bg-color: #ffffff;
    --text-color: #000000;
    --accent-color: #333333;
    --nav-height: 80px;
    --transition-speed: 0.6s;
}

[data-theme="dark"] {
    --bg-color: #000000;
    --text-color: #ffffff;
    --accent-color: #cccccc;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color var(--transition-speed), color var(--transition-speed);
    overflow-x: hidden;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    background-color: transparent;
    transition: transform 0.3s ease-in-out;
}

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

.navbar-container {
    width: 90%;
    max-width: 1400px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 60px;
    /* Increased from 40px */
    width: auto;
}

.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-color);
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.3s;
}

.theme-toggle:hover {
    background-color: rgba(128, 128, 128, 0.1);
}

/* Split Layout */
.split-container {
    display: flex;
    min-height: 100vh;
}

.left-section {
    flex: 1;
    z-index: 1;
}

.right-section {
    flex: 1;
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.content-block {
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 10%;
    text-align: center;
}

/* Long content pages strategy (Desktop) */
.stack-mobile .content-block {
    height: auto;
    min-height: 100vh;
    padding: 200px 10% 60px;
    /* Increased top padding from 120px to 200px */
    justify-content: flex-start;
}

.content-block h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    /* Reduced to fit price tag */
    line-height: 1.2;
    overflow-wrap: break-word;
    width: 100%;
}

.price-tag {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 2.5rem;
    opacity: 0.8;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.price-tag .original-price {
    font-size: 1.2rem;
    text-decoration: line-through;
    opacity: 0.5;
    font-weight: 300;
}

.price-tag .discounted-price {
    font-size: 2.5rem;
    font-weight: 700;
    opacity: 1;
}

.price-tag .discount-badge {
    font-size: 0.9rem;
    font-weight: 700;
    background-color: var(--text-color);
    color: var(--bg-color);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.3rem;
}

.action-btn {
    display: inline-block;
    padding: 15px 45px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    background-color: var(--text-color);
    color: var(--bg-color) !important;
    border: 2px solid var(--text-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
}

.action-btn:hover {
    background-color: transparent;
    color: var(--text-color) !important;
    text-decoration: none;
}

.content-block a {
    color: var(--text-color);
    text-decoration: underline;
    transition: opacity 0.3s;
    overflow-wrap: break-word;
}

.content-block a:hover {
    opacity: 0.7;
}

.social-links {
    display: flex;
    gap: 2rem;
    margin-top: 1.5rem;
    justify-content: center;
}

.social-link {
    transition: transform 0.3s, opacity 0.3s;
    display: flex;
    align-items: center;
}

.social-link:hover {
    opacity: 0.8;
    transform: translateY(-3px);
}

.social-link svg {
    width: 28px;
    height: 28px;
}

.logo-link {
    text-decoration: none;
    display: flex;
    align-items: center;
}

/* Contact Form Styles */
.contact-form {
    width: 100%;
    max-width: 500px;
    margin-top: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
    width: 100%;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--text-color);
    color: var(--text-color);
    outline: none;
    transition: border-color 0.3s;
}

.form-group textarea {
    resize: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-color);
    opacity: 0.5;
}

.form-group input:focus,
.form-group textarea:focus {
    border-bottom-color: var(--accent-color);
}

/* Stop browser autofill from changing background color */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--text-color) !important;
    -webkit-box-shadow: 0 0 0px 1000px var(--bg-color) inset !important;
    transition: background-color 5000s ease-in-out 0s;
}

.contact-form .action-btn {
    width: 100%;
    margin-top: 1rem;
}

/* Image Wrapper */
.image-wrapper {
    position: relative;
    width: 80%;
    height: 80%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.side-image {
    position: absolute;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity var(--transition-speed) ease-in-out, transform var(--transition-speed) ease-in-out;
    transform: translateY(20px);
}

.side-image.active {
    opacity: 1;
    transform: translateY(0);
}

/* Animations */
.reveal-text {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.reveal-text.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .split-container {
        flex-direction: column;
    }

    .left-section {
        order: 2;
    }

    .right-section {
        order: 1;
        position: fixed;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        height: 40vh;
        z-index: 0;
        pointer-events: none;
    }

    .content-block {
        padding-top: 45vh;
        /* Push text below fixed image area */
    }

    .content-block h1 {
        font-size: 2rem;
    }

    /* Stack Strategy for long content pages (Payment, Contact) */
    .split-container.stack-mobile {
        display: flex;
        flex-direction: column;
    }

    .split-container.stack-mobile .right-section {
        order: 1;
        position: sticky;
        top: var(--nav-height);
        height: 70vh;
        /* Increased to show almost the full image space */
        width: 100%;
        z-index: 1;
        background-color: var(--bg-color);
        flex: none;
        /* Don't grow */
    }

    .split-container.stack-mobile .image-wrapper {
        width: 95%;
        /* Make image take more space */
        height: 95%;
    }

    .split-container.stack-mobile .left-section {
        order: 2;
        position: relative;
        z-index: 2;
        /* Appear above image when scrolling */
        background-color: var(--bg-color);
        width: 100%;
        box-shadow: 0 -20px 20px rgba(0, 0, 0, 0.1);
        flex: none;
        margin-top: 0;
        /* Reset margin to start exactly after image */
    }

    [data-theme="dark"] .split-container.stack-mobile .left-section {
        box-shadow: 0 -20px 20px rgba(0, 0, 0, 0.5);
    }

    .split-container.stack-mobile .content-block {
        padding: 60px 10% 40px;
        /* More top padding */
        height: auto;
        min-height: 50vh;
    }

    .logo {
        height: 35px;
    }
}

/* Loading Overlay */
#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

#loading-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
}

.loading-logo {
    height: 50px;
    width: auto;
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
}

.greeting-text {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(128, 128, 128, 0.2);
    border-radius: 50%;
    border-top-color: var(--text-color);
    animation: spin 1s ease-in-out infinite;
    opacity: 0;
    animation: spin 1s ease-in-out infinite, fadeIn 0.8s ease-out 0.5s forwards;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

@media (max-width: 768px) {
    .greeting-text {
        font-size: 1.5rem;
        padding: 0 1rem;
    }
}