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

:root {
    --primary-color: #4B2C5E;
    --primary-light: #6B4C7E;
    --primary-dark: #3A1F4A;
    --secondary-color: #F8F9FA;
    --accent-color: #FFD700;
    --text-dark: #2C2C2C;
    --text-light: #6C757D;
    --white: #FFFFFF;
    --gray-light: #F8F9FA;
    --gray-medium: #E9ECEF;
    --shadow: 0 4px 6px rgba(75, 44, 94, 0.1);
    --shadow-hover: 0 8px 25px rgba(75, 44, 94, 0.15);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

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

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

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

/* Buttons */
.cta-button {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--white);
    border: none;
    padding: 15px 30px;
    border-radius: var(--border-radius);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
}

.cta-button:active {
    transform: translateY(0);
}

/* Mobile Sticky CTA */
.mobile-cta {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    z-index: 1000;
}

.mobile-cta .cta-button {
    width: 100%;
    justify-content: center;
    padding: 15px 20px;
    font-size: 1.1rem;
    border-radius: 50px;
}



/* Desktop Sticky CTA */
.desktop-cta {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.desktop-cta .cta-button {
    padding: 18px 30px;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 50px;
    background: linear-gradient(135deg, #4B2C5E, #6B4C7E);
    color: #fff;
    box-shadow: 0 6px 25px rgba(75, 44, 94, 0.4);
    transition: all 0.3s ease;
    border: 2px solid #fff;
    min-width: 180px;
    text-align: center;
}

.desktop-cta .cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(75, 44, 94, 0.5);
    background: linear-gradient(135deg, #3A1F4A, #4B2C5E);
}

.desktop-cta .cta-button i {
    margin-right: 8px;
    font-size: 1.1rem;
}

/* Pulse animation for desktop CTA */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.desktop-cta .cta-button {
    animation: pulse 3s ease-in-out infinite;
}

.desktop-cta .cta-button:hover {
    animation: none;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--white);
    overflow: hidden;
}

/* Hero Video Background */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
    pointer-events: none;
    min-width: 100vw;
    min-height: 50vh;
    background: #4B2C5E;
}
/* Stronger dark overlay for hero video */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(75, 44, 94, 0.82), rgba(44, 24, 60, 0.82));
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-features {
    list-style: none;
    margin: 2rem 0;
    text-align: left;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-features li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1rem;
}

.hero-features i {
    color: var(--accent-color);
    font-size: 1.2rem;
    min-width: 20px;
}

.hero-cta {
    margin-top: 2rem;
    font-size: 1.2rem;
    padding: 18px 40px;
}

/* iFrame System Section */


.iframe-system {
    padding: 60px 20px;
    background: #f8f9fa;
}

.iframe-system .container {
    max-width: 1200px;
    margin: 0 auto;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
}

.iframe-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    width: 100%;
}

