:root {
    --navy: #1a2b49;
    --blue: #2d5bff;
    --light-blue: #eef3ff;
    --salmon: #FF8176;
    --accent-light: #fff1f0;
    --gray: #667085;
    --spacing: clamp(2rem, 5vw, 5rem);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: white;
    color: var(--navy);
    line-height: 1.6;
}

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

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    min-height: 94vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background-image: url('images/hero-bg.webp');
    background-size: 100% 95%;
    background-position: center bottom;
    background-repeat: no-repeat;
    text-align: center;
    padding: 3rem 0 0 0;
    /* background-color: #e7fdff */
    background-color: #eafcff;
    background-color: #b8e5ff
}

.hero-content {
    position: relative;
    /* max-width: 1200px; */
    margin: 0 auto;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 94vh;
}

.main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: -0.02em;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    white-space: nowrap;
}

.subhead {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    margin-bottom: 2rem;
    color: var(--gray);
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.4;
    font-weight: 400;
}

.button-group {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    align-items: center;
}

.button {
    padding: 1.25rem 2.5rem;
    border-radius: 100px;
    font-size: 1.125rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.primary-button {
    background: var(--blue);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(45, 91, 255, 0.3);
}

.primary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45, 91, 255, 0.4);
    background: #1a46ff;
}

.secondary-button {
    background: white;
    color: var(--navy);
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.secondary-button:hover {
    background: #f8f9fa;
    border-color: #d1d5db;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

/* Stats Section */
.stats {
    display: inline-flex;
    justify-content: center;
    gap: 1.4rem;
    background: rgba(255, 255, 255, 0.25);
    padding: 1rem 2rem;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    backdrop-filter: blur(8px);
    margin: 0 auto;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--navy);
    line-height: 1.2;
    position: relative;
}

.stat-label {
    color: var(--gray);
    font-size: 1.125rem;
    margin-top: 0.5rem;
    font-weight: 500;
}

/* Before/After Section */
.comparison {
    padding: var(--spacing) 0;
    background: white;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
}

h2 {
    font-size: 3rem;
    font-weight: 800;
    /* margin-bottom: 1rem; */
    /* color: var(--navy); */
}

.comparison-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    pointer-events: none;
    background: rgba(0,0,0,.25);
}

.before-after-slider {
    position: relative;
    width: 100%;
}

.before-after-slider img {
    width: 100%;
    display: block;
}

/* TwentyTwenty Customization */
.twentytwenty-handle {
    border-color: white;
    background: white;
    box-shadow: 0 0 12px rgba(0,0,0,0.2);
}

.twentytwenty-left-arrow {
    border-right-color: var(--navy);
}

.twentytwenty-right-arrow {
    border-left-color: var(--navy);
}

.twentytwenty-before-label:before,
.twentytwenty-after-label:before {
    background: rgba(26, 43, 73, 0.7);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

/* Styles Section */
.styles {
    padding: var(--spacing) 0;
    background: var(--light-blue);
}

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

.style-card {
    background: #f8f9fa;
    background: #fff;
    outline: 1px solid #d1d5db;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height:340px;
    background-image: url('images/style-modern.webp');
    background-repeat:no-repeat;
    background-size:contain;
    background-position:bottom
}

.style-card.midcentury {
    background-image: url('images/style-mcm.webp');
}

.style-card.farmhouse {
    background-image: url('images/style-farmhouse.webp');
}

.style-card::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
}

.style-card .style-link {
    bottom: 2rem;
    left: 2rem;
    color: var(--blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    transition: transform 0.2s ease;
    z-index: 2;
}

.style-card .style-link::after {
    content: '→';
    margin-left: 4px;
    transition: transform 0.2s ease;
}

.style-card .style-link:hover {
    transform: translateX(4px);
}

.style-card .style-link:hover::after {
    transform: translateX(2px);
}

.style-icon, .style-card h3, .style-card p {
    position: relative;
    z-index: 2;
}

.style-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.style-card:hover::before {
    opacity: 0.15;
}

.style-icon {
    width: 48px;
    width:100%;
    height: 100px;
    margin-bottom: 1.5rem;
    color: var(--salmon);
    transition: transform 0.3s ease;
    text-align:center !important;
}

.style-card:hover .style-icon {
    transform: scale(1.1);
}

.style-card h3 {
    margin-bottom: 1rem;
    color: var(--navy);
    /* text-align:center */
}

.style-card p {
    color: var(--gray);
    margin-bottom: 1.5rem;
}

/* Form Section */
.upload-section {
    padding: var(--spacing) 0;
    background: white;
}

.upload-form {
    max-width: 500px;
    margin: 0 auto;
    padding: 2.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.upload-form h2 {
 font-size:2rem;
    margin-bottom:1rem
}

.upload-form.center {
    text-align: center;
}

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

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--navy);
}

