:root {
    --bg-color: #111111;
    --text-primary: #FFFFFF;
    --text-secondary: #8A8A8E;
    --accent-color: #A3E635;
    --card-bg: #1A1A1A;
    --border-color: #333333;
    
    --font-primary: 'Inter', sans-serif;
    --font-handwritten: 'Reenie Beanie', cursive;

    /* Font Weights */
    --fw-light: 300;
    --fw-regular: 400;
    --fw-medium: 500;
    --fw-semibold: 600;
    --fw-bold: 700;

    /* Modular Scale (Base 16px) */
    --text-xs: 12px;   /* Captions, small secondary info */
    --text-sm: 14px;   /* Standard body copy */
    --text-base: 16px; /* slightly larger body copy */
    --text-md: 20px;   /* Sub-headers (H3) */
    --text-lg: 24px;   /* Normal headings */
    --text-xl: 28px;   /* Section headers (H2), nav links */
    --text-xxl: 32px;  /* Page titles (H1), Hero titles */
    --text-huge: 48px; /* Massive hero accents */
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: var(--text-base);
    font-weight: var(--fw-regular);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Typography Utilities */
.text-xs { font-size: var(--text-xs); }
.text-sm { font-size: var(--text-sm); }
.text-base { font-size: var(--text-base); }
.text-md { font-size: var(--text-md); }
.text-lg { font-size: var(--text-lg); }
.text-xl { font-size: var(--text-xl); }
.text-xxl { font-size: var(--text-xxl); }
.text-huge { font-size: var(--text-huge); }

.fw-light { font-weight: var(--fw-light); }
.fw-regular { font-weight: var(--fw-regular); }
.fw-medium { font-weight: var(--fw-medium); }
.fw-semibold { font-weight: var(--fw-semibold); }
.fw-bold { font-weight: var(--fw-bold); }

.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-accent { color: var(--accent-color); }

.site-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 64px;
}

/* Header & Nav */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    box-sizing: border-box;
    
    position: sticky;
    top: 0;
    z-index: 1000;
    
    /* Glassmorphism Settings */
    background: rgba(17, 17, 17, 0.45);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-top: none;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-family: var(--font-handwritten);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: calc(var(--text-xl) * 0.8);
    transition: color 0.3s ease;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--accent-color);
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-icon {
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.main-header .social-icon[href*="x.com"] svg {
    transform: scale(0.85);
}

.social-icon:hover {
    color: var(--text-primary);
}

/* Hero Section */
.hero-section {
    padding: 80px 0 60px;
    max-width: 900px;
}

.hero-title {
    font-size: var(--text-xxl);
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 8px;
}

.handwritten-accent {
    font-family: var(--font-handwritten);
    color: var(--text-primary);
    font-size: var(--text-xxl);
    font-weight: 400;
}

.number-accent {
    color: transparent !important;
    font-size: 100px;
    line-height: 0;
    vertical-align: middle;
    display: inline-block;
    position: relative;
    width: 60px;
    margin: 0 10px;
}

.number-accent::after {
    content: '3';
    color: var(--text-primary);
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    animation: warpInfinity 8s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
}

@keyframes warpInfinity {
    0%, 35% {
        content: '3';
        color: var(--text-primary);
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
        opacity: 1;
    }
    40% {
        content: '3';
        color: var(--text-primary);
        transform: translate(-50%, -50%) scale(0) rotate(180deg);
        opacity: 0;
    }
    45% {
        content: 'âˆž';
        color: var(--accent-color);
        transform: translate(-50%, -50%) scale(0) rotate(-180deg);
        opacity: 0;
    }
    50%, 85% {
        content: 'âˆž';
        color: var(--accent-color);
        transform: translate(-50%, -50%) scale(1.2) rotate(0deg);
        opacity: 1;
    }
    90% {
        content: 'âˆž';
        color: var(--accent-color);
        transform: translate(-50%, -50%) scale(0) rotate(180deg);
        opacity: 0;
    }
    95% {
        content: '3';
        color: var(--text-primary);
        transform: translate(-50%, -50%) scale(0) rotate(-180deg);
        opacity: 0;
    }
    100% {
        content: '3';
        color: var(--text-primary);
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
        opacity: 1;
    }
}

.hero-description {
    color: var(--text-secondary);
    font-size: var(--text-sm);
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
    padding-left: 32px;
    max-width: 800px;
}

.philosophy {
    font-size: var(--text-sm);
    color: var(--text-primary);
}

/* Typography for Sections */
.handwritten-title {
    font-family: var(--font-handwritten);
    color: var(--accent-color);
    font-size: var(--text-xl);
    font-weight: 400;
    margin-top: 48px;
    margin-bottom: 20px;
}

.handwritten-title.small {
    font-size: var(--text-lg);
    color: var(--text-primary);
}

/* Tags Sections */
.tags-section {
    margin-bottom: 60px;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tag {
    background-color: #000;
    border: 1px solid #222;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: var(--text-sm);
    font-weight: 500;
}

/* Gallery Section */
.gallery-section {
    margin-bottom: 36px;
}

.gallery-container {
    display: flex;
    overflow-x: hidden;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding: 20px 0;
}

.gallery-track {
    display: flex;
    gap: 40px;
    padding-right: 40px;
    animation: scroll-gallery 40s linear infinite;
    min-width: max-content;
    align-items: center;
}

.gallery-container:hover .gallery-track {
    animation-play-state: paused;
}

@keyframes scroll-gallery {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.polaroid-card {
    background-color: #0A0A0A;
    border: 1px solid #1A1A1A;
    padding: 16px;
    transform: rotate(-2deg);
    transition: transform 0.3s ease;
    width: 350px;
    max-width: 400px;
    flex-shrink: 0;
}

.polaroid-card:nth-child(even) {
    transform: rotate(2deg);
}

.polaroid-card:nth-child(3n) {
    transform: rotate(-1deg);
}

.polaroid-card:nth-child(4n) {
    transform: rotate(3deg);
}

.polaroid-card:hover {
    transform: rotate(0) scale(1.02);
    z-index: 10;
}

.polaroid-image {
    background-color: #1A1A1A;
    width: 100%;
    aspect-ratio: 4/5;
    margin-bottom: 16px;
}

.polaroid-caption p {
    font-size: var(--text-xs);
    color: var(--text-secondary);
    font-family: var(--font-primary);
}

/* Intro Section */
.intro-section { max-width: 600px; padding: 64px 0; }

.main-intro-text {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Projects Section */
.projects-section { padding: 64px 0; }

.projects-intro {
    display: none; /* removed from HTML, keeping class just in case */
}

.sorts-container {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 30px;
}

.sort-label {
    font-family: var(--font-primary);
    font-size: var(--text-sm);
    color: var(--text-primary);
}

.sort-buttons {
    display: flex;
    gap: 32px;
}

.sort-btn {
    background: transparent;
    border: none;
    font-family: var(--font-handwritten);
    color: var(--text-secondary);
    font-size: var(--text-xl);
    cursor: pointer;
    position: relative;
    padding-bottom: 4px;
}

.sort-btn sup {
    font-size: 18px;
}

.sort-btn.active {
    color: var(--accent-color);
}

.sort-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--accent-color);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.project-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
    cursor: pointer;
}

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

.project-bg-media {
    transition: transform 0.5s ease;
}

.project-card:hover .project-bg-media {
    transform: scale(1.05);
}

.project-hover-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2;
    
}

.project-card:hover .project-hover-media {
    opacity: 1;
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 40%, rgba(0,0,0,0.8) 60%, rgba(0,0,0,0) 100%);
    z-index: 3;
    pointer-events: none;
}

.project-number {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 56px;
    color: rgba(255, 255, 255, 0.5); /* or var(--text-secondary) */
    z-index: 4;
}

.project-info {
    position: relative;
    z-index: 4;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.project-info-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.project-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.project-info h3 {
    color: var(--accent-color);
    font-size: var(--text-xxl);
    margin: 0;
    line-height: 1;
}

.project-info p {
    font-size: 13px;
    color: #fff;
    line-height: 1.4;
    margin-bottom: 16px;
    max-width: 90%;
}

.project-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #fff;
}

.project-link {
    display: flex;
    align-items: center;
    gap: 4px;
}

.project-year {
    color: #ccc;
}

.see-more {
    text-align: right;
    margin-bottom: 60px;
}

.see-more a {
    color: var(--accent-color);
    font-size: var(--text-md);
    text-decoration: none;
}

/* Vibe Wall Preview */
.vibe-wall-preview {
    margin-bottom: 36px;
}