/* Image Panel */
.iframe-image-panel {
    order: 1;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.iframe-image-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    background: white;
    padding: 8px;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.iframe-main-image {
    width: 100%;
    height: auto;
    display: none;
    border-radius: 12px;
    object-fit: cover;
    transition: opacity 0.5s ease-in-out;
}

.iframe-main-image.active {
    display: block;
}

/* Image Progress Indicator */
.image-progress {
    width: 100%;
    height: 3px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 2px;
    margin-top: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

.progress-line {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #4B2C5E, #D4AF37);
    border-radius: 2px;
    /* Transition will be controlled by JavaScript for smooth animation */
}

.image-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(75, 44, 94, 0.9);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.before-badge {
    background: rgba(220, 53, 69, 0.9);
}

.after-badge {
    background: rgba(40, 167, 69, 0.9);
}

/* Content Block */
.iframe-content-block {
    order: 2;
    background: #4B2C5E;
    color: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(75, 44, 94, 0.2);
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.iframe-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.iframe-overview {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.iframe-benefits {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.iframe-benefits .benefit-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: white;
}

.iframe-benefits .benefit-item i {
    color: #FFD700;
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* Desktop Layout */
@media (min-width: 768px) {
    .iframe-system {
        padding: 80px 20px;
    }
    
    .iframe-content {
        flex-direction: row;
        align-items: stretch;
        gap: 4rem;
    }
    
    .iframe-image-panel {
        order: 2;
        flex: 1;
        display: flex;
        align-items: center;
    }
    
    .iframe-image-wrapper {
        width: 100%;
        height: 100%;
        min-height: 500px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    
    .iframe-main-image {
        width: 100%;
        height: 100%;
        object-fit: contain;
        max-height: none;
    }
    
    .iframe-content-block {
        order: 1;
        flex: 1;
        margin: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    .iframe-title {
        font-size: 2.3rem;
    }
    
    .iframe-overview {
        font-size: 1.15rem;
    }
}

/* Mobile Optimizations */
@media (max-width: 767px) {
    /* Show the image panel on mobile */
    .iframe-system .iframe-image-panel {
        display: block;
        order: 1;
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .iframe-system .iframe-image-wrapper {
        border-radius: 12px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.1);
        padding: 0;
        border: none;
        background: transparent;
    }
    

    
    .iframe-system {
        padding: 20px 20px;
        background: #f8f9fa;
        position: relative;
    }
    
    .iframe-content {
        gap: 0;
        position: relative;
    }
    
    .iframe-content-block {
        order: 1;
        position: relative;
        width: 100%;
        z-index: 2;
        padding: 2rem;
        margin: 0;
        max-width: 100%;
        background: #4B2C5E;
        border-radius: 16px;
        box-shadow: 0 8px 32px rgba(75, 44, 94, 0.2);
    }
    
    .iframe-title {
        font-size: 1.8rem;
        margin-bottom: 1.2rem;
    }
    
    .iframe-overview {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .iframe-benefits .benefit-item {
        font-size: 0.95rem;
        gap: 0.8rem;
    }
    
    .iframe-benefits .benefit-item i {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .iframe-system {
        padding: 0;
    }
    
    .iframe-content {
        gap: 0;
    }
    
    .iframe-content-block {
        padding: 1.5rem;
        margin: 0;
        max-width: 100%;
    }
    
    .iframe-title {
        font-size: 1.6rem;
    }
}

/* Why Choose Section */
.why-choose {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

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

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

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

.why-choose-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 2.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.why-choose-benefits {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    color: white;
    text-align: left;
}

.benefit-item i {
    color: #FFD700;
    font-size: 1.3rem;
    flex-shrink: 0;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.benefit-item span {
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .why-choose {
        height: 500px;
    }
    
    .why-choose-title {
        font-size: 2.2rem;
        margin-bottom: 2rem;
    }
    
    .why-choose-benefits {
        gap: 0.8rem;
    }
    
    .benefit-item {
        font-size: 1rem;
        gap: 0.8rem;
    }
    
    .benefit-item i {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .why-choose {
        height: 450px;
    }
    
    .why-choose-title {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }
    
    .why-choose-benefits {
        gap: 0.6rem;
    }
    
    .benefit-item {
        font-size: 0.95rem;
        gap: 0.6rem;
    }
    
    .benefit-item i {
        font-size: 1.1rem;
    }
}

/* Gallery Section */
.gallery {
    padding: 80px 0;
    background: var(--white);
}

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

.gallery-item {
    aspect-ratio: 1;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.gallery-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 3rem;
    opacity: 0.8;
}

.gallery-placeholder p {
    margin-top: 1rem;
    font-size: 1rem;
    color: var(--white);
    opacity: 0.9;
}

.testimonial {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background: var(--gray-light);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
}

.testimonial blockquote {
    font-size: 1.3rem;
    font-style: italic;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.testimonial cite {
    color: var(--primary-color);
    font-weight: 600;
    font-style: normal;
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--white);
}

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

.contact-info .section-title {
    color: var(--white);
    text-align: left;
}

.contact-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.contact-highlights {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.highlight {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1rem;
}

.highlight i {
    color: var(--accent-color);
    font-size: 1.3rem;
    min-width: 25px;
}

/* Contact Form */
.contact-form {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-hover);
    color: var(--text-dark);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-medium);
    border-radius: var(--border-radius);
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(75, 44, 94, 0.1);
}

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

.form-submit {
    width: 100%;
    margin-top: 1rem;
    padding: 15px;
    font-size: 1.1rem;
}

.form-note {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-light);
    text-align: center;
    font-style: italic;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 60px 0 20px;
}

.trust-section {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.trust-stats h3 {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.trust-stats p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
}

.trust-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    flex-direction: row;
}

.logo-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
    min-width: 120px;
}

.logo-placeholder i {
    font-size: 2rem;
    color: var(--accent-color);
}

.logo-placeholder span {
    font-size: 0.9rem;
    color: var(--white);
    font-weight: 500;
}

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

.footer-section h4 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

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

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

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--accent-color);
}

.footer-section ul li i {
    margin-right: 8px;
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-cta {
        display: block;
    }
    
    .trust-logos {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .logo-placeholder {
        min-width: auto;
    }
    
    .desktop-cta {
        display: none;
    }
}
    
    .iframe-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .iframe-text .section-title {
        font-size: 2rem;
        margin-bottom: 2.5rem;
    }
    
    .iframe-description {
        font-size: 16px;
        line-height: 1.6;
        margin-bottom: 2rem;
    }
    

    
    .benefit-item {
        font-size: 16px;
        line-height: 1.6;
        justify-content: flex-start;
        text-align: left;
        margin-bottom: 1.2rem;
        align-items: flex-start;
    }
    
    .benefit-item:last-child {
        margin-bottom: 0;
    }
    
    .benefit-icon {
        margin-top: 2px;
        flex-shrink: 0;
    }
    
    .iframe-image {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: 0.5rem;
        margin-bottom: 0.5rem;
    }
    .iframe-image img {
        width: 100%;
        max-width: 100%;
        height: auto;
        border-radius: 14px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.08);
        margin: 0;
    }
    
    /* Mobile card styling for iFrame section */
    .iframe-system {
        padding: 60px 20px;
    }

/* Desktop CTA - Show on larger screens */
@media (min-width: 769px) {
    .desktop-cta {
        display: block;
    }
    
    .mobile-cta {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-cta {
        font-size: 1rem;
        padding: 15px 25px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .iframe-text .section-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
    
    .iframe-description {
        font-size: 15px;
        line-height: 1.6;
        margin-bottom: 1.8rem;
    }
    
    .iframe-benefits {
        margin-top: 2rem;
        padding: 1.2rem;
        border-radius: 10px;
    }
    
    .benefit-item {
        font-size: 15px;
        line-height: 1.6;
        text-align: left;
        justify-content: flex-start;
        margin-bottom: 1rem;
    }
    
    .iframe-image {
        width: 100%;
        margin-top: 0.5rem;
        margin-bottom: 0.3rem;
    }
    .iframe-image img {
        width: 100%;
        max-width: 100%;
        height: auto;
        border-radius: 12px;
        margin: 0;
    }
    
    .iframe-system {
        padding: 40px 15px;
    }
    
    .contact-form {
        padding: 1rem;
    }
    
    .mobile-cta {
        left: 10px;
        right: 10px;
        bottom: 10px;
    }
}

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

/* Focus styles for accessibility */
.cta-button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Photo Upload Styles */
.photo-upload-area {
    position: relative;
    border: 2px dashed var(--gray-medium);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: var(--gray-light);
    margin-bottom: 1rem;
}

.photo-upload-area:hover {
    border-color: var(--primary-color);
    background: rgba(75, 44, 94, 0.05);
}

.photo-upload-area.dragover {
    border-color: var(--primary-color);
    background: rgba(75, 44, 94, 0.1);
    transform: scale(1.02);
}

.upload-placeholder {
    color: var(--text-light);
}

.upload-placeholder i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: block;
}

.upload-placeholder p {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.upload-hint {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 500;
}

.file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

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

.photo-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    background: var(--white);
}

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

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

.photo-item .remove-photo:hover {
    background: #dc3545;
    transform: scale(1.1);
}

.upload-info {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.upload-info i {
    color: var(--primary-color);
}

/* Loading animation for form submission */
.form-submit.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.form-submit.loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid var(--white);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
} 

/* --- Why Choose Section Enhancements for Large Screens --- */
@media (min-width: 1100px) {
    .why-choose {
        height: 700px;
    }
    
    .why-choose-title {
        font-size: 3.5rem;
        margin-bottom: 3rem;
    }
    
    .why-choose-benefits {
        gap: 1.2rem;
    }
    
    .benefit-item {
        font-size: 1.2rem;
        gap: 1.2rem;
    }
    
    .benefit-item i {
        font-size: 1.4rem;
    }
}

@media (max-width: 1100px) {
    .why-choose {
        height: 550px;
    }
} 

/* Contact Section Layout Update for Large Screens */
@media (min-width: 900px) {
    .contact-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2.5rem;
    }
    .contact-info {
        max-width: 700px;
        margin: 0 auto 1.5rem auto;
        text-align: center;
    }
    .contact-form {
        width: 60%;
        min-width: 400px;
        max-width: 700px;
        margin: 0 auto;
    }
}
@media (max-width: 900px) {
    .contact-form {
        width: 100%;
        min-width: unset;
        max-width: unset;
    }
} 

/* 1. Soft Gradient Background for Contact Section */
.contact {
    padding: 80px 0;
    background: linear-gradient(135deg, #4B2C5E 0%, #5E3C78 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

/* Make SVG pattern background a bit more visible */
.contact::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml;utf8,<svg width="400" height="400" viewBox="0 0 400 400" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="200" cy="200" r="180" fill="%234B2C5E" fill-opacity="0.06"/><rect x="50" y="50" width="300" height="300" rx="40" fill="%235E3C78" fill-opacity="0.04"/></svg>');
    z-index: 0;
    pointer-events: none;
}

/* 2. White Card Behind the Form */
.contact-form {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.10);
    color: var(--text-dark);
    padding: 2.5rem 2.5rem 2rem 2.5rem;
    position: relative;
    z-index: 1;
    border: 1.5px solid #ede6f3;
}

/* Slightly increase font size for form inputs and labels */
.contact-form label {
    font-size: 1.08rem;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
    font-size: 1.08rem;
}

/* 3. CTA Banner Above the Form */
.cta-banner {
    background: #ede6f3;
    color: #4B2C5E;
    border-radius: 12px 12px 0 0;
    padding: 1rem 2rem;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: -1.5rem;
    position: relative;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(75,44,94,0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}
.cta-banner i {
    color: #5E3C78;
    font-size: 1.2rem;
}

/* Add a hover effect to the submit button */
.cta-button.form-submit {
    background: linear-gradient(135deg, #4B2C5E, #5E3C78);
    transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
}
.cta-button.form-submit:hover {
    background: linear-gradient(135deg, #5E3C78, #4B2C5E);
    box-shadow: 0 6px 24px rgba(75,44,94,0.18);
    transform: translateY(-2px) scale(1.03);
}

/* 4. Side-by-side layout for illustration and form on desktop */
@media (min-width: 1000px) {
    .contact-content {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        justify-content: center;
        gap: 3rem;
        min-height: 540px;
        align-items: center;
    }
    .contact-info {
        max-width: 420px;
        margin: 0;
        text-align: left;
        align-self: center;
    }
    .contact-form {
        width: 480px;
        min-width: 400px;
        max-width: 540px;
        margin: 0;
        align-self: center;
    }
    .contact-illustration {
        flex: 0 0 220px;
        max-width: 220px;
        margin-right: 2rem;
        align-self: center;
    }
}

/* 5. Increase heading contrast in contact section */
.contact .section-title {
    color: #fff;
    text-shadow: 0 2px 8px rgba(75,44,94,0.10);
    font-weight: 800;
    letter-spacing: -1px;
}

/* 6. Icon styles for form labels */
.form-label-icon {
    margin-right: 0.5em;
    color: #4B2C5E;
    font-size: 1em;
    vertical-align: middle;
}

/* Value props as bullet points */
.contact-highlights {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}
.contact-highlights .highlight {
    font-size: 1.05rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.7em;
    font-weight: 500;
}
.contact-highlights .highlight i {
    color: #4B2C5E;
    background: #fff;
    border-radius: 50%;
    font-size: 1.1em;
    padding: 0.2em;
    box-shadow: 0 1px 4px rgba(75,44,94,0.10);
} 

/* Hero Card for Readability - improved drop shadow and animation */
.hero-card {
    background: rgba(255,255,255,0.93);
    border-radius: 18px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    padding: 2.2rem 2.2rem 1.7rem 2.2rem;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 3;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    transition: box-shadow 0.2s;
    animation: fadeInUp 1s ease;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-title {
    color: #2C2340;
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
    letter-spacing: -1px;
    text-shadow: none;
}
.hero-subtitle {
    color: #444;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    opacity: 0.92;
}
.hero-card .hero-features {
    margin: 1.5rem 0 1.5rem 0;
    padding: 0;
    border-top: 1px solid #ede6f3;
    padding-top: 1.2rem;
    text-align: left;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}
.hero-card .hero-features li {
    color: #3A2C5E;
    font-size: 1.08rem;
    margin-bottom: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    opacity: 0.98;
}
.hero-card .hero-features li i {
    color: #FFD700;
    font-size: 1.1rem;
    min-width: 20px;
}
.hero-card .cta-button.hero-cta {
    margin-top: 1.2rem;
    font-size: 1.1rem;
    font-weight: 700;
    box-shadow: 0 2px 12px rgba(75,44,94,0.10);
    background: #4B2C5E;
    color: #fff;
    border-radius: 8px;
    padding: 14px 32px;
    border: none;
    transition: background-color 0.3s ease, box-shadow 0.2s, color 0.2s;
    width: auto;
    display: inline-block;
}
.hero-card .cta-button.hero-cta:hover {
    background-color: #3a1f4b;
    color: #fff;
    box-shadow: 0 6px 24px rgba(75,44,94,0.18);
}
@media (max-width: 900px) {
    .hero-card {
        background: rgba(255,255,255,0.70);
        border-radius: 14px;
        max-width: 96vw;
        padding: 0.7rem 0.3rem 0.7rem 0.3rem;
    }
    .hero-card .hero-features {
        max-width: 100%;
    }
}
@media (max-width: 600px) {
    .hero-card .cta-button.hero-cta {
        width: 100%;
        display: block;
        font-size: 1.08rem;
        padding: 15px 0;
        margin-top: 1.2rem;
    }
} 

/* Hero checklist tick styling */
.tick-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 1.08rem;
  color: #3A2C5E;
  font-weight: 600;
}
.tick-icon {
  background-color: #4B2C5E;
  color: #FFD700;
  width: 24px;
  height: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  font-weight: bold;
  font-size: 1.1rem;
  flex-shrink: 0;
  box-shadow: 0 1px 4px rgba(75,44,94,0.10);
} 

/* Contact Section Gradient and Pattern */
.contact {
    padding: 80px 0;
    background: linear-gradient(135deg, #3a1c4b 0%, #4B2C5E 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.contact::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml;utf8,<svg width="400" height="400" viewBox="0 0 400 400" fill="none" xmlns="http://www.w3.org/2000/svg"><g opacity="0.07"><ellipse cx="200" cy="200" rx="180" ry="120" fill="%23fff"/><rect x="60" y="60" width="280" height="280" rx="60" fill="%234B2C5E"/></g></svg>');
    z-index: 0;
    pointer-events: none;
}

/* Section Inner Layout */
.contact-section-inner {
    max-width: none;
    width: 100vw;
    margin: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 2rem;
    position: relative;
    z-index: 1;
    padding: 3rem 0;
}

/* Left Column Content */
.contact-info {
    flex: 1 1 350px;
    max-width: 420px;
    margin: 0;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
}
.contact-info .contact-icon {
    width: 48px;
    height: 48px;
    background: #fff;
    color: #4B2C5E;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    box-shadow: 0 2px 8px rgba(75,44,94,0.10);
}
.contact-info .section-title {
    color: #fff;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin-bottom: 0.1rem;
    line-height: 1.15;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    word-break: break-word;
}
.contact-info .contact-subtitle {
    color: #e0d6ee;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}
.contact-badges {
    display: flex;
    gap: 0.7rem;
    margin-top: 0.5rem;
}
.contact-badge {
    background: #f3eaff;
    color: #4B2C5E;
    border-radius: 30px;
    padding: 7px 16px;
    font-size: 0.98rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5em;
    box-shadow: 0 1px 4px rgba(75,44,94,0.06);
}
.contact-badge i {
    color: #4B2C5E;
    font-size: 1.1em;
}

/* Form Card */
.contact-form {
    width: 100%;
    min-width: 0;
    max-width: none;
    flex: 1 1 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.15);
    color: #2C2340;
    padding: 2.5rem 4vw 2.5rem 4vw;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}
.contact-form .form-group {
    margin-bottom: 1.2rem;
}
.contact-form label {
    font-size: 1.08rem;
    color: #3A1F4A;
    font-weight: 600;
    margin-bottom: 0.3rem;
    display: block;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid #e0d6ee;
    border-radius: 7px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    background: #faf8fc;
    margin-top: 0.2rem;
    transition: box-shadow 0.2s, border-color 0.2s;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #4B2C5E;
    box-shadow: 0 0 0 2px #4B2C5E33;
    background: #fff;
}

/* Pill Banner */
.cta-banner {
    background-color: #f3eaff;
    color: #4B2C5E;
    border-radius: 30px;
    padding: 6px 12px;
    font-size: 0.95rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1.2rem;
    text-align: center;
    box-shadow: 0 1px 4px rgba(75,44,94,0.06);
}

/* Photo Upload Box */
.photo-upload-area {
    border: 2px dashed #bfa6d9;
    background: #f8f6fb;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    margin-bottom: 1rem;
    position: relative;
}
.photo-upload-area .help-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ede6f3;
    color: #4B2C5E;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
}
.photo-upload-area .help-tooltip {
    display: none;
    position: absolute;
    top: 36px;
    right: 0;
    background: #fff;
    color: #4B2C5E;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(75,44,94,0.10);
    padding: 0.7em 1em;
    font-size: 0.95rem;
    z-index: 10;
    width: 220px;
    text-align: left;
}
.photo-upload-area .help-icon:hover + .help-tooltip {
    display: block;
}

/* Sticky submit button for mobile */
@media (max-width: 700px) {
    .contact-section-inner {
        flex-direction: column;
        gap: 2rem;
        padding: 1.5rem 0.5rem;
    }
    .contact-info {
        align-items: center;
        text-align: center;
        gap: 1.1rem;
    }
    .contact-info .section-title {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
    .contact-form {
        min-width: unset;
        max-width: 98vw;
        padding: 1.2rem 0.5rem 1.2rem 0.5rem;
    }
    .cta-banner {
        font-size: 0.92rem;
        padding: 7px 8px;
    }
}
@media (max-width: 500px) {
    .contact-form .cta-button.form-submit {
        position: sticky;
        bottom: 0;
        left: 0;
        width: 100%;
        z-index: 10;
        margin-top: 1.2rem;
        font-size: 1.08rem;
        padding: 15px 0;
    }
} 

@media (min-width: 1025px) {
  .contact-section-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    justify-content: center;
  }
  .contact-info {
    flex: 1 1 40%;
    max-width: 420px;
    min-width: 320px;
  }
  .contact-form {
    flex: 1 1 60%;
    min-width: 500px;
    width: 50%;
    max-width: 600px;
    padding: 2rem 2.5rem 2rem 2.5rem;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    border-radius: 12px;
  }
}
@media (max-width: 1024px) {
  .contact-section-inner {
    flex-direction: column;
    gap: 2rem;
    padding: 1.5rem 0.5rem;
    max-width: 98vw;
    width: 100vw;
  }
  .contact-form {
    min-width: unset;
    max-width: 98vw;
    width: 100%;
    padding: 1.2rem 0.5rem 1.2rem 0.5rem;
  }
  .contact-info {
    max-width: 100%;
    width: 100%;
    min-width: unset;
    align-items: center;
    text-align: center;
    gap: 1.1rem;
  }
} 

@media (min-width: 1200px) {
  .contact-form {
    min-width: 520px;
    width: 58%;
    max-width: 700px;
    padding: 2.2rem 2.7rem 2.2rem 2.7rem;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    border-radius: 12px;
  }
}

.contact-badges {
  display: flex;
  justify-content: space-between;
  gap: 1.2rem;
  margin-top: 1.2rem;
  width: 100%;
}
.contact-badge {
  background: #f3eaff;
  color: #4B2C5E;
  border-radius: 30px;
  padding: 12px 28px;
  font-size: 1.08rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.7em;
  box-shadow: 0 1px 4px rgba(75,44,94,0.06);
  min-width: 140px;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}
.contact-badge i {
  color: #4B2C5E;
  font-size: 1.2em;
} 

/* Carousel Styles for Our Work Section */
.carousel {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto 2.5rem auto;
  user-select: none;
  font-family: 'Montserrat', sans-serif;
}
.carousel-track {
  display: flex;
  transition: transform 0.6s ease;
  will-change: transform;
  gap: 0;
  width: 100%;
}
.carousel-slide {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 18px rgba(75,44,94,0.10);
  overflow: hidden;
  min-width: 0;
  flex: 0 0 30%;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: box-shadow 0.2s;
}
.carousel-slide img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}
.carousel-caption {
  padding: 1rem 1.2rem 1.2rem 1.2rem;
  color: #4B2C5E;
  font-size: 1.08rem;
  font-weight: 600;
  text-align: center;
  background: #fff;
  width: 100%;
}
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  color: #4B2C5E;
  border: none;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  font-size: 1.7rem;
  box-shadow: 0 2px 8px rgba(75,44,94,0.10);
  cursor: pointer;
  z-index: 2;
  transition: background 0.2s, color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.carousel-arrow.prev { left: -20px; }
.carousel-arrow.next { right: -20px; }
.carousel-arrow:hover {
  background: #4B2C5E;
  color: #fff;
}
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.2rem;
}
.carousel-dots button {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: none;
  background: #bfa6d9;
  cursor: pointer;
  transition: background 0.2s;
  margin: 0 2px;
}
.carousel-dots button.active {
  background: #4B2C5E;
}

/* Responsive: 3 slides desktop, 2 tablet, 1 mobile */
@media (max-width: 1100px) {
  .carousel-slide { flex: 0 0 45%; }
}
@media (max-width: 700px) {
  .carousel-slide { flex: 0 0 90%; }
  .carousel-track { gap: 1rem; }
} 

/* Full-width Video Section */
.video-section {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  overflow: hidden;
  background: #4B2C5E;
  min-height: 0;
}
.fullwidth-video {
  width: 100vw;
  height: 480px;
  max-height: 500px;
  object-fit: cover;
  display: block;
  background: #4B2C5E;
  position: relative;
  z-index: 1;
}
.video-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%;
  height: 100%;
  background: rgba(75, 44, 94, 0.4);
  z-index: 2;
  pointer-events: none;
}
@media (max-width: 900px) {
  .fullwidth-video {
    height: 320px;
    max-height: 350px;
  }
}
@media (max-width: 600px) {
  .fullwidth-video {
    height: 220px;
    max-height: 300px;
  }
} 

/* Contact form full-width and two-column layout for desktop */
@media (min-width: 768px) {
  .contact-section-inner {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    padding: 3rem 0;
    width: 100vw;
    max-width: none;
  }
  .contact-info {
    align-items: center;
    text-align: center;
    width: 100%;
    margin-bottom: 1.5rem;
  }
  .contact-form {
    width: 100vw;
    max-width: 100vw;
    min-width: 0;
    border-radius: 12px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.15);
    color: #2C2340;
    padding: 2.5rem 6vw 2.5rem 6vw;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 2rem;
    align-items: start;
  }
  .contact-form .cta-banner,
  .contact-form .form-note {
    grid-column: 1 / -1;
  }
  .contact-form .form-group {
    margin-bottom: 0;
  }
  /* Make message, photo upload, and submit button span both columns */
  .contact-form .form-group:nth-child(6), /* message */
  .contact-form .form-group:nth-child(7), /* photo upload */
  .contact-form .cta-button.form-submit,
  .contact-form .form-note {
    grid-column: 1 / -1;
  }
}
@media (max-width: 767px) {
  .contact-section-inner {
    flex-direction: column;
    gap: 2rem;
    padding: 1.5rem 0.5rem;
    max-width: 98vw;
    width: 100vw;
  }
  .contact-form {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 98vw;
    padding: 1.2rem 0.5rem 1.2rem 0.5rem;
    gap: 1.2rem;
  }
  .contact-info {
    max-width: 100%;
    width: 100%;
    min-width: unset;
    align-items: center;
    text-align: center;
    gap: 1.1rem;
  }
} 

@media (min-width: 1024px) {
  .contact-section-inner {
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
  }
  .contact-form {
    width: 100%;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.15);
    color: #2C2340;
    padding: 2.5rem 3rem 2.5rem 3rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 2rem;
    align-items: start;
  }
  .contact-form .cta-banner,
  .contact-form .form-note {
    grid-column: 1 / -1;
  }
  .contact-form .form-group {
    margin-bottom: 0;
  }
  /* Name/Postcode and Email/Phone side by side */
  .contact-form .form-group:nth-child(1), /* Name */
  .contact-form .form-group:nth-child(2), /* Postcode */
  .contact-form .form-group:nth-child(3), /* Email */
  .contact-form .form-group:nth-child(4)  /* Phone */ {
    width: 100%;
  }
  .contact-form .form-group:nth-child(1) { grid-column: 1; }
  .contact-form .form-group:nth-child(2) { grid-column: 2; }
  .contact-form .form-group:nth-child(3) { grid-column: 1; }
  .contact-form .form-group:nth-child(4) { grid-column: 2; }
  /* Project type full width */
  .contact-form .form-group:nth-child(5) { grid-column: 1 / -1; }
  /* Message, photo upload, submit, note full width */
  .contact-form .form-group:nth-child(6),
  .contact-form .form-group:nth-child(7),
  .contact-form .cta-button.form-submit,
  .contact-form .form-note {
    grid-column: 1 / -1;
  }
}
@media (max-width: 1023px) {
  .contact-section-inner {
    max-width: 98vw;
    width: 100vw;
    margin: 0 auto;
    padding: 1.5rem 1rem;
    flex-direction: column;
    gap: 2rem;
  }
  .contact-form {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 98vw;
    padding: 1.2rem 1rem 1.2rem 1rem;
    gap: 1.2rem;
  }
  .contact-info {
    max-width: 100%;
    width: 100%;
    min-width: unset;
    align-items: center;
    text-align: center;
    gap: 1.1rem;
  }
  .contact-form .form-group {
    width: 100%;
    margin-bottom: 0;
  }
} 

/* Polish contact-info area above the form */
.contact-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  margin-bottom: 0.5rem;
  gap: 0.7rem;
}
.contact-info .contact-icon {
  margin-bottom: 0.2rem;
  margin-top: 0.2rem;
}
.contact-info .section-title {
  color: #fff;
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-bottom: 0.1rem;
  line-height: 1.15;
}
.contact-info .contact-subtitle {
  color: #e0d6ee;
  font-size: 1.08rem;
  margin-bottom: 0.2rem;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}
.contact-badges {
  display: flex;
  justify-content: center;
  gap: 1.1rem;
  margin-top: 0.2rem;
  margin-bottom: 0.2rem;
  flex-wrap: wrap;
}
.contact-badge {
  background: #f3eaff;
  color: #4B2C5E;
  border-radius: 30px;
  padding: 10px 22px;
  font-size: 1.01rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.7em;
  box-shadow: 0 1px 4px rgba(75,44,94,0.06);
  min-width: 120px;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}
.cta-banner {
  margin-top: 0.3rem;
}
.contact-section-inner {
  padding-top: 1.5rem;
} 

/* Project Showcase Section Styles */
.showcase-section {
  background: #f3eaff; /* subtle purple tint */
  padding: 64px 0 64px 0;
  width: 100vw;
  margin-left: -50vw;
  left: 50%;
  position: relative;
}

html, body {
  overflow-x: hidden;
}

@media (max-width: 900px) {
  .showcase-section {
    width: 100vw !important;
    margin-left: -50vw !important;
    left: 50% !important;
    padding: 36px 0 36px 0;
  }
  .showcase-container {
    max-width: 100vw;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    box-sizing: border-box;
    margin: 0 auto;
  }
  .showcase-carousel {
    width: 100% !important;
    max-width: 100%;
    /* Remove overflow-x: hidden so track can scroll */
    overflow: visible !important;
  }
  .showcase-track {
    display: flex;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    width: 100% !important;
    max-width: 100vw;
    gap: 1.2rem;
    /* Remove overflow-x: hidden */
  }
  .showcase-slide {
    flex: 0 0 90%;
    max-width: 95vw;
    min-width: 0;
    box-sizing: border-box;
    scroll-snap-align: center;
  }
}
.showcase-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.showcase-title {
  text-align: center;
  color: #3A1F4A;
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 2.5rem;
  letter-spacing: 0.5px;
}
.showcase-carousel {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  user-select: none;
}
.showcase-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(.77,0,.18,1);
  gap: 2.5rem;
  will-change: transform;
}
.showcase-slide {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 18px rgba(75,44,94,0.10);
  overflow: hidden;
  min-width: 0;
  flex: 0 0 80%;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: box-shadow 0.2s;
  padding: 2rem 1.5rem 1.5rem 1.5rem;
  max-width: 600px;
  margin: 0 auto;
}
.before-after {
  display: flex;
  width: 100%;
  gap: 1.5rem;
  justify-content: center;
}
.before, .after {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.before img, .after img {
  width: 100%;
  max-width: 260px;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(75,44,94,0.08);
  background: #e9e6f0;
}
.caption {
  color: #4B2C5E;
  font-size: 1rem;
  font-weight: 600;
  margin-top: 0.3rem;
  text-align: center;
}
.showcase-meta {
  margin-top: 1.2rem;
  color: #6C757D;
  font-size: 1.05rem;
  text-align: center;
  font-style: italic;
}
.showcase-meta .location {
  color: #4B2C5E;
  font-weight: 700;
  font-style: normal;
  font-size: 0.98rem;
}
.showcase-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  color: #4B2C5E;
  border: none;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  font-size: 1.7rem;
  box-shadow: 0 2px 8px rgba(75,44,94,0.10);
  cursor: pointer;
  z-index: 2;
  transition: background 0.2s, color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.showcase-arrow.prev { left: -20px; }
.showcase-arrow.next { right: -20px; }
.showcase-arrow:hover {
  background: #4B2C5E;
  color: #fff;
}
.showcase-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.2rem;
}
.showcase-dots button {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: none;
  background: #bfa6d9;
  cursor: pointer;
  transition: background 0.2s;
  margin: 0 2px;
}
.showcase-dots button.active {
  background: #4B2C5E;
}
@media (max-width: 900px) {
  .showcase-slide {
    flex: 0 0 95%;
    max-width: 98vw;
    padding: 1.2rem 0.5rem 1.2rem 0.5rem;
  }
  .before-after {
    gap: 0.7rem;
  }
  .showcase-arrow { display: none; }
}
@media (max-width: 700px) {
  .showcase-section { padding: 36px 0 36px 0; }
  .showcase-title { font-size: 1.3rem; }
  .showcase-slide { padding: 0.7rem 0.2rem 1rem 0.2rem; }
  .before-after {
    flex-direction: column;
    gap: 0.5rem;
  }
  .before img, .after img {
    max-width: 98vw;
    height: 140px;
  }
} 

/* Transformation Section Responsive Styles */
.transformation-row {
  display: flex;
  flex-direction: row;
  gap: 1.2rem;
  justify-content: center;
  align-items: flex-start;
  margin-bottom: 1.2rem;
}
.transformation-column {
  width: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 0.5rem;
}
.transformation-column img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  max-width: 260px;
  box-shadow: 0 2px 8px rgba(75,44,94,0.08);
  background: #e9e6f0;
  margin-bottom: 0.5rem;
}
.transformation-section {
  padding: 2rem 1rem;
}
@media (max-width: 768px) {
  .transformation-row {
    flex-direction: column;
    gap: 0.7rem;
    align-items: stretch;
  }
  .transformation-column {
    width: 100%;
    padding: 0;
    margin-bottom: 0.7rem;
  }
  .transformation-column img {
    max-width: 98vw;
    margin-left: auto;
    margin-right: auto;
  }
  .caption {
    text-align: center;
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }
} 

/* --- Transformations Section (New) --- */
.transformations-section {
  background: #f3eaff;
  padding: 64px 0 64px 0;
}
.transformations-section .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.transformations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 2.5rem;
}
@media (max-width: 1100px) {
  .transformations-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 700px) {
  .transformations-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
}
.transformation-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 18px rgba(75,44,94,0.10);
  padding: 2rem 1.5rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: box-shadow 0.2s;
}
.transformation-card:hover {
  box-shadow: 0 8px 32px rgba(75,44,94,0.18);
  transform: translateY(-8px) scale(1.03);
  z-index: 2;
}
.transformation-images {
  display: flex;
  gap: 1.2rem;
  width: 100%;
  justify-content: center;
  margin-bottom: 1.2rem;
}
@media (max-width: 700px) {
  .transformation-images {
    flex-direction: column;
    gap: 0.7rem;
    align-items: center;
  }
  .transformation-image img {
    max-width: 98vw;
    width: 98vw;
    margin: 0;
  }
  .transformation-card {
    padding: 0.5rem 0 1rem 0;
  }
}
.transformation-image {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
.transformation-image img {
  width: 100%;
  max-width: 220px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(75,44,94,0.08);
  background: #e9e6f0;
}
.transformation-label {
  color: #4B2C5E;
  font-size: 1rem;
  font-weight: 600;
  margin-top: 0.3rem;
  text-align: center;
}
.transformation-caption {
  margin-top: 1.2rem;
  color: #6C757D;
  font-size: 1.05rem;
  text-align: center;
  font-style: italic;
}
.transformation-caption .location {
  color: #4B2C5E;
  font-weight: 700;
  font-style: normal;
  font-size: 0.98rem;
} 

@media (min-width: 1100px) {
  .transformation-image img {
    max-width: 420px;
    height: auto;
    margin-bottom: 0.9rem;
  }
  .transformation-card {
    padding-top: 3rem;
    padding-bottom: 2.7rem;
  }
} 

/* Removed old mobile carousel styles - replaced with responsive grid */ 

/* What We Can Build Section */
.what-we-build-section {
  background: linear-gradient(135deg, #f3eaff 0%, #e8f4ff 100%);
  padding: 80px 20px;
  text-align: center;
  position: relative;
}

.what-we-build-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="%23ffffff" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="%23ffffff" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  pointer-events: none;
}

.what-we-build-section .section-title {
  font-size: 2.3rem;
  color: #4B2C5E;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.what-we-build-section .section-subtitle {
  font-size: 1.1rem;
  color: #6c757d;
  margin-bottom: 3rem;
  font-weight: 400;
  font-style: italic;
}

.build-tabs {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 3rem;
  border-bottom: 2px solid #e9e6f0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.build-tabs::-webkit-scrollbar {
  display: none;
}

.build-tab {
  background: none;
  border: none;
  padding: 1rem 1.5rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: #6C757D;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  position: relative;
  min-width: 120px;
}

.build-tab:hover {
  color: #4B2C5E;
  background: rgba(75, 44, 94, 0.05);
}

.build-tab.active {
  color: #4B2C5E;
  font-weight: 600;
}

.build-tab.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(135deg, #FFD700, #FFA500);
  border-radius: 2px 2px 0 0;
}

.build-panels {
  max-width: 1000px;
  margin: 0 auto;
}

.build-panel {
  display: none;
  animation: fadeInUp 0.5s ease-out;
}

.build-panel.active {
  display: block;
}

.panel-content {
  background: white;
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(75, 44, 94, 0.15);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(75, 44, 94, 0.08);
  transition: all 0.3s ease;
}

.panel-content:hover {
  box-shadow: 0 16px 50px rgba(75, 44, 94, 0.2);
  transform: translateY(-2px);
}

/* Main Image Container */
.main-image-container {
  width: 100%;
  margin-bottom: 1rem;
}

.main-image {
  width: 100%;
  height: 300px;
  overflow: hidden;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  margin-bottom: 1rem;
  position: relative;
}

.main-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(75, 44, 94, 0.1), transparent);
  z-index: 1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.panel-content:hover .main-image::before {
  opacity: 1;
}

