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

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

:root {
    --primary-color: #2563eb;
    --secondary-color: #0d9488;
    --accent-color: #ea580c;
    --success-color: #059669;
    --warning-color: #d97706;
    --error-color: #dc2626;
    --dark-color: #1f2937;
    --light-color: #f8fafc;
    --text-color: #374151;
    --text-light: #6b7280;
    --border-color: #e5e7eb;
    --gradient-primary: linear-gradient(135deg, #2563eb 0%, #0d9488 100%);
    --gradient-secondary: linear-gradient(135deg, #f3f4f6 0%, #ffffff 100%);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    --nav-offset: 90px; /* fixed header height for anchor scrolling */
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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

/* Category Filter */
.category-filter {
    background: white;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.filter-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark-color);
    margin: 0;
}

.clear-filter {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: var(--error-color);
    text-decoration: none;
    border: 1px solid var(--error-color);
    border-radius: 0.375rem;
    transition: all 0.3s ease;
}

.clear-filter:hover {
    background: var(--error-color);
    color: white;
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-option {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: var(--text-color);
    text-decoration: none;
    background: var(--light-color);
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    transition: all 0.3s ease;
}

.filter-option:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

.filter-option.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.filter-option .count {
    font-size: 0.75rem;
    opacity: 0.8;
}

.selected-category-info {
    background: var(--gradient-primary);
    color: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    margin-bottom: 2rem;
    text-align: center;
}

.selected-category-info h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.selected-category-info p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: white;
    box-shadow: var(--shadow-md);
}

.nav-container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    gap: 2rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo-main {
    font-family: 'Georgia', serif;
    font-weight: 700;
    font-size: 1.4rem;
    color: #444444;
    line-height: 1.2;
    letter-spacing: 0.5px;
}

.logo-accent {
    color: #886050;
}

.logo-tagline {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 0.75rem;
    color: #777777;
    margin-top: 0.2rem;
    letter-spacing: 0.3px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.25rem; /* tighter spacing */
    margin-left: auto;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

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

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    border-radius: 1px;
}

.admin-link {
    background: var(--primary-color);
    color: white !important;
    padding: 0.45rem 0.9rem; /* slightly smaller to match spacing */
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.admin-link:hover {
    background: var(--dark-color);
    color: white !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.admin-link.active {
    background: var(--dark-color);
    color: white !important;
}

.admin-link.active::after {
    display: none;
}



.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    margin-left: auto;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background: var(--dark-color);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 3px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--gradient-primary);
    color: white;
    position: relative;
    overflow: hidden;
    padding: 2rem 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="a" cx="0" cy="0" r="1" gradientUnits="objectBoundingBox"><stop offset="0" stop-color="%23ffffff" stop-opacity="0.1"/><stop offset="1" stop-color="%23ffffff" stop-opacity="0"/></radialGradient></defs><circle cx="200" cy="200" r="100" fill="url(%23a)"/><circle cx="800" cy="300" r="150" fill="url(%23a)"/><circle cx="400" cy="700" r="80" fill="url(%23a)"/></svg>');
    opacity: 0.1;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
    padding: 0 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    color: white;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.hero-buttons .btn-outline {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.hero-buttons .btn-outline:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
}
.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-xl);
    max-width: 600px;
}

/* Section Styles */
section {
    padding: 5rem 0; /* restore comfortable spacing */
    scroll-margin-top: var(--nav-offset); /* make anchor scroll stop below fixed header */
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem; /* tighter spacing to reveal headings */
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* About Section */
.about {
    background: white;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h3 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.about-text p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
    padding: 1.5rem;
    background: var(--gradient-secondary);
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
}

.stat h4 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat p {
    color: var(--text-light);
    font-weight: 500;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
}

/* Services Section */
.services {
    background: var(--light-color);
}

.services-blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 350px));
    gap: 2rem;
    justify-content: center;
}

.service-blog-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.service-blog-card.featured {
    background: var(--gradient-primary);
    color: white;
    transform: scale(1.02);
}