.vibe-wall-box {
    background-color: #050505;
    background-image: radial-gradient(#222 1px, transparent 0);
    background-size: 20px 20px;
    padding: 60px 40px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid #1A1A1A;
}

.vibe-cards {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 24px 0;
}

.vibe-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.vibe-emoji {
    font-size: 40px;
}

.vibe-name {
    font-size: var(--text-xs);
    color: var(--text-secondary);
}

.vibe-text {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.give-vibe-btn {
    background-color: #FFF;
    color: #000;
    border: none;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 500;
    cursor: pointer;
}

/* Store Kit Section */
.store-kit-section {
    margin-bottom: 36px;
}

.service-panels {
    position: relative;
    width: 100%;
}

.service-panel {
    display: none;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.service-panel.active {
    display: grid;
    animation: fadeUp 0.3s ease;
}

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

.service-card {
    border: 1px solid var(--border-color);
    background-color: #000;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    padding-bottom: 30px;
    transition: transform 0.3s ease, border-color 0.3s ease, border-radius 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: scale(1.02);
    border-color: var(--accent-color);
    border-radius: 16px;
    box-shadow: 0 0 20px var(--accent-color);
    z-index: 5;
}

.service-card-image {
    width: 100%;
    height: 250px;
    background: linear-gradient(to bottom, #d6d6d6, #5c6258);
    position: relative;
    z-index: 1;
}

.service-card-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to top, #000 0%, rgba(0,0,0,0) 100%);
    z-index: 2;
}

.service-card-content {
    padding: 0 24px;
    position: relative;
    z-index: 3;
    margin-top: -60px;
}

.service-card h3 {
    font-family: var(--font-handwritten);
    font-size: 40px;
    color: #FFF;
    margin-bottom: 4px;
    font-weight: 400;
    line-height: 1;
}

.service-card .desc {
    font-size: var(--text-sm);
    color: #A0A0A0;
    margin-bottom: 24px;
    line-height: 1.4;
}

.service-card .starting-from {
    font-family: var(--font-handwritten);
    font-size: 18px;
    color: #FFF;
    margin-bottom: 4px;
}

.service-card-price-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 4px;
}

.service-card .price {
    font-size: var(--text-huge);
    font-weight: 700;
    color: var(--accent-color);
    line-height: 1;
}

.service-card .tier-btn {
    background-color: #FFF;
    color: #000;
    border: none;
    padding: 12px 24px;
    font-size: var(--text-base);
    font-weight: 500;
    cursor: pointer;
}

.service-card .per-deliverable {
    font-size: var(--text-sm);
    color: #888;
    margin-bottom: 30px;
}

.service-features {
    position: relative;
    z-index: 3;
      list-style: none;
      padding: 0 24px;
    padding: 0 24px;
    margin-top: 10px;
}

.service-features li {
    font-size: var(--text-sm);
    color: #CCC;
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.service-features li.off {
    color: #555;
}

.service-features li svg {
    color: var(--accent-color);
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin-top: 2px;
    animation: spin-star 4s linear infinite;
    transform-origin: center;
}

@keyframes spin-star {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.service-features li.off svg {
    color: #333;
}

.service-card-footer {
    display: flex;
    justify-content: center;
    padding: 20px 32px;
    margin-top: auto;
    position: relative;
    z-index: 10;
}

.book-plan-btn {
    background-color: var(--accent-color);
    color: #000;
    border: none;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: var(--text-sm);
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    width: 100%;
}

.book-plan-btn:hover {
    background-color: #FFF;
    transform: scale(1.02);
}

.extra-addons {
    margin-top: 40px;
}

.client-section { padding: 64px 0; }

.client-logos {
    display: flex;
    gap: 24px;
    align-items: center;
}

.client-img {
    height: 32px;
    width: auto;
    object-fit: contain;
}

.addons-grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    flex-wrap: wrap;
    width: 100%;
}

.addon-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.addon-name {
    font-family: var(--font-handwritten);
    font-size: var(--text-md);
    color: var(--text-secondary);
}

.addon-price {
    font-size: var(--text-base);
    font-weight: 600;
}

.addon-price {
    font-size: var(--text-base);
    font-weight: 600;
}

/* Testimonials Section */
.testimonials-section { padding: 64px 0; }

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.testimonial-card {
    background-color: transparent;
    perspective: 1000px;
    height: 380px;
    cursor: pointer;
}

.flip-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.testimonial-card.flipped .flip-inner {
    transform: rotateY(180deg);
}

.flip-front, .flip-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border: 1px solid #1A1A1A;
    background-color: #050505;
    /* Optional: sharp corners as per reference */
    border-radius: 0;
}

.flip-front {
    display: flex;
    justify-content: center;
    align-items: center;
}

.flip-front .center-logo {
    color: #fff;
}

.flip-back {
    transform: rotateY(180deg);
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.test-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.test-author h4 {
    font-size: var(--text-sm);
    font-weight: 400;
    margin-bottom: 4px;
    color: #fff;
}

.test-author p {
    font-size: var(--text-sm);
    color: #5C5B5B;
}

.test-icon svg {
    color: #fff;
}

.test-text {
    font-size: var(--text-base);
    line-height: 1.5;
    color: #e0e0e0;
}

.test-logo {
    margin-bottom: auto;
}

.test-logo.center-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    margin-bottom: 0;
}

.test-text {
    font-size: var(--text-xs);
    color: var(--text-secondary);
    line-height: 1.5;
    margin-top: 40px;
}

/* Bottom Section */
.bottom-section {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    margin: 48px auto 36px auto;
    max-width: 1400px;
    padding: 0 40px;
}

.contact-area {
    flex: 1;
    max-width: 500px;
}

.contact-sub {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.contact-form .input-group {
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding: 12px 0;
    margin-bottom: 20px;
}

.contact-form .input-icon {
    color: var(--text-secondary);
    margin-right: 12px;
}

.contact-form input {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: var(--text-sm);
    width: 100%;
    outline: none;
}

.contact-form input::placeholder {
    color: var(--text-secondary);
}

.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    font-size: var(--text-sm);
    font-family: var(--font-handwritten);
    color: var(--text-secondary);
    cursor: pointer;
    white-space: nowrap;
}

.checkbox-container input {
    margin: 0;
    margin-right: 24px;
}

.send-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #FFF;
    color: #000;
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.send-btn:hover {
    background-color: #DDD;
}

/* Stats Card */
.stats-card {
    flex: 1;
    max-width: 500px;
    background-color: #050505;
    background-image: radial-gradient(#222 1px, transparent 0);
    background-size: 20px 20px;
    border-radius: 20px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid #1A1A1A;
}

.stats-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.stat-main {
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-number {
    font-size: var(--text-huge);
    font-weight: 600;
}

.stat-label {
    font-family: var(--font-handwritten);
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.2;
}

.status-badge {
    background-color: rgba(163, 230, 53, 0.1);
    color: var(--accent-color);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: var(--text-xs);
    font-weight: 500;
}

.stats-middle {
    text-align: center;
    margin: 40px 0;
}


.typing-indicator {
    font-family: var(--font-handwritten);
    color: var(--text-secondary);
    font-size: var(--text-md);
    display: flex;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.typing-indicator.active {
    opacity: 1;
}

.typing-dots {
    display: flex;
    align-items: center;
    gap: 3px;
    margin-bottom: 5px;
}

.typing-dots .dot {
    width: 4px;
    height: 4px;
    background-color: var(--text-secondary);
    border-radius: 50%;
    animation: typing-bounce 1.4s infinite ease-in-out both;
}

.typing-dots .dot:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots .dot:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typing-bounce {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

.stats-bottom {
    display: flex;
    justify-content: space-between;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.stat-icon {
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.stat-big {
    font-size: var(--text-xxl);
    font-weight: 600;
}

.stat-small {
    font-family: var(--font-handwritten);
    color: var(--text-secondary);
    font-size: var(--text-base);
}

/* Footer */
.main-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.autograph-video {
    width: 200px;
    height: 96px;
    object-fit: cover;
    cursor: pointer;
    background-color: transparent;
}

.copyright {
    font-size: var(--text-xs);
    color: var(--text-secondary);
}

.back-to-top {
    background: transparent;
    border: none;
    color: var(--accent-color);
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.back-to-top:hover {
    transform: scale(1.05);
}

.back-to-top svg {
    transition: transform 0.3s ease;
}

.back-to-top:hover svg {
    animation: bounce-up-down 1s infinite;
}

@keyframes bounce-up-down {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.back-to-top .handwritten-accent {
    color: var(--accent-color);
    font-size: 16px;
}

.footer-social {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.footer-social div.social-icons-wrapper {
    display: flex;
    gap: 16px;
}

.footer-meta {
    font-size: var(--text-xs);
    color: var(--text-secondary);
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: none; /* hidden by default */
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background-color: #000;
    border: 1px solid #222;
    border-radius: 16px;
    padding: 40px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.vibe-modal-content {
    width: 100%;
    max-width: 600px;
}

.estimate-modal-content {
    width: 100%;
    max-width: 600px;
}

.close-modal-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: 2px solid #FFF;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #FFF;
    cursor: pointer;
}

.modal-subtitle {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.emoji-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
}

.emoji-grid span {
    font-size: var(--text-sm);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.emoji-grid span:hover {
    transform: scale(1.2);
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group.full-width {
    width: 100%;
}

.form-group label {
    font-size: var(--text-xs);
    color: var(--text-secondary);
}

.form-group .required {
    color: #FF453A;
}

.form-group input,
.form-group textarea,
.phone-input {
    background-color: #FFF;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-size: var(--text-sm);
    color: #000;
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.phone-input {
    display: flex;
    padding: 0;
}

.phone-input .flag {
    padding: 12px;
    border-right: 1px solid #EEE;
    color: #000;
}

.phone-input input {
    border-radius: 0 8px 8px 0;
    flex: 1;
}

.full-width-btn {
    width: 100%;
    margin-top: 10px;
}

.estimate-items-list {
    background-color: #111;
    border-radius: 12px;
    margin-bottom: 30px;
}

.estimate-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid #222;
}

.estimate-item:last-child {
    border-bottom: none;
}

.item-desc h4 {
    font-size: var(--text-base);
    margin-bottom: 4px;
}

.item-desc p {
    font-size: var(--text-xs);
    color: var(--text-secondary);
}

.item-price {
    font-size: var(--text-base);
    font-weight: 600;
}

.modal-actions {
    display: flex;
    gap: 16px;
    margin-top: 20px;
}

.cancel-btn,
.request-estimate-btn {
    flex: 1;
    padding: 14px;
    border-radius: 30px;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
}

.cancel-btn {
    background-color: transparent;
    border: 1px solid #FFF;
    color: #FFF;
}

.request-estimate-btn {
    background-color: #FFF;
    border: none;
    color: #000;
}

/* --- NEW ANIMATED VIBE WALL CSS --- */

.vibe-wall-widget {
  background-color: #050505;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
  
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  padding-bottom: 20px;
}

.vibe-wall-widget::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='128' height='128'><rect x='0' y='0' width='8' height='8' fill='%232E2C2C' opacity='0.04'/><rect x='16' y='0' width='8' height='8' fill='%232E2C2C' opacity='0.47'/><rect x='32' y='0' width='8' height='8' fill='%232E2C2C' opacity='0.86'/><rect x='48' y='0' width='8' height='8' fill='%232E2C2C' opacity='0.72'/><rect x='64' y='0' width='8' height='8' fill='%232E2C2C' opacity='0.22'/><rect x='80' y='0' width='8' height='8' fill='%232E2C2C' opacity='0.53'/><rect x='96' y='0' width='8' height='8' fill='%232E2C2C' opacity='0.95'/><rect x='112' y='0' width='8' height='8' fill='%232E2C2C' opacity='0.61'/><rect x='0' y='16' width='8' height='8' fill='%232E2C2C' opacity='0.32'/><rect x='16' y='16' width='8' height='8' fill='%232E2C2C' opacity='0.73'/><rect x='32' y='16' width='8' height='8' fill='%232E2C2C' opacity='0.99'/><rect x='48' y='16' width='8' height='8' fill='%232E2C2C' opacity='0.94'/><rect x='64' y='16' width='8' height='8' fill='%232E2C2C' opacity='0.4'/><rect x='80' y='16' width='8' height='8' fill='%232E2C2C' opacity='0.86'/><rect x='96' y='16' width='8' height='8' fill='%232E2C2C' opacity='0.08'/><rect x='112' y='16' width='8' height='8' fill='%232E2C2C' opacity='0.27'/><rect x='0' y='32' width='8' height='8' fill='%232E2C2C' opacity='0.49'/><rect x='16' y='32' width='8' height='8' fill='%232E2C2C' opacity='0.75'/><rect x='32' y='32' width='8' height='8' fill='%232E2C2C' opacity='0.23'/><rect x='48' y='32' width='8' height='8' fill='%232E2C2C' opacity='0.38'/><rect x='64' y='32' width='8' height='8' fill='%232E2C2C' opacity='0.82'/><rect x='80' y='32' width='8' height='8' fill='%232E2C2C' opacity='0.6'/><rect x='96' y='32' width='8' height='8' fill='%232E2C2C' opacity='0.86'/><rect x='112' y='32' width='8' height='8' fill='%232E2C2C' opacity='0.88'/><rect x='0' y='48' width='8' height='8' fill='%232E2C2C' opacity='0.5'/><rect x='16' y='48' width='8' height='8' fill='%232E2C2C' opacity='0.49'/><rect x='32' y='48' width='8' height='8' fill='%232E2C2C' opacity='0.32'/><rect x='48' y='48' width='8' height='8' fill='%232E2C2C' opacity='0.59'/><rect x='64' y='48' width='8' height='8' fill='%232E2C2C' opacity='0.35'/><rect x='80' y='48' width='8' height='8' fill='%232E2C2C' opacity='0.98'/><rect x='96' y='48' width='8' height='8' fill='%232E2C2C' opacity='0.98'/><rect x='112' y='48' width='8' height='8' fill='%232E2C2C' opacity='0.77'/><rect x='0' y='64' width='8' height='8' fill='%232E2C2C' opacity='0.84'/><rect x='16' y='64' width='8' height='8' fill='%232E2C2C' opacity='0.77'/><rect x='32' y='64' width='8' height='8' fill='%232E2C2C' opacity='0.72'/><rect x='48' y='64' width='8' height='8' fill='%232E2C2C' opacity='0.93'/><rect x='64' y='64' width='8' height='8' fill='%232E2C2C' opacity='0.15'/><rect x='80' y='64' width='8' height='8' fill='%232E2C2C' opacity='0.51'/><rect x='96' y='64' width='8' height='8' fill='%232E2C2C' opacity='0.5'/><rect x='112' y='64' width='8' height='8' fill='%232E2C2C' opacity='0.97'/><rect x='0' y='80' width='8' height='8' fill='%232E2C2C' opacity='0.07'/><rect x='16' y='80' width='8' height='8' fill='%232E2C2C' opacity='0.92'/><rect x='32' y='80' width='8' height='8' fill='%232E2C2C' opacity='0.9'/><rect x='48' y='80' width='8' height='8' fill='%232E2C2C' opacity='0.3'/><rect x='64' y='80' width='8' height='8' fill='%232E2C2C' opacity='0.87'/><rect x='80' y='80' width='8' height='8' fill='%232E2C2C' opacity='0.86'/><rect x='96' y='80' width='8' height='8' fill='%232E2C2C' opacity='0.37'/><rect x='112' y='80' width='8' height='8' fill='%232E2C2C' opacity='0.2'/><rect x='0' y='96' width='8' height='8' fill='%232E2C2C' opacity='0.89'/><rect x='16' y='96' width='8' height='8' fill='%232E2C2C' opacity='0.33'/><rect x='32' y='96' width='8' height='8' fill='%232E2C2C' opacity='0.2'/><rect x='48' y='96' width='8' height='8' fill='%232E2C2C' opacity='0.31'/><rect x='64' y='96' width='8' height='8' fill='%232E2C2C' opacity='0.97'/><rect x='80' y='96' width='8' height='8' fill='%232E2C2C' opacity='0.59'/><rect x='96' y='96' width='8' height='8' fill='%232E2C2C' opacity='0.77'/><rect x='112' y='96' width='8' height='8' fill='%232E2C2C' opacity='0.43'/><rect x='0' y='112' width='8' height='8' fill='%232E2C2C' opacity='0.61'/><rect x='16' y='112' width='8' height='8' fill='%232E2C2C' opacity='0.98'/><rect x='32' y='112' width='8' height='8' fill='%232E2C2C' opacity='0.22'/><rect x='48' y='112' width='8' height='8' fill='%232E2C2C' opacity='0.73'/><rect x='64' y='112' width='8' height='8' fill='%232E2C2C' opacity='0.21'/><rect x='80' y='112' width='8' height='8' fill='%232E2C2C' opacity='0.36'/><rect x='96' y='112' width='8' height='8' fill='%232E2C2C' opacity='0.26'/><rect x='112' y='112' width='8' height='8' fill='%232E2C2C' opacity='0.34'/></svg>");
    background-repeat: repeat;
    animation: block-flicker 2s steps(1) infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes block-flicker {
    0% { background-position: 0px 0px; }
    10% { background-position: -32px -16px; }
    20% { background-position: -64px 48px; }
    30% { background-position: 16px -80px; }
    40% { background-position: -48px 32px; }
    50% { background-position: -16px 64px; }
    60% { background-position: 48px 16px; }
    70% { background-position: 0px 80px; }
    80% { background-position: -80px 0px; }
    90% { background-position: 32px 32px; }
    100% { background-position: 16px 0px; }
}

.vibe-wall-widget .container {
  width: 100%;
  max-width: 1100px;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
}

.vibe-wall-widget header {
  width: 100%;
  margin-bottom: 24px;
  text-align: left;
}

.vibe-wall-widget footer {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-top: 20px;
}

.vibe-container {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  gap: 0;
  margin-bottom: 24px;
  width: 100%;
  position: relative;
  padding: 0;
}

.vibe-track {
  display: flex;
  flex-direction: row;
  gap: 80px;
  padding-right: 80px;
  min-width: max-content;
  animation: scroll 30s linear infinite;
  align-items: center;
  will-change: transform;
  transform: translateZ(0);
}

.vibe-container:hover .vibe-track {
  animation-play-state: paused;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

.vibe-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  will-change: transform;
}

.vibe-item:hover {
  transform: translateY(-8px);
}

.score-pill {
  position: absolute;
  top: -12px;
  left: -20px;
  background: #000000;
  border: 1px solid #2a2c30;
  border-radius: 20px;
  padding: 4px 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-sm);
  font-weight: 600;
  z-index: 2;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);
  color: #fff;
}

.score-star {
  color: var(--accent-color);
  font-size: var(--text-sm);
  line-height: 1;
}

.emoji-image {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 12px;
  filter: drop-shadow(0px 8px 15px rgba(0, 0, 0, 0.4));
  transition: transform 0.3s ease;
}

.vibe-item:hover .emoji-image {
  transform: scale(1.1);
}

.user-name {
  font-weight: 500;
  font-size: var(--text-sm);
  margin-bottom: 2px;
  color: #e0e0e0;
}

.user-role {
  font-size: var(--text-xs);
  color: var(--text-secondary);
}

.role-container {
  display: flex;
  align-items: center;
  gap: 6px;
}

.brand-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 4px;
}

.brand-logo-placeholder {
  display: none;
}

.tooltip {
  position: absolute;
  bottom: calc(100% + 15px);
  left: 50%;
  transform: translateX(-50%) translateY(10px) scale(0.95);
  background: rgba(20, 22, 24, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px 18px;
  border-radius: 10px;
  width: max-content;
  max-width: 220px;
  text-align: center;
  font-size: var(--text-xs);
  line-height: 1.4;
  color: #fff;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 10;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}

.tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: rgba(26, 28, 31, 0.85) transparent transparent transparent;
}

.vibe-item:hover .tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0) scale(1);
}

/* Vibe Modal Form Specifics */
#modal-overlay .vibe-overlay-modal {
  background-color: #000000;
  border: 1px solid var(--accent-color);
  border-radius: 16px; /* Added rounded corners */
  padding: 40px;
  width: 95vw;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  animation: breathe-border 3s ease-in-out infinite;
}

#modal-overlay .vibe-overlay-modal::-webkit-scrollbar {
  display: none;
}

@keyframes breathe-border {
  0% {
    box-shadow: 0 0 5px rgba(212, 255, 63, 0.2), 0 20px 50px rgba(0, 0, 0, 0.5);
    border-color: rgba(212, 255, 63, 0.3);
  }
  50% {
    box-shadow: 0 0 20px rgba(212, 255, 63, 0.6), 0 20px 50px rgba(0, 0, 0, 0.5);
    border-color: rgba(212, 255, 63, 1);
  }
  100% {
    box-shadow: 0 0 5px rgba(212, 255, 63, 0.2), 0 20px 50px rgba(0, 0, 0, 0.5);
    border-color: rgba(212, 255, 63, 0.3);
  }
}

#modal-overlay.active .vibe-overlay-modal {
  transform: translateY(0);
}

#modal-overlay .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

#modal-overlay .header-text h2 {
  font-family: var(--font-handwritten);
  color: var(--accent-color);
  font-size: 38px;
  font-weight: 400;
  margin-bottom: 5px;
  line-height: 1;
}

#modal-overlay .header-text .modal-subtitle {
  font-family: var(--font-primary);
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.4;
}

#modal-overlay .close-btn {
  background: transparent;
  border: none;
  color: #FFF; /* Changed to white */
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

#modal-overlay .form-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#modal-overlay .form-group.no-margin {
    margin-bottom: 10px;
}

#modal-overlay .row-group {
  flex-direction: row;
  gap: 15px;
}

#modal-overlay .half-width {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#modal-overlay .form-group label {
  font-size: 11px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 4px;
}

#modal-overlay .form-group label .required {
    color: #e53e3e;
}