.main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

/* Thumbnail Gallery */
.thumbnail-gallery {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.thumbnail {
  width: 80px;
  height: 60px;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  opacity: 0.7;
  position: relative;
}

.thumbnail::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(75, 44, 94, 0.2), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.thumbnail:hover::before {
  opacity: 1;
}

.thumbnail:hover {
  opacity: 1;
  transform: scale(1.05);
}

.thumbnail.active {
  border-color: #D4AF37;
  opacity: 1;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
  transform: scale(1.05);
}

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

/* Legacy panel-image for other panels */
.panel-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
}

.panel-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.panel-content:hover .panel-image img {
  transform: scale(1.05);
}

.panel-text {
  padding: 2rem;
  text-align: left;
}

.panel-text h3 {
  color: #4B2C5E;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  font-family: 'Montserrat', sans-serif;
}

.panel-text p {
  color: #6C757D;
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-family: 'Montserrat', sans-serif;
}

.panel-text .cta-button {
  margin-top: 0.5rem;
}

/* Desktop Layout */
@media (min-width: 768px) {
  .what-we-build-section {
    padding: 100px 40px;
  }
  
  .what-we-build-section .section-title {
    font-size: 2.8rem;
    margin-bottom: 1rem;
  }
  
  .what-we-build-section .section-subtitle {
    font-size: 1.2rem;
    margin-bottom: 4rem;
  }
  
  .build-tabs {
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 4rem;
  }
  
  .build-tab {
    min-width: 140px;
    padding: 1.2rem 1.8rem;
    font-size: 1.1rem;
    border-radius: 8px;
  }
  
  .build-tab:hover {
    background: rgba(75, 44, 94, 0.08);
    transform: translateY(-1px);
  }
  
  .panel-content {
    flex-direction: row;
    align-items: stretch;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .main-image-container {
    width: 55%;
    margin-bottom: 0;
    min-width: 0;
    overflow: visible;
    display: flex;
    flex-direction: column;
  }
  
  .main-image {
    height: 400px;
    margin-bottom: 1.5rem;
  }
  
  .thumbnail-gallery {
    justify-content: center;
    gap: 0.4rem;
    flex-wrap: wrap;
    max-width: 100%;
    min-height: 80px;
    padding: 0.5rem 0;
    overflow: visible;
  }
  
  .thumbnail {
    width: 80px;
    height: 60px;
    flex-shrink: 0;
    margin-bottom: 0.5rem;
  }
  
  .panel-text {
    width: 45%;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  
  .panel-text h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
  }
  
  .panel-text p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
  }
  
  .panel-text .cta-button {
    align-self: flex-start;
    padding: 1rem 2rem;
    font-size: 1.1rem;
  }
  

}