.service-blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.service-blog-card.featured:hover {
    transform: scale(1.02) translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.service-blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-blog-content {
    padding: 1.5rem;
}

.service-category {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    font-size: 0.875rem;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    margin-bottom: 1rem;
}

.service-category.featured {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.service-blog-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    color: var(--dark-color);
}

.service-blog-card.featured h3 {
    color: white;
}

.service-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.service-blog-card.featured .service-meta {
    color: rgba(255, 255, 255, 0.8);
}

.service-blog-card p {
    line-height: 1.6;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.service-blog-card.featured p {
    color: rgba(255, 255, 255, 0.9);
}

.service-read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}

.service-blog-card.featured .service-read-more {
    color: white;
}

.service-read-more:hover {
    gap: 1rem;
}

.service-blog-card p {
    line-height: 1.6;
    margin-bottom: 1.5rem;
    max-height: 4.8em; /* 3 lines of text */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}


/* Blog Section */
.blog {
    background: white;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 350px));
    gap: 2rem;
    margin-bottom: 3rem;
    justify-content: center;
}

/* Responsive grid for mobile */
@media (max-width: 768px) {
    .services-blog-grid {
        grid-template-columns: 1fr;
        justify-content: center;
    }
    
    .service-blog-card {
        margin: 0 auto;
        max-width: 100%;
    }
    
    .blog-page .service-blog-card {
        min-height: auto;
    }
    
    .blog-page .service-blog-content {
        padding: 1rem;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
        justify-content: center;
    }
    
    .blog-card {
        margin: 0 auto;
        max-width: 100%;
    }
}

.blog-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 560px; /* Uniform card height on desktop */
}

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

.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-card-content {
    padding: 1.5rem;
}

