:root {
    --bg-dark: #0a0a0a;
    --bg-light: #f5f4ef;
    --text-light: #f5f4ef;
    --text-dark: #1a1a1a;
    --accent: #d8c3a5;
    --accent-dark: #8e806a;
    --font-sans: 'Outfit', sans-serif;
    --font-serif: 'Playfair Display', serif;
    --transition: cubic-bezier(0.77, 0, 0.175, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-dark);
    color: var(--text-light);
    overflow-x: hidden;
    cursor: none;
    /* using custom cursor */
}

/* Custom Cursor */
.cursor {
    width: 8px;
    height: 8px;
    background-color: var(--accent);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 999999;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

.cursor-follower {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(216, 195, 165, 0.5);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 999998;
    transform: translate(-50%, -50%);
    transition: transform 0.1s linear, width 0.3s, height 0.3s, background-color 0.3s;
}

.cursor-hover .cursor {
    width: 0;
    height: 0;
}

.cursor-hover .cursor-follower {
    width: 60px;
    height: 60px;
    background-color: rgba(216, 195, 165, 0.2);
    border-color: var(--accent);
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--bg-dark);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    transition: opacity 1s var(--transition), visibility 1s;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-text span {
    font-family: var(--font-serif);
    font-size: 2rem;
    letter-spacing: 4px;
    color: var(--accent);
}

.progress-bar {
    width: 200px;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.1);
    margin-top: 20px;
    overflow: hidden;
}

.progress {
    width: 0%;
    height: 100%;
    background-color: var(--accent);
    transition: width 0.5s ease;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 30px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: padding 0.5s var(--transition), background-color 0.5s;
}

.navbar.scrolled {
    padding: 20px 50px;
    background-color: #313d4b;
    backdrop-filter: blur(10px);
}

.navbar .logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-light);
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -100%;
    width: 100%;
    height: 1px;
    background-color: var(--accent);
    transition: left 0.4s var(--transition);
}

.nav-link:hover::after {
    left: 0;
}

/* Hero */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 10%;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 110%;
    /* Extra height for parallax */
    background-size: cover;
    background-position: center;
    z-index: -2;
    transform: translateY(0);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.3) 100%);
    z-index: -1;
}

.hero-content {
    max-width: 800px;
}

.subtitle {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 5px;
    color: var(--accent);
    margin-bottom: 20px;
}

.title {
    font-family: var(--font-serif);
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 30px;
    font-weight: 400;
}

.description {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #cccccc;
    margin-bottom: 50px;
    max-width: 500px;
}

.btn-primary {
    display: inline-block;
    padding: 15px 40px;
    border: 1px solid var(--accent);
    color: var(--text-light);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    position: relative;
    overflow: hidden;
    transition: color 0.4s ease;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: var(--accent);
    z-index: -1;
    transition: left 0.4s var(--transition);
}

.btn-primary:hover {
    color: var(--bg-dark);
}

.btn-primary:hover::before {
    left: 0;
}

.scroll-indicator {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.scroll-indicator span {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--text-light);
}

.scroll-line {
    width: 1px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--accent);
    animation: scrollAnimation 2s infinite ease-in-out;
}

@keyframes scrollAnimation {
    0% {
        top: -100%;
    }

    100% {
        top: 100%;
    }
}

/* Sections */
.section {
    padding: 80px 10px;
}

.dark-section {
    background-color: var(--bg-dark);
    color: var(--text-light);
}

.light-section {
    background-color: var(--bg-light);
    color: var(--text-dark);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 50px;
}

.split-layout {
    display: flex;
    align-items: center;
    gap: 100px;
}

.split-layout.reverse {
    flex-direction: row-reverse;
}

.split-text {
    flex: 1;
}

.split-image {
    flex: 1;
    position: relative;
    height: 600px;
    overflow: hidden;
}

.parallax-img {
    width: 100%;
    height: 120%;
    /* For parallax effect */
    background-size: cover;
    background-position: center;
    transform: translateY(-10%);
}

.section-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent);
    display: block;
    margin-bottom: 20px;
}

.light-section .section-label {
    color: var(--accent-dark);
    font-weight: 600;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 4rem;
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 30px;
}

