/* --- 1. FONTS & RESET --- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Source+Sans+Pro:wght@400;700;900&display=swap');

:root {
    --bg-color: #FAFAF9; /* Warm Off-White */
    --text-main: #1A1A1A;
    --text-muted: #666666;
    --accent: #000000;
    --line-separator: 2px solid #000000;
    --font-main: 'Montserrat', sans-serif;
    --font-header: 'Source Sans Pro', sans-serif;
    --spacing-section: 120px;
}

html {
    scroll-behavior: smooth;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

main.page-content {
    padding-top: 120px;
    min-height: calc(100vh - 400px);
}

main { padding-top: 0; }

/* --- 2. HEADER & MOBILE MENU --- */
header {
    position: fixed;
    top: 20px;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: center;
}

.nav-container {
    /* Liquid Glass Effect */
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.7);
    border-left: 1px solid rgba(255, 255, 255, 0.7);
    
    box-shadow: 
        0 8px 32px 0 rgba(31, 38, 135, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1);

    width: 90%;
    max-width: 1200px;
    border-radius: 50px;
    padding: 10px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.logo { display: flex; align-items: center; z-index: 1002; }
.header-logo-img { height: 40px; width: auto; }

/* Desktop Navigation */
.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    transition: opacity 0.3s;
}
.nav-links a:hover { opacity: 0.6; }

/* Mobile Menu Toggle */
.menu-toggle {
    display: none; /* Hidden on desktop */
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1002;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background-color: var(--text-main);
    transition: all 0.3s ease;
}

/* --- 3. SHARED COMPONENTS --- */
section {
    border-bottom: var(--line-separator); 
    width: 100%;
}

.btn-explore {
    display: inline-block;
    padding: 15px 40px;
    background-color: transparent; 
    color: var(--accent); 
    border: 1px solid var(--accent); 
    border-radius: 30px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    font-weight: 600;
    margin-top: 30px;
}

.btn-explore:hover {
    transform: translateY(-3px);
    background-color: var(--accent); 
    color: white; 
}

/* Page Titles */
.page-title { text-align: center; margin-bottom: 80px; position: relative; }
.page-title h1 {
    font-family: var(--font-header);
    font-size: 4rem;
    font-weight: 700;
    color: var(--text-main);
    display: inline-block;
    position: relative;
    padding-bottom: 20px;
}
.page-title h1::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%; transform: translateX(-50%);
    width: 100px; height: 4px; background-color: var(--accent);
}

/* --- 4. HOME SECTIONS --- */
.hero { height: 100vh; display: flex; align-items: center; padding: 0 10%; }

/* --- FIXED: Increased width to 1000px so title fits on 2 lines --- */
.hero-content { 
    max-width: 1000px; 
    text-align: left;
    width: 100%;
}

.hero h1 { font-size: 4rem; line-height: 1.1; margin-bottom: 30px; font-weight: 700; letter-spacing: -1.5px; }

