/* DropSpeed - Home Page Styles */
/* PDF s.1 - Anasayfa özel stilleri */

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--bg-white) 0%, var(--bg-light) 100%);
    padding: 6rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.1;
    z-index: 0;
}

.hero__content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero__title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.hero__subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    margin-left: auto;
    margin-right: auto;
}

/* Step by Step Process */
.step-by-step-process {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
    flex-wrap: nowrap;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    max-width: 250px;
}

.step-number {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-md);
}

.step-content h3 {
    font-size: 1.125rem;
    margin-bottom: 0px;
    font-weight: 600;
}

.step-content p {
    font-size: 0.875rem;
    margin: 0;
    line-height: 1.4;
}

.step-arrow {
    color: var(--primary-color);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 1rem;
}

.step-arrow svg {
    width: 32px;
    height: 32px;
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.category-card {
    background: var(--bg-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.category-card__image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

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

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

.category-card__content {
    padding: 1.5rem;
    text-align: center;
}

.category-card__title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.category-card__text {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.feature-card__icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    flex-shrink: 0;
}

.feature-card__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-width: 200px;
    max-height: 200px;
}

.feature-card__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.feature-card__content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.feature-card__content p {
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--text-muted);
    margin: 0;
}

/* Pamuklu Section - Full Background Image */
.pamuklu-section {
    background-image: url('../assets/banner/anasayfa-slider.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 400px;
    width: 100%;
    display: block;
}

/* Trust Logos Section */

.trust-logos-section {
    position: relative;
    min-height: 500px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2.5rem;
    padding: clamp(3rem, 2vw, 6rem) 0;
    overflow: hidden;
    color: var(--text-dark);
}

.trust-logos__overlay {
    position: absolute;
    inset: 0;
    background: #f8f8f8;
    z-index: 0;
}

.trust-logos__intro {
    position: relative;
    z-index: 2;
    text-align: center;
}

.trust-logos__eyebrow {
    font-size: 0.875rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
    opacity: 1;
}

.trust-logos__intro .section-title {
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.trust-logos__subtitle {
    color: var(--text-muted);
    font-size: 1.125rem;
    max-width: 720px;
    margin: 0 auto;
}

/* Brands Marquee */
.brands-marquee {
    position: relative;
    z-index: 2;
    width: 100%;
    overflow: hidden;
    padding: 3rem 0;
    mask-image: linear-gradient(
        to right,
        transparent 0%,
        rgba(0, 0, 0, 1) 10%,
        rgba(0, 0, 0, 1) 90%,
        transparent 100%
    );
}

.brands-track {
    display: flex;
    align-items: center;
    gap: 3rem;
    width: max-content;
    will-change: transform;
}

.brand-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 180px;
    height: 100px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    filter: grayscale(100%);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.brand-item:hover {
    filter: grayscale(0%);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 1);
}

.brand-item img {
    max-width: 140px;
    max-height: 60px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

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

/* Pamuklu Section - Full Background Image */
.pamuklu-section {
    background-image: url('../assets/banner/anasayfa-slider.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 400px;
    width: 100%;
    display: block;
}

/* Responsive Background Image Styling */
.responsive-bg {
    position: relative;
    overflow: hidden;
    color: var(--bg-white); /* Ensure text color contrasts with dark overlay */
    padding: 6rem 0; /* Default padding for content, adjust as needed */
}

.responsive-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0; /* Behind the content */
}

/* Dark overlay for text readability */
.responsive-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* Dark overlay */
    z-index: 1; /* Above background image, below content */
}

.responsive-bg .container {
    position: relative;
    z-index: 2; /* Ensure content is above the overlay */
}

/* Success Banner Link */
.success-banner-link {
    display: block;
    width: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.success-banner-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.success-banner-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.success-banner-link:hover .success-banner-image {
    transform: scale(1.02);
}

/* CTA Section White */
.cta-section-white {
    background: var(--bg-white);
    color: var(--text-dark);
    text-align: center;
    padding: 4rem 0;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-title-dark {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    line-height: 1.2;
}

.cta-title-primary {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    color: var(--primary-color);
    line-height: 1.2;
}

/* Alert Components */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.alert--success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.alert--error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.alert__close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: inherit;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.alert__close:hover {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 991px) {
    .hero {
        padding: 4rem 0;
    }
    
    .hero__title {
        font-size: 2.5rem;
    }
    
    .step-by-step-process {
        flex-wrap: wrap;
        gap: 1.5rem;
    }
    
    .step-item {
        max-width: 200px;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .step-arrow {
        transform: rotate(90deg);
        margin: 0.5rem 0;
    }
    
    .brands-scroll {
        gap: 1.5rem;
    }
    
    .brand-logo {
        min-width: 130px;
        padding: 1.2rem;
    }

    .responsive-bg {
        padding: 4rem 0;
    }
    
    .trust-logos-section {
        min-height: 350px;
        padding: 2.5rem 0;
    }
    
    .brands-marquee {
        padding: 2rem 0;
    }
    
    .brand-item {
        width: 150px;
        height: 80px;
        padding: 1rem;
    }
    
    .brand-item img {
        max-width: 120px;
        max-height: 50px;
    }
    
    .pamuklu-section {
        min-height: 300px;
    }
    
    .cta-title-dark,
    .cta-title-primary {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 3rem 0;
    }
    
    .hero__title {
        font-size: 2rem;
    }
    
    .hero__subtitle {
        font-size: 1.125rem;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        grid-template-columns: repeat(2, 1fr);
    }
    
    .step-by-step-process {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        max-width: 400px;
        margin: 2rem auto 0;
    }
    
    .step-item {
        width: 100%;
        max-width: 350px;
        background: white;
        padding: 1.5rem;
        border-radius: 12px;
        box-shadow: var(--shadow-sm);
        border-left: 4px solid var(--primary-color);
        position: relative;
    }
    
    .step-item::before {
        content: counter(step-counter);
        counter-increment: step-counter;
        position: absolute;
        top: -10px;
        left: 20px;
        width: 30px;
        height: 30px;
        background: var(--primary-color);
        color: white;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.875rem;
        font-weight: 700;
        box-shadow: var(--shadow-md);
    }
    
    .step-by-step-process {
        counter-reset: step-counter;
    }
    
    .step-content {
        margin-top: 0.5rem;
    }
    
    .step-arrow {
        display: none;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .feature-card {
        padding: 1.5rem 1rem;
    }
    
    .feature-card__icon {
        width: 70px;
        height: 70px;
        margin-bottom: 1rem;
    }
    
    .feature-card__content h3 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .feature-card__content p {
        font-size: 0.8rem;
    }
    
    .brands-scroll {
        gap: 1rem;
    }
    
    .brand-logo {
        padding: 1rem;
        min-height: 80px;
        min-width: 120px;
    }

    .responsive-bg {
        padding: 3rem 0;
    }
    
    .trust-logos-section {
        min-height: 300px;
        padding: 2rem 0;
    }
    
    .brands-marquee {
        padding: 1.5rem 0;
    }
    
    .brand-item {
        width: 130px;
        height: 70px;
        padding: 0.8rem;
    }
    
    .brand-item img {
        max-width: 100px;
        max-height: 40px;
    }
    
    .pamuklu-section {
        min-height: 250px;
    }
    
    .cta-title-dark,
    .cta-title-primary {
        font-size: 1.75rem;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .trust-logos-section {
        min-height: 250px;
        padding: 1.5rem 0;
    }
    
    .pamuklu-section {
        min-height: 200px;
    }

    /* Success Banner Link */
    .success-banner-link {
        border-radius: 0px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 2rem 0;
    }
    
    .hero__title {
        font-size: 1.75rem;
        line-height: 1.2;
    }
    
    .hero__subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .section {
        padding: 2rem 0;
    }
    
    .category-card__content {
        padding: 1rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .feature-card {
        padding: 1.5rem 1rem;
    }
    
    .feature-card__icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }
    
    .feature-card__content h3 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .feature-card__content p {
        font-size: 0.85rem;
    }
    
    .cta-title-dark,
    .cta-title-primary {
        font-size: 1.5rem;
    }
    
    .cta-section-white {
        padding: 3rem 0;
    }
    
    .step-by-step-process {
        margin: 1.5rem auto 0;
        max-width: 320px;
    }
    
    .step-item {
        padding: 1.25rem;
        max-width: 300px;
    }
    
    .step-item::before {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
        top: -8px;
        left: 15px;
    }
    
    .step-content h3 {
        font-size: 1.25rem;
        line-height: 1.3;
    }
    
    .success-teaser {
        padding: 2rem 0;
    }
}

/* Loading states */
.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .brands-scroll {
        animation: none !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .card,
    .feature-card,
    .category-card,
    .process-step {
        border: 2px solid var(--text-dark);
    }
    
    .btn-primary {
        border: 2px solid var(--bg-white);
    }
}