/* Mobile Optimizations */
@media (max-width: 767px) {
  .what-we-build-section {
    padding: 60px 15px;
  }
  
  .what-we-build-section .section-title {
    font-size: 1.8rem;
    margin-bottom: 2rem;
  }
  
  .build-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 0.4rem;
    margin-bottom: 2rem;
    padding: 0 0.3rem;
  }
  
  .build-tab {
    padding: 0.8rem 0.2rem;
    font-size: 0.75rem;
    text-align: center;
    min-height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.1;
    word-wrap: break-word;
    white-space: normal;
    box-sizing: border-box;
    overflow: hidden;
  }
  
  .panel-text {
    padding: 1.5rem;
  }
  
  .panel-text h3 {
    font-size: 1.3rem;
  }
  
  .panel-text p {
    font-size: 1rem;
  }
  
  .panel-image {
    height: 200px;
  }
  
  .thumbnail-gallery {
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
  }
  
  .thumbnail {
    width: 70px;
    height: 55px;
  }
}

@media (max-width: 480px) {
  .what-we-build-section .section-title {
    font-size: 1.5rem;
  }
  
  .build-tabs {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr 1fr;
    gap: 0.5rem;
  }
  
  .build-tab {
    padding: 0.8rem 0.5rem;
    font-size: 0.8rem;
    min-height: 50px;
    line-height: 1.2;
    word-wrap: break-word;
    white-space: normal;
    box-sizing: border-box;
    overflow: hidden;
  }
  
  .thumbnail-gallery {
    justify-content: center;
    gap: 0.4rem;
    flex-wrap: wrap;
  }
  
  .thumbnail {
    width: 60px;
    height: 45px;
  }
}

