/* Home Page Specific Styles */

.hero-section {
    position: relative;
    height: 100vh;
    /* Full viewport height */
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: var(--color-white);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Darker overlay for better text contrast in dark mode */
    background: linear-gradient(to right, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.4)), url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&q=80&w=1920');
    background-size: cover;
    background-position: center;
    z-index: -1;
    animation: scaleBg 30s linear infinite alternate;
}

@keyframes scaleBg {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.1);
    }
}

.hero-content {
    max-width: 800px;
}

.hero-title {
    font-size: clamp(3rem, 6vw, 5rem);
    line-height: 1.1;
    margin-bottom: var(--space-md);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: var(--space-lg);
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: var(--space-sm);
}

.link-arrow {
    display: inline-block;
    margin-top: var(--space-sm);
    color: var(--color-accent);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Services Section */
.services-section {
    padding-top: var(--space-2xl);
    padding-bottom: var(--space-2xl);
}

/* Why Dekosan Section */
.home .section-alt:first-of-type {
    padding-top: var(--space-2xl);
    padding-bottom: var(--space-2xl);
}

/* Service Card Backgrounds */
.service-card {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -1;
    opacity: 0.25;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.service-card:hover::before {
    opacity: 0.35;
    transform: scale(1.05);
}

.service-card-insulation::before {
    background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.8)), url('../../assets/images/insulation-card-bg.png');
}

.service-card-design::before {
    background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.8)), url('../../assets/images/design-card-bg.png');
}

.service-card-extras::before {
    background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.8)), url('../../assets/images/extras-card-bg.png');
}

.check-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xs);
    margin-bottom: var(--space-md);
}

.ref-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    opacity: 0.8;
    transition: opacity 0.3s;
}

.ref-img:hover {
    opacity: 1;
}

@media (max-width: 768px) {
    .hero-section {
        height: auto;
        padding: 150px 0 100px;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .check-list {
        grid-template-columns: 1fr;
    }
}

/* Stats Bar */
.stats-bar {
    background-color: var(--color-black);
    color: var(--color-white);
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--color-border);
}

.stat-item {
    text-align: center;
    padding: var(--space-sm);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-accent);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.7);
}

/* Process Section */
.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
    margin-top: var(--space-lg);
    position: relative;
}

.process-step {
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-icon {
    width: 80px;
    height: 80px;
    background-color: var(--color-bg-alt);
    border: 2px solid var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto var(--space-sm);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.process-step:hover .step-icon {
    transform: scale(1.1);
    background-color: var(--color-accent);
    color: var(--color-black);
}

.step-number {
    position: absolute;
    top: 0;
    right: 50%;
    margin-right: -50px;
    font-size: 3rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.05);
    z-index: -1;
}

.calisma-surecimiz {
    padding: var(--space-lg) 0;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.9)), url('https://images.unsplash.com/photo-1503387762-592deb58ef4e?auto=format&fit=crop&q=80&w=1920');
    background-size: cover;
    background-attachment: fixed;
    text-align: center;
    color: var(--color-white);
}

@media (max-width: 900px) {
    .process-steps {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .process-steps {
        grid-template-columns: 1fr;
    }

    .stat-item {
        margin-bottom: var(--space-sm);
    }
}

:root {
    --slide-width: 560px;
    --slide-height: 390px;
}

@media (max-width: 768px) {
    :root {
        --slide-width: 300px;
        --slide-height: 220px;
    }

    /* Reduce Hero padding for more minimal look */
    .hero-section {
        padding: 120px 0 60px !important;
        justify-content: center;
        /* Center content horizontally */
        text-align: center;
        align-items: center;
        /* Center vertically if needed */
    }

    .hero-content {
        padding: 0 20px;
        margin: 0 auto;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-title {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
        align-items: center;
    }
}

/* Reference Slider (Marquee) */
.slider-container {
    overflow: hidden;
    position: relative;
    width: 100%;
    padding: var(--space-sm) 0;
}

.slider-container::before,
.slider-container::after {
    content: "";
    position: absolute;
    top: 0;
    width: 15px;
    /* Reduced fade width for mobile */
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

@media (min-width: 769px) {

    .slider-container::before,
    .slider-container::after {
        width: 150px;
    }
}

.slider-container::before {
    left: 0;
    background: linear-gradient(to right, var(--color-bg-alt), transparent);
}

.slider-container::after {
    right: 0;
    background: linear-gradient(to left, var(--color-bg-alt), transparent);
}

.slider-track {
    display: flex;
    width: max-content;
    animation: scroll 40s linear infinite;
    gap: 1.5rem;
}

.slider-slide {
    width: var(--slide-width);
    flex-shrink: 0;
}

.slider-slide img {
    width: 100%;
    height: var(--slide-height);
    object-fit: cover;
    border-radius: var(--radius-sm);
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.slider-slide:hover img {
    filter: grayscale(0%);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        /* 4 items logic from original */
        transform: translateX(calc(-1 * (var(--slide-width) * 4 + 1.5rem * 4)));
    }
}

/* Pause on hover */
.slider-track:hover {
    animation-play-state: paused;
}