/* --- Reset & Variables --- */
:root {
    --bg-color: #F4F4F0;
    --text-color: #111111;
    --accent-color: #FF3300;
    --font-primary: 'Noto Sans TC', sans-serif;
    --font-secondary: 'Noto Serif TC', serif;
    --container-width: 1200px;
}

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

html, body {
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* IE10+/Edge */
    user-select: none; /* Standard */
}

/* Allow selection in form inputs */
input, textarea {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* --- Custom Cursor --- */
.cursor {
    position: fixed;
    width: 10px;
    height: 10px;
    background: var(--accent-color);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s;
}

.cursor-follower {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: transform 0.1s, width 0.3s, height 0.3s;
}

body:hover .cursor { opacity: 1; }
body:hover .cursor-follower { opacity: 1; }

/* --- Loader --- */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--text-color);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1);
}

.loader-text {
    color: var(--bg-color);
    font-family: var(--font-secondary);
    font-size: 3rem;
    font-weight: bold;
    letter-spacing: 5px;
    opacity: 0;
    animation: pulse 1.5s infinite;
}

body.loaded .loader {
    transform: translateY(-100%);
}

@keyframes pulse {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}

/* --- Animations --- */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Typography --- */
h1, h2, h3 {
    font-family: var(--font-secondary);
    font-weight: 700;
    line-height: 1.1;
}

/* Responsive Typography */
html {
    font-size: 16px;
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
}

/* --- Header --- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 30px 40px;
    z-index: 1000;
    mix-blend-mode: difference;
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
    height: auto;
    transition: padding 0.3s ease;
}

@media (max-width: 768px) {
    .main-header {
        padding: 20px;
    }
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff; /* Difference mode makes this visible */
    text-decoration: none;
    letter-spacing: 1px;
}

.menu-trigger {
    background: rgba(0,0,0,0.8);
    border: 1px solid #fff;
    padding: 10px 20px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 2px;
    position: relative;
    transition: all 0.3s ease;
}

.menu-trigger:hover {
    background: #fff;
    color: #000;
}

.menu-trigger::after {
    display: none;
}

/* --- Page Headers (For subpages) --- */
.page-header {
    padding: 150px 0 80px;
    background: var(--bg-color);
}

.page-title {
    font-size: 5rem;
    margin-bottom: 20px;
    line-height: 1;
}

.page-subtitle {
    font-size: 1.5rem;
    color: #666;
    max-width: 600px;
}

/* --- Service Grid (New) --- */
.service-category {
    margin-bottom: 80px;
}

.cat-title {
    font-size: 2rem;
    border-bottom: 2px solid var(--text-color);
    padding-bottom: 20px;
    margin-bottom: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cat-tag {
    font-size: 0.9rem;
    background: var(--text-color);
    color: var(--bg-color);
    padding: 5px 10px;
    border-radius: 4px;
}

.service-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.srv-card {
    border: 1px solid #ddd;
    padding: 30px;
    transition: all 0.3s ease;
}

.srv-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-5px);
}

