/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #2c2c2c;
    background-color: #f8f6f3;
}

/* Links that should look like normal text */
a.plain-link {
    color: inherit;
    text-decoration: none;
}

a.plain-link:hover,
a.plain-link:focus,
a.plain-link:active {
    color: inherit;
    text-decoration: none;
}

/* Remove blue highlighting from phone numbers and other auto-detected links */
a[href^="tel:"] {
    color: inherit !important;
    text-decoration: none !important;
}

a[href^="tel:"]:hover,
a[href^="tel:"]:focus,
a[href^="tel:"]:active {
    color: inherit !important;
    text-decoration: none !important;
}

/* Prevent auto-detection of phone numbers */
.contact-item p,
.footer-section p {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    font-family: 'League Spartan', sans-serif;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: #1a1a1a;
    font-weight: 700;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #4a4a4a;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background-color: #1a1a1a;
    color: #f8f6f3;
    border: 2px solid #1a1a1a;
}

.btn-primary:hover {
    background-color: #333;
    border-color: #333;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: #1a1a1a;
    border: 2px solid #1a1a1a;
}

.btn-secondary:hover {
    background-color: #1a1a1a;
    color: #f8f6f3;
}

/* Hero Button Overrides */
.hero .btn-primary {
    background-color: #ffffff;
    color: #1a1a1a;
    border: 2px solid #ffffff;
    font-weight: 600;
}

.hero .btn-primary:hover {
    background-color: #f8f6f3;
    border-color: #f8f6f3;
    transform: translateY(-2px);
}

.hero .btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
    font-weight: 600;
}

.hero .btn-secondary:hover {
    background-color: #ffffff;
    color: #1a1a1a;
}

/* Navigation */
.navbar {
    background-color: #f8f6f3;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

/* Logo Styling */
.logo-link {
    text-decoration: none;
    color: inherit;
}

.logo-link:hover {
    text-decoration: none;
    color: inherit;
}

.logo-text {
    color: #1a1a1a;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.5px;
    font-family: 'League Spartan', sans-serif;
}

.nav-logo h2 {
    color: #1a1a1a;
    font-size: 1.8rem;
    font-weight: 700;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #1a1a1a;
    font-weight: 500;
    transition: color 0.3s ease;
    font-family: 'League Spartan', sans-serif;
    font-size: 1.2rem;
}

.nav-link:hover {
    color: #666;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #1a1a1a;
    margin: 3px 0;
    transition: 0.3s;
}

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

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

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

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 0 20px;
}