#modal-overlay .info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    background-color: var(--text-secondary);
    color: #000;
    border-radius: 50%;
    font-size: 9px;
    font-weight: bold;
    font-style: italic;
    cursor: help;
}

#modal-overlay .form-group input[type="text"],
#modal-overlay .form-group input[type="number"],
#modal-overlay .form-group input[type="email"],
#modal-overlay .form-group input[type="file"],
#modal-overlay .form-group textarea {
  background: #FFF; /* White backgrounds */
  border: none;
  border-radius: 8px; /* Rounded corners */
  padding: 14px 16px;
  color: #000; /* Black text */
  font-family: var(--font-primary);
  font-size: 13px;
  width: 100%;
}

#modal-overlay .form-group input::placeholder,
#modal-overlay .form-group textarea::placeholder {
    color: #a0a0a0;
}

#modal-overlay .emoji-picker.dense-picker {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 0; /* Remove padding */
  background: transparent; /* Remove background */
  border: none; /* Remove border */
  max-height: 180px;
  overflow-y: auto;
  margin-bottom: 20px;
}

#modal-overlay .emoji-option {
  width: 32px; /* Smaller emojis */
  height: 32px;
  padding: 2px;
  cursor: pointer;
  border-radius: 50%; /* Rounded hover */
  transition: all 0.2s ease;
  border: 2px solid transparent;
}

