:root {
    --primary-color: #2c3e50;
    --secondary-color: #c0392b;
    --accent-color: #e67e22;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

/* Modern reset */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 10;
}

/* Modern görsel efektler */
.reveal-text {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    transform: translateY(100%);
    opacity: 0;
}

/* Özel imleç */
.custom-cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
}

/* Header Stiller */
.top-bar {
    background: var(--primary-color);
    color: var(--white);
    padding: 10px 0;
    font-size: 0.9rem;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-links a {
    color: var(--white);
    margin-left: 15px;
    text-decoration: none;
}

.header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

/* Logo stilleri */
.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: var(--primary-color);
}

.logo-img {
    height: 50px;
    /* Logo yüksekliği */
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--accent-color);
}

/* Hero Section */
.hero {
    height: 50vh;
    min-height: 300px;
    max-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    position: relative;
    z-index: 1;
    padding-top: 80px;
    /* Header yüksekliği kadar padding */
}

.hero-content {
    text-align: center;
    color: var(--primary-color);
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 700;
    color: var(--primary-color);
}

.hero-text {
    font-size: 1.2rem;
    margin-bottom: 30px;
    font-weight: 500;
    color: var(--text-color);
}

/* Butonlar */
.btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background: var(--accent-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    transition: var(--transition);
}

.btn-primary:hover {
    background: darken(var(--accent-color), 10%);
    transform: translateY(-2px);
}

.btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    text-decoration: none;
    border-radius: 5px;
    transition: var(--transition);
    margin-top: auto;
    width: fit-content;
    font-weight: 500;
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Section Stiller */
.section-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 25px;
}

section {
    padding: 80px 0;
}

/* Mobil menü stilleri */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--white);
        padding: 20px;
        flex-direction: column;
        align-items: center;
        transform: translateY(-20px);
        opacity: 0;
        pointer-events: none;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        opacity: 1;
        pointer-events: all;
        transform: translateY(0);
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .about-grid,
    .services-grid,
    .team-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .logo-img {
        height: 40px;
        /* Mobilde daha küçük logo */
    }

    .logo-text {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }
}

/* Sayfa içeriği için padding */
main {
    padding-top: 120px;
    /* Header yüksekliği + extra padding */
}

/* İç sayfa hero bölümü */
.page-hero {
    background: linear-gradient(rgba(44, 62, 80, 0.8), rgba(44, 62, 80, 0.8)),
        url('../images/hero-bg.jpg') center/cover;
    padding: 60px 0;
    color: var(--white);
    margin-bottom: 60px;
}

.page-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.breadcrumb {
    color: rgba(255, 255, 255, 0.8);
}

.breadcrumb a {
    color: var(--white);
    text-decoration: none;
}

/* Transition layer */
.transition-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    transform: scaleY(0);
    z-index: 9999;
}

/* Service Cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* 2'li hizalama */
    gap: 40px;
    /* Kartlar arasındaki boşluk */
    margin: 40px auto;
    max-width: 1200px;
    padding: 0 20px;
}

.service-card {
    width: 100%;
    height: 320px;
    /* Biraz daha yükseklik ekledik */
    perspective: 1000px;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.service-card:hover .card-inner {
    transform: rotateY(180deg);
}

/* Ön ve arka yüz */
.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    backface-visibility: hidden;
    padding: 35px;
    /* Padding artırıldı */
    text-align: center;
    transition: background 0.5s ease;
}

.card-front {
    background: var(--white);
}

.card-back {
    background: var(--secondary-color);
    color: white;
    transform: rotateY(180deg);
}

.card-back ul {
    list-style: none;
    padding: 0;
    margin: 20px 0 0;
    width: 100%;
    /* Liste genişliği artırıldı */
}

.card-back li {
    margin: 12px 0;
    font-size: 1rem;
    opacity: 0.9;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.card-back li:last-child {
    border-bottom: none;
}

.service-icon {
    font-size: 3rem;
    /* İkon boyutu artırıldı */
    color: var(--accent-color);
    margin-bottom: 20px;
}

.card-front h3,
.card-back h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
    /* Font boyutu artırıldı */
}

