:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --dark-color: #34495e;
    --light-color: #ecf0f1;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    font-size: 16px;
    /* SEO: Better readability */
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    /* Mobil için navbar altında kalmaması için padding */
    padding-top: 80px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

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

/* Hero içeriği için özel düzenleme */
.hero-content {
    padding-top: 2rem;
}

/* Butonlar ve özellik kartları arasına boşluk */
.hero-buttons {
    margin-bottom: 3rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, background 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

/* Services Section */
.service-category {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f8f9fa;
}

.service-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

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

.service-list {
    list-style: none;
    padding: 0;
}

.service-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f8f9fa;
    transition: padding 0.3s ease;
}

.service-list li:hover {
    padding-left: 1rem;
    background: #f8f9fa;
}

.service-list li:last-child {
    border-bottom: none;
}

/* Service Areas */
.area-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.area-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--secondary-color);
}

/* About Section */
.about-features .feature-item {
    transition: transform 0.3s ease;
}

.about-features .feature-item:hover {
    transform: translateX(10px);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

/* Contact Section */
.contact-info {
    transition: transform 0.3s ease;
    border-radius: 10px;
}

.contact-info:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
}

.contact-icon {
    font-size: 3rem;
    color: var(--secondary-color);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    z-index: 1000;
    display: none;
    animation: fadeIn 0.3s ease;
}

.back-to-top.show {
    display: block;
}

/* Navigation */
.navbar-brand {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

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

.navbar-nav .nav-link {
    position: relative;
    transition: color 0.3s ease;
}

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

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--secondary-color);
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
    left: 0;
}

/* SEO Optimized Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: bold;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: #2c3e50;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(1.75rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
}

/* Text highlighting for keywords */
.text-primary {
    color: var(--secondary-color) !important;
}

strong, .fw-bold {
    font-weight: 700;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

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

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Custom Button Styles */
.btn-primary {
    background: var(--secondary-color);
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.8);
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* SEO Friendly Image Optimization */
img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

/* Address styling for structured data */
address {
    font-style: normal;
    line-height: 1.6;
}

/* Loading Animation */
.loading {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

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

/* Hover Effects for Cards */
.service-category,
.area-card {
    position: relative;
    overflow: hidden;
}

.service-category::before,
.area-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(52, 152, 219, 0.1), transparent);
    transition: left 0.5s ease;
}

.service-category:hover::before,
.area-card:hover::before {
    left: 100%;
}

/* Focus states for accessibility */
.btn:focus,
.nav-link:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

/* Performance optimizations */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.will-change-transform {
    will-change: transform;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Hero section mobilde daha fazla padding */
    .hero-section {
        padding-top: 100px;
    }
    
    .hero-content {
        padding-top: 1rem;
    }
    
    /* Butonlar ve özellik kartları arası boşluk artırıldı */
    .hero-buttons {
        margin-bottom: 4rem;
    }
    
    .display-4 {
        font-size: 2.2rem;
        line-height: 1.2;
        margin-bottom: 1.5rem;
    }
    
    .display-5 {
        font-size: 1.8rem;
    }
    
    .hero-features .feature-card {
        margin-bottom: 1.5rem;
    }
    
    .service-icon,
    .contact-icon {
        font-size: 2rem;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    /* Mobilde butonlar tam genişlik */
    .d-flex.flex-wrap.gap-3 {
        flex-direction: column;
        gap: 1rem !important;
    }
    
    .btn-lg {
        width: 100%;
        padding: 15px 20px;
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    /* Çok küçük ekranlarda ek ayarlar */
    .hero-section {
        padding-top: 120px;
    }
    
    .hero-buttons {
        margin-bottom: 3rem;
    }
    
    .service-category,
    .area-card,
    .contact-info {
        margin-bottom: 1rem;
    }
    
    .lead {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    .display-4 {
        font-size: 1.9rem;
    }
    
    /* Özellik kartları için daha az boşluk */
    .hero-features .feature-card {
        margin-bottom: 1rem;
        padding: 1.5rem !important;
    }
    
    .feature-card h4 {
        font-size: 1.2rem;
    }
    
    .feature-card p {
        font-size: 0.9rem;
    }
}

/* Çok küçük ekranlar için (320px ve altı) */
@media (max-width: 320px) {
    .hero-section {
        padding-top: 100px;
    }
    
    .display-4 {
        font-size: 1.7rem;
    }
    
    .btn-lg {
        padding: 12px 15px;
        font-size: 1rem;
    }
}

/* Print styles for SEO */
@media print {
    .navbar,
    .back-to-top,
    .btn {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3 {
        page-break-after: avoid;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}