#modal-overlay .emoji-option img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

#modal-overlay .emoji-option:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.1);
}

#modal-overlay .emoji-option.selected {
  border-color: var(--accent-color);
  background: rgba(163, 230, 53, 0.2);
}

#modal-overlay .full-pill-btn {
  width: 100%;
  background: #ffffff;
  color: #000;
  border: none;
  padding: 16px;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 15px;
  font-family: var(--font-primary);
  transition: all 0.2s ease;
}

#modal-overlay .full-pill-btn:hover {
    background: #e0e0e0;
}

.service-card.featured {
    border: 2px solid var(--accent-color);
    box-shadow: 0 0 15px rgba(212, 255, 63, 0.15);
}

.service-card.featured .pricing-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--accent-color);
    color: #000;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 10px;
    padding: 6px 12px;
    border-radius: 20px;
    letter-spacing: 1px;
    text-transform: uppercase;
    z-index: 10;
}

/* End */

.service-panel .extra-addons {
    grid-column: 1 / -1;
}

/* Request Estimate Modal */
#modal-overlay .request-modal {
  background-color: #000000;
  border: 1px solid #1a1a1a;
  border-radius: 16px;
  padding: 40px;
  width: 95vw;
  max-width: 650px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

#modal-overlay .request-modal::-webkit-scrollbar {
  display: none;
}

#modal-overlay.active .request-modal {
  transform: translateY(0);
}

.estimate-items-list {
  background: #141414;
  border-radius: 8px;
  padding: 10px 20px;
  margin-bottom: 25px;
}

.est-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid #2a2a2a;
}

.est-item:last-child {
  border-bottom: none;
}

.est-item h4 {
  color: #FFF;
  font-family: var(--font-primary);
  font-size: var(--text-base);
  font-weight: 500;
  margin-bottom: 4px;
}

.est-item p {
  color: var(--text-secondary);
  font-size: var(--text-xs);
  margin: 0;
}

.est-item .est-price {
  color: #FFF;
  font-family: var(--font-primary);
  font-size: 18px;
  font-weight: 600;
}

.phone-input-wrapper {
  display: flex;
  background: #FFF;
  border-radius: 8px;
  overflow: hidden;
}

.phone-input-wrapper .country-code {
  appearance: none;
  -webkit-appearance: none;
  border: none;
  outline: none;
  padding: 14px 16px;
  padding-right: 28px;
  background: #f0f0f0 url('data:image/svg+xml;utf8,<svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" xmlns="http://www.w3.org/2000/svg"><path d="M6 9l6 6 6-6"/></svg>') no-repeat right 10px center;
  color: #000;
  font-size: 13px;
  font-weight: 500;
  border-right: 1px solid #ddd;
  cursor: pointer;
  max-width: 90px;
}

@media (max-width: 768px) {
    .phone-input-wrapper .country-code {
        padding: 14px 8px;
        padding-right: 22px;
        font-size: 12px;
        max-width: 70px;
        background-position: right 6px center;
    }
}

.phone-input-wrapper input {
  flex: 1;
  border-radius: 0 !important;
}

#modal-overlay .form-actions {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

#modal-overlay .btn-outline {
  flex: 1;
  background: transparent;
  color: #FFF;
  border: 1px solid #333;
  padding: 16px;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-primary);
  transition: all 0.2s ease;
}

#modal-overlay .btn-outline:hover {
  border-color: #888;
}

#modal-overlay .request-btn {
  flex: 1;
  margin-top: 0;
}

/* Ensure form group input selectors also match request modal */
#modal-overlay .form-group input[type="tel"] {
  background: #FFF;
  border: none;
  border-radius: 8px;
  padding: 14px 16px;
  color: #000;
}

/* Custom File Upload UI */
.file-preview-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}
.file-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #1a1a1a;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  color: #fff;
  border: 1px solid #333;
}
.file-item .file-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 90%;
}
.file-item .remove-file {
  background: none;
  border: none;
  color: #ff4444;
  cursor: pointer;
  font-weight: bold;
  font-size: 16px;
  padding: 0 5px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.file-item .remove-file:hover {
  color: #ff0000;
}

#modal-overlay .form-group input[type="text"],
#modal-overlay .form-group input[type="email"],
#modal-overlay .form-group textarea {
  background: #FFF;
  border: none;
  border-radius: 8px;
  padding: 14px 16px;
  color: #000;
  font-family: var(--font-primary);
  font-size: 13px;
  width: 100%;
}










/* =========================================
   Great Wall (Fragments) Styles
   ========================================= */
.fragments-wrapper {
    background-color: #000;
    color: #fff;
    overflow: hidden;
}

.fragments-wrapper .main-header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1200px;
    padding: 20px 40px;
    box-sizing: border-box;
    z-index: 1000;
    
    /* Glassmorphism Settings (Figma: Light -45deg 80%, Refraction 100, Depth 59) */
    background: rgba(17, 17, 17, 0.45); /* Subtle dark base */
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.05); /* Slight edge for Depth */
    border-top: none;
    border-radius: 0 0 16px 16px; /* Soft bottom corners */
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1); /* Soft shadow */
}

.fragments-wrapper .nav-links a, .fragments-wrapper .social-icon {
    color: #fff;
}