.section-paragraph {
    font-size: 1.1rem;
    line-height: 1.8;
    color: inherit;
    opacity: 0.8;
    margin-bottom: 40px;
}

/* Enhancements */
.feature-list {
    list-style: none;
}

.feature-list li {
    font-size: 1.1rem;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    padding-left: 30px;
}

.feature-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background-color: var(--accent);
    border-radius: 50%;
}

.glass-card {
    position: absolute;
    bottom: -40px;
    left: -40px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 40px;
    width: 350px;
    color: var(--text-light);
}

.right-card {
    left: auto;
    right: -40px;
    background: rgba(10, 10, 10, 0.6);
    color: var(--text-light);
}

.glass-card h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.glass-card p {
    font-size: 0.9rem;
    line-height: 1.6;
    opacity: 0.8;
}

/* Stats */
.stats {
    display: flex;
    gap: 50px;
    margin-top: 50px;
}

.stat-box {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    color: var(--accent-dark);
    line-height: 1;
}

.stat-number .unit {
    font-size: 1.5rem;
    font-family: var(--font-sans);
}

.stat-desc {
    margin-top: 10px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Cards Grid */
.text-center {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 80px;
}

.center-para {
    margin: 0 auto;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.card {
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 60px 40px;
    position: relative;
    transition: transform 0.5s var(--transition), background-color 0.5s;
}

.card:hover {
    transform: translateY(-10px);
    background-color: rgba(255, 255, 255, 0.03);
}

.card-tier {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 20px;
}

.card h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.card p {
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.7;
    margin-bottom: 40px;
}

.card-badge {
    position: absolute;
    bottom: 40px;
    left: 40px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 8px 15px;
    border: 1px solid var(--accent);
    color: var(--accent);
}

/* Footer */
.footer {
    padding: 100px 50px 30px;
    background-color: #050505;
    color: var(--text-light);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 80px;
}

.footer-logo {
    font-family: var(--font-serif);
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--text-light);
}

.footer-col {
    max-width: 300px;
}

.footer-col p {
    line-height: 1.8;
    color: #999;
}

.footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 500;
}

.contact-hl {
    font-size: 1.5rem !important;
    color: var(--text-light) !important;
    margin: 15px 0;
}

.mail-link {
    color: var(--accent);
    text-decoration: none;
    position: relative;
}

.mail-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--accent);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
    color: #999;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    font-size: 0.8rem;
    color: #666;
}

.footer-bottom a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-bottom a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Animations */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s var(--transition), transform 1s var(--transition);
}

.reveal-on-scroll.left {
    transform: translateX(-40px);
}

.reveal-on-scroll.right {
    transform: translateX(40px);
}

.reveal-on-scroll.is-revealed {
    opacity: 1;
    transform: translate(0, 0);
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

.delay-3 {
    transition-delay: 0.6s;
}

/* Responsive */
@media (max-width: 1024px) {

    .split-layout,
    .split-layout.reverse {
        flex-direction: column;
        gap: 60px;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .title {
        font-size: 4rem;
    }

    .section-title {
        font-size: 3rem;
    }

    .footer-container {
        flex-direction: column;
        gap: 50px;
    }
}

@media (max-width: 768px) {

    .container {
        padding: 0 20px;
    }

    body {
        cursor: auto;
    }

    .cursor,
    .cursor-follower {
        display: none !important;
    }

    .title {
        font-size: 2.2rem;
    }

    .hero-content {
        text-align: center;
    }

    .btn-primary {
        margin: 0 auto;
    }

    .glass-card {
        width: 90%;
        left: 5%;
        bottom: 20px;
    }

    .split-image {
        height: 400px;
    }

    /* Scroll-reveal + global parallax JS break mid-page background images on small viewports */
    .reveal-on-scroll,
    .reveal-on-scroll.left,
    .reveal-on-scroll.right {
        opacity: 1;
        transform: none;
    }

    .parallax-img {
        transform: none !important;
        height: 100%;
    }
}

/* Sub-Pages Additions */
.sub-hero {
    height: 50vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: 80px;
}

.sub-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    background-size: cover;
    background-position: center;
    z-index: -2;
}

.sub-hero-content {
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.page-title {
    font-family: var(--font-serif);
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 400;
}

.page-description {
    font-size: 1.2rem;
    color: #cccccc;
}

/* Downloads Additions */
.download-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 50px;
}

.btn-download {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: all 0.3s var(--transition);
}

.btn-download:hover {
    background: var(--accent);
    color: var(--bg-dark);
    border-color: var(--accent);
}

.light-section .btn-download {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--text-dark);
}