/* Blog card content için daha iyi padding */
.blog-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.blog-meta {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

/* Blog cards: align meta like work cards (left-aligned with spacing) */
.blog-card .blog-meta {
    justify-content: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Date to right within meta */
.blog-meta .blog-date { margin-left: auto; }

.blog-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.blog-excerpt {
    line-height: 1.6;
    margin-bottom: 1rem;
    max-height: 4.8em; /* 3 lines */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.blog-footer {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: auto; /* push footer to bottom */
    margin-bottom: 0.5rem;
}

.blog-read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
    margin-top: 0.25rem;
    margin-bottom: 0;
    /* Ensure button is always visible */
    position: relative;
    z-index: 1;
}

.blog-author,
.blog-read-time,
.blog-views {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8rem;
    color: var(--text-light);
}

.blog-author i,
.blog-read-time i,
.blog-views i {
    font-size: 0.75rem;
    opacity: 0.7;
}

.blog-category {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    font-size: 0.875rem;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-weight: 500;
}

.blog-date {
    color: var(--text-light);
    font-size: 0.875rem;
    font-weight: 400;
}

.blog-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.blog-card h3 a {
    color: var(--dark-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-card h3 a:hover {
    color: var(--primary-color);
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.blog-card p {
    line-height: 1.6;
    margin-bottom: 1rem;
}

.blog-read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}

.blog-read-more:hover {
    gap: 1rem;
}

/* Contact Section */
.contact {
    background: var(--light-color);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h3 {
    color: var(--dark-color);
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-item i {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    flex-shrink: 0;
}

.contact-item h4 {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.contact-form {
    background: white;
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
}

.contact-form h3 {
    color: var(--dark-color);
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark-color);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    color: white;
    margin-bottom: 1rem;
}

.footer-section p,
.footer-section ul li {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
}

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

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

/* Center social links on mobile */
@media (max-width: 768px) {
    .social-links {
        justify-content: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .footer-section ul {
        justify-content: center;
    }
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* Blog Page Styles */
.blog-page {
    background: var(--light-color);
    padding: 4rem 0;
}

.blog-page .services-blog-grid {
    margin-bottom: 3rem;
}

.blog-page .service-blog-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-page .blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.blog-page .blog-category {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    font-size: 0.875rem;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-weight: 500;
}

.blog-page .blog-date {
    color: var(--text-light);
    font-size: 0.875rem;
    font-weight: 400;
}

.blog-page .blog-footer {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: auto;
    margin-bottom: 0.5rem;
}

.blog-page .blog-author {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8rem;
    color: var(--text-light);
}

.blog-page .blog-author i {
    font-size: 0.75rem;
    opacity: 0.7;
}

.blog-page .service-blog-card {
    height: auto;
    min-height: 500px;
    display: flex;
    flex-direction: column;
}

.blog-page .service-blog-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    color: var(--dark-color);
}

.blog-page .service-blog-card p {
    line-height: 1.6;
    margin-bottom: 1rem;
    color: var(--text-light);
    flex: 1;
}

.blog-page .service-read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
    margin-top: auto;
}

.blog-page .service-read-more:hover {
    gap: 1rem;
}

/* Blog header artık page-header kullanıyor, bu stiller kaldırıldı */

.blog-page .blog-content {
    padding: 4rem 0;
    background: white;
}

.blog-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
}

.blog-posts {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.blog-post-large {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.blog-post-large:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.blog-post-large img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.blog-post-content {
    padding: 2rem;
}

.blog-sidebar {
    background: var(--light-color);
    height: fit-content;
    position: sticky;
    top: 6rem;
}

.sidebar-widget {
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

.sidebar-widget h3 {
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.category-list {
    list-style: none;
}

.category-list li {
    margin-bottom: 0.5rem;
}

.category-list a {
    color: var(--text-light);
    text-decoration: none;
    padding: 0.5rem 0;
    display: block;
    transition: color 0.3s ease;
}

.category-list a:hover,
.category-list a.active {
    color: var(--primary-color);
}

.recent-posts {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.recent-post {
    display: flex;
    gap: 1rem;
}

.recent-post img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 0.5rem;
    flex-shrink: 0;
}

.recent-post-content h4 {
    font-size: 0.875rem;
    line-height: 1.4;
    margin-bottom: 0.25rem;
}

.recent-post-content a {
    color: var(--dark-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.recent-post-content a:hover {
    color: var(--primary-color);
}

.recent-post-content .date {
    font-size: 0.75rem;
    color: var(--text-light);
}

.search-box {
    display: flex;
    gap: 0.5rem;
}

.search-box input {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 0.875rem;
}

.search-box button {
    padding: 0.75rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-box button:hover {
    background: var(--secondary-color);
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination button {
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    background: white;
    color: var(--text-color);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination button:hover,
.pagination button.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* Responsive Design */
@media (max-width: 768px) {
    .logo-main {
        font-size: 1.2rem;
    }
    
    .logo-tagline {
        font-size: 0.7rem;
    }
    
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-md);
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        padding: 0 2rem;
    }
    /* Ensure hero content is not hidden under fixed header */
    .hero { padding-top: calc(var(--nav-offset) + 16px); }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .services-blog-grid {
        grid-template-columns: 1fr;
        justify-content: center;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
        justify-content: center;
    }
    
    .blog-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    h1 { font-size: 2rem; }
}

@media (max-width: 480px) {
    .logo-main {
        font-size: 1.1rem;
    }
    
    .logo-tagline {
        font-size: 0.65rem;
    }
    
    .container {
        padding: 0 0.5rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .service-card,
    .contact-form {
        padding: 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* Works Page Styles */
.page-header {
    background: var(--gradient-primary);
    color: white;
    padding: 4rem 0;
    text-align: center;
    margin-top: 80px; /* Navbar yüksekliği kadar margin */
}

.page-header-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.page-header-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    color: white;
}

/* Page header içindeki section-header için özel stiller */
.page-header .section-header p {
    color: white !important;
    opacity: 0.95;
    font-size: 1.3rem;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 1rem;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.breadcrumb a:hover {
    opacity: 1;
}

.breadcrumb span {
    opacity: 0.6;
}

/* Enhanced breadcrumb styling */
.breadcrumb {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.works-section {
    padding: 5rem 0;
    background: white;
}

/* Works button spacing */
.services .text-center {
    margin-top: 2rem;
}

/* Works page button spacing */
.works-page .text-center {
    margin-top: 3rem;
    padding-bottom: 2rem;
}

.works-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--border-color);
    background: white;
    color: var(--text-color);
    border-radius: 2rem;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.work-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

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

.work-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

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

.work-card:hover .work-image img {
    transform: scale(1.05);
}

.work-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.work-card:hover .work-overlay {
    opacity: 1;
}

.work-link {
    color: white;
    font-size: 1.5rem;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.work-link:hover {
    transform: scale(1.2);
}

.work-content {
    padding: 1.5rem;
}

.work-category {
    display: inline-block;
    background: var(--primary-color) !important;
    color: white !important;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.work-content h3 {
    font-size: 1.3rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.work-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.work-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.work-meta i {
    color: var(--primary-color);
}

.work-content p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.work-tech {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.tech-tag {
    background: var(--light-color);
    color: var(--text-color);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    font-weight: 500;
}

.work-details {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: gap 0.3s ease;
}

.work-details:hover {
    gap: 0.75rem;
}

/* Responsive Works */
@media (max-width: 768px) {
    .works-filter {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .works-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .page-header-content h1 {
        font-size: 2.5rem;
    }
    
    .work-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Blog Detail Page Styles */
.blog-detail-section {
    padding: 4rem 0;
    background: white;
}

.blog-detail-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
}

.blog-detail-main {
    background: white;
}

.blog-detail-article {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.blog-detail-header {
    padding: 2rem 2rem 0;
}

.blog-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    align-items: center;
}

.blog-category {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    font-weight: 500;
}

.blog-date {
    color: var(--text-light);
    font-size: 0.9rem;
}

.blog-title {
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.blog-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    color: var(--dark-color);
}

.author-role {
    font-size: 0.9rem;
    color: var(--text-light);
}

.blog-detail-image {
    width: 100%;
    height: 600px;
    overflow: hidden;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-md);
}

.blog-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background: white;
    transition: transform 0.3s ease;
}

.blog-detail-image img:hover {
    transform: scale(1.02);
}

.blog-detail-content {
    padding: 2rem;
    line-height: 1.8;
    color: var(--text-color);
}

.blog-detail-content h2 {
    font-size: 1.8rem;
    color: var(--dark-color);
    margin: 2rem 0 1rem;
    font-weight: 600;
}

.blog-detail-content h3 {
    font-size: 1.4rem;
    color: var(--dark-color);
    margin: 1.5rem 0 1rem;
    font-weight: 600;
}

.blog-detail-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.blog-detail-content blockquote {
    background: var(--light-color);
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0.5rem;
    font-style: italic;
    font-size: 1.1rem;
}

.blog-detail-content blockquote p {
    margin: 0;
    color: var(--dark-color);
}

.blog-detail-footer {
    padding: 2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.blog-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    font-weight: 500;
}

.blog-share {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.share-label {
    font-weight: 500;
    color: var(--dark-color);
}

.share-link {
    color: var(--text-light);
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.share-link:hover {
    color: var(--primary-color);
}



.blog-detail-sidebar {
    background: var(--light-color);
    height: fit-content;
    position: sticky;
    top: 6rem;
}

.related-posts {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.related-post {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 0.5rem;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
}

.related-post:hover {
    transform: translateY(-2px);
}

.related-post img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 0.5rem;
}

.related-post-content h4 {
    font-size: 1rem;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.related-post-content h4 a {
    text-decoration: none;
    color: var(--dark-color);
    transition: color 0.3s ease;
}

.related-post-content h4 a:hover {
    color: var(--primary-color);
}

.post-date {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Responsive Blog Detail */
@media (max-width: 768px) {
    .blog-detail-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .blog-title {
        font-size: 2rem;
    }
    
    .blog-detail-image {
        height: 450px;
    }
    
    .blog-detail-content {
        padding: 1.5rem;
    }
    
    .blog-detail-content h2 {
        font-size: 1.6rem;
        margin: 1.5rem 0 1rem;
    }
    
    .blog-detail-content h3 {
        font-size: 1.3rem;
        margin: 1.2rem 0 0.8rem;
    }
    
    .blog-detail-content p {
        font-size: 1rem;
        margin-bottom: 1.2rem;
    }
    
    .blog-detail-footer {
        flex-direction: column;
        align-items: flex-start;
    }
    

    
    .blog-detail-sidebar {
        position: static;
    }
}

@media (max-width: 480px) {
    .blog-detail-image {
        height: 350px;
    }
    
    .blog-detail-content {
        padding: 1rem;
    }
    
    .blog-title {
        font-size: 1.8rem;
    }
}

/* Work Detail Page Styles */
.work-detail-section {
    padding: 4rem 0;
    background: white;
}

.work-detail-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
}

.work-detail-main {
    background: white;
}

.work-detail-article {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.work-detail-header {
    padding: 2rem 2rem 0;
}

.work-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    align-items: center;
}

.work-category {
    background: var(--primary-color) !important;
    color: white !important;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    font-weight: 500;
}

.work-date {
    color: var(--text-light);
    font-size: 0.9rem;
}

.work-title {
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.work-client {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 1rem;
}

.client-info, .project-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.client-label, .status-label {
    font-weight: 600;
    color: var(--dark-color);
}

.client-name {
    color: var(--primary-color);
    font-weight: 500;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-badge.completed {
    background: #10b981;
    color: white;
}

.status-badge.ongoing {
    background: #f59e0b;
    color: white;
}

.work-detail-image {
    width: 100%;
    height: 600px;
    overflow: hidden;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-md);
}

.work-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background: white;
    transition: transform 0.3s ease;
}

.work-detail-image img:hover {
    transform: scale(1.02);
}

.work-detail-content {
    padding: 2rem;
    line-height: 1.8;
    color: var(--text-color);
}

.work-detail-content h2 {
    font-size: 1.8rem;
    color: var(--dark-color);
    margin: 2rem 0 1rem;
    font-weight: 600;
}

.work-detail-content h3 {
    font-size: 1.4rem;
    color: var(--dark-color);
    margin: 1.5rem 0 1rem;
    font-weight: 600;
}

.work-detail-content h4 {
    font-size: 1.2rem;
    color: var(--dark-color);
    margin: 1rem 0 0.5rem;
    font-weight: 600;
}

.work-detail-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.work-detail-content ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.work-detail-content li {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.tech-stack {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.tech-category {
    background: var(--light-color);
    padding: 1.5rem;
    border-radius: 0.5rem;
    border-left: 4px solid var(--primary-color);
}

.tech-category h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.tech-category ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tech-category li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 1rem;
}

.tech-category li:last-child {
    border-bottom: none;
}

.project-timeline {
    margin: 2rem 0;
}

.timeline-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 120px;
    top: 0;
    bottom: -2rem;
    width: 2px;
    background: var(--primary-color);
}

.timeline-item:last-child::before {
    display: none;
}

.timeline-date {
    min-width: 120px;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1rem;
}

.timeline-content {
    flex: 1;
    background: var(--light-color);
    padding: 1.5rem;
    border-radius: 0.5rem;
    position: relative;
}

.timeline-content::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 1.5rem;
    width: 16px;
    height: 16px;
    background: var(--primary-color);
    border-radius: 50%;
}

.timeline-content h4 {
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.project-results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.result-item {
    text-align: center;
    background: var(--light-color);
    padding: 2rem 1rem;
    border-radius: 0.5rem;
}

.result-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.result-label {
    font-size: 1rem;
    color: var(--text-color);
    font-weight: 500;
}

.work-detail-content blockquote {
    background: var(--light-color);
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0.5rem;
    font-style: italic;
    font-size: 1.1rem;
}

.work-detail-content blockquote p {
    margin: 0;
    color: var(--dark-color);
}

.work-detail-footer {
    padding: 2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.work-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.work-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.work-links .btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
}

.work-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    gap: 1rem;
}

.work-navigation .nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
    font-weight: 500;
}

.work-navigation .nav-link:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.work-detail-sidebar {
    background: var(--light-color);
    height: fit-content;
    position: sticky;
    top: 6rem;
}

.project-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: white;
    border-radius: 0.5rem;
}

.info-label {
    font-weight: 500;
    color: var(--dark-color);
}

.info-value {
    color: var(--primary-color);
    font-weight: 600;
}

.related-works {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.related-work {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 0.5rem;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.related-work:hover {
    transform: translateY(-2px);
}

.related-work img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 0.5rem;
}

.related-work-content h4 {
    font-size: 1rem;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.related-work-content h4 a {
    text-decoration: none;
    color: var(--dark-color);
    transition: color 0.3s ease;
}

.related-work-content h4 a:hover {
    color: var(--primary-color);
}

.related-work-content .work-category {
    font-size: 0.8rem;
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.5rem;
}

/* Responsive Work Detail */
@media (max-width: 768px) {
    .work-detail-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .work-title {
        font-size: 2rem;
    }
    
    .work-detail-image {
        height: 450px;
    }
    
    .work-detail-header {
        padding: 1.5rem 1.5rem 0;
    }
    
    .work-detail-content {
        padding: 1.5rem;
    }
    
    .work-gallery h3 {
        padding-left: 1.5rem;
    }
    
    .work-client {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .tech-stack {
        grid-template-columns: 1fr;
    }
    
    .project-results {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
    
    .timeline-item {
        flex-direction: column;
        gap: 1rem;
    }
    
    .timeline-item::before {
        display: none;
    }
    
    .timeline-content::before {
        display: none;
    }
    
    .work-detail-footer {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .work-navigation {
        flex-direction: column;
    }
    
    .work-detail-sidebar {
        position: static;
    }
}

@media (max-width: 480px) {
    .work-detail-image {
        height: 350px;
    }
    
    .work-detail-header {
        padding: 1rem 1rem 0;
    }
    
    .work-detail-content {
        padding: 1rem;
    }
    
    .work-title {
        font-size: 1.8rem;
    }
}

/* Work Gallery Styles */
.work-gallery {
    margin: 3rem 0;
}

.work-gallery h3 {
    margin-bottom: 1.5rem;
    color: var(--dark-color);
    font-size: 1.5rem;
    padding-left: 0.5rem;
}

/* Modern Gallery Slider */
.gallery-slider {
    margin-top: 1rem;
}

.gallery-main {
    position: relative;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background: #000;
    margin-bottom: 1rem;
}

.gallery-slide {
    display: none;
    position: relative;
    width: 100%;
    height: 500px;
}

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

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.gallery-slide img:hover {
    transform: scale(1.02);
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    z-index: 10;
}

.gallery-nav:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.gallery-prev {
    left: 20px;
}

.gallery-next {
    right: 20px;
}

.gallery-counter {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.gallery-thumbnails {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.5rem 0;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) transparent;
}

.gallery-thumbnails::-webkit-scrollbar {
    height: 6px;
}

.gallery-thumbnails::-webkit-scrollbar-track {
    background: transparent;
}

.gallery-thumbnails::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

.gallery-thumb {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    border-radius: 0.5rem;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.gallery-thumb.active {
    border-color: var(--primary-color);
    opacity: 1;
}

.gallery-thumb:hover {
    opacity: 1;
    transform: scale(1.05);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Legacy Gallery Grid (fallback) */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

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

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: filter 0.3s ease;
}

.gallery-item:hover img {
    filter: brightness(0.8);
}

/* Responsive Gallery */
@media (max-width: 768px) {
    .gallery-slide {
        height: 300px;
    }
    
    .gallery-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .gallery-thumb {
        width: 60px;
        height: 45px;
    }
    
    .gallery-counter {
        bottom: 15px;
        right: 15px;
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .modal-nav {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .modal-prev {
        left: 15px;
    }
    
    .modal-next {
        right: 15px;
    }
    
    .modal-close {
        top: 15px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 30px;
    }
}

/* GALERİ MODAL CSS - YENİ VERSİYON */
.gallery-modal {
    display: none;
    position: fixed;
    z-index: 999999 !important;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0,0,0,0.95);
    overflow: hidden;
    pointer-events: auto;
}

.gallery-modal.show {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.modal-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

#displayedImage {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}



/* Work Detail Modal Close Button */
.gallery-modal .close-modal {
    position: fixed !important;
    top: 20px !important;
    right: 20px !important;
    color: #ffffff !important;
    font-size: 30px !important;
    font-weight: bold !important;
    cursor: pointer !important;
    z-index: 9999999 !important;
    text-shadow: 0 0 5px rgba(0,0,0,0.8) !important;
    transition: all 0.3s ease !important;
    background: none !important;
    border: none !important;
    outline: none !important;
    padding: 5px !important;
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: #ff0000 !important;
    border-radius: 50% !important;
    pointer-events: auto !important;
}

.gallery-modal .close-modal:hover {
    color: #ff4444;
    transform: scale(1.1);
    background-color: rgba(0,0,0,0.8);
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(59,130,246,0.8);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    color: white;
    font-size: 20px;
    transition: all 0.3s ease;
    border: none;
    outline: none;
    padding: 0;
    z-index: 10001;
}

.prev {
    left: 30px;
}

.next {
    right: 30px;
}

.prev:hover, .next:hover {
    background-color: rgba(59,130,246,1) !important;
    transform: translateY(-50%) scale(1.1);
}

/* PDF MODAL CSS */
.pdf-modal {
    display: none;
    position: fixed;
    z-index: 9999999 !important;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0,0,0,0.95);
    overflow: hidden;
}

.pdf-modal.show {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.pdf-modal-content {
    width: 95%;
    height: 95%;
    background-color: white;
    border-radius: 8px;
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 20px;
    max-width: 1200px;
    max-height: 90vh;
}

/* PDF Modal Title */
#pdfModalTitle {
    color: var(--dark-color);
    margin: 0 0 20px 0;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
}

/* PDF Download Section */
#pdfDownloadSection {
    text-align: center;
    padding: 40px 20px;
    background: var(--light-color);
    border-radius: 8px;
    margin-bottom: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#pdfDownloadSection .btn {
    font-size: 1.1rem;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

#pdfDownloadSection .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* PDF Info Styles */
.pdf-info {
    margin-bottom: 25px;
    text-align: center;
}

.pdf-filename {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-color);
    margin: 10px 0;
    word-break: break-word;
}

.pdf-description {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
    opacity: 0.8;
}

/* PDF Modal Close Button */
.close-pdf-modal {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    color: #ffffff !important;
    font-size: 24px !important;
    font-weight: bold !important;
    cursor: pointer !important;
    z-index: 9999999 !important;
    background-color: #ff0000 !important;
    border: none !important;
    outline: none !important;
    padding: 8px !important;
    width: 35px !important;
    height: 35px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    transition: all 0.3s ease !important;
}

.close-pdf-modal:hover {
    background-color: #cc0000 !important;
    transform: scale(1.1);
}

#pdfViewer {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
    flex: 1;
    min-height: 400px;
}

/* Responsive PDF Modal */
@media (max-width: 768px) {
    .pdf-modal-content {
        width: 98%;
        height: 98%;
        padding: 15px;
    }
    
    #pdfModalTitle {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }
    
    #pdfDownloadSection {
        padding: 30px 15px;
        margin-bottom: 15px;
    }
    
    #pdfDownloadSection .btn {
        font-size: 1rem;
        padding: 12px 25px;
    }
    
    .pdf-filename {
        font-size: 1rem;
    }
    
    .pdf-description {
        font-size: 0.85rem;
    }
    
    .close-pdf-modal {
        width: 30px !important;
        height: 30px !important;
        font-size: 20px !important;
    }
}

/* KVKK Checkbox Styles */
.kvkk-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.kvkk-checkbox input[type="checkbox"] {
    width: auto;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.kvkk-checkbox label {
    margin-bottom: 0;
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--text-color);
}

.kvkk-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.kvkk-link:hover {
    color: var(--dark-color);
    text-decoration: underline;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    width: 90%;
    max-width: 600px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    max-height: 70vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-header {
    padding: 12px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px 8px 0 0;
    text-align: center;
}

.modal-header h3, .modal-header h5 {
    margin: 0;
    font-size: 1.2rem;
}

.modal-body {
    padding: 12px 16px;
    overflow-y: auto;
    flex: 1 1 auto;
}

.modal-footer {
    padding: 12px 16px;
    background-color: #f8f9fa;
    border-top: 1px solid #ddd;
    border-radius: 0 0 8px 8px;
    text-align: center;
}

.modal-footer .btn {
    margin: 0 5px;
}

/* KVKK Modal İçeriği */
.kvkk-content {
    color: var(--text-color);
    line-height: 1.6;
    font-size: 0.95rem;
}

.kvkk-content p {
    margin-bottom: 0.75rem;
}

.kvkk-content ul {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
}

.kvkk-content ul li {
    margin-bottom: 0.25rem;
}

.kvkk-content strong {
    color: var(--dark-color);
    font-weight: 600;
}

/* Basit Modal Stilleri */
.simple-modal {
    max-width: 400px;
}

/* KVKK modalını biraz daha geniş yap */
#kvkkModal .modal-content {
    max-width: 720px;
}

.simple-modal .modal-body p {
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.simple-modal .modal-body small {
    color: var(--text-light);
    font-size: 0.875rem;
}

.simple-modal .kvkk-content {
    font-size: 0.9rem;
    line-height: 1.5;
    text-align: left;
}

.simple-modal .kvkk-content ul {
    margin-bottom: 0.5rem;
    padding-left: 1.25rem;
}

.simple-modal .kvkk-content ul li {
    margin-bottom: 0.2rem;
}

/* Contact form loading overlay and toast */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.35);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}
.loading-overlay.show { display: flex; }
.spinner {
    width: 44px; height: 44px; border-radius: 50%;
    border: 4px solid #fff; border-top-color: transparent;
    animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.toast {
    position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
    background: #1f2937; color: #fff; padding: 12px 16px; border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0,0,0,.2); z-index: 2200; display: none;
}
.toast.show { display: block; animation: fadeInOut 3.2s ease forwards; }
@keyframes fadeInOut { 0%{opacity:0; transform:translate(-50%,10px);} 10%,90%{opacity:1; transform:translate(-50%,0);} 100%{opacity:0; transform:translate(-50%,10px);} }
.toast.success { background:#16a34a; }
.toast.error { background:#dc2626; }