@media (max-width: 360px) {
  .build-tabs {
    gap: 0.4rem;
    padding: 0 0.3rem;
  }
  
  .build-tab {
    padding: 0.7rem 0.4rem;
    font-size: 0.75rem;
    min-height: 45px;
  }
  
  .thumbnail-gallery {
    justify-content: center;
    gap: 0.3rem;
    flex-wrap: wrap;
  }
  
  .thumbnail {
    width: 55px;
    height: 40px;
  }
}

/* Removed old carousel styles - replaced with responsive grid layout */

/* Our Projects Section */
.our-projects-section {
    padding: 60px 0;
    background: var(--gray-light);
    position: relative;
    /* Ensure horizontal scrolling works despite body overflow-x: hidden */
    overflow-x: visible;
}

/* Override body overflow-x: hidden for this section */
.our-projects-section .projects-scroll-container {
    overflow-x: auto;
    overflow-y: visible;
}

/* Ensure the scroll track has enough width to enable scrolling */
.projects-scroll-track {
    min-width: max-content;
    width: 100%;
}

.our-projects-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(75, 44, 94, 0.02), rgba(75, 44, 94, 0.05));
    pointer-events: none;
}

.our-projects-section .section-title {
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-color);
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.projects-scroll-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    /* Prevent any horizontal overflow */
    overflow-x: hidden;
    /* Ensure proper width calculation */
    width: 100%;
    box-sizing: border-box;
    /* Additional mobile constraints */
    max-width: 100vw;
    padding-left: 20px;
    padding-right: 20px;
}