/* 3D Rotating Logo Animation - Navigation */
.logo-container {
    perspective: 1000px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.rotating-logo-nav {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
    text-shadow: 
        0 0 5px rgba(26, 26, 26, 0.2),
        1px 1px 2px rgba(0, 0, 0, 0.1);
    transform-style: preserve-3d;
    animation: rotate3D 8s linear infinite;
    font-family: 'League Spartan', sans-serif;
    line-height: 1;
    will-change: transform;
    backface-visibility: visible;
    -webkit-backface-visibility: visible;
    transform-origin: center center;
    position: relative;
}

.rotating-logo-nav::before {
    content: "UPHLSTRY";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 
        0 0 5px rgba(26, 26, 26, 0.2),
        1px 1px 2px rgba(0, 0, 0, 0.1);
    transform: rotateY(180deg) scaleX(-1);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

@keyframes rotate3D {
    0% {
        transform: rotateY(0deg) rotateX(0deg);
    }
    25% {
        transform: rotateY(90deg) rotateX(5deg);
    }
    50% {
        transform: rotateY(180deg) rotateX(0deg);
    }
    75% {
        transform: rotateY(270deg) rotateX(-5deg);
    }
    100% {
        transform: rotateY(360deg) rotateX(0deg);
    }
}

.hero-title {
    font-size: 3rem;
    color: #ffffff;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.3rem;
    color: #f8f6f3;
    margin-bottom: 2.5rem;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Text Effect - Word by Word Animation (Fast, No Overlap) */
.text-effect-word {
    opacity: 0;
    perspective: 1000px;
    transform-style: preserve-3d;
}

.text-effect-word.visible {
    opacity: 1;
}

/* Fallback: If JavaScript doesn't run, show text after 3 seconds */
.text-effect-word:not(.visible) {
    animation: showTextFallback 0.5s ease 3s forwards;
}

@keyframes showTextFallback {
    to {
        opacity: 1;
    }
}

.text-effect-word-item {
    display: inline-block;
    opacity: 0;
    transform: rotateX(90deg) translateY(10px);
    transform-origin: center center;
    transition: opacity 0.2s ease, transform 0.2s ease;
    backface-visibility: hidden;
    margin-right: 0.25em;
    white-space: nowrap;
}

.text-effect-word-item.visible {
    opacity: 1;
    transform: rotateX(0deg) translateY(0);
}

/* Fallback: Show word items if container is visible but items aren't animated yet */
.text-effect-word.visible .text-effect-word-item:not(.visible) {
    animation: showWordItemFallback 0.3s ease 0.5s forwards;
}

@keyframes showWordItemFallback {
    to {
        opacity: 1;
        transform: rotateX(0deg) translateY(0);
    }
}

/* Text Effect - Button Animation (Whole Button) */
.text-effect-button {
    opacity: 0;
    transform: rotateX(90deg) translateY(10px);
    transform-origin: center center;
    transition: opacity 0.2s ease, transform 0.2s ease;
    backface-visibility: hidden;
    perspective: 1000px;
}

.text-effect-button.visible {
    opacity: 1;
    transform: rotateX(0deg) translateY(0);
}

/* Fallback: Show buttons if JavaScript doesn't run */
.text-effect-button:not(.visible) {
    animation: showButtonFallback 0.5s ease 3.5s forwards;
}

@keyframes showButtonFallback {
    to {
        opacity: 1;
        transform: rotateX(0deg) translateY(0);
    }
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}


/* About Section */
.about {
    padding: 80px 0;
    background-color: #ffffff;
}

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

.about-text h2 {
    text-align: center;
    margin-bottom: 1.5rem;
}

.about-description {
    font-size: 1.1rem;
    color: #4a4a4a;
    margin-bottom: 2rem;
    line-height: 1.7;
    text-align: center;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #1a1a1a;
    font-weight: 500;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* About Section Rotating Logo */
.rotating-logo-about {
    font-size: 3rem;
    font-weight: 700;
    color: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
    text-shadow: 
        0 0 5px rgba(26, 26, 26, 0.2),
        1px 1px 2px rgba(0, 0, 0, 0.1);
    transform-style: preserve-3d;
    animation: rotate3D 8s linear infinite;
    font-family: 'League Spartan', sans-serif;
    line-height: 1;
    will-change: transform;
    backface-visibility: visible;
    -webkit-backface-visibility: visible;
    transform-origin: center center;
    position: relative;
    text-align: center;
}

.rotating-logo-about::before {
    content: "UPHLSTRY";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    font-size: 3rem;
    font-weight: 700;
    color: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 
        0 0 5px rgba(26, 26, 26, 0.2),
        1px 1px 2px rgba(0, 0, 0, 0.1);
    transform: rotateY(180deg) scaleX(-1);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Services Section */
.services {
    padding: 80px 0;
    background-color: #f8f6f3;
}

.services-detailed {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.service-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.service-detail:nth-child(even) {
    direction: rtl;
}

.service-detail:nth-child(even) .service-info {
    direction: ltr;
}

.service-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.service-info h3 {
    font-size: 2rem;
    color: #1a1a1a;
    margin-bottom: 1rem;
    font-weight: 600;
}

.service-info p {
    color: #4a4a4a;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.service-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.service-features li {
    padding: 0.5rem 0;
    color: #4a4a4a;
    position: relative;
    padding-left: 1.5rem;
}

.service-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #1a1a1a;
    font-weight: bold;
}

.service-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
}

/* Proof of Work Section */
.proof-of-work {
    padding: 80px 0;
    background-color: #ffffff;
}

/* Make prices page use site beige background */
.prices-page {
    background-color: #f8f6f3;
}

/* Structured text price sheet */
.price-sheet-title {
    text-align: center;
    font-weight: 800;
    text-decoration: underline;
    margin-top: 1rem;
}

.price-sheet-note {
    text-align: center;
    font-size: 0.85rem;
    color: #1a1a1a;
    margin-top: -0.5rem;
}

/* Tabular layout so each item aligns with its price */
.prices-table {
    width: 100%;
    max-width: 900px;
    margin: 2rem auto 0 auto;
    border-collapse: collapse;
    background: #ffffff;
    border: 1px solid #eae7e2;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.prices-table thead th {
    text-align: left;
    background: #f3f0ea;
    color: #1a1a1a;
    padding: 12px 16px;
    font-weight: 700;
}

.prices-table tbody td {
    padding: 10px 16px;
    border-top: 1px solid #f0ece6;
    color: #4a4a4a;
}

.prices-table tbody tr.section td {
    background: #faf7f2;
    color: #1a1a1a;
    font-weight: 800;
    border-top: 1px solid #eae7e2;
}

.prices-table tbody tr:hover td {
    background: #fdfbf8;
}

.price-col h3.price-group {
    margin: 0.75rem 0 0.5rem 0;
    font-weight: 800;
}

.price-items,
.price-values {
    list-style: none;
}

.price-items li,
.price-values li {
    padding: 4px 0;
}

.price-values li.spacer {
    padding: 10px 0;
}

.price-items li.group-spacer {
    padding: 10px 0;
}

.price-col-right .price-group {
    text-align: left;
}

@media (max-width: 768px) {
    .prices-table {
        display: table;
        width: 100%;
        border-collapse: collapse;
        background: #ffffff;
        border: 1px solid #eae7e2;
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    }
    
    .prices-table thead {
        display: table-header-group;
    }
    
    .prices-table tbody {
        display: table-row-group;
    }
    
    .prices-table tr {
        display: table-row;
        width: 100%;
    }
    
    .prices-table td {
        display: table-cell;
        padding: 10px 16px;
        border-top: 1px solid #f0ece6;
        vertical-align: middle;
    }
    
    .prices-table tbody tr.section td {
        background: #faf7f2;
        color: #1a1a1a;
        font-weight: 800;
        border-top: 1px solid #eae7e2;
    }
    
    .prices-table tbody tr:hover td {
        background: #fdfbf8;
    }
    
    .prices-table tbody tr.section:hover td {
        background: #faf7f2;
    }
}

.before-after-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(600px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.before-after-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background-color: transparent;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
    transition: transform 0.3s ease;
}

.before-image,
.after-image {
    position: relative;
    overflow: hidden;
}

.before-image img,
.after-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.services-detailed {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.service-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.service-detail:nth-child(even) {
    direction: rtl;
}

.service-detail:nth-child(even) .service-info {
    direction: ltr;
}

.service-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.service-info h3 {
    font-size: 2rem;
    color: #1a1a1a;
    margin-bottom: 1rem;
    font-weight: 600;
}

.service-info p {
    color: #4a4a4a;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.service-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.service-features li {
    padding: 0.5rem 0;
    color: #4a4a4a;
    position: relative;
    padding-left: 1.5rem;
}

.service-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #1a1a1a;
    font-weight: bold;
}

.service-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
}

/* Testimonials Section */
.testimonials {
    padding: 80px 0;
    background-color: #ffffff;
}

.testimonials .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* FAQ Section */
.faq {
    padding: 80px 0;
    background-color: #f8f6f3;
}

/* FAQ Tabs */
.faq-tabs {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 3rem;
    border-bottom: 1px solid #e0e0e0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.faq-tab {
    background: none;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    font-family: 'League Spartan', sans-serif;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.faq-tab:hover {
    color: #1a1a1a;
}

.faq-tab.active {
    color: #1a1a1a;
    font-weight: 600;
}

.faq-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 3px;
    background-color: #1a1a1a;
}

.faq-content {
    max-width: 800px;
    margin: 0 auto;
    display: none;
}

.faq-content.active {
    display: block;
}

.faq-item {
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 0;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    cursor: pointer;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: #1a1a1a;
}

.faq-question h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 500;
}

.faq-question i {
    transition: transform 0.3s ease;
    color: #666;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-answer p {
    padding: 0 0 1.5rem 0;
    color: #666;
    line-height: 1.6;
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background-color: #ffffff;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: #3498db;
    margin-top: 0.25rem;
}

.contact-item h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: #666;
    margin: 0;
}

.contact-form {
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
}

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

/* File Upload Styles */
.file-upload-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 16px;
    background-color: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #495057;
    margin-bottom: 0.5rem;
}