.light-section .btn-download:hover {
    background: var(--accent);
    color: var(--bg-dark);
    border-color: var(--accent);
}

.download-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Contact Form */
.contact-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 100px 20px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 15px;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-light);
    font-family: var(--font-sans);
    font-size: 1.1rem;
    transition: border-color 0.3s ease;
    outline: none;
}

.form-input:focus,
.form-textarea:focus {
    border-color: var(--accent);
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 100000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-height: 85vh;
    max-width: 90vw;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0,0,0,0.8);
    animation: fadeIn 0.3s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #fff;
    font-size: 45px;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 100001;
    line-height: 1;
}

.lightbox-close:hover {
    color: var(--accent);
}

.lightbox-prev, .lightbox-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    color: white;
    font-weight: bold;
    font-size: 24px;
    transition: 0.3s ease;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    user-select: none;
    z-index: 100001;
}

.lightbox-prev:hover, .lightbox-next:hover {
    background-color: var(--accent);
    color: var(--bg-dark);
    border-color: var(--accent);
}

.lightbox-prev {
    left: 40px;
}

.lightbox-next {
    right: 40px;
}

@media (max-width: 768px) {
    .lightbox-prev { left: 10px; }
    .lightbox-next { right: 10px; }
    .lightbox-close { top: 15px; right: 20px; }
}

/* PDF Modal Specific Styles */
#pdf-modal {
    display: none;
    align-items: center;
    justify-content: center;
    position: fixed;
    z-index: 100000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

#pdf-modal.active {
    display: flex;
}

.pdf-modal-content {
    width: 90%;
    max-width: 1000px;
    height: 90vh;
    background: var(--bg-light);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.3s ease-out forwards;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    position: relative;
}

.pdf-modal-footer {
    display: flex;
    justify-content: center;
    padding-top: 15px;
    margin-top: auto;
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

/* Gallery Grids replacing Inline Styles */
.image-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.image-gallery-grid-double {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    height: 100%;
}

/* Hamburger Menu UI */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: auto !important;
    z-index: 2000;
}
.hamburger span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: var(--text-light);
    transition: 0.3s;
}

/* Comprehensive Mobile Responsiveness */
@media (max-width: 768px) {
    .image-gallery-grid,
    .image-gallery-grid-double {
        grid-template-columns: 1fr !important;
    }

    .hamburger {
        display: flex;
    }

    .nav-links {
        display: none; /* Initially hide until toggled */
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        width: 100vw;
        height: 100vh;
        background-color: var(--bg-dark);
        align-items: center;
        justify-content: center;
        z-index: 1000;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }

    .nav-links.active {
        display: flex;
        opacity: 1;
        pointer-events: all;
    }

    .nav-links a {
        font-size: 1.5rem;
        margin: 20px 0;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .section-title {
        font-size: 2.2rem;
    }

    .page-title {
        font-size: 2.8rem;
    }

    .section {
        padding: 50px 0;
    }

    div[style*="display: grid"] {
        grid-template-columns: 1fr !important;
    }

    .stats {
        flex-direction: column;
        gap: 20px;
    }

    .footer-container {
        flex-direction: column;
        gap: 40px;
    }

    .download-grid {
        gap: 15px;
    }

    .btn-download {
        margin-bottom: 10px;
        min-width: 100%;
    }

    h2.text-center {
        font-size: 2rem !important;
    }

    p.section-paragraph {
        font-size: 1rem;
    }

    /* Homepage Hero Specific Overrides */
    .title {
        font-size: 2.8rem !important;
        line-height: 1.1 !important;
    }
    .subtitle {
        font-size: 0.8rem !important;
        letter-spacing: 3px !important;
    }
    .description {
        font-size: 1rem !important;
    }
    .cta-group {
        flex-direction: column !important;
        gap: 15px !important;
    }
    .cta-group .btn-primary {
        width: 100% !important;
        padding: 15px 10px !important;
        font-size: 0.8rem !important;
        text-align: center !important;
    }
}