.projects-scroll-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    padding: 10px 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    /* Use a fixed width that will be set by JavaScript */
    width: 100%;
    /* iOS Safari specific fixes */
    -webkit-scroll-snap-type: x mandatory;
    /* Prevent elastic scrolling on iOS */
    overscroll-behavior-x: none;
    /* Ensure no extra padding or margins cause overflow */
    box-sizing: border-box;
    /* Additional mobile fixes */
    -webkit-overflow-scrolling: auto;
    scroll-snap-type: x proximity;
    /* iOS specific: prevent over-scrolling */
    -webkit-overflow-scrolling: touch;
    /* Ensure proper content width calculation */
    min-width: max-content;
    /* Remove any extra padding that could affect scroll bar */
    padding-right: 0;
    margin-right: 0;
}

.projects-scroll-track::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.project-card {
    flex: 0 0 280px;
    flex-shrink: 0;
    scroll-snap-align: start;
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

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

/* Desktop Styles */
@media (min-width: 769px) {
    .projects-scroll-container {
        max-width: 1000px;
        padding: 0 40px;
    }
    
    .projects-scroll-track {
        gap: 25px;
        padding: 15px 0;
    }
    
    .project-card {
        flex: 0 0 350px;
        flex-shrink: 0;
    }
    
    .project-card img {
        height: 240px;
    }
    

}

/* Responsive Design */
@media (max-width: 768px) {
    .our-projects-section {
        padding: 40px 0;
    }
    
    .our-projects-section .section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    
    .projects-scroll-container {
        max-width: 100%;
        margin: 0 20px;
    }
    
    .projects-scroll-track {
        gap: 15px;
        /* Mobile-specific: calculate exact content width */
        width: fit-content;
        max-width: calc(100vw - 40px);
        /* Prevent scrolling past content */
        scroll-snap-type: x proximity;
        /* Prevent elastic scrolling on mobile */
        overscroll-behavior-x: none;
        /* iOS specific: prevent over-scrolling */
        -webkit-overflow-scrolling: touch;
        /* Ensure proper content width */
        min-width: max-content;
        /* Remove any extra padding */
        padding-right: 0;
        margin-right: 0;
    }
    
    .project-card {
        flex: 0 0 250px;
    }
    
    .project-card img {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .our-projects-section {
        padding: 30px 0;
    }
    
    .our-projects-section .section-title {
        font-size: 1.5rem;
        margin-bottom: 25px;
    }
    
    .projects-scroll-container {
        margin: 0 15px;
    }
    
    .projects-scroll-track {
        gap: 12px;
        /* iPhone-specific: calculate exact content width */
        width: fit-content;
        max-width: calc(100vw - 30px);
        /* Use proximity snapping for better mobile experience */
        scroll-snap-type: x proximity;
        /* Prevent elastic scrolling on mobile */
        overscroll-behavior-x: none;
        /* iOS specific: prevent over-scrolling */
        -webkit-overflow-scrolling: touch;
        /* Ensure proper content width */
        min-width: max-content;
        /* Remove any extra padding */
        padding-right: 0;
        margin-right: 0;
    }
    
    .project-card {
        flex: 0 0 220px;
    }
    
    .project-card img {
        height: 160px;
    }
}

@media (max-width: 360px) {
    .projects-scroll-container {
        margin: 0 10px;
    }
    
    .projects-scroll-track {
        gap: 10px;
        /* Remove any extra padding */
        padding-right: 0;
        margin-right: 0;
    }
    
    .project-card {
        flex: 0 0 200px;
    }
    
    .project-card img {
        height: 140px;
    }
}

/* iOS specific fixes to prevent scrolling past the last card */
@supports (-webkit-touch-callout: none) {
    .projects-scroll-track {
        /* iOS Safari specific: prevent over-scrolling */
        -webkit-overflow-scrolling: touch;
        /* Ensure content width is calculated correctly */
        width: max-content;
        /* Prevent elastic scrolling */
        overscroll-behavior-x: none;
        /* Use proximity snapping for better iOS experience */
        scroll-snap-type: x proximity;
    }
    
    .project-card:last-child {
        /* Ensure last card doesn't have extra space */
        margin-right: 0;
        /* Add padding to prevent over-scrolling */
        padding-right: 20px;
    }
    
    /* iOS momentum scrolling class */
    .projects-scroll-track.ios-scroll {
        /* Enable momentum scrolling */
        -webkit-overflow-scrolling: touch;
        /* Prevent elastic scrolling */
        overscroll-behavior-x: none;
        /* Ensure proper content width */
        width: max-content;
        /* Use proximity snapping */
        scroll-snap-type: x proximity;
        /* Prevent any extra space */
        justify-content: flex-start;
    }
    
    /* Ensure last card has proper spacing on iOS */
    .projects-scroll-track.ios-scroll .project-card:last-child {
        margin-right: 0;
        /* Add container padding to prevent over-scroll */
        padding-right: 20px;
    }
}

/* Simple fix to prevent scrolling past the last card */
.projects-scroll-track {
    /* Ensure no extra space at the end */
    justify-content: flex-start;
    /* Prevent any padding or margin that could cause extra space */
    padding-right: 0;
    margin-right: 0;
    /* Ensure exact content width */
    width: max-content;
    /* Prevent elastic scrolling */
    overscroll-behavior-x: none;
    /* Use proximity snapping for better control */
    scroll-snap-type: x proximity;
}

/* Ensure the last card doesn't have extra margin */
.project-card:last-child {
    margin-right: 0;
}

/* Additional fix: Add container padding to prevent over-scroll */
.projects-scroll-container {
    /* Remove right padding that was causing scroll bar issues */
    padding-right: 0;
    /* Ensure proper overflow handling */
    overflow-x: auto;
    overflow-y: hidden;
}

/* Mobile-specific container adjustments */
@media (max-width: 768px) {
    .projects-scroll-container {
        padding-right: 0;
    }
}

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

@media (max-width: 360px) {
    .projects-scroll-container {
        padding-right: 0;
    }
}

/* Spacer element styling */
.scroll-spacer {
    flex-shrink: 0;
    pointer-events: none;
    user-select: none;
}