.file-upload-label:hover {
    background-color: #e9ecef;
    border-color: #3498db;
    color: #3498db;
}

.file-upload-label i {
    font-size: 1.2rem;
}

.file-upload-input {
    display: none;
}

.file-upload-info {
    margin-bottom: 1rem;
}

.file-upload-info small {
    color: #6c757d;
    font-size: 0.875rem;
}

.file-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.file-preview-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    background: #fff;
}

.file-preview-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.file-preview-item .file-info {
    padding: 0.5rem;
    font-size: 0.8rem;
    color: #495057;
}

.file-preview-item .remove-file {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    background: rgba(220, 53, 69, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.file-preview-item .remove-file:hover {
    background: rgba(220, 53, 69, 1);
}

.file-upload-error {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Blog Section */
.blog {
    padding: 80px 0;
    background-color: #f8f6f3;
}

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

.blog-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-content {
    padding: 1.5rem;
}

.blog-content h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.blog-content p {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.read-more {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #2980b9;
}

/* Footer */
.footer {
    background-color: #1a1a1a;
    color: #f8f6f3;
    padding: 60px 0 20px;
}

/* Footer Logo Styling */
.footer-logo {
    margin-bottom: 1rem;
}

.footer-logo-text {
    color: #f8f6f3;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    letter-spacing: 0.5px;
    font-family: 'League Spartan', sans-serif;
}

/* Animated footer logo (white on dark background) */
/* Footer overrides to ensure header/about rotating logo is visible on dark footer */
.footer .rotating-logo-nav,
.footer .rotating-logo-nav::before {
    color: #f8f6f3;
    text-shadow:
        0 0 5px rgba(248, 246, 243, 0.2),
        1px 1px 2px rgba(0, 0, 0, 0.2);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: #f8f6f3;
}

.footer-section p {
    color: #b8b8b8;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #b8b8b8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #f8f6f3;
}

.social-links {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    margin-top: 1rem;
    align-items: center;
    justify-content: center;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    background-color: #333;
    color: #f8f6f3;
    border-radius: 50%;
    transition: background-color 0.3s ease;
    flex-shrink: 0;
    text-decoration: none;
}

.social-links a i {
    font-size: 18px;
    line-height: 1;
    display: block;
}

.social-links a:hover {
    background-color: #555;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #333;
    color: #b8b8b8;
}

/* Gallery Page Styles */
.gallery-hero {
    background-color: #f8f6f3;
    color: #1a1a1a;
    padding: 80px 0 20px;
    text-align: center;
}

.gallery-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.gallery-subtitle {
    font-size: 1.2rem;
    color: #4a4a4a;
    max-width: 600px;
    margin: 0 auto;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.gallery-section {
    padding: 10px 0;
    background-color: transparent;
}

.gallery-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 3rem;
    margin-bottom: 2rem;
}

.gallery-item {
    background: transparent;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    transition: none;
    width: 100%;
    margin: 0;
}

.gallery-item:hover {
    transform: none;
    box-shadow: none;
}

.gallery-item .before-after-pair {
    display: flex;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 15px;
    overflow: hidden;
}

.gallery-item .before-image,
.gallery-item .after-image {
    flex: 1;
    position: relative;
    overflow: hidden;
    background: transparent;
}

.gallery-item .before-image img,
.gallery-item .after-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
    display: block;
}

.gallery-item .before-image:hover img,
.gallery-item .after-image:hover img {
    transform: scale(1.05);
}

.image-label {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.gallery-cta {
    text-align: center;
    margin-top: 1rem;
}

.gallery-cta .btn {
    margin: 0 10px;
    display: inline-block;
}

/* Prices page specific styles */
.prices-page .before-after-gallery {
    display: flex;
    justify-content: center;
}

.prices-page .before-after-pair {
    display: block;
}

.prices-page .after-image img {
    width: 100%;
    max-width: 1000px;
    height: auto;
    display: block;
    margin: 0 auto;
    image-rendering: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid #eae7e2;
}

@media (max-width: 1100px) {
    .prices-page .after-image img {
        max-width: 100%;
    }
}

/* Make prices page content use full width */
/* Use default container width/padding for prices page to avoid over-scaling */
/* (Override removed) */

/* removed text-based price list styles on revert */

/* Gallery CTA in main page */
.proof-of-work .gallery-cta {
    text-align: center;
    margin-top: 3rem;
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.lightbox-content {
    position: relative;
    margin: auto;
    padding: 20px;
    width: 90%;
    max-width: 1200px;
    top: 50%;
    transform: translateY(-50%);
    cursor: default;
}

.lightbox-before-after {
    display: flex;
    gap: 20px;
    max-width: 100%;
    height: auto;
    max-height: 80vh;
}

.lightbox-before,
.lightbox-after {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
}

.lightbox-before img,
.lightbox-after img {
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 8px;
}


.lightbox-close {
    position: absolute;
    top: -10px;
    right: 10px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.lightbox-close:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* Make images clickable */
.gallery-item img {
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.gallery-item img:hover {
    opacity: 0.8;
}

/* Image Protection Styles */
img {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    pointer-events: auto;
}

/* Prevent image copying */
img::selection {
    background: transparent;
}

img::-moz-selection {
    background: transparent;
}

/* Gallery items maintain relative positioning for other features */
.gallery-item {
    position: relative;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: #fff;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
        z-index: 1001;
        position: relative;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-menu.active {
        left: 0;
        z-index: 1000;
    }

    .logo-text {
        font-size: 1.5rem;
    }

    .hero {
        height: 100vh;
        padding: 0;
    }

    .hero-content {
        padding: 0 15px;
    }

    .rotating-logo-nav {
        font-size: 1.5rem;
        letter-spacing: 0.3px;
    }

    .rotating-logo-nav::before {
        font-size: 1.5rem;
        letter-spacing: 0.3px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-buttons {
        justify-content: center;
        gap: 1rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    .rotating-logo-about {
        font-size: 2.5rem;
        letter-spacing: 0.3px;
    }

    .rotating-logo-about::before {
        font-size: 2.5rem;
        letter-spacing: 0.3px;
    }

    .service-detail {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .service-detail:nth-child(even) {
        direction: ltr;
    }

    .before-after-gallery {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .before-after-pair {
        display: flex;
        width: 100%;
        max-width: 800px;
        margin: 0 auto;
        border-radius: 15px;
        overflow: hidden;
    }

    .before-image,
    .after-image {
        flex: 1;
        position: relative;
        overflow: hidden;
        background: transparent;
    }

    .before-image img,
    .after-image img {
        width: 100%;
        height: 300px;
        object-fit: cover;
        object-position: center;
        transition: transform 0.3s ease;
        display: block;
    }

    .before-image:hover img,
    .after-image:hover img {
        transform: scale(1.05);
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }



    .blog-grid {
        grid-template-columns: 1fr;
    }

    /* FAQ responsive */
    .faq-tabs {
        flex-direction: column;
        gap: 0;
        border-bottom: none;
    }

    .faq-tab {
        padding: 1rem;
        border-bottom: 1px solid #e0e0e0;
        text-align: center;
    }

    .faq-tab.active::after {
        display: none;
    }

    .faq-tab.active {
        background-color: #f8f6f3;
    }
}

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

    .rotating-logo-nav {
        font-size: 1.3rem;
        letter-spacing: 0.2px;
    }

    .rotating-logo-nav::before {
        font-size: 1.3rem;
        letter-spacing: 0.2px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

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

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

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }

    .logo-text {
        font-size: 1.3rem;
    }

    .footer-logo-text {
        font-size: 1.3rem;
    }

    .rotating-logo-about {
        font-size: 2rem;
        letter-spacing: 0.2px;
    }

    .rotating-logo-about::before {
        font-size: 2rem;
        letter-spacing: 0.2px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Form validation styles */
.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #e74c3c;
}

.error-message {
    color: #e74c3c;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.success-message {
    color: #27ae60;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Gallery responsive styles */
@media (max-width: 768px) {
    .gallery-grid {
        gap: 1.5rem;
    }

    .gallery-item .before-after-pair {
        max-width: 100%;
        border-radius: 12px;
    }

    .gallery-item .before-image img,
    .gallery-item .after-image img {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .gallery-item .before-after-pair {
        border-radius: 10px;
    }

    .gallery-item .before-image img,
    .gallery-item .after-image img {
        height: 250px;
    }
}

@media (max-width: 768px) {
    .gallery-title {
        font-size: 2.5rem;
    }

    .gallery-cta .btn {
        display: block;
        margin: 10px auto;
        width: 200px;
    }
}

@media (max-width: 480px) {
    .gallery-item .before-after-pair {
        height: 300px;
    }

    .gallery-title {
        font-size: 2rem;
    }

    .image-label {
        font-size: 0.8rem;
        padding: 6px 12px;
    }

    /* Lightbox responsive */
    .lightbox-before-after {
        flex-direction: column;
        gap: 10px;
    }

    .lightbox-before img,
    .lightbox-after img {
        max-height: 40vh;
    }

}


