/**
 * Winter Theme Design System
 * Project: Gürol Çaydaş
 * Author: Gurol Caydas
 * Website: https://caydas.com
 * Date: 2026
 */

:root {
    /* Default Theme Colors - Overridden by dynamic-colors.php */
    --bs-primary: #2a7bbd;
    --bs-primary-rgb: 42, 123, 189;
    --bs-secondary: #4f6d8c;
    --bs-secondary-rgb: 79, 109, 140;
    --bs-body-bg: #f6f9fc;
    --bs-card-bg: #ffffff;
    --bs-body-color: #1a2233;
    --bs-border-color: rgba(10, 20, 40, .12);
    --accent-color: #e74c3c;
}

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

body {
    font-family: 'Raleway', sans-serif;
    background: 
        radial-gradient(1100px 520px at -15% -10%, rgba(102, 176, 235, .18) 0%, rgba(102, 176, 235, 0) 60%),
        radial-gradient(900px 440px at 120% -10%, rgba(173, 216, 230, .18) 0%, rgba(173, 216, 230, 0) 60%),
        linear-gradient(180deg, #f6f9fc 0%, #f4f8fc 100%);
    background-attachment: fixed;
    color: var(--bs-body-color);
}

/* ========================================
   Navigation
======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

.navbar-brand h3 {
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* ========================================
   Hero Slider Section
======================================== */
.hero-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.hero-slide {
    display: none;
    width: 100%;
    min-height: 500px;
    max-height: calc(100vw * 9 / 32);
    padding: 80px 0 60px 0;
    position: relative;
    /* Animation duration is controlled by dynamic-colors.php */
    animation-name: fadeIn;
    animation-timing-function: ease-in-out;
}

.hero-slide.hero-with-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.5) 100%);
    z-index: 1;
}

.hero-slide.active {
    display: block;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

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

.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
} 
.btn.btn-hero {
    background: rgba(255, 255, 255, 0.2) !important;
    border: 2px solid rgba(255, 255, 255, 0.5) !important;
    color: #fff !important;
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: inline-block;
    white-space: nowrap;
    width: auto;
    max-width: fit-content;
}

.btn.btn-hero:hover {
    background: rgba(255, 255, 255, 0.4) !important;
    border-color: rgba(255, 255, 255, 0.8) !important;
    color: #fff !important;
    transform: translateY(-2px);
}

/* Navigation Arrows */
.hero-prev,
.hero-next
 {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.hero-prev {
    left: 20px;
}

.hero-next {
    right: 20px;
}

.hero-prev:hover,
.hero-next:hover {
    background: rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-50%) scale(1.1);
}

/* Dots Navigation */
.hero-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-dot.active {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.3);
}

.hero-dot:hover {
    background: rgba(255, 255, 255, 0.7);
}

/* fadeIn animation is defined in dynamic-colors.php with dynamic duration */
}

@media (max-width: 768px) {
    .hero-slide {
        min-height: 400px;
        padding: 60px 20px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-prev,
    .hero-next {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .hero-prev {
        left: 10px;
    }
    
    .hero-next {
        right: 10px;
    }
}

/* ========================================
   Service Cards
======================================== */
.service-card {
    transition: transform .2s ease, box-shadow .25s ease, background .35s ease;
    height: 100%;
    border: 1px solid var(--bs-border-color);
    background-color: var(--bs-card-bg);
    border-radius: 0.5rem;
    animation: slideIn 0.3s ease-out;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 1.25rem 2rem rgba(16, 36, 66, .18), 
        0 0 1.25rem rgba(var(--bs-primary-rgb), .18) inset;
}

.service-icon {
    font-size: 3rem;
    color: var(--bs-primary);
    margin-bottom: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: rgba(var(--bs-primary-rgb), .2);
    border-radius: 50%;
}

.service-icon i {
    font-size: 2.5rem;
}

/* ========================================
   Section Titles
======================================== */
.section-title {
    color: var(--bs-primary);
    font-weight: 700;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--bs-primary) 0%, var(--bs-secondary) 100%);
    border-radius: 2px;
}

/* ========================================
   About Section
======================================== */
.about-section {
    background: linear-gradient(135deg, rgba(102, 176, 235, .08) 0%, rgba(188, 214, 240, .08) 100%);
    padding: 60px 0;
    margin: 50px 0;
    border-radius: 1rem;
}

/* ========================================
   Contact Section
======================================== */
.contact-info {
    background: var(--bs-primary);
    color: white;
    padding: 60px 0;
    position: relative;
}

.contact-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(42, 123, 189, 0.95) 0%, rgba(79, 109, 140, 0.95) 100%);
    z-index: 0;
}

.contact-info .container {
    position: relative;
    z-index: 1;
}

.contact-info a {
    color: white;
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-info a:hover {
    color: var(--bs-primary);
}

/* ========================================
   Footer
======================================== */
footer {
    color: white;
    padding: 30px 0;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    margin: 0 12px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link i {
    font-size: 1.4rem;
}

.social-link:hover {
    background: rgba(230, 230, 230, 0.95);
    color: var(--bs-primary);
    transform: translateY(-3px);
}

/* ========================================
   Buttons
======================================== */
.btn-custom {
    --bs-btn-bg: var(--bs-primary);
    --bs-btn-border-color: var(--bs-primary);
    background-color: var(--bs-btn-bg);
    color: white;
    border: 1px solid var(--bs-btn-border-color);
    padding: 12px 24px;
    min-height: 44px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(42, 123, 189, 0.2);
    display: inline-block;
    white-space: nowrap;
}

.btn-custom:hover {
    background-color: var(--bs-btn-hover-bg);
    border-color: var(--bs-btn-hover-border-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(42, 123, 189, 0.3);
    color: white;
}

.btn-custom:active {
    transform: translateY(0);
}

/* ========================================
   Animations
======================================== */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ========================================
   Accessibility
======================================== */
:focus-visible {
    outline: 2px solid var(--bs-primary);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (hover: none) and (pointer: coarse) {
    .btn { 
        min-height: 44px; 
        padding: 0.5rem 1rem; 
    }
}

/* ========================================
   Container
======================================== */
.container-custom {
    max-width: 1024px;
}
