/* ==========================================================================
   CSS Variables & Tokens
   ========================================================================== */
   :root {
    /* Color Palette */
    --clr-gold: #C9A35A;
    --clr-mauve: #B8899E;
    --clr-beige: #E8DDCF;
    --clr-ivory: #F8F6F2;
    --clr-charcoal: #2C2C2C;
    --clr-white: #ffffff;
    
    /* Gradients */
    --grad-primary: linear-gradient(135deg, var(--clr-beige) 0%, var(--clr-gold) 100%);
    --grad-overlay: linear-gradient(to right, rgba(232, 221, 207, 0.9), rgba(201, 163, 90, 0.7));
    --grad-mauve-gold: linear-gradient(135deg, var(--clr-mauve) 0%, var(--clr-gold) 100%);

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    /* Transitions */
    --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.3s ease;
    
    /* Layout */
    --container-width: 1200px;
}

/* ==========================================================================
   Base Reset & Typography
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--clr-charcoal);
    background-color: var(--clr-ivory);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
}

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

/* ==========================================================================
   Preloader
   ========================================================================== */

.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--clr-ivory);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loader-logo {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--clr-gold);
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.loader-progress {
    width: 200px;
    height: 2px;
    background-color: rgba(201, 163, 90, 0.2);
    position: relative;
    overflow: hidden;
}

.loader-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background-color: var(--clr-gold);
    animation: loading 1.5s ease forwards;
}

@keyframes loading {
    0% { width: 0; }
    100% { width: 100%; }
}

/* Scroll Progress */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    z-index: 1000;
    background: transparent;
}

.scroll-progress-bar {
    height: 100%;
    background: var(--clr-gold);
    width: 0%;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 50px;
    transition: var(--transition-smooth);
    border: none;
    outline: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: var(--clr-charcoal);
    color: var(--clr-white);
}

.btn-primary:hover {
    background-color: var(--clr-gold);
}

.btn-secondary {
    background-color: transparent;
    border: 1px solid var(--clr-charcoal);
    color: var(--clr-charcoal);
}

.btn-secondary:hover {
    background-color: var(--clr-charcoal);
    color: var(--clr-white);
}

.btn-large {
    padding: 1.25rem 3rem;
    font-size: 1.1rem;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 100;
    transition: var(--transition-fast);
}

.navbar.scrolled {
    background-color: rgba(248, 246, 242, 0.9);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--clr-gold);
    transition: var(--transition-fast);
}

.nav-link:hover::after {
    width: 100%;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%; /* For parallax */
    z-index: -1;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Left-heavy gradient for text readability, blending into the image on the right */
    background: linear-gradient(105deg, var(--clr-ivory) 0%, rgba(248, 246, 242, 0.95) 45%, rgba(248, 246, 242, 0.1) 100%);
}

.hero-content {
    max-width: 800px;
    color: var(--clr-charcoal);
    padding-top: 15vh;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    border: 1px solid var(--clr-gold);
    border-radius: 50px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    color: var(--clr-gold);
    font-weight: 600;
}

.hero-title {
    font-size: clamp(3.5rem, 6vw, 6rem);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -1px;
}

.text-italic {
    font-style: italic;
    color: var(--clr-gold);
    font-weight: 400;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    margin-bottom: 3rem;
    max-width: 500px;
    opacity: 0.9;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
}


/* ==========================================================================
   About Section
   ========================================================================== */
.about {
    padding: 10rem 0;
    background-color: var(--clr-ivory);
}

.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 600px;
}

.about-img {
    width: 100%;
    height: 120%;
    object-fit: cover;
}

.glass-accent {
    position: absolute;
    bottom: -10%;
    right: -10%;
    width: 50%;
    height: 50%;
    background: linear-gradient(135deg, rgba(201, 163, 90, 0.4), rgba(184, 137, 158, 0.4));
    filter: blur(50px);
    border-radius: 50%;
}

.section-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    color: var(--clr-charcoal);
    margin-bottom: 1.5rem;
}