.fragments-wrapper .nav-links a:hover, .fragments-wrapper .nav-links a.active {
    color: var(--accent-color);
}

.fragments-main {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background-color: #000;
}

#webgl-canvas {
    display: block;
    width: 100vw;
    height: 100vh;
    touch-action: none;
    cursor: none;
}

/* Custom Drag Cursor */
#custom-drag-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    background-color: #fff;
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
    font-size: var(--text-xs);
    font-weight: 600;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    mix-blend-mode: difference;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.1s ease-out;
}

.fragments-viewport:hover ~ #custom-drag-cursor,
.fragments-viewport:hover #custom-drag-cursor,
.fragments-main:hover #custom-drag-cursor {
    opacity: 1;
}

.fragments-ref-footer {
    background: linear-gradient(180deg, transparent 0, rgba(0,0,0,.01) 8.1%, rgba(0,0,0,.038) 15.5%, rgba(0,0,0,.082) 22.5%, rgba(0,0,0,.139) 29%, rgba(0,0,0,.205) 35.3%, rgba(0,0,0,.278) 41.2%, rgba(0,0,0,.356) 47.1%, rgba(0,0,0,.434) 52.9%, rgba(0,0,0,.512) 58.8%, rgba(0,0,0,.585) 64.7%, rgba(0,0,0,.651) 71%, rgba(0,0,0,.708) 77.5%, rgba(0,0,0,.752) 84.5%, rgba(0,0,0,.78) 91.9%, rgba(0,0,0,.79));
    bottom: 0;
    display: grid;
    height: 24rem;
    left: 0;
    padding-top: 10rem;
    place-content: center;
    position: fixed;
    right: 0;
    z-index: 1000;
    pointer-events: none;
}

.fragments-ref-footer p {
    color: #fff;
    font-family: Inter, sans-serif;
    font-size: var(--text-sm);
    font-style: normal;
    font-weight: 400;
    letter-spacing: -.014rem;
    line-height: 120%;
    margin: 0 auto;
    text-align: center;
    width: 90%;
    max-width: 800px;
}



#webgl-canvas {
    display: block;
    width: 100vw;
    height: 100vh;
    touch-action: none;
    cursor: none;
    position: absolute;
    top: 0;
    left: 0;
}


body.great-wall-body {
    overflow: hidden !important;
}

/* Typography Utilities */
.text-xs { font-size: var(--text-xs); }
.text-sm { font-size: var(--text-sm); }
.text-base { font-size: var(--text-base); }
.text-md { font-size: var(--text-md); }
.text-lg { font-size: var(--text-lg); }
.text-xl { font-size: var(--text-xl); }
.text-xxl { font-size: var(--text-xxl); }
.text-huge { font-size: var(--text-huge); }

.fw-light { font-weight: var(--fw-light); }
.fw-regular { font-weight: var(--fw-regular); }
.fw-medium { font-weight: var(--fw-medium); }
.fw-semibold { font-weight: var(--fw-semibold); }
.fw-bold { font-weight: var(--fw-bold); }

.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-accent { color: var(--accent-color); }

.fragments-wrapper .main-header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1200px;
    padding: 20px 40px;
    box-sizing: border-box;
    z-index: 1000;
    
    /* Glassmorphism Settings (Figma: Light -45deg 80%, Refraction 100, Depth 59) */
    background: rgba(17, 17, 17, 0.45); /* Subtle dark base */
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.05); /* Slight edge for Depth */
    border-top: none;
    border-radius: 0 0 16px 16px; /* Soft bottom corners */
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1); /* Soft shadow */
}


.fragments-wrapper {
    max-width: 100% !important;
    padding: 0 !important;
}



.rc .handwritten-title {
    font-size: 48px !important;
    margin-top: 52px !important;
    margin-bottom: 24px !important;
}
.rc .handwritten-title.small {
    font-size: 32px !important;
    margin-bottom: 8px !important;
}

/* Category Badge for Work.exe */
.category-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: var(--text-sm);
    font-family: var(--font-primary), sans-serif;
    padding: 4px 10px;
    border-radius: 20px;
    margin-left: 12px;
    vertical-align: middle;
    font-weight: 500;
}
/* Preloader */
#global-preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99999;
    background-color: #050505;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.6s ease-out, visibility 0.6s ease-out;
}

#global-preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

#global-preloader video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.desktop-preloader {
    display: block;
}

.mobile-preloader {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    z-index: -1;
}
.text-accent { color: var(--accent-color); }

.fragments-wrapper .main-header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1200px;
    padding: 20px 40px;
    box-sizing: border-box;
    z-index: 1000;
    
    /* Glassmorphism Settings (Figma: Light -45deg 80%, Refraction 100, Depth 59) */
    background: rgba(17, 17, 17, 0.45); /* Subtle dark base */
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.05); /* Slight edge for Depth */
    border-top: none;
    border-radius: 0 0 16px 16px; /* Soft bottom corners */
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1); /* Soft shadow */
}


.fragments-wrapper {
    max-width: 100% !important;
    padding: 0 !important;
}



.rc .handwritten-title {
    font-size: 48px !important;
    margin-top: 52px !important;
    margin-bottom: 24px !important;
}
.rc .handwritten-title.small {
    font-size: 32px !important;
    margin-bottom: 8px !important;
}

/* Category Badge for Work.exe */
.category-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: var(--text-sm);
    font-family: var(--font-primary), sans-serif;
    padding: 4px 10px;
    border-radius: 20px;
    margin-left: 12px;
    vertical-align: middle;
    font-weight: 500;
}
/* Preloader */
#global-preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99999;
    background-color: #050505;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.6s ease-out, visibility 0.6s ease-out;
}

#global-preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

#global-preloader video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.desktop-preloader {
    display: block;
}

.mobile-preloader {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    z-index: -1;
}

@media (max-width: 768px) {
    .desktop-preloader {
        position: absolute;
        opacity: 0;
        pointer-events: none;
        z-index: -1;
    }
    .mobile-preloader {
        position: absolute;
        top: 0;
        left: 0;
        opacity: 1;
        pointer-events: auto;
        z-index: 1;
        width: 100vw !important;
        height: 100dvh !important;
        object-fit: cover !important;
    }
}