.card-front p {
    font-size: 1rem;
    opacity: 0.8;
    margin: 0;
    line-height: 1.5;
}

/* Blog Cards */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 40px 0;
}

.blog-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-image {
    width: 100%;
    height: 220px;
    /* Sabit yükseklik */
    overflow: hidden;
    position: relative;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-text {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-text h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.blog-text p {
    margin-bottom: 20px;
    flex-grow: 1;
}

.blog-buttons {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 15px;
    margin-top: auto;
}

.btn-secondary,
.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    text-decoration: none;
    border-radius: 5px;
    transition: var(--transition);
    font-weight: 500;
    font-size: 0.95rem;
    height: 45px;
    box-sizing: border-box;
}

.btn-secondary:hover,
.share-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.share-btn {
    cursor: pointer;
}

.blog-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
    display: flex;
    gap: 15px;
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-meta i {
    color: var(--accent-color);
}

/* Blog Detay Sayfası */
.blog-detail {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

.blog-detail .blog-header {
    text-align: center;
    margin-bottom: 30px;
}

.blog-detail .blog-image {
    height: 400px;
    margin-bottom: 30px;
    border-radius: 10px;
}

.blog-content {
    line-height: 1.8;
    color: #444;
}

/* Sosyal Paylaşım */
.share-buttons {
    display: flex;
    gap: 10px;
    margin: 30px 0;
    justify-content: center;
}

.share-button {
    padding: 8px 15px;
    border-radius: 5px;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: opacity 0.3s;
}

.share-button:hover {
    opacity: 0.9;
}

.share-button.whatsapp {
    background: #25D366;
}

.share-button.twitter {
    background: #1DA1F2;
}

.share-button.linkedin {
    background: #0077B5;
}

.share-button.instagram {
    background: #E4405F;
}

.share-button.facebook {
    background: #1877F2;
}

/* Blog İstatistikleri */
.blog-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
    color: #666;
    font-size: 0.9rem;
}

.blog-stats span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Stats Section */
.stats-section {
    background: var(--light-bg);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.stat-item p {
    color: var(--text-color);
    font-weight: 500;
    font-size: 1.1rem;
}

/* About Section */
.about-section {
    padding: 100px 0;
    background: var(--white);
    position: relative;
    z-index: 2;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.about-content {
    padding: 0;
}

.about-content .section-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    font-weight: 700;
}

.content-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 30px;
    opacity: 0.9;
}

.about-features {
    list-style: none;
    margin: 30px 0;
}

.about-features li {
    margin: 15px 0;
    padding-left: 30px;
    position: relative;
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 500;
}

.about-features li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* Responsive düzenlemeler */
@media (max-width: 992px) {
    .hero {
        height: 70vh;
        min-height: 500px;
    }

    .hero-title {
        font-size: 3rem;
    }

    .about-grid {
        gap: 30px;
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .hero {
        height: 60vh;
        min-height: 400px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-text {
        font-size: 1.1rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 20px;
    }

    .about-content {
        text-align: center;
    }

    .about-content .section-title {
        text-align: center;
    }

    .about-features li {
        padding-left: 0;
        text-align: center;
    }

    .about-features li:before {
        display: none;
    }
}

/* Text Center Helper */
.text-center {
    text-align: center;
}

/* Mobil responsive */
@media (max-width: 992px) {
    .services-grid {
        gap: 30px;
    }

    .service-card {
        height: 300px;
    }

    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-section {
        padding: 100px 0 50px;
        /* Mobilde padding'i azalttık */
    }

    .about-row {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        /* Mobilde tek sütun */
        gap: 25px;
    }

    .service-card {
        height: 280px;
    }

    .card-front,
    .card-back {
        padding: 25px;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }
}

/* Blog Form */
.blog-form {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.blog-form .form-group {
    margin-bottom: 20px;
}

.blog-form label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
}

/* TinyMCE özelleştirmeleri */
.tox-tinymce {
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
}

.tox .tox-statusbar {
    border-top: 1px solid #ddd !important;
}

/* Form gönderim butonu */
.blog-form .btn-primary {
    margin-top: 20px;
    width: 100%;
    padding: 15px;
}