.srv-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.srv-card ul {
    list-style: none;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.srv-card li {
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #666;
}

.srv-card li::before {
    content: '→';
    color: var(--accent-color);
    margin-right: 8px;
}

/* --- FAQ Section --- */
.faq-item {
    border-bottom: 1px solid #ddd;
    padding: 30px 0;
}

.faq-question {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    cursor: pointer;
}

.faq-answer {
    font-size: 1.1rem;
    color: #666;
    max-width: 800px;
    line-height: 1.6;
}

/* --- Contact Page Styles --- */
.contact-section {
    padding: 80px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 80px;
    align-items: start;
}

.contact-form-wrapper {
    background: #fff;
    border: 3px solid #000;
    padding: 40px;
    position: relative;
    box-shadow: 15px 15px 0 #000; /* Brutalist Shadow */
}

.form-group {
    margin-bottom: 30px;
}

.form-label {
    display: block;
    font-size: 1.2rem;
    font-weight: 900;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 20px;
    background: #f4f4f4;
    border: 2px solid #000;
    font-family: var(--font-primary);
    font-size: 1.1rem;
    border-radius: 0;
    transition: all 0.3s ease;
    font-weight: 500;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    background: #fff;
    border-color: var(--accent-color);
    box-shadow: 5px 5px 0 rgba(0,0,0,0.2);
}

.contact-btn {
    width: 100%;
    padding: 25px;
    background: #000;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 900;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    margin-top: 20px;
    position: relative;
    overflow: hidden;
}

.contact-btn:hover {
    background: var(--accent-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* Contact Info Side */
.contact-info-box {
    background: #000;
    color: #fff;
    padding: 40px;
    margin-bottom: 40px;
}

.contact-info-title {
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.contact-method {
    margin-bottom: 20px;
}

.contact-method-label {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-bottom: 5px;
}

.contact-method-value {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-secondary);
}

.faq-section {
    border-top: 5px solid #000;
    padding-top: 30px;
}

.faq-title {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.faq-item {
    margin-bottom: 30px;
    border-bottom: 1px solid #ccc;
    padding-bottom: 20px;
}

.faq-question {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #000;
}

.faq-answer {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
}

@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .contact-form-wrapper {
        padding: 30px;
        box-shadow: 10px 10px 0 #000;
    }
}

/* --- Form Styles --- */
.form-group {
    margin-bottom: 30px;
}

.form-label {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 15px;
    background: transparent;
    border: 1px solid var(--text-color);
    font-family: var(--font-primary);
    font-size: 1rem;
    border-radius: 0;
}

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

/* --- Menu Overlay --- */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #111; /* Changed from accent-color to dark */
    z-index: 2000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start; /* Left align */
    padding-left: 10%; /* Add some spacing */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.menu-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.menu-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid #fff;
    padding: 10px 20px;
    transition: all 0.3s ease;
}

.menu-close:hover {
    background: #fff;
    color: #000;
}

.menu-nav {
    display: flex;
    flex-direction: column;
    text-align: left;
    gap: 20px;
}

.menu-link {
    font-family: var(--font-primary);
    font-size: 3.5rem;
    font-weight: 900;
    color: #fff;
    text-decoration: none;
    margin: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: baseline;
    gap: 20px;
    line-height: 1.2;
}

.menu-link .zh {
    position: relative;
    z-index: 1;
}

.menu-link .en {
    font-size: 1.2rem;
    font-weight: 400;
    font-family: var(--font-secondary);
    color: #666;
    letter-spacing: 2px;
    transition: color 0.3s ease;
}

.menu-link:hover {
    transform: translateX(30px);
    color: var(--accent-color);
    font-style: normal;
}

.menu-link:hover .en {
    color: #fff;
}

@media (max-width: 768px) {
    .menu-overlay {
        padding-left: 40px;
        align-items: flex-start;
    }
    
    .menu-link {
        font-size: 2rem;
        flex-direction: column;
        gap: 5px;
    }
    
    .menu-link .en {
        font-size: 0.9rem;
    }
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: transparent;
    padding-top: 0;
}

.hero-container {
    width: 100%;
    padding: 0 40px;
}

.hero-title {
    font-size: 8vw;
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
}

.hero-title .line {
    display: block;
    opacity: 0;
    transform: translateY(100px);
    transition: all 1s cubic-bezier(0.77, 0, 0.175, 1);
}

body.loaded .hero-title .line {
    opacity: 1;
    transform: translateY(0);
}

body.loaded .hero-title .line:nth-child(2) {
    transition-delay: 0.2s;
    color: var(--accent-color);
}

.hero-subtitle {
    margin-top: 40px;
    font-size: 1.2rem;
    max-width: 500px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 1s ease 0.5s;
    color: var(--text-color);
}

body.loaded .hero-subtitle {
    opacity: 1;
    transform: translateY(0);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    right: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.8rem;
    font-weight: 700;
}

.scroll-indicator .line {
    width: 1px;
    height: 60px;
    background: var(--text-color);
    margin-top: 10px;
    animation: scrollLine 2s infinite;
}

@keyframes scrollLine {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    51% { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* --- Marquee --- */
.marquee-section {
    padding: 40px 0;
    border-top: 1px solid var(--text-color);
    border-bottom: 1px solid var(--text-color);
    overflow: hidden;
    background: var(--text-color);
    color: var(--bg-color);
}

.marquee-content {
    white-space: nowrap;
    font-size: 2rem;
    font-weight: 700;
    font-family: var(--font-secondary);
    animation: marquee 20s linear infinite;
}

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

@media (max-width: 768px) {
    .marquee-content {
        animation-duration: 10s;
    }
}

/* --- Sections General --- */
.section {
    padding: 120px 0;
}

.section-header {
    margin-bottom: 80px;
}

.section-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 2px;
    color: var(--accent-color);
}

.section h2 {
    font-size: 3.5rem;
    text-align: left;
    margin-bottom: 0;
}

/* --- About --- */
.about-content p {
    font-size: 1.5rem;
    line-height: 1.6;
    max-width: 800px;
    margin: 0;
    text-align: left;
}

/* --- Services --- */
.service-list {
    border-top: 1px solid rgba(0,0,0,0.1);
}

.service-item {
    padding: 40px 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border-radius: 0;
}

.service-item:hover {
    padding-left: 20px;
    background: #fff;
    transform: none;
    box-shadow: none;
}

.service-header {
    display: flex;
    align-items: baseline;
    margin-bottom: 10px;
}

.service-header .num {
    font-size: 1rem;
    margin-right: 20px;
    color: var(--accent-color);
    font-weight: 700;
}

.service-header h3 {
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 0;
}

.service-desc {
    padding-left: 40px;
    color: #666;
}

/* --- Works --- */
.works-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.work-item {
    position: relative;
    display: block;
    text-decoration: none;
    color: var(--text-color);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.1);
}

.work-image-wrapper {
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-bottom: 1px solid var(--text-color);
}

.work-image {
    width: 100%;
    height: 100%;
    background-color: #e0e0e0;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.3s ease, transform 0.5s ease;
    display: block;
}

.work-item:hover .work-image {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.work-info {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background: var(--bg-color);
}

.work-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 5px;
    display: block;
}

.work-cat {
    font-size: 0.9rem;
    font-family: var(--font-secondary);
    font-style: italic;
    color: #666;
}

.work-year {
    font-weight: 700;
    color: var(--accent-color);
}

@media (max-width: 768px) {
    .works-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Contact --- */
.contact-section {
    background-color: var(--text-color);
    color: var(--bg-color);
    padding: 100px 40px;
    position: relative;
    overflow: hidden;
}

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

.contact-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-title {
    font-size: 10vw;
    line-height: 0.9;
    display: flex;
    flex-direction: column;
    font-family: var(--font-primary);
    font-weight: 900;
    text-transform: uppercase;
    margin: 0;
}

.contact-title .outline-text {
    color: transparent;
    -webkit-text-stroke: 2px var(--bg-color);
    font-style: italic;
}

.contact-desc {
    font-size: 1.5rem;
    margin-bottom: 40px;
    opacity: 0.8;
}

.contact-btn {
    display: inline-block;
    padding: 20px 40px;
    background: var(--accent-color);
    color: var(--bg-color);
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 0; /* Pill shape for elegance */
    transition: all 0.3s ease;
    margin-bottom: 60px;
}

.contact-btn:hover {
    background: var(--bg-color);
    color: var(--text-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.big-btn {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 30px;
    background: var(--text-color);
    color: var(--bg-color);
    text-decoration: none;
    font-weight: 700;
    width: 100%;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.big-btn:hover {
    background: transparent;
    color: var(--text-color);
    border-color: var(--text-color);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-family: var(--font-secondary);
    font-size: 1.1rem;
    opacity: 0.6;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 30px;
}

.contact-info a {
    color: var(--bg-color);
    text-decoration: none;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-title {
        font-size: 15vw; /* Increase size on mobile */
    }
    
    .contact-section {
        padding: 60px 20px;
    }
    
    .contact-desc {
        font-size: 1.2rem;
    }
}

/* --- CTA Section (New) --- */
.cta-section {
    padding: 120px 0;
    background-color: var(--accent-color);
    color: #000;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-title {
    font-size: 6vw;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 30px;
    text-transform: uppercase;
    font-family: var(--font-primary);
    color: #000;
}

.cta-desc {
    font-size: 1.5rem;
    max-width: 700px;
    margin: 0 auto 50px;
    font-weight: 700;
    line-height: 1.4;
}

.cta-btn {
    display: inline-block;
    padding: 25px 60px;
    background: #000;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.1);
}

.cta-btn:hover {
    background: transparent;
    color: #000;
    transform: translateY(-5px);
    box-shadow: 5px 5px 0 #000;
}

@media (max-width: 768px) {
    .cta-title { font-size: 12vw; }
    .cta-desc { font-size: 1.2rem; }
    .cta-btn { width: 100%; }
}

/* --- Case List (Interactive List Style) --- */
.section-cases {
    background: var(--bg-color);
    color: #000;
    padding: 0;
}

.case-list {
    display: flex;
    flex-direction: column;
    border-top: 2px solid #000;
}

.case-row {
    display: grid;
    grid-template-columns: 220px 2.5fr 1fr 0.3fr; /* Adjusted for longer titles */
    gap: 30px;
    padding: 40px 0;
    border-bottom: 1px solid #ccc;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    align-items: center;
}

.case-row:hover {
    background: #fff;
    padding-left: 20px;
}

.case-row:hover .case-arrow {
    transform: translateX(10px);
    color: var(--accent-color);
}

.case-img {
    width: 100%;
    height: auto;
    overflow: hidden;
    background: #eee;
    border-radius: 4px;
}

.case-img img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.case-row:hover .case-img img {
    transform: scale(1.1);
}

.case-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.case-client {
    font-size: 0.9rem;
    font-weight: 700;
    color: #666;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.case-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
}

.case-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.case-tags span {
    font-size: 0.8rem;
    border: 1px solid #ccc;
    padding: 5px 10px;
    border-radius: 20px;
    color: #666;
}

.case-stat {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    text-align: right;
}

.case-stat-num {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--accent-color);
    line-height: 1;
    margin-bottom: 5px;
    font-family: var(--font-primary);
}

.case-stat-label {
    font-size: 0.9rem;
    color: #000;
    font-weight: 700;
}

.case-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 300;
    transition: all 0.3s ease;
}

/* --- Floating Image --- */
.case-floating-img {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 400px;
    height: 300px;
    pointer-events: none;
    z-index: 90;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

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

.case-floating-img.active {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* --- Modal Styles --- */
.case-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.case-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.case-modal {
    width: 90%;
    max-width: 900px;
    background: #fff;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(50px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

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

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #000;
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-weight: 700;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--accent-color);
}

.modal-content {
    padding: 0;
}

.modal-hero-img {
    width: 100%;
    height: 400px;
    overflow: hidden;
}

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

.modal-header {
    margin-bottom: 40px;
    border-bottom: 1px solid #eee;
    padding: 40px 60px;
}

.modal-client {
    font-size: 1rem;
    font-weight: 700;
    color: #666;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modal-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.2;
}

.modal-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.modal-tags span {
    font-size: 0.9rem;
    background: #f4f4f0;
    padding: 5px 15px;
    color: #000;
    font-weight: 600;
}

.modal-stat-box {
    margin-bottom: 40px;
    background: #000;
    color: #fff;
    padding: 30px;
    text-align: center;
    margin-left: 60px;
    margin-right: 60px;
}

.modal-stat-num {
    font-size: 4rem;
    font-weight: 900;
    color: var(--accent-color);
    line-height: 1;
    margin-bottom: 10px;
}

.modal-stat-label {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: 0 60px 60px 60px;
}

.modal-section h3 {
    font-size: 1.2rem;
    font-weight: 900;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-left: 4px solid var(--accent-color);
    padding-left: 15px;
}

.modal-section p, .modal-section li {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.modal-result ul {
    list-style: none;
    padding: 0;
}

.modal-result li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.modal-result li::before {
    content: "✓";
    color: var(--accent-color);
    position: absolute;
    left: 0;
    font-weight: 900;
}

/* Mobile */
@media (max-width: 768px) {
    .case-row {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 30px 0;
    }
    
    .case-img {
        height: 250px; /* Fixed height for mobile to prevent it from being too tall */
        width: 100%;
    }
    
    .case-img img {
        height: 100%;
        object-fit: cover;
    }

    .case-stat {
        align-items: flex-start;
        text-align: left;
    }
    
    .case-arrow {
        display: none;
    }

    .modal-content {
        padding: 0;
    }

    .modal-header, .modal-body, .modal-stat-box {
        padding: 30px 20px;
        margin-left: 0;
        margin-right: 0;
    }

    .modal-hero-img {
        height: 250px;
    }

    .modal-title {
        font-size: 1.8rem;
    }

    .modal-stat-num {
        font-size: 3rem;
    }
}

.section-cases {
    background: var(--bg-color);
    color: #000;
    padding: 0; /* Full width, no padding on section, padding handled by rows */
    width: 100%;
}
    font-weight: 700;
}

.case-desc-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-size: 1rem;
    line-height: 1.6;
    color: #444;
    border-left: 1px solid #eee;
    padding-left: 40px;
}

.case-problem {
    margin-bottom: 15px;
}

.case-solution {
    color: #000;
    font-weight: 700;
}

@media (max-width: 768px) {
    .case-row {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .case-stat-box, .case-desc-box {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid #eee;
        padding-top: 20px;
    }
    
    .case-stat-num {
        font-size: 3.5rem;
    }
}

/* --- Footer --- */
.main-footer {
    padding: 80px 0 40px;
    background: #000;
    color: #fff;
    border-top: 5px solid var(--accent-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 2fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand .footer-logo {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 10px;
}

.footer-slogan {
    font-size: 1rem;
    opacity: 0.7;
    font-family: var(--font-secondary);
}

.footer-info h4 {
    font-size: 0.9rem;
    font-weight: 400;
    margin-bottom: 15px;
    color: #fff;
    opacity: 0.5;
    letter-spacing: 1px;
}

.footer-info p {
    font-size: 0.95rem;
    margin-bottom: 10px;
    opacity: 0.8;
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.footer-social a {
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 700;
    transition: color 0.3s ease;
    text-transform: uppercase;
}

.footer-social a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    opacity: 0.6;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-social {
        align-items: flex-start;
        flex-direction: row;
    }
    
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* --- Success Modal --- */
.success-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 20000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.success-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.success-modal {
    background: #fff;
    padding: 50px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    border: 1px solid rgba(0,0,0,0.1);
    box-shadow: 15px 15px 0 #000;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

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

.success-icon {
    font-size: 4rem;
    color: var(--accent-color);
    margin-bottom: 20px;
    font-weight: 900;
}

.success-modal h3 {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 15px;
}

.success-modal p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

.success-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    width: 100%;
}

.success-line-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fff;
    color: #000;
    text-decoration: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 900;
    border: 1px solid rgba(0,0,0,0.1);
    box-shadow: 5px 5px 0 #000;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 300px;
    position: relative;
    z-index: 10;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
}

.success-line-btn::after {
    content: '→';
    margin-left: 10px;
    font-weight: 900;
    transition: transform 0.3s ease;
}

.success-line-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 7px 7px 0 #000;
    background: #000;
    color: #fff;
}

.success-line-btn:hover::after {
    transform: translateX(5px);
}

.success-close-btn {
    background: #fff;
    color: #000;
    border: 1px solid rgba(0,0,0,0.1);
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 300px;
}

.success-close-btn:hover {
    background: #fafafa;
    transform: translateY(-3px);
}

/* --- Floating Contact Button --- */
.floating-contact-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-end; /* Align to right */
    gap: 15px;
}

.floating-toggle-btn {
    width: 60px;
    height: 60px;
    padding: 0;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    justify-content: center;
    align-items: center;
    
    /* Message Icon (SVG) */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24' viewBox='0 0 24 24' width='24' fill='%23ffffff'%3E%3Cpath d='M20 2H4c-1.1 0-2 .9-2 2v18l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 14H6l-2 2V4h16v12z'/%3E%3Cpath d='M8 9h8v2H8zm0-3h8v2H8z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 28px;
}

.floating-toggle-btn .plus-icon {
    display: none;
}

.floating-toggle-btn::after {
    content: none;
}

.floating-toggle-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.floating-toggle-btn.active {
    transform: rotate(90deg);
    background-color: #fff;
    
    /* Close Icon (SVG) - Black */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24' viewBox='0 0 24 24' width='24' fill='%23000000'%3E%3Cpath d='M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z'/%3E%3C/svg%3E");
    border: 1px solid rgba(0,0,0,0.1);
}

.floating-toggle-btn.active::after {
    content: none;
}

.floating-menu {
    display: flex;
    flex-direction: column;
    gap: 15px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.floating-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.floating-item {
    width: 50px;
    height: 50px;
    background: #fff;
    color: #000;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    font-weight: 900;
    font-size: 0.8rem;
    box-shadow: 3px 3px 0 #000;
    transition: all 0.2s ease;
}

.floating-item:hover {
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0 #000;
    background: #000;
    color: #fff;
}

.floating-item.line { color: #06C755; border-color: #06C755; box-shadow: 3px 3px 0 #06C755; }
.floating-item.line:hover { background: #06C755; color: #fff; }

.floating-item.phone { color: #000; border-color: #000; box-shadow: 3px 3px 0 #000; }
.floating-item.phone:hover { background: #000; color: #fff; }

.floating-item.ig { color: #E1306C; border-color: #E1306C; box-shadow: 3px 3px 0 #E1306C; }
.floating-item.ig:hover { background: #E1306C; color: #fff; }

/* --- Stronger RWD Improvements --- */
@media (max-width: 768px) {
    /* 1. Layout & Spacing */
    .section {
        padding: 60px 0; /* Reduce from 120px */
    }

    .page-header {
        padding: 100px 0 40px; /* Reduce from 150px */
    }

    .section-header {
        margin-bottom: 40px; /* Reduce from 80px */
    }

    .container {
        padding: 0 20px;
    }

    /* 2. Typography */
    .page-title {
        font-size: 3rem; /* Reduce from 5rem */
    }

    .section h2 {
        font-size: 2.5rem; /* Reduce from 3.5rem */
    }

    .hero-title {
        font-size: 12vw; /* Increase slightly for impact */
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-top: 20px;
    }

    /* 3. Grids & Components */
    .service-cards-grid {
        grid-template-columns: 1fr; /* Force single column */
        gap: 20px;
    }

    .srv-card {
        padding: 20px;
    }

    .works-grid {
        gap: 30px;
        margin-top: 30px;
    }

    .contact-section {
        padding: 60px 20px;
    }

    .contact-title {
        font-size: 12vw;
    }

    .contact-btn {
        width: 100%;
        text-align: center;
        margin-bottom: 40px;
    }

    .big-btn {
        padding: 15px 20px;
        font-size: 0.9rem;
    }

    /* 4. Footer */
    .main-footer {
        padding: 60px 0 30px;
    }

    .footer-grid {
        gap: 40px;
    }

    /* 5. Floating Button */
    .floating-contact-container {
        bottom: 20px;
        right: 20px;
    }

    .floating-toggle-btn {
        width: 50px;
        height: 50px;
        background-size: 24px;
    }
    
    .floating-item {
        width: 45px;
        height: 45px;
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    /* Extra adjustments for small screens */
    .hero-title {
        font-size: 15vw;
    }
    
    .contact-form-wrapper {
        padding: 20px;
        box-shadow: 5px 5px 0 #000;
    }

    .success-modal {
        padding: 30px 20px;
        width: 95%;
    }

    .success-icon {
        font-size: 3rem;
    }

    .success-modal h3 {
        font-size: 1.5rem;
    }
}

/* --- Blog Post Styles --- */
.blog-post-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.blog-post-content h2 {
    font-size: 2rem;
    margin-top: 60px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #000;
}

.blog-post-content h3 {
    font-size: 1.5rem;
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 700;
}

.blog-post-content p {
    margin-bottom: 20px;
}

.blog-post-content ul, .blog-post-content ol {
    margin-bottom: 30px;
    padding-left: 20px;
}

.blog-post-content li {
    margin-bottom: 10px;
}

.blog-post-content blockquote {
    border-left: 5px solid var(--accent-color);
    padding-left: 20px;
    margin: 40px 0;
    font-style: italic;
    font-size: 1.2rem;
    color: #000;
    font-family: var(--font-secondary);
}

.blog-meta {
    margin-bottom: 60px;
    padding-bottom: 30px;
    border-bottom: 1px solid #ddd;
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    color: #666;
}

.blog-cta {
    background: #fafafa;
    padding: 40px;
    margin-top: 80px;
    text-align: center;
    border: 1px solid #ddd;
}

.blog-cta h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

/* --- Enhanced RWD for Blog Posts --- */
.blog-post-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 30px 0;
}

@media (max-width: 768px) {
    .blog-post-content {
        font-size: 1rem;
        line-height: 1.7;
    }

    .blog-post-content h2 {
        font-size: 1.5rem;
        margin-top: 40px;
        margin-bottom: 20px;
    }

    .blog-post-content h3 {
        font-size: 1.2rem;
        margin-top: 30px;
        margin-bottom: 15px;
    }

    .blog-post-content blockquote {
        margin: 30px 0;
        padding-left: 15px;
        font-size: 1.1rem;
    }

    .blog-meta {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 30px;
        padding-bottom: 20px;
    }

    .blog-cta {
        padding: 30px 20px;
        margin-top: 50px;
    }
    
    .blog-cta h3 {
        font-size: 1.3rem;
    }
}

/* --- Easter Egg Styles --- */
.click-ripple {
    position: fixed;
    width: 20px;
    height: 20px;
    background: rgba(255, 51, 0, 0.4);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    pointer-events: none;
    z-index: 9999;
    animation: ripple-anim 0.6s linear;
}

@keyframes ripple-anim {
    to {
        transform: translate(-50%, -50%) scale(4);
        opacity: 0;
    }
}

/* --- Service Page RWD Fixes --- */
@media (max-width: 768px) {
    .service-category {
        margin-bottom: 50px;
    }

    .cat-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    .cat-tag {
        font-size: 0.8rem;
        padding: 4px 8px;
    }
    
    .srv-card {
        padding: 25px 20px;
    }
    
    .srv-card h3 {
        font-size: 1.3rem;
        line-height: 1.4;
    }
    
    .srv-card ul {
        margin-top: 15px;
        padding-top: 15px;
    }
    
    .srv-card li {
        font-size: 0.95rem;
        margin-bottom: 10px;
    }
}



/* --- Beauty Zone (Elegant Redesign) --- */
.beauty-section {
    background-color: #F9F9F7; /* Soft Cream/Grey */
    color: #333;
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.beauty-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.beauty-label {
    display: inline-block;
    font-family: var(--font-primary);
    font-size: 0.9rem;
    letter-spacing: 2px;
    color: #666;
    margin-bottom: 20px;
    position: relative;
    padding-left: 40px;
}

.beauty-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 30px;
    height: 1px;
    background: #666;
}

.beauty-title {
    font-family: var(--font-secondary); /* Serif */
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 30px;
    color: #111;
    font-weight: 400; /* Lighter weight for elegance */
}

.beauty-desc {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 50px;
    line-height: 1.8;
    max-width: 90%;
}

.beauty-desc strong {
    color: #000;
    font-weight: 600;
    border-bottom: 1px solid #ccc;
}

.beauty-features {
    list-style: none;
    margin-bottom: 60px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.beauty-features li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.feat-num {
    font-family: var(--font-secondary);
    font-size: 1.2rem;
    color: #ccc;
    font-style: italic;
}

.feat-text {
    font-size: 1.05rem;
    color: #333;
    font-weight: 500;
}

.beauty-btn {
    display: inline-block;
    padding: 15px 40px;
    border: 1px solid #333;
    color: #333;
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    background: transparent;
}

.beauty-btn:hover {
    background: #333;
    color: #fff;
    padding-right: 50px;
}

/* Visual Side */
.beauty-visual {
    position: relative;
    height: 600px;
}

.beauty-img-grid {
    position: relative;
    width: 100%;
    height: 100%;
}

.b-img {
    position: absolute;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.b-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s ease;
}

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

.b-img-1 {
    width: 70%;
    height: 80%;
    top: 0;
    right: 0;
    z-index: 1;
}

.b-img-2 {
    width: 50%;
    height: 50%;
    bottom: 0;
    left: 0;
    z-index: 2;
    border: 10px solid #F9F9F7; /* Match bg color to create gap */
}

.beauty-circle-text {
    position: absolute;
    bottom: 10%;
    right: -5%;
    width: 120px;
    height: 120px;
    z-index: 3;
    animation: rotate 20s linear infinite;
}

.beauty-circle-text text {
    font-size: 14px;
    font-family: var(--font-primary);
    letter-spacing: 2px;
    font-weight: 700;
}

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

@media (max-width: 992px) {
    .beauty-wrapper {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .beauty-title {
        font-size: 3rem;
    }
    
    .beauty-visual {
        height: 400px;
    }
    
    .b-img-1 {
        width: 80%;
    }
    
    .b-img-2 {
        width: 60%;
    }
}


/* --- Logo Image --- */
.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 45px; /* Reduced significantly to be noticeable */
    width: auto;
    display: block;
}


/* --- Loader Logo Image --- */
.loader-text img {
    display: block;
    max-width: 400px; /* Doubled from 200px */
    height: auto;
}

/* --- Footer Logo Image --- */
.footer-logo img {
    display: block;
    height: 85px;
    width: auto;
    filter: invert(1); /* Since footer is dark, and logo might be black? Adjust if needed */
}
/* If the logo is already white/suitable for dark bg, remove filter */

/* Fix for Logo in Header with mix-blend-mode */
.main-header .logo img {
    filter: brightness(0) invert(1);
}

/* Fix loader logo visibility */
.loader-text img { filter: brightness(0) invert(1); }

/* Fix footer logo visibility */
.footer-logo img { filter: brightness(0) invert(1); }

/* --- Mobile Footer Fixes (Added by Copilot) --- */
@media (max-width: 768px) {
    .main-footer {
        padding: 40px 0 30px !important;
    }

    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
        text-align: center;
    }
    
    .footer-brand .footer-logo {
        display: flex;
        justify-content: center;
        margin-bottom: 15px;
    }
    
    .footer-info {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-info p {
        justify-content: center;
    }

    .footer-social {
        align-items: center !important;
        flex-direction: row !important;
        justify-content: center !important;
        gap: 25px !important;
        margin-top: 10px;
    }
    
    .footer-bottom {
        flex-direction: column;
        align-items: center !important;
        gap: 15px;
        text-align: center;
        margin-top: 30px;
    }
}
