/* ========================================
   Erdem Oto Kurtarma - Performance Optimized CSS
   Next.js Style Speed & SEO Focused
   ======================================== */

/* CSS Variables */
:root {
    --primary-color: #FF6B00;
    --primary-dark: #E55A00;
    --secondary-color: #000000;
    --secondary-light: #1A1A1A;
    --text-dark: #1A1A1A;
    --text-light: #666666;
    --text-muted: #999999;
    --bg-light: #F8F9FA;
    --white: #FFFFFF;
    --border-color: #E0E0E0;
    --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);
    --gradient-primary: linear-gradient(135deg, #FF6B00 0%, #FF8C00 100%);
    --gradient-dark: linear-gradient(135deg, #000000 0%, #1A1A1A 100%);
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    --border-radius: 12px;
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Performance: Hardware Acceleration */
.hero-section, .navbar, .service-card, .blog-card, .review-card {
    transform: translateZ(0);
    will-change: transform;
}

/* Top Bar */
.top-bar {
    background: var(--gradient-dark);
    color: var(--white);
    padding: 8px 0;
    font-size: 14px;
}

.top-bar-left, .top-bar-right {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.top-bar-right {
    justify-content: flex-end;
}

.top-bar a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition-fast);
}

.top-bar a:hover {
    color: var(--primary-color);
}

/* Navbar */
.navbar {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    padding: 15px 0;
    transition: all var(--transition-base);
}

.navbar.scrolled {
    padding: 10px 0;
    box-shadow: var(--shadow-md);
}

.navbar-brand .logo {
    height: 50px;
    transition: var(--transition-base);
}

.navbar.scrolled .logo {
    height: 40px;
}

.nav-link {
    color: var(--text-dark);
    font-weight: 500;
    padding: 8px 16px !important;
    transition: var(--transition-fast);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition-base);
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 60%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    background: var(--gradient-dark);
    background-image: url('/assets/images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.85) 0%, rgba(26,26,26,0.75) 100%);
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    margin-bottom: 30px;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-hero-primary {
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    padding: 15px 35px;
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: var(--transition-base);
    box-shadow: 0 4px 20px rgba(255, 107, 0, 0.4);
}

.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 107, 0, 0.6);
    color: var(--white);
}

.btn-hero-secondary {
    background: rgba(255,255,255,0.1);
    color: var(--white);
    border: 2px solid var(--white);
    backdrop-filter: blur(10px);
}

.btn-hero-secondary:hover {
    background: var(--white);
    color: var(--text-dark);
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 50px;
    justify-content: center;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
}

.stat-item i {
    color: var(--primary-color);
    font-size: 20px;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* Section Styles */
section {
    padding: 80px 0;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 0;
}

/* Service Cards */
.service-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-base);
}

.service-card:hover .service-overlay {
    opacity: 0.95;
}

.service-overlay i {
    color: var(--white);
}

.service-icon-large {
    background: var(--gradient-primary);
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon-large i {
    font-size: 80px;
    color: var(--white);
}

.service-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.service-description {
    color: var(--text-light);
    margin-bottom: 20px;
}

.service-features {
    list-style: none;
    margin-bottom: 20px;
    flex: 1;
}

.service-features li {
    padding: 8px 0;
    color: var(--text-light);
}

.service-features i {
    margin-right: 10px;
}

.btn-service {
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition-base);
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.btn-service:hover {
    transform: translateX(5px);
    color: var(--white);
}

/* CTA Section */
.cta-section {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 60px 0;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.cta-subtitle {
    font-size: 1.1rem;
    opacity: 0.95;
}

.btn-cta {
    background: var(--white);
    color: var(--primary-color);
    border: none;
    padding: 15px 40px;
    font-weight: 700;
    font-size: 1.2rem;
    border-radius: var(--border-radius);
    transition: var(--transition-base);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.btn-cta:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
    color: var(--primary-color);
}

/* Review Cards */
.review-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
    height: 100%;
}

.review-card:hover {
    box-shadow: var(--shadow-md);
}

.review-header {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.review-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.review-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-avatar i {
    color: var(--white);
    font-size: 24px;
}

.review-author {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.review-rating i {
    color: #ddd;
    font-size: 16px;
}

.review-rating i.active {
    color: #FFD700;
}

.review-body p {
    color: var(--text-light);
    line-height: 1.7;
}

.review-footer {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

/* Blog Cards */
.blog-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.blog-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    display: block;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.blog-card:hover .blog-image img {
    transform: scale(1.1);
}

.blog-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    color: var(--text-muted);
    font-size: 14px;
}

.blog-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.blog-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition-fast);
}

.blog-title a:hover {
    color: var(--primary-color);
}

.blog-excerpt {
    color: var(--text-light);
    margin-bottom: 20px;
    flex: 1;
}

.blog-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: var(--transition-fast);
}