/* CASE STUDY (BLOG) LAYOUT */
.case-study-header {
    padding: 120px 0 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.case-study-top {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.case-study-back {
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.case-study-back:hover {
    opacity: 1;
}

.case-study-tag {
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.case-study-title {
    font-size: 40px;
    line-height: 1.2;
    margin-bottom: 16px;
    font-weight: 500;
}

.case-study-subtitle {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 800px;
}

.case-study-hero {
    width: 100%;
    padding: 0;
    margin-bottom: 80px;
    max-width: 1512px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    justify-content: center;
}

.case-study-hero img,
.case-study-hero video {
    width: 100%;
    max-width: 1345px;
    aspect-ratio: 1345 / 423;
    object-fit: cover;
    border-radius: 8px;
}

.case-study-section {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 40px;
    padding: 0;
    margin-bottom: 80px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .case-study-section {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.case-study-heading {
    position: sticky;
    top: 100px;
    color: #88C000; /* Green handwritten */
    font-family: var(--font-handwritten);
    font-size: 48px;
    margin: 0;
    align-self: start;
}

.case-study-content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
    min-width: 0;
    max-width: 100%;
    word-wrap: break-word;
}

.case-study-content p {
    margin-bottom: 24px;
}

.case-study-content ul {
    margin-bottom: 24px;
    padding-left: 20px;
}

.case-study-content li {
    margin-bottom: 8px;
}

.case-study-marquee-container {
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    overflow: hidden;
    margin: 80px 0;
    padding: 20px 0;
    white-space: nowrap;
    display: flex;
}

.case-study-marquee-container:hover .case-study-marquee {
    animation-play-state: paused;
}

.case-study-marquee {
    display: flex;
    gap: 20px;
    animation: scroll 30s linear infinite;
    padding-right: 20px;
}

.case-study-marquee img {
    height: auto;
    max-height: 260px;
    width: auto;
    max-width: none;
    object-fit: contain;
    border-radius: 8px;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

.case-study-quote {
    text-align: center;
    padding: 80px 0;
    max-width: 800px;
    margin: 0 auto;
}

.case-study-quote-text {
    font-size: 32px;
    color: #88C000;
    font-family: var(--font-handwritten);
    margin-bottom: 16px;
}

.case-study-quote-author {
    font-size: 14px;
    color: var(--text-secondary);
}

.case-study-credits {
    border-top: 1px solid rgba(255,255,255,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 40px 0;
    margin-bottom: 80px;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.credit-item h4 {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.credit-item p {
    font-size: 16px;
    color: #fff;
    margin: 0;
}

.case-study-share {
    text-align: center;
    padding: 0 0 80px;
}

.case-study-share h3 {
    font-size: 24px;
    margin-bottom: 16px;
    color: #fff;
}

.case-study-share p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.share-btn {
    background: transparent;
    border: 1px solid #88C000;
    color: #88C000;
    padding: 12px 24px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-handwritten);
    font-size: 24px;
}

.share-btn:hover {
    background: #88C000;
    color: #000;
}

.candoxa-socials {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 10px;
}
.candoxa-social-link {
    color: var(--accent-color);
    text-decoration: underline;
    font-size: var(--text-base);
    transition: all 0.3s ease;
    display: inline-block;
}
.candoxa-social-link:hover {
    opacity: 0.8;
    transform: translateX(5px);
}


.project-link[onclick]:hover {
    text-decoration: underline !important;
    opacity: 1 !important;
}
.project-link[onclick] {
    cursor: pointer;
    position: relative;
    z-index: 10;
}


.live-link-btn {
    padding: 8px 0;
    border: none;
    font-size: 14px;
    color: var(--text-primary);
    background: transparent;
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: var(--font-primary);
    position: relative;
    z-index: 10;
}
.live-link-btn:not(.disabled):hover {
    color: var(--accent-color);
    text-decoration: underline;
}
.live-link-btn.disabled {
    color: rgba(255, 255, 255, 0.3);
    cursor: not-allowed;
}


/* Video Gallery */
.video-gallery {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin: 40px auto 80px auto;
    max-width: 1000px;
    padding: 0 20px;
}

.video-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    background: #000;
    aspect-ratio: 16/9;
}

.video-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.video-item:hover video {
    opacity: 0.5;
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    opacity: 0.8;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.video-item:hover .play-overlay {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

/* Video Modal */
.video-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.video-modal.active {
    display: flex;
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 1000px;
    aspect-ratio: 16/9;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.video-modal-content video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.close-video-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    color: #fff;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.close-video-modal:hover {
    color: #ccc;
}


.case-study-marquee .video-item {
    height: 400px;
    width: calc(400px * 16 / 9);
    flex-shrink: 0;
    margin: 0;
}


.case-study-image {
    text-align: center;
    margin-bottom: 40px;
    width: 100%;
}

.case-study-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}


/* Blur prices globally */
.price, .pt-main, .pt-sub, #bar-amt, .te-amt, .ric-price-blur, #m-pt-main, #m-pt-sub, .ric-base, .ric-total {
    filter: blur(6px);
    user-select: none;
    pointer-events: none;
    transition: filter 0.3s ease;
}


/* Animated Contact Box */
.bottom-section.animated-contact-box {
    background-color: #050505;
    border-radius: 20px;
    padding: 60px 40px;
    position: relative;
    overflow: hidden;
    border: 1px solid #1A1A1A;
}

.bottom-section.animated-contact-box::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='128' height='128'><rect x='0' y='0' width='8' height='8' fill='%232E2C2C' opacity='0.04'/><rect x='16' y='0' width='8' height='8' fill='%232E2C2C' opacity='0.47'/><rect x='32' y='0' width='8' height='8' fill='%232E2C2C' opacity='0.86'/><rect x='48' y='0' width='8' height='8' fill='%232E2C2C' opacity='0.72'/><rect x='64' y='0' width='8' height='8' fill='%232E2C2C' opacity='0.22'/><rect x='80' y='0' width='8' height='8' fill='%232E2C2C' opacity='0.53'/><rect x='96' y='0' width='8' height='8' fill='%232E2C2C' opacity='0.95'/><rect x='112' y='0' width='8' height='8' fill='%232E2C2C' opacity='0.61'/><rect x='0' y='16' width='8' height='8' fill='%232E2C2C' opacity='0.32'/><rect x='16' y='16' width='8' height='8' fill='%232E2C2C' opacity='0.73'/><rect x='32' y='16' width='8' height='8' fill='%232E2C2C' opacity='0.99'/><rect x='48' y='16' width='8' height='8' fill='%232E2C2C' opacity='0.94'/><rect x='64' y='16' width='8' height='8' fill='%232E2C2C' opacity='0.4'/><rect x='80' y='16' width='8' height='8' fill='%232E2C2C' opacity='0.86'/><rect x='96' y='16' width='8' height='8' fill='%232E2C2C' opacity='0.08'/><rect x='112' y='16' width='8' height='8' fill='%232E2C2C' opacity='0.27'/><rect x='0' y='32' width='8' height='8' fill='%232E2C2C' opacity='0.49'/><rect x='16' y='32' width='8' height='8' fill='%232E2C2C' opacity='0.75'/><rect x='32' y='32' width='8' height='8' fill='%232E2C2C' opacity='0.23'/><rect x='48' y='32' width='8' height='8' fill='%232E2C2C' opacity='0.38'/><rect x='64' y='32' width='8' height='8' fill='%232E2C2C' opacity='0.82'/><rect x='80' y='32' width='8' height='8' fill='%232E2C2C' opacity='0.6'/><rect x='96' y='32' width='8' height='8' fill='%232E2C2C' opacity='0.86'/><rect x='112' y='32' width='8' height='8' fill='%232E2C2C' opacity='0.88'/><rect x='0' y='48' width='8' height='8' fill='%232E2C2C' opacity='0.5'/><rect x='16' y='48' width='8' height='8' fill='%232E2C2C' opacity='0.49'/><rect x='32' y='48' width='8' height='8' fill='%232E2C2C' opacity='0.32'/><rect x='48' y='48' width='8' height='8' fill='%232E2C2C' opacity='0.59'/><rect x='64' y='48' width='8' height='8' fill='%232E2C2C' opacity='0.35'/><rect x='80' y='48' width='8' height='8' fill='%232E2C2C' opacity='0.98'/><rect x='96' y='48' width='8' height='8' fill='%232E2C2C' opacity='0.98'/><rect x='112' y='48' width='8' height='8' fill='%232E2C2C' opacity='0.77'/><rect x='0' y='64' width='8' height='8' fill='%232E2C2C' opacity='0.84'/><rect x='16' y='64' width='8' height='8' fill='%232E2C2C' opacity='0.77'/><rect x='32' y='64' width='8' height='8' fill='%232E2C2C' opacity='0.72'/><rect x='48' y='64' width='8' height='8' fill='%232E2C2C' opacity='0.93'/><rect x='64' y='64' width='8' height='8' fill='%232E2C2C' opacity='0.15'/><rect x='80' y='64' width='8' height='8' fill='%232E2C2C' opacity='0.51'/><rect x='96' y='64' width='8' height='8' fill='%232E2C2C' opacity='0.5'/><rect x='112' y='64' width='8' height='8' fill='%232E2C2C' opacity='0.97'/><rect x='0' y='80' width='8' height='8' fill='%232E2C2C' opacity='0.07'/><rect x='16' y='80' width='8' height='8' fill='%232E2C2C' opacity='0.92'/><rect x='32' y='80' width='8' height='8' fill='%232E2C2C' opacity='0.9'/><rect x='48' y='80' width='8' height='8' fill='%232E2C2C' opacity='0.3'/><rect x='64' y='80' width='8' height='8' fill='%232E2C2C' opacity='0.87'/><rect x='80' y='80' width='8' height='8' fill='%232E2C2C' opacity='0.86'/><rect x='96' y='80' width='8' height='8' fill='%232E2C2C' opacity='0.37'/><rect x='112' y='80' width='8' height='8' fill='%232E2C2C' opacity='0.2'/><rect x='0' y='96' width='8' height='8' fill='%232E2C2C' opacity='0.89'/><rect x='16' y='96' width='8' height='8' fill='%232E2C2C' opacity='0.33'/><rect x='32' y='96' width='8' height='8' fill='%232E2C2C' opacity='0.2'/><rect x='48' y='96' width='8' height='8' fill='%232E2C2C' opacity='0.31'/><rect x='64' y='96' width='8' height='8' fill='%232E2C2C' opacity='0.97'/><rect x='80' y='96' width='8' height='8' fill='%232E2C2C' opacity='0.59'/><rect x='96' y='96' width='8' height='8' fill='%232E2C2C' opacity='0.77'/><rect x='112' y='96' width='8' height='8' fill='%232E2C2C' opacity='0.43'/><rect x='0' y='112' width='8' height='8' fill='%232E2C2C' opacity='0.61'/><rect x='16' y='112' width='8' height='8' fill='%232E2C2C' opacity='0.98'/><rect x='32' y='112' width='8' height='8' fill='%232E2C2C' opacity='0.22'/><rect x='48' y='112' width='8' height='8' fill='%232E2C2C' opacity='0.73'/><rect x='64' y='112' width='8' height='8' fill='%232E2C2C' opacity='0.21'/><rect x='80' y='112' width='8' height='8' fill='%232E2C2C' opacity='0.36'/><rect x='96' y='112' width='8' height='8' fill='%232E2C2C' opacity='0.26'/><rect x='112' y='112' width='8' height='8' fill='%232E2C2C' opacity='0.34'/></svg>");
    background-repeat: repeat;
    animation: block-flicker 2s steps(1) infinite;
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
}

.bottom-section.animated-contact-box > * {
    position: relative;
    z-index: 1;
}

.animated-contact-box .stats-card {
    background: transparent;
    border: none;
    padding: 0;
}

@media (max-width: 900px) {
    .bottom-section.animated-contact-box {
        padding: 40px 20px;
    }
}


/* Brand Seed Image and Custom Gradient Overlay */
.service-card-image.brand-seed-img {
    background: url("../web carousel/Titos food No expiry date-25.webp") center/cover no-repeat;
}

.service-card-gradient.full-gradient {
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 40%, rgba(0,0,0,0.8) 60%, rgba(0,0,0,0) 100%);
}


.service-card-image.brand-studio-flagship-img {
    background: url('../Brandguide.png') center/cover no-repeat;
}


/* Spark Package Video */
.spark-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}










/* --- MOBILE RESPONSIVE LAYOUT OVERRIDES --- */
@media (max-width: 768px) {
    /* 1. Navigation */
    .nav-links {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        width: 100%;
        margin-bottom: 30px;
    }
    
    .main-header {
        position: relative !important;
        transform: none !important;
        left: 0 !important;
        padding: 20px !important;
    }

    /* 2. Showcase / Projects Grid */
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    /* Center the category buttons on mobile */
    .category-buttons {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    /* 3. Vibe Wall */
    .vibe-emojis {
        flex-direction: row;
        justify-content: center;
        gap: 20px;
        flex-wrap: wrap;
    }
    .vibe-emoji-item {
        font-size: 40px;
    }
    .give-vibe-btn {
        width: 100%;
        margin-top: 15px;
    }

    /* 4. Rate Cards / Pricing */
    .service-panel {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    /* 5. Contact Section & Stats Card */
    .animated-contact-box {
        flex-direction: column;
        height: auto;
        padding: 30px 15px;
    }
    
    .animated-contact-box .contact-area {
        width: 100%;
        border-right: none;
        border-bottom: 1px dashed var(--border-color);
        padding-bottom: 30px;
        margin-bottom: 30px;
        padding-right: 0;
    }
    
    .animated-contact-box .stats-card {
        width: 100%;
        padding-left: 0;
    }

    /* Stats Card Internals */
    .stats-top {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
    }
    
    .stats-middle {
        margin-bottom: 20px;
    }

    .stats-bottom {
        flex-direction: row;
        justify-content: space-between;
        gap: 10px;
    }
    
    .stats-bottom .stat-item {
        width: 48%;
    }
    
    /* Make the animations scale down nicely on mobile */
    .stats-bottom .stat-item video,
    .stats-bottom .stat-item dotlottie-player {
        width: 100% !important;
        max-width: 150px;
        height: 150px !important;
    }
    
    .stats-bottom .stat-big {
        font-size: 24px;
        margin-top: -12px !important; /* Adjust negative margin for smaller scale */
    }

    /* 6. Testimonials */
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonial-card {
        min-height: 250px; /* give it space to breathe on mobile */
    }

    /* 7. Footer */
    .main-footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
        padding: 30px 20px;
    }
    
    .footer-logo {
        align-items: center;
    }
    
    .footer-meta {
        text-align: center;
    }
    
    .back-to-top {
        margin: 15px 0;
    }
}


/* --- HAMBURGER MENU DROPDOWN --- */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    z-index: 10001;
    padding: 10px;
}

@media (max-width: 768px) {
    .main-header {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        display: flex;
        justify-content: flex-end; /* Push social and hamburger to the right */
        align-items: flex-start; /* Align to top */
        padding: 25px 20px !important; /* 25px top padding to visually align with text */
        z-index: 10000;
        /* Inherit glass background and allow clicks */
        pointer-events: auto !important;
    }
    
    .main-header > * {
        pointer-events: auto; /* But allow clicking social and hamburger */
    }

    .social-links {
        display: flex !important;
        order: 1;
        margin-right: 10px;
        align-items: center;
        margin-top: 5px; /* fine tune alignment with text */
        position: relative;
        z-index: 10001 !important; /* Keep floating above glass */
    }

    .mobile-menu-toggle {
        display: block;
        order: 2;
        padding: 0;
        margin-top: 5px;
        position: relative;
        z-index: 10001 !important; /* Keep floating above glass */
    }

    .nav-links {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        flex-direction: column !important;
        justify-content: flex-start !important; 
        align-items: flex-start !important; 
        gap: 30px !important;
        padding: 20px 0 0 20px !important; 
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: none !important;
        z-index: 9999 !important;
        margin: 0 !important;
        background: transparent !important; /* Container must be transparent */
        overflow: hidden !important; /* Ensure sliding background doesn't show outside */
    }

    .nav-links::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: -1;
        
        /* Glass Settings & Slide Down Animation */
        background: rgba(17, 17, 17, 0.85) !important; /* Stronger opacity so text pops */
        backdrop-filter: blur(28px) saturate(180%);
        -webkit-backdrop-filter: blur(28px) saturate(180%);
        transform: translateY(-100%);
        transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    }

    .nav-links.mobile-open {
        pointer-events: auto !important;
    }

    .nav-links.mobile-open::before {
        transform: translateY(0);
    }
    
    .main-header.menu-open {
        background: transparent !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }

    .nav-links a {
        font-family: var(--font-handwritten), 'Reenie Beanie', cursive !important;
        font-size: 21px !important;
        color: #ffffff !important; /* White text for clear contrast on glass */
        letter-spacing: 2px;
        text-transform: none;
        padding-bottom: 5px;
        pointer-events: auto !important; /* Re-enable clicks for links */
        line-height: 1 !important;
    }

    .nav-links a.active {
        color: #88C000 !important; /* Green text for active link */
        border-bottom: 2px solid #88C000 !important; /* Green underline */
        display: block !important;
    }

    .nav-links a:not(.active) {
        display: none !important; /* Hide inactive links when menu is closed */
    }

    .nav-links.mobile-open a:not(.active) {
        display: block !important; /* Show them when menu is open */
    }
}


/* --- MOBILE TWEAKS (PADDINGS & ICONS) --- */
@media (max-width: 768px) {
    /* 1. Reduce section margins to 16px */
    .site-wrapper {
        padding: 0 16px !important;
    }
    
    .fragments-wrapper {
        padding: 0 16px !important;
    }

    /* Ensure specific sections also respect the 16px bounds */
    .case-study-header, 
    .bottom-section, 
    .testimonials-section,
    .rc {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
    
    .animated-contact-box {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    /* 2. Extra 24px padding to the Ekari doesn't just design text */
    #cms-intro-text, .main-intro-text {
        padding-top: 24px !important;
        padding-bottom: 24px !important;
    }

    /* 3. Scale down the tool icons by 1.2 (32px / 1.2 = 26.6px) */
    .tools-section img {
        height: 26.6px !important;
        width: auto !important;
    }
    
    /* Also allow them to wrap on narrow screens to avoid overflow */
    .tools-section {
        gap: 16px !important;
        flex-wrap: wrap !important;
    }
}


/* --- MOBILE TWEAKS (HORIZONTAL SCROLL FOR WORK.EXE TABS) --- */
@media (max-width: 768px) {
    .sorts-container {
        width: 100%;
        max-width: 100vw;
        overflow: hidden; /* Prevent parent from expanding page width */
    }

    .sort-buttons {
        display: flex;
        flex-wrap: nowrap !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE/Edge */
        width: 100%;
        padding-bottom: 5px; /* So the active underline isn't cut off */
        gap: 20px; /* Slight reduction for mobile */
    }

    .sort-buttons::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
    }

    .sort-btn {
        white-space: nowrap !important; /* Keep the <sup> on the same line */
        display: inline-flex !important;
        align-items: center; /* Vertically align text and count */
        flex-shrink: 0; /* Prevent buttons from squishing */
    }
}


/* --- MOBILE TWEAKS (REDUCE SECTION SPACING BY 24PX) --- */
@media (max-width: 768px) {
    /* 
       To reduce the space between sections by 24px, we subtract 12px 
       from the bottom of each section and 12px from the top of the next.
    */
    .intro-section {
        padding-top: 140px !important; /* Clear the header height */
        padding-bottom: 52px !important; /* 64 - 12 = 52 */
    }

    .projects-section,
    .client-section,
    .testimonials-section {
        padding-top: 52px !important; /* 64 - 12 = 52 */
        padding-bottom: 52px !important; /* 64 - 12 = 52 */
    }

    .tools-section {
        margin-top: 28px !important; /* 40 - 12 = 28 */
        margin-bottom: 48px !important; /* 60 - 12 = 48 */
    }

    .store-kit-section {
        margin-top: 0 !important;
        margin-bottom: 24px !important; /* 36 - 12 = 24 */
    }

    .bottom-section {
        margin-top: 36px !important; /* 48 - 12 = 36 */
        margin-bottom: 24px !important; /* 36 - 12 = 24 */
    }
}


/* --- MOBILE TWEAKS (CHECKBOX SPACING) --- */
@media (max-width: 768px) {
    .checkbox-container input {
        margin-right: 16px !important;
    }
    
    /* Hide the empty span to prevent it from adding any accidental flex spacing */
    .checkbox-container .checkmark {
        display: none !important;
    }
}


/* --- MOBILE TWEAKS (PREVENT CHECKBOX OVERFLOW / WRAPPING UNDER SEND BUTTON) --- */
@media (max-width: 768px) {
    .form-footer {
        flex-wrap: nowrap !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 10px; /* Ensure there is a gap if they touch */
    }
    
    .checkbox-container {
        white-space: normal !important; /* allow the text to wrap internally instead of pushing to next line */
        font-size: 13px !important;
        line-height: 1.2;
    }
    
    .checkbox-container input {
        margin-right: 16px !important;
        flex-shrink: 0; /* prevent the checkbox itself from squishing */
    }
    
    .send-btn {
        flex-shrink: 0; /* prevent the send button from squishing */
    }
}


/* --- FIX VIDEO TRANSPARENCY ON MOBILE --- */
/* iOS Safari often fails to read alpha channels in .mov/.mp4 files properly. 
   Using mix-blend-mode: screen drops the black background entirely, 
   creating perfect transparency for light-colored animations on a dark theme! */
#sending-anim {
    mix-blend-mode: screen;
}


/* --- FIX CHECKBOX WIDTH --- */
/* The global `.contact-form input` rule was forcing width: 100% onto the checkbox! */
.contact-form input[type="checkbox"] {
    width: auto !important;
}


/* --- MOBILE TWEAKS (CENTER FOOTER ICONS) --- */
@media (max-width: 768px) {
    .footer-social {
        align-items: center !important;
    }
}


/* --- MORE iOS SAFARI VIDEO FIXES --- */
/* Force iOS to respect mix-blend-mode and trigger hardware acceleration properly */
#sending-anim {
    mix-blend-mode: screen !important;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    opacity: 0.99; /* Hack to force new compositing layer in Safari */
    background: transparent !important;
}


/* --- GREAT WALL MOBILE TWEAKS --- */
@media (max-width: 768px) {
    .fragments-ref-footer {
        height: auto !important;
        padding: 40px 20px 60px !important; /* more padding at bottom for Safari safe area */
    .nav-links.mobile-open a:not(.active) {
        display: block !important; /* Show them when menu is open */
    }
}


/* --- MOBILE TWEAKS (PADDINGS & ICONS) --- */
@media (max-width: 768px) {
    /* 1. Reduce section margins to 16px */
    .site-wrapper {
        padding: 0 16px !important;
    }
    
    .fragments-wrapper {
        padding: 0 16px !important;
    }

    /* Ensure specific sections also respect the 16px bounds */
    .case-study-header, 
    .bottom-section, 
    .testimonials-section,
    .rc {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
    
    .animated-contact-box {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    /* 2. Extra 24px padding to the Ekari doesn't just design text */
    #cms-intro-text, .main-intro-text {
        padding-top: 24px !important;
        padding-bottom: 24px !important;
    }

    /* 3. Scale down the tool icons by 1.2 (32px / 1.2 = 26.6px) */
    .tools-section img {
        height: 26.6px !important;
        width: auto !important;
    }
    
    /* Also allow them to wrap on narrow screens to avoid overflow */
    .tools-section {
        gap: 16px !important;
        flex-wrap: wrap !important;
    }
}


/* --- MOBILE TWEAKS (HORIZONTAL SCROLL FOR WORK.EXE TABS) --- */
@media (max-width: 768px) {
    .sorts-container {
        width: 100%;
        max-width: 100vw;
        overflow: hidden; /* Prevent parent from expanding page width */
    }

    .sort-buttons {
        display: flex;
        flex-wrap: nowrap !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE/Edge */
        width: 100%;
        padding-bottom: 5px; /* So the active underline isn't cut off */
        gap: 20px; /* Slight reduction for mobile */
    }

    .sort-buttons::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
    }

    .sort-btn {
        white-space: nowrap !important; /* Keep the <sup> on the same line */
        display: inline-flex !important;
        align-items: center; /* Vertically align text and count */
        flex-shrink: 0; /* Prevent buttons from squishing */
    }
}


/* --- MOBILE TWEAKS (REDUCE SECTION SPACING BY 24PX) --- */
@media (max-width: 768px) {
    /* 
       To reduce the space between sections by 24px, we subtract 12px 
       from the bottom of each section and 12px from the top of the next.
    */
    .intro-section {
        padding-top: 140px !important; /* Clear the header height */
        padding-bottom: 52px !important; /* 64 - 12 = 52 */
    }

    .projects-section,
    .client-section,
    .testimonials-section {
        padding-top: 52px !important; /* 64 - 12 = 52 */
        padding-bottom: 52px !important; /* 64 - 12 = 52 */
    }

    .tools-section {
        margin-top: 28px !important; /* 40 - 12 = 28 */
        margin-bottom: 48px !important; /* 60 - 12 = 48 */
    }

    .store-kit-section {
        margin-top: 0 !important;
        margin-bottom: 24px !important; /* 36 - 12 = 24 */
    }

    .bottom-section {
        margin-top: 36px !important; /* 48 - 12 = 36 */
        margin-bottom: 24px !important; /* 36 - 12 = 24 */
    }
}


/* --- MOBILE TWEAKS (CHECKBOX SPACING) --- */
@media (max-width: 768px) {
    .checkbox-container input {
        margin-right: 16px !important;
    }
    
    /* Hide the empty span to prevent it from adding any accidental flex spacing */
    .checkbox-container .checkmark {
        display: none !important;
    }
}


/* --- MOBILE TWEAKS (PREVENT CHECKBOX OVERFLOW / WRAPPING UNDER SEND BUTTON) --- */
@media (max-width: 768px) {
    .form-footer {
        flex-wrap: nowrap !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 10px; /* Ensure there is a gap if they touch */
    }
    
    .checkbox-container {
        white-space: normal !important; /* allow the text to wrap internally instead of pushing to next line */
        font-size: 13px !important;
        line-height: 1.2;
    }
    
    .checkbox-container input {
        margin-right: 16px !important;
        flex-shrink: 0; /* prevent the checkbox itself from squishing */
    }
    
    .send-btn {
        flex-shrink: 0; /* prevent the send button from squishing */
    }
}


/* --- FIX VIDEO TRANSPARENCY ON MOBILE --- */
/* iOS Safari often fails to read alpha channels in .mov/.mp4 files properly. 
   Using mix-blend-mode: screen drops the black background entirely, 
   creating perfect transparency for light-colored animations on a dark theme! */
#sending-anim {
    mix-blend-mode: screen;
}


/* --- FIX CHECKBOX WIDTH --- */
/* The global `.contact-form input` rule was forcing width: 100% onto the checkbox! */
.contact-form input[type="checkbox"] {
    width: auto !important;
}


/* --- MOBILE TWEAKS (CENTER FOOTER ICONS) --- */
@media (max-width: 768px) {
    .footer-social {
        align-items: center !important;
    }
}


/* --- MORE iOS SAFARI VIDEO FIXES --- */
/* Force iOS to respect mix-blend-mode and trigger hardware acceleration properly */
#sending-anim {
    mix-blend-mode: screen !important;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    opacity: 0.99; /* Hack to force new compositing layer in Safari */
    background: transparent !important;
}


