/* ========================================
   KOSKA YAPI GROUP - Custom Styles
   Modern, Responsive & Beautiful Design
   ======================================== */

/* ========== ROOT VARIABLES ========== */
:root {
    --primary-color: #0066cc;
    --primary-dark: #004999;
    --primary-light: #3385d6;
    --secondary-color: #ff6600;
    --secondary-dark: #cc5200;
    --accent-color: #00bfa5;
    --dark-color: #1a1a2e;
    --gray-color: #6c757d;
    --light-gray: #f8f9fa;
    --white: #ffffff;
    --gradient-primary: linear-gradient(135deg, #0066cc 0%, #004999 100%);
    --gradient-secondary: linear-gradient(135deg, #ff6600 0%, #cc5200 100%);
    --gradient-overlay: linear-gradient(135deg, rgba(0, 102, 204, 0.9) 0%, rgba(0, 73, 153, 0.9) 100%);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --transition-fast: all 0.3s ease;
    --transition-smooth: all 0.5s ease;
}

/* ========== GLOBAL STYLES ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--dark-color);
    line-height: 1.7;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
}

a {
    text-decoration: none;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
}

/* ========== NAVIGATION ========== */
.navbar {
    padding: 1rem 0;
    transition: var(--transition-fast);
    z-index: 1000;
}

.navbar-brand {
    font-weight: 700;
    color: var(--dark-color) !important;
    transition: var(--transition-fast);
}

.brand-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.brand-tagline {
    font-size: 0.7rem;
    color: var(--gray-color);
    font-weight: 400;
    line-height: 1;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--dark-color) !important;
    padding: 0.5rem 1rem !important;
    margin: 0 0.25rem;
    position: relative;
    transition: var(--transition-fast);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transform: translateX(-50%);
    transition: var(--transition-fast);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 60%;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
}

/* ========== HERO SECTION ========== */
.hero-section {
    margin-top: 76px;
    position: relative;
}

.hero-slide {
    height: 650px;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-slide-1 {
    background-image: url('https://images.unsplash.com/photo-1541888946425-d81bb19240f5?w=1920');
}

.hero-slide-2 {
    background-image: url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?w=1920');
}

.hero-slide-3 {
    background-image: url('https://images.unsplash.com/photo-1497366216548-37526070297c?w=1920');
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-overlay);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-section .btn {
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-fast);
}

.hero-section .btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.8s ease forwards;
}

.animate-fade-in-delay-1 {
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

.animate-fade-in-delay-2 {
    animation: fadeInUp 0.8s ease 0.4s forwards;
    opacity: 0;
}

/* ========== STATS SECTION ========== */
.stats-section {
    background: var(--gradient-primary);
    color: var(--white);
    margin-top: -50px;
    position: relative;
    z-index: 2;
}

.stat-card {
    text-align: center;
    padding: 2rem 1rem;
    transition: var(--transition-fast);
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.stat-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

/* ========== SECTION TITLES ========== */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray-color);
    margin-top: 1.5rem;
}

/* ========== COMPANIES SECTION ========== */
.companies-section {
    background: var(--white);
}

.company-card {
    background: var(--white);
    border-radius: 16px;
    padding: 2.5rem;
    transition: var(--transition-fast);
    border: 1px solid #e0e0e0;
}

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

.main-company {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 2px solid var(--primary-color);
}

.sub-company {
    background: var(--white);
}

.company-badge .badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    letter-spacing: 1px;
}

.company-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 1.5rem;
}

.company-name {
    color: var(--dark-color);
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1.4;
}

.company-description {
    color: var(--gray-color);
    font-size: 1rem;
    line-height: 1.8;
}

.company-features .feature-item {
    font-size: 1rem;
    color: var(--dark-color);
    display: flex;
    align-items: center;
}

.company-features .feature-item i {
    font-size: 1.25rem;
}

.company-services {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.service-tag {
    background: var(--light-gray);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition-fast);
    border: 1px solid transparent;
}

.service-tag:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.company-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
}

.company-image-wrapper img {
    transition: var(--transition-smooth);
}

.company-image-wrapper:hover img {
    transform: scale(1.05);
}

/* ========== SERVICES SECTION ========== */
.services-section {
    background: var(--light-gray);
}

.service-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 16px;
    text-align: center;
    transition: var(--transition-fast);
    height: 100%;
    border: 1px solid #e0e0e0;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.service-icon {
    width: 90px;
    height: 90px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
    color: var(--white);
    transition: var(--transition-fast);
}

.service-card:hover .service-icon {
    transform: rotateY(360deg);
}

.service-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.service-description {
    color: var(--gray-color);
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.service-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-fast);
}

.service-link:hover {
    color: var(--primary-dark);
    padding-left: 10px;
}

.service-link i {
    transition: var(--transition-fast);
}

.service-link:hover i {
    transform: translateX(5px);
}

/* ========== WHY SECTION ========== */
.why-section {
    padding: 5rem 0;
}

.why-item {
    padding: 1.5rem;
    background: var(--light-gray);
    border-radius: 12px;
    transition: var(--transition-fast);
}

.why-item:hover {
    background: var(--white);
    box-shadow: var(--shadow-md);
}

.why-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--white);
    flex-shrink: 0;
}

.why-image-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.why-image-item img {
    transition: var(--transition-smooth);
}

.why-image-item:hover img {
    transform: scale(1.1);
}

/* ========== TESTIMONIALS ========== */
.testimonials-section {
    background: var(--light-gray);
}

.testimonial-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 16px;
    height: 100%;
    border-left: 4px solid var(--primary-color);
    transition: var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

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

.testimonial-stars i {
    font-size: 1.25rem;
}

.testimonial-text {
    font-style: italic;
    color: var(--gray-color);
    font-size: 1rem;
    line-height: 1.8;
}

.testimonial-author h6 {
    color: var(--dark-color);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

/* ========== CTA SECTION ========== */
.cta-section {
    background: var(--gradient-primary);
    padding: 5rem 0;
}

.cta-box {
    max-width: 800px;
    margin: 0 auto;
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
}

.cta-section .btn {
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition-fast);
}

.cta-section .btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* ========== FOOTER ========== */
.footer {
    background: var(--dark-color);
}

.text-light-gray {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: start;
}

.footer-contact li i {
    margin-top: 3px;
    color: var(--primary-light);
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-contact a:hover {
    color: var(--white);
}

.social-links {
    display: flex;
    gap: 0.5rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.25rem;
    transition: var(--transition-fast);
}

.social-link:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
}

/* ========== SCROLL TO TOP BUTTON ========== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-fast);
    z-index: 999;
    box-shadow: var(--shadow-md);
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* ========== BUTTONS ========== */
.btn-primary {
    background: var(--gradient-primary);
    border: none;
    color: var(--white);
}

.btn-primary:hover {
    background: var(--gradient-primary);
    filter: brightness(1.1);
}

.btn-outline-light:hover {
    background: var(--white);
    color: var(--primary-color);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 991px) {
    .hero-slide {
        height: 500px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .navbar-nav {
        padding: 1rem 0;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem !important;
    }
}

@media (max-width: 767px) {
    .hero-slide {
        height: 450px;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .stat-icon {
        font-size: 2.5rem;
    }
    
    .company-card {
        padding: 1.5rem;
    }
    
    .service-card {
        padding: 2rem;
    }
    
    .cta-section h2 {
        font-size: 1.75rem;
    }
}

/* ========== UTILITY CLASSES ========== */
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

/* ========== PAGE TRANSITIONS ========== */
.page-transition {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ========== PRELOADER (Optional) ========== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.preloader.hide {
    opacity: 0;
    pointer-events: none;
}