input, select {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s;
}

input:focus, select:focus {
    outline: none;
    border-color: var(--blue);
}

/* Footer */
footer {
    padding: 3rem 0;
    background: var(--navy);
    color: white;
}

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

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
}

.copyright {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    color: #94a3b8;
}

@media (max-width: 768px) {
    .hero {
        padding: 3rem 1rem 0;
    }

    h1 {
        white-space: normal;
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .button-group {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
        gap: 1rem;
    }

    .button {
        width: 100%;
        padding: 1.125rem 2rem;
    }

    .stats {
        flex-direction: column;
        gap: 2rem;
        padding: 1.5rem 2rem;
        margin: 0 1rem;
    }

    .comparison-container {
        margin: 0 1rem;
        border-radius: 8px;
    }

    .style-card {
        padding: 1.5rem;
    }
    
    svg.style-icon {
        width: 40px;
        height: 40px;
    }

    .carousel-nav {
        width: 40px;
        height: 40px;
    }

    .carousel-nav.prev {
        left: 16px;
    }

    .carousel-nav.next {
        right: 16px;
    }

    .style-card .style-link {
        bottom: 1.5rem;
        left: 1.5rem;
    }
}

.image-compare {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
    pointer-events: auto;
}

.image-compare img {
    width: 100%;
    height: auto;
    display: block;
}

.image-compare-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    clip-path: inset(0 0 0 50%);
}

.image-before {
    display: block;
    width: 100%;
}

.image-after {
    display: block;
    width: 100%;
}

.slider-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 40px;
    transform: translateX(-50%);
    cursor: ew-resize;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
}

.slider-line {
    position: absolute;
    width: 2px;
    height: 100%;
    background: white;
    left: 50%;
    transform: translateX(-50%);
    box-shadow:0 0 40px 10px #fff
}

.slider-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-arrow-left,
.slider-arrow-right {
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    position: absolute;
}

.slider-arrow-left {
    border-right: 6px solid var(--navy);
    left: 12px;
}

.slider-arrow-right {
    border-left: 6px solid var(--navy);
    right: 12px;
}

.slider-labels {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.label-before,
.label-after {
    position: absolute;
    top: 20px;
    padding: 18px 18px;
    background: rgba(255, 255, 255, 0.6);
    color: #000;
    font-size: 14px;
    font-weight: 600;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.label-before {
    left: 0px;
}

.label-after {
    right: 0px;
}

@media (max-width: 768px) {
    .slider-circle {
        width: 32px;
        height: 32px;
    }

    .slider-handle {
        width: 32px;
    }

    .label-before,
    .label-after {
        font-size: 12px;
        padding: 6px 10px;
    }
}

.comparison-carousel {
    position: relative;
    width: 100%;
    line-height: 0;
}

.carousel-item {
    display: none;
    width: 100%;
    line-height: 0;
    opacity: 0;
    transition: opacity 0.4s ease-out;
}

.carousel-item.active {
    display: block;
    opacity: 1;
}

.carousel-dots {
    display: inline-flex;
    justify-content: center;
    gap: 8px;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    background: rgba(255, 255, 255, 0.5);
    padding: 10px;
    border-radius: 100px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    pointer-events: auto;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
    border: none;
    padding: 0;
    cursor: pointer;
    opacity: 0.95;
    transition: all 0.2s ease;
}

.carousel-dot.active {
    opacity: 1;
    background: var(--blue);
    transform: scale(1.2);
}

/* Form Styles Enhancement */
select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%231a2b49' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

select:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(45, 91, 255, 0.1);
}

.carousel-nav {
    position: absolute;
    bottom: 0%;
    transform: translateY(-50%);
    background: white;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--navy);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
    z-index: 100;
    pointer-events: auto;
}

.carousel-nav:hover {
    background: var(--light-blue);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(-50%) scale(1.05);
}

.carousel-nav.prev {
    left: 24px;
}

.carousel-nav.next {
    right: 24px;
} 

.dev-reset {
    position: fixed;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    display: block;
    font-size: 13px;
    color: #0066ff;
  }

  .upload-content {
    background: white;
    margin-top: 2rem;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.upload-content label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.upload-content input[type="file"] {
    display: block;
    margin-bottom: 1rem;
    font-family: inherit;
}

.upload-content button {
    background-color: var(--blue);
    color: white;
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.upload-content button:hover {
    background-color: #2563eb; /* Tailwind's blue-600 equivalent */
}

#upload-status {
    margin-top: 1rem;
    font-size: 0.95rem;
    color: green;
}