/* --- GREAT WALL MOBILE TWEAKS --- */
@media (max-width: 768px) {
    .fragments-ref-footer {
        height: auto !important;
        padding: 40px 20px 60px !important; /* more padding at bottom for Safari safe area */
    }
    
    .fragments-ref-footer p {
        width: 100% !important;
        max-width: none !important;
        white-space: normal !important;
        font-size: 14px !important;
    }

    #modal-overlay .vibe-overlay-modal {
        max-height: 540px !important;
    }

    /* Full screen request modal for mobile */
    #modal-overlay .request-modal {
        width: 100vw !important;
        max-width: 100vw !important;
        height: 100vh !important;
        max-height: 100vh !important;
        border-radius: 0 !important;
        border: none !important;
        padding: 40px 20px 120px 20px !important; /* Extra padding at bottom for scrolling */
        margin: 0 !important;
    }

    #modal-overlay .row-group {
        flex-direction: column !important;
        gap: 15px !important;
    }

    #modal-overlay .form-actions {
        flex-direction: column-reverse !important;
    }

    #modal-overlay .btn-outline, 
    #modal-overlay .request-btn {
        width: 100% !important;
    }
}

/* Image Protection Layer */
img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}




/* Hamburger to Close Icon Animation */
.mobile-menu-toggle {
    position: relative;
    width: 24px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
    padding: 0;
    display: none; /* Only visible on mobile normally */
}
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block !important;
    }
}
.mobile-menu-toggle svg {
    position: absolute;
    top: 0;
    left: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.mobile-menu-toggle .close-icon {
    opacity: 0;
    transform: rotate(-90deg) scale(0.5);
    pointer-events: none;
}
.mobile-menu-toggle .hamburger-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}
.mobile-menu-toggle.is-open .close-icon {
    opacity: 1;
    transform: rotate(0deg) scale(0.85);
    pointer-events: auto;
}
.mobile-menu-toggle.is-open .hamburger-icon {
    opacity: 0;
    transform: rotate(90deg) scale(0.5);
    pointer-events: none;
}



/* Glowing Handwriting Animation */
.glowing-handwriting {
    display: inline-block;
    color: var(--accent-color);
    text-shadow: 0 0 12px var(--accent-color), 0 0 24px rgba(163, 230, 53, 0.4);
    white-space: nowrap;
    animation: handwriting-wipe 10s ease-in-out infinite;
}

@keyframes handwriting-wipe {
    0% { clip-path: inset(0 100% 0 0); -webkit-clip-path: inset(0 100% 0 0); opacity: 1; }
    20% { clip-path: inset(0 0 0 0); -webkit-clip-path: inset(0 0 0 0); opacity: 1; }
    85% { clip-path: inset(0 0 0 0); -webkit-clip-path: inset(0 0 0 0); opacity: 1; }
    95% { opacity: 0; clip-path: inset(0 0 0 0); -webkit-clip-path: inset(0 0 0 0); }
    96% { opacity: 0; clip-path: inset(0 100% 0 0); -webkit-clip-path: inset(0 100% 0 0); }
    100% { opacity: 1; clip-path: inset(0 100% 0 0); -webkit-clip-path: inset(0 100% 0 0); }
}