.blog-link:hover {
    transform: translateX(5px);
}

/* Float Buttons */
.whatsapp-float, .call-float {
    position: fixed;
    bottom: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--white);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    transition: var(--transition-base);
    animation: pulse 2s infinite;
}

.whatsapp-float {
    right: 30px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
}

.call-float {
    right: 100px;
    background: var(--gradient-primary);
}

.whatsapp-float:hover, .call-float:hover {
    transform: scale(1.1);
    color: var(--white);
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 107, 0, 0.7); }
    50% { box-shadow: 0 0 0 20px rgba(255, 107, 0, 0); }
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    z-index: 999;
    transition: var(--transition-base);
    box-shadow: var(--shadow-md);
}

.back-to-top.visible {
    display: flex;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Footer */
.footer {
    background: var(--gradient-dark);
    color: var(--white);
    margin-top: 80px;
}

.footer-main {
    padding: 60px 0 40px;
}

.footer-logo {
    max-height: 60px;
    margin-bottom: 20px;
}

.footer-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.footer-stats .stat {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.footer-stats i {
    color: var(--primary-color);
}

.footer-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--gradient-primary);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-links i {
    font-size: 12px;
}

.footer-contact {
    list-style: none;
}

.footer-contact li {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    align-items: start;
}

.footer-contact i {
    color: var(--primary-color);
    font-size: 18px;
    margin-top: 3px;
}

.footer-contact a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-contact a:hover {
    color: var(--primary-color);
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition-fast);
}

.footer-social a:hover {
    background: var(--gradient-primary);
    transform: translateY(-3px);
}

.footer-bottom {
    background: rgba(0,0,0,0.3);
    padding: 20px 0;
}

.footer-copyright {
    color: rgba(255,255,255,0.7);
}

.footer-bottom-links {
    list-style: none;
    display: flex;
    gap: 20px;
    justify-content: flex-end;
    margin: 0;
}

.footer-bottom-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-bottom-links a:hover {
    color: var(--primary-color);
}

/* Responsive */
@media (max-width: 991px) {
    .hero-section {
        background-attachment: scroll;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-stats {
        font-size: 13px;
        gap: 20px;
    }
    
    .top-bar-left, .top-bar-right {
        justify-content: center;
    }
    
    .call-float {
        right: 30px;
        bottom: 100px;
    }
    
    .footer-bottom-links {
        justify-content: center;
        margin-top: 15px;
    }
}

@media (max-width: 767px) {
    section {
        padding: 60px 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .cta-title {
        font-size: 1.8rem;
    }
    
    .whatsapp-float, .call-float {
        width: 50px;
        height: 50px;
        font-size: 22px;
    }
    
    .call-float {
        bottom: 90px;
    }
}

/* Utility Classes */
.text-primary { color: var(--primary-color) !important; }
.bg-primary { background: var(--gradient-primary) !important; }
.btn-gradient { background: var(--gradient-primary); color: var(--white); border: none; }
.btn-gradient:hover { color: var(--white); transform: translateY(-2px); }