.section-desc {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 3rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.stat-item .stat-number {
    font-size: 3rem;
    color: var(--clr-gold);
    margin-bottom: 0.5rem;
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.services {
    padding: 8rem 0;
    background-color: var(--clr-beige);
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 5rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 3rem 2rem;
    border-radius: 20px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.card-icon {
    color: var(--clr-gold);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    margin-bottom: 1.5rem;
    transition: var(--transition-smooth);
    background: rgba(201, 163, 90, 0.1);
    border-radius: 14px;
}

.card-icon svg {
    width: 32px;
    height: 32px;
    transition: var(--transition-smooth);
}

.service-card:hover .card-icon {
    transform: translateY(-5px);
    background: var(--clr-gold);
    color: var(--clr-white);
    box-shadow: 0 10px 20px rgba(201, 163, 90, 0.2);
}

.service-card:hover .card-icon svg {
    transform: scale(1.1) rotate(5deg);
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.card-glow {
    position: absolute;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, var(--clr-gold) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

/* ==========================================================================
   Why Choose Us
   ========================================================================== */
.why-us {
    padding: 10rem 0;
    background-color: var(--clr-ivory);
}

.timeline {
    max-width: 800px;
    margin: 4rem auto 0;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    height: 100%;
    width: 2px;
    background: var(--clr-gold);
    opacity: 0.3;
}

.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 3rem;
}

.timeline-dot {
    position: absolute;
    left: 14px;
    top: 5px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--clr-gold);
    box-shadow: 0 0 0 4px rgba(201, 163, 90, 0.2);
}

/* ==========================================================================
   Creative Showcase
   ========================================================================== */
.portfolio {
    padding: 8rem 0;
    background-color: var(--clr-white);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.portfolio-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 400px;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: var(--clr-white);
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition-smooth);
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Process Section
   ========================================================================== */
.process {
    padding: 8rem 0;
    background-color: var(--clr-beige);
}

.process-steps {
    display: flex;
    justify-content: space-between;
    margin-top: 5rem;
    position: relative;
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 5%;
    width: 90%;
    height: 1px;
    background: var(--clr-charcoal);
    opacity: 0.2;
    z-index: 1;
}

.step {
    text-align: center;
    position: relative;
    z-index: 2;
    background: var(--clr-beige);
    padding: 0 1rem;
    flex: 1;
}

.step-num {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--clr-ivory);
    border: 1px solid var(--clr-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--clr-gold);
}

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonials {
    padding: 10rem 0;
    background-color: var(--clr-ivory);
}

.testimonial-card {
    max-width: 800px;
    margin: 4rem auto 0;
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(10px);
    padding: 4rem;
    border-radius: 30px;
    text-align: center;
    position: relative;
    border: 1px solid rgba(255,255,255,0.4);
    box-shadow: 0 10px 40px rgba(0,0,0,0.03);
}

.quote-icon {
    font-size: 5rem;
    color: var(--clr-mauve);
    font-family: var(--font-heading);
    line-height: 1;
    margin-bottom: -1rem;
    opacity: 0.5;
}

.testimonial-text {
    font-size: 1.5rem;
    font-family: var(--font-heading);
    font-style: italic;
    margin-bottom: 2rem;
}

.client-rating {
    color: var(--clr-gold);
    margin-bottom: 0.5rem;
}

/* ==========================================================================
   CTA Section
   ========================================================================== */
.cta-section {
    padding: 8rem 0;
    background: var(--grad-mauve-gold);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-container {
    position: relative;
    z-index: 2;
    color: var(--clr-white);
}

.cta-title {
    color: var(--clr-white);
    font-size: clamp(2.5rem, 4vw, 4rem);
    margin-bottom: 1.5rem;
}

.cta-desc {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    opacity: 0.9;
}

.cta-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: var(--clr-charcoal);
    color: var(--clr-white);
    padding: 6rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-logo {
    color: var(--clr-gold);
    font-size: 2rem;
}

.footer-links h4, .footer-contact h4 {
    color: var(--clr-gold);
    margin-bottom: 1.5rem;
}

.footer-links a {
    display: block;
    margin-bottom: 0.75rem;
    color: rgba(255,255,255,0.7);
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--clr-white);
    padding-left: 5px;
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icons a {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.social-icons a:hover {
    background: var(--clr-gold);
    border-color: var(--clr-gold);
    color: var(--clr-charcoal);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
}

/* ==========================================================================
   Animations & Reveals
   ========================================================================== */
.reveal-fade {
    opacity: 0;
    transition: opacity 1s ease;
}
.reveal-fade.active { opacity: 1; }

.reveal-fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s ease, transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-fade-up.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-slide-right {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-slide-right.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-slide-left {
    opacity: 0;
    transform: translateX(50px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-slide-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-card {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-card.active {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 992px) {
    .split-layout, .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .process-steps {
        flex-direction: column;
        gap: 3rem;
    }
    
    .process-steps::before {
        display: none;
    }
}

@media (max-width: 768px) {
    html { font-size: 14px; }
    
    .nav-links { display: none; } /* Simple hiding for mobile, ideally replace with hamburger */
    
    .portfolio-grid { grid-template-columns: 1fr; }
    
    .hero-cta { flex-direction: column; }
    
    .cursor-dot, .cursor-outline { display: none; }
    
    * { cursor: auto; }
}