/* About */
.about {
    min-height: 100vh; 
    padding: var(--spacing-section) 10%;
    position: relative;
    text-align: center;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.qm-bg { position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: -1; pointer-events: none; }
.qm-bg span {
    position: absolute; display: inline-block; font-family: serif; font-weight: bold; opacity: 0.07; 
    --r: 0deg; transform: rotate(var(--r)); transition: transform 0.1s linear; will-change: transform;
}
.qm-bg span:nth-child(1) { top: 10%; left: 5%; --r: -15deg; font-size: 8rem; }
.qm-bg span:nth-child(2) { top: 60%; right: 10%; --r: 20deg; font-size: 12rem; }
.qm-bg span:nth-child(3) { bottom: 10%; left: 15%; --r: 10deg; font-size: 8rem; }
.qm-bg span:nth-child(4) { top: 20%; right: 25%; --r: -5deg; font-size: 6rem; }
.qm-bg span:nth-child(5) { top: 50%; left: 40%; --r: 15deg; font-size: 7rem; opacity: 0.05; }
.qm-bg span:nth-child(6) { bottom: 20%; right: 40%; --r: -10deg; font-size: 5rem; }
.qm-bg span:nth-child(7) { top: 5%; left: 50%; --r: 5deg; font-size: 5rem; opacity: 0.04;}
.qm-bg span:nth-child(8) { bottom: 15%; right: 25%; --r: -25deg; font-size: 9rem; opacity: 0.06; }
.qm-bg span:nth-child(9) { top: 35%; left: -2%; --r: 30deg; font-size: 6rem; }
.qm-bg span:nth-child(10) { top: 30%; right: 2%; --r: -15deg; font-size: 7rem; }
.qm-bg span:nth-child(11) { top: 75%; right: 15%; --r: 10deg; font-size: 4rem; }
.qm-bg span:nth-child(12) { top: 85%; left: 30%; --r: -20deg; font-size: 6rem; opacity: 0.05;}

.about-content-wrapper { position: relative; z-index: 2; }
.section-title { font-size: 3rem; font-weight: 700; margin-bottom: 40px; color: var(--text-main); letter-spacing: -1px; }
.about p { font-size: 1.6rem; max-width: 1000px; margin: 0 auto; color: var(--text-main); font-weight: 500; line-height: 1.8; }

/* Services Carousel */
.services { padding: var(--spacing-section) 0; text-align: center; overflow: hidden; }
.services h2 { font-size: 3rem; font-weight: 700; margin-bottom: 60px; letter-spacing: -1px; color: var(--text-main); }
.carousel { position: relative; height: 400px; display: flex; align-items: center; justify-content: center; perspective: 1000px; margin-top: 20px; }
.carousel-item {
    position: absolute; width: 320px; height: 220px; background-color: white; border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08); display: flex; flex-direction: column; align-items: center; justify-content: center;
    transition: all 0.5s ease; opacity: 0; border: 1px solid rgba(0,0,0,0.03); text-align: center; padding: 20px;
}
.service-text-main { font-family: 'Source Sans Pro', sans-serif; font-weight: 900; font-size: 5rem; color: #000; line-height: 1; margin-bottom: 0px; }
.service-text-sub { font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 1rem; color: #666; text-transform: uppercase; letter-spacing: 2px; margin-top: 10px; }
.carousel-item.active { opacity: 1; transform: translateX(0) scale(1.1); z-index: 3; border: 1px solid rgba(0,0,0,0.05); }
.carousel-item.left { opacity: 0.5; transform: translateX(-350px) scale(0.9); z-index: 2; }
.carousel-item.right { opacity: 0.5; transform: translateX(350px) scale(0.9); z-index: 2; }
.carousel-item:not(.active):not(.left):not(.right) { opacity: 0; z-index: 1; transform: scale(0.8); }

/* Contact Form */
.contact { padding: var(--spacing-section) 0; width: 100%; }
.contact-content { max-width: 800px; margin: 0 auto; padding: 0 5%; text-align: center; }
.contact h2 { font-size: 3rem; margin-bottom: 20px; letter-spacing: -1px; font-weight: 700; }
.contact-subtext { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 50px; line-height: 1.5; }
form { display: flex; flex-direction: column; gap: 40px; text-align: left; }
.form-group { position: relative; }
input, textarea {
    width: 100%; background: transparent; border: none; border-bottom: 1px solid #ccc;
    padding: 10px 0; font-size: 1.1rem; font-family: var(--font-main); outline: none; transition: border-color 0.3s;
}
input:focus, textarea:focus { border-bottom-color: var(--accent); }
textarea { resize: vertical; min-height: 100px; }
.submit-btn {
    align-self: center; background: transparent; border: 1px solid var(--accent); padding: 15px 50px;
    border-radius: 30px; cursor: pointer; font-size: 1rem; margin-top: 20px; transition: all 0.3s; width: auto;
    font-family: var(--font-main); font-weight: 600;
}
.submit-btn:hover { background: var(--accent); color: white; }

/* --- 5. LIST & DETAIL PAGE STYLES --- */
.services-page-container, .work-page-container, .section-container { max-width: 1200px; margin: 0 auto; padding: 60px 5%; }
.services-list, .work-list { display: flex; flex-direction: column; gap: 10px; }

.service-item, .work-item {
    display: flex; padding: 60px 30px; border-bottom: 1px solid #000; align-items: flex-start;
    cursor: pointer; border-radius: 20px; transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    text-decoration: none; color: var(--text-main); margin: 0 -30px;
}
.service-item:hover, .work-item:hover { 
    background-color: #000000; color: #FFFFFF; border-bottom-color: transparent; 
    transform: scale(1.01); box-shadow: 0 20px 40px rgba(0,0,0,0.1); 
}
.service-item:last-child, .work-item:last-child { border-bottom: none; }

.service-header { flex: 0 0 350px; display: flex; align-items: center; gap: 30px; }
.service-icon {
    width: 70px; height: 70px; background-color: #EAEAEA; border-radius: 15px; display: flex;
    justify-content: center; align-items: center; font-family: var(--font-header); font-weight: 900;
    font-size: 2rem; color: var(--text-main); transition: all 0.4s ease;
}
.service-item:hover .service-icon { background-color: #FFFFFF; color: #000000; }
.service-header h2 { font-family: var(--font-header); font-size: 2rem; font-weight: 700; color: inherit; }
.service-description { flex: 1; padding-left: 50px; }
.service-description p { font-size: 1rem; color: #333; line-height: 1.7; transition: color 0.4s ease; }
.service-item:hover .service-description p { color: rgba(255, 255, 255, 0.9); }

/* Work Specifics */
.work-item { align-items: center; padding: 80px 40px; }
.work-item.sparkle:hover { background-color: #FAEFD9; color: #000; }
.work-item.signmo:hover { background-color: #FFB48C; color: #000; }
.work-item h2 { font-size: 2.5rem; font-weight: 400; margin: 0; }

/* Detail Pages */
.detail-section { padding: 150px 5%; min-height: 80vh; display: flex; align-items: center; border-bottom: var(--line-separator); }
.section-container { display: flex; align-items: center; justify-content: space-between; gap: 80px; }
.section-container.reverse { flex-direction: row-reverse; }
.content-left, .content-right { flex: 1; }
.detail-section h1 { font-size: 4rem; margin-bottom: 20px; }
.detail-section h2 { font-size: 3rem; margin-bottom: 20px; }
.subtitle { font-family: var(--font-body); font-size: 1.8rem; font-weight: 400; margin-bottom: 40px; display: block; }
.detail-section p { font-size: 1.1rem; color: #333; max-width: 550px; margin-bottom: 50px; text-align: justify; line-height: 1.8; }
.btn-quote {
    display: inline-block; padding: 15px 50px; border: 1px solid #000; border-radius: 50px; background: transparent;
    font-family: var(--font-body); font-weight: 500; font-size: 1.1rem; cursor: pointer; transition: all 0.3s ease;
    text-decoration: none; color: #000;
}
.btn-quote:hover { background: #000; color: #fff; }
.big-icon-box {
    width: 350px; height: 350px; background-color: #EAEAEA; border-radius: 40px; display: flex;
    justify-content: center; align-items: center; font-family: var(--font-header); font-weight: 900;
    font-size: 10rem; color: #000; margin: 0 auto;
}
.quote-box {
    background-color: #EAEAEA; border-radius: 30px; padding: 80px 50px; max-width: 450px;
    display: flex; align-items: center; justify-content: center; text-align: center; margin: 0 auto;
}
.quote-text { font-family: var(--font-body); font-size: 1.4rem; line-height: 1.6; color: #444; font-weight: 400; }
.page-header-center { padding: 120px 5% 60px 5%; text-align: center; width: 100%; }

/* =========================================
   ADD TO BOTTOM OF STYLE.CSS
   Sparkle Pro Case Study - New Sections
========================================= */

/* --- Layout Wrappers --- */
.cs-intro-section {
    padding: 150px 5% 100px 5%;
    background-color: var(--bg-color);
}

.cs-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 60px;
}

.cs-container.align-top { align-items: flex-start; }
.cs-container.align-center { align-items: center; }

/* --- Section 1: Intro Styling --- */
.cs-content-block { flex: 1; padding-right: 40px; }
.cs-image-block { flex: 1.1; }

.cs-title-large {
    font-family: var(--font-header);
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 1.1;
    color: #000;
    margin-bottom: 30px;
    text-transform: lowercase;
}

.cs-body-text p {
    font-family: var(--font-main);
    font-size: 1.05rem;
    line-height: 1.7;
    color: #333;
    margin-bottom: 25px;
    max-width: 480px;
}

.cs-link {
    display: block;
    font-family: var(--font-main);
    font-size: 1rem;
    color: #333;
    text-decoration: underline;
    margin-bottom: 40px;
}

.cs-main-image { width: 100%; height: auto; display: block; border-radius: 5px; }

.cs-cards-section {
    padding: 80px 5% 0 5%;
    background-color: var(--bg-color);
}

/* =========================================
   SPARKLE PRO – BUSINESS CARDS (FINAL)
========================================= */

/* Header */
.cs-cards-header {
    max-width: 1200px;
    margin: 0 auto 100px auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
}

.cs-cards-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 40px;
}

.cs-title-huge {
    font-family: var(--font-header);
    font-size: 8rem;
    font-weight: 900;
    color: #000;
    line-height: 0.9;
    margin: 0;
}

.cs-title-huge.align-right {
    text-align: right;
}

.cs-subtitle-text {
    font-family: var(--font-main);
    font-size: 1.1rem;
    line-height: 1.5;
    color: #444;
    max-width: 380px;
    text-align: left;
}

/* Beige slab */
.cs-cards-bg {
    background-color: #FAEFD9;
    padding: 140px 0 160px 0;
}

/* Images */
.cs-cards-images {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 100px;
    align-items: flex-start;
}

.cs-cards-images img {
    width: 100%;
    height: auto;
    display: block;
}

.card-left { flex: 1; }
.card-right { flex: 1; margin-top: 120px; }

/* Mobile */
@media (max-width: 992px) {
    .cs-cards-header {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .cs-cards-right { align-items: center; }
    .cs-subtitle-text { text-align: center; }

    .cs-cards-images {
        flex-direction: column;
        gap: 40px;
    }

    .card-right { margin-top: 0; }
}

/* --- 6. FOOTER --- */
/* --- 7. FOOTER (Global) --- */
footer {
    padding: 100px 5%;
    background-color: var(--bg-color);
    border-top: var(--line-separator);
}

.footer-container {
    display: grid;
    /* 1.5 parts for Logo, 1 part each for links */
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    max-width: 1200px;
    margin: 0 auto;
    gap: 40px;
    align-items: start; /* Ensures top alignment */
}

/* Brand Column (Left) */
.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding-right: 0; 
}

.footer-logo-img {
    width: 260px; /* Significantly larger */
    height: auto;
    display: block;
    /* Removed margin-bottom since text is gone */
}

.footer-brand h3, .footer-desc {
    display: none; /* Hides text/title completely */
}

/* Right Columns (Links) */
.footer-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-heading {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 25px;
    margin-top: 5px; /* Slight visual adjustment to align with logo top */
}

.footer-link {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 400; 
    color: #1A1A1A;
    margin-bottom: 12px;
    transition: opacity 0.3s ease;
    text-decoration: none;
    white-space: nowrap; 
}

.footer-link:hover {
    opacity: 0.6;
}

/* --- RESPONSIVE FOOTER --- */
@media (max-width: 992px) {
    .footer-container {
        grid-template-columns: 1fr 1fr; /* 2 columns tablet */
        gap: 60px;
    }
    .footer-brand {
        grid-column: span 2; 
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .footer-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 50px;
    }
    
    .footer-brand {
        align-items: center;
    }
    
    .footer-col {
        align-items: center;
        width: 100%;
    }
    
    .footer-logo-img {
        width: 200px; /* Smaller on mobile */
    }
}

/* --- 7. RESPONSIVE / MOBILE OPTIMIZATION --- */
@media (max-width: 992px) {
    /* Detail Pages Tablet */
    .detail-section { padding: 100px 5%; min-height: auto; }
    .section-container, .section-container.reverse { flex-direction: column; text-align: center; gap: 60px; }
    .detail-section p { margin-left: auto; margin-right: auto; text-align: center; }
    .big-icon-box { width: 250px; height: 250px; font-size: 6rem; }
    .service-item, .work-item { flex-direction: column; gap: 20px; padding: 40px 20px; margin: 0; }
    .service-header { flex: auto; width: 100%; }
    .service-description { padding-left: 0; }
}

@media (max-width: 768px) {
    /* Mobile Menu */
    .menu-toggle { display: flex; z-index: 1003; }
    .nav-links {
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: #FAFAF9; /* Solid BG so menu is visible */
        flex-direction: column;
        align-items: center;
        gap: 30px;
        padding: 40px 0;
        border-bottom: 2px solid #000;
        display: none;
        opacity: 0;
        transform: translateY(-20px);
        transition: all 0.3s ease;
        z-index: 1002;
    }
    .nav-links.active { display: flex; opacity: 1; transform: translateY(0); }

    /* Typography fixes */
    .hero h1 { font-size: 2.5rem; }
    .page-title h1 { font-size: 2.5rem; }
    .section-title { font-size: 2.5rem; }
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    .about p, .detail-section p { font-size: 1.2rem; }
    
    /* Spacing */
    .detail-section, .about, .services, .contact { padding: 80px 5%; }
    
    /* Components */
    .carousel-item { width: 260px; height: 180px; }
    .service-text-main { font-size: 4rem; }
    .work-item h2 { font-size: 1.8rem; }
    
    /* Footer */
    .footer-container { flex-direction: column; gap: 50px; }
    .footer-col { width: 100%; }
    .footer-brand { padding-right: 0; align-items: center; text-align: center; }
    .footer-logo-big { font-size: 6rem; }
    .footer-desc { max-width: 100%; text-align: center; }
    .footer-link { font-size: 1.5rem; }
}