:root {
    --primary: #0066b2;
    --primary-dark: #004880;
    --dark: #1e293b;
    --light: #f8fafc;
    --gray: #64748b;
    --light-gray: #e2e8f0;
    --white: #ffffff;
    --logo-turquoise: #00acc1;
    --logo-gold: #c49a55;
    --transition: all 0.3s ease;
}

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

html {
    font-family: 'Montserrat', sans-serif;
    color: var(--dark);
    background-color: var(--white);
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    line-height: 1.6;
}

img {
    max-width: 100%;
}

button,
input,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 2rem;
}

/* =========================
   SAYFA GEÇİŞLERİ
========================= */

.page-view {
    display: none;
    animation: fadeIn 0.4s ease-in-out;
}

.page-view.active-page {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================
   ÜST BİLGİ ÇUBUĞU
========================= */

.top-bar {
    background-color: var(--dark);
    color: var(--white);
    font-size: 0.85rem;
    padding: 8px 0;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
}

.contact-info span {
    display: inline-flex;
    align-items: center;
}

.contact-info i,
.social-links i {
    color: var(--primary);
    margin-right: 5px;
}

.social-links a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    color: #93c5fd;
}

/* =========================
   HEADER
========================= */

.header {
    position: sticky;
    top: 0;
    z-index: 1000;

    width: 100%;
    min-height: 90px;
    padding: 12px max(20px, calc((100% - 1160px) / 2));

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;

    background-color: var(--white);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

/* =========================
   KODLA OLUŞTURULAN LOGO
========================= */

.logo,
.custom-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;

    text-decoration: none;
    cursor: pointer;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.logo-main {
    display: block;

    font-family: 'Montserrat', sans-serif;
    font-size: 32px;
    font-weight: 800;
    line-height: 1;

    color: var(--logo-turquoise);
    letter-spacing: 3px;
}

.logo-sub-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    width: 100%;
    margin-top: 6px;
}

.logo-line {
    display: block;
    height: 2px;
    min-width: 10px;
    flex: 1;

    background-color: #111111;
}

.logo-sub {
    display: block;

    font-family: 'Montserrat', sans-serif;
    font-size: 8px;
    font-weight: 700;
    line-height: 1.4;

    color: #111111;
    letter-spacing: 0.5px;
    white-space: nowrap;
    text-transform: uppercase;
}

/* Eski logo sınıflarıyla çakışmayı önle */
.logo-icon {
    display: none;
}

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

/* =========================
   NAVİGASYON MENÜSÜ
========================= */

.nav-menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 24px;
}

.nav-link {
    display: inline-flex;
    align-items: center;

    text-decoration: none;
    color: var(--dark);

    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;

    cursor: pointer;
    transition: var(--transition);
}

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

.btn-contact {
    background: var(--primary);
    color: var(--white) !important;
    padding: 10px 18px;
    border-radius: 6px;
}

.btn-contact:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.hamburger {
    display: none;

    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;

    background: transparent;
    border: 0;
    border-radius: 6px;

    font-size: 1.5rem;
    color: var(--dark);
    cursor: pointer;
    transition: var(--transition);
}

.hamburger:hover {
    background: var(--light);
}

/* =========================
   SAYFA BAŞLIKLARI
========================= */

.page-header {
    background: linear-gradient(135deg, #0f2027, #203a43);
    color: var(--white);
    padding: 40px 0;
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 2rem;
    line-height: 1.3;
    margin-bottom: 12px;
}

.page-header p {
    color: #cbd5e1;
}

.btn-back {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    margin-bottom: 15px;
    transition: var(--transition);
}

.btn-back:hover {
    background: var(--primary);
}

/* =========================
   HERO / ANA BÖLÜM
========================= */

.hero {
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    color: var(--white);
    padding: 90px 0;
    text-align: center;
}

.hero-content {
    max-width: 1000px;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    line-height: 1.2;
    font-weight: 800;
    margin-bottom: 20px;
}

.hero p {
    max-width: 760px;
    margin: 0 auto 30px;
    font-size: 1.1rem;
    color: #cbd5e1;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

/* =========================
   BUTONLAR
========================= */

.btn {
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

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

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

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

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

/* =========================
   ÖZELLİKLER
========================= */

.features {
    margin-top: -40px;
    position: relative;
    z-index: 10;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.feature-card {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.feature-card h3 {
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--gray);
}

/* =========================
   GENEL BÖLÜMLER
========================= */

section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 2rem;
    line-height: 1.3;
    margin-top: 8px;
}

.section-subtitle {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    display: block;
}

/* =========================
   HİZMETLER VE REFERANS KARTLARI
========================= */

.services-grid,
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

.service-card,
.project-card {
    min-width: 0;
    background: var(--white);
    padding: 25px;
    border-radius: 10px;
    border: 1px solid var(--light-gray);
    cursor: pointer;
    transition: var(--transition);
}

.service-card:hover,
.project-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.service-card h3,
.project-card h3 {
    margin-bottom: 10px;
}

.service-card p,
.project-card p {
    color: var(--gray);
}

.service-icon {
    width: 50px;
    height: 50px;
    background: rgba(0, 102, 178, 0.1);
    color: var(--primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.read-more {
    display: inline-block;
    margin-top: 15px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.85rem;
}

.project-img-holder {
    width: 100%;
    height: 210px;
    overflow: hidden;
    border-radius: 6px;
    margin-bottom: 15px;
    background: var(--light-gray);
}

.project-img-holder img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-year {
    display: inline-block;
    margin-bottom: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
}

.project-info h3 {
    margin-bottom: 8px;
}

/* =========================
   DETAYLI HİZMETLER
========================= */

.services-full-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.service-detail-box {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    background: var(--light);
    padding: 30px;
    border-radius: 10px;
    border-left: 5px solid var(--primary);
}

.service-detail-box .s-icon {
    flex-shrink: 0;
    font-size: 3rem;
    color: var(--primary);
}

.service-detail-box h2 {
    font-size: 1.4rem;
    line-height: 1.4;
    margin-bottom: 10px;
}

.service-detail-box p {
    color: var(--gray);
    margin-bottom: 15px;
    line-height: 1.7;
}

.service-detail-box ul {
    list-style-position: inside;
    color: var(--dark);
    font-weight: 500;
}

.service-detail-box li {
    margin-bottom: 5px;
}

/* =========================
   DETAYLI REFERANSLAR
========================= */

.projects-full-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.project-detail-card {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    background: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: 10px;
    overflow: hidden;
}

.p-img-holder {
    min-height: 240px;
    background: var(--light-gray);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--gray);
    gap: 10px;
}

.p-img-holder img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 240px;
    object-fit: cover;
}

.p-img-holder i {
    font-size: 3rem;
}

.p-details {
    min-width: 0;
    padding: 30px;
}

.p-badge {
    display: inline-block;
    background: rgba(0, 102, 178, 0.1);
    color: var(--primary);
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
}

.p-details h2 {
    margin: 10px 0;
    font-size: 1.5rem;
    line-height: 1.4;
}

.p-details p {
    color: var(--gray);
    line-height: 1.7;
}

.p-meta {
    font-size: 0.85rem;
    color: var(--dark);
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    border-top: 1px solid var(--light-gray);
    padding-top: 15px;
    margin-top: 15px;
}

/* =========================
   HAKKIMIZDA
========================= */

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.image-placeholder {
    min-height: 280px;
    background: var(--light);
    border: 1px dashed var(--light-gray);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--gray);
}

.image-placeholder i {
    font-size: 3rem;
}

.about-text h2 {
    margin: 10px 0 15px;
    line-height: 1.4;
}

.about-text p {
    color: var(--gray);
    margin-bottom: 15px;
    line-height: 1.8;
}

/* =========================
   İLETİŞİM
========================= */

.contact-box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    background: var(--white);
    border-radius: 10px;
    border: 1px solid var(--light-gray);
    overflow: hidden;
}

.contact-details {
    background: var(--dark);
    color: var(--white);
    padding: 40px;
}

.contact-details h2 {
    margin-bottom: 15px;
}

.contact-details>p {
    color: #cbd5e1;
}

.c-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-top: 25px;
}

.c-item i {
    color: #38bdf8;
    font-size: 1.2rem;
    margin-top: 3px;
}

.c-item p {
    color: #cbd5e1;
    overflow-wrap: anywhere;
}

.contact-form {
    min-width: 0;
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form h3 {
    margin-bottom: 5px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--light-gray);
    border-radius: 5px;
    background: var(--white);
    color: var(--dark);
    outline: none;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 102, 178, 0.1);
}

.contact-form textarea {
    resize: vertical;
}

/* =========================
   FOOTER
========================= */

.footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 25px 0;
    text-align: center;
    font-size: 0.85rem;
}

.footer p {
    line-height: 1.7;
}

/* =========================
   TABLET
========================= */

@media (max-width: 1000px) {
    .header {
        gap: 18px;
    }

    .nav-menu {
        gap: 15px;
    }

    .nav-link {
        font-size: 0.82rem;
    }

    .logo-main {
        font-size: 29px;
    }

    .logo-sub {
        font-size: 7px;
    }

    .project-detail-card {
        grid-template-columns: 250px minmax(0, 1fr);
    }

    .p-details {
        padding: 24px;
    }
}

/* =========================
   MOBİL MENÜ
========================= */

@media (max-width: 768px) {
    .top-bar {
        display: none;
    }

    .header {
        min-height: 76px;
        padding: 10px 18px;
        gap: 12px;
    }

    .logo-main {
        font-size: 29px;
        letter-spacing: 2.5px;
    }

    .logo-sub-wrapper {
        gap: 5px;
        margin-top: 5px;
    }

    .logo-sub {
        font-size: 7px;
        letter-spacing: 0.4px;
    }

    .logo-line {
        height: 2px;
        min-width: 8px;
    }

    .hamburger {
        display: inline-flex;
        flex-shrink: 0;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;

        width: 100%;
        padding: 18px 20px 22px;

        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 5px;

        background: var(--white);
        box-shadow: 0 12px 18px rgba(0, 0, 0, 0.08);
        border-top: 1px solid var(--light-gray);
    }

    .nav-menu.show {
        display: flex;
    }

    .nav-link {
        width: 100%;
        padding: 12px 10px;
        font-size: 0.9rem;
        white-space: normal;
    }

    .btn-contact {
        justify-content: center;
        margin-top: 5px;
    }

    .hero {
        padding: 70px 0;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .features {
        margin-top: -25px;
    }

    section {
        padding: 45px 0;
    }

    .section-title h2 {
        font-size: 1.7rem;
    }

    .service-detail-box {
        flex-direction: column;
        gap: 15px;
        padding: 24px;
    }

    .service-detail-box .s-icon {
        font-size: 2.5rem;
    }

    .project-detail-card {
        grid-template-columns: minmax(0, 1fr);
    }

    .p-img-holder,
    .p-img-holder img {
        height: 230px;
        min-height: 230px;
    }

    .p-details {
        padding: 24px;
    }

    .about-container {
        grid-template-columns: minmax(0, 1fr);
        gap: 25px;
    }

    .contact-box {
        grid-template-columns: minmax(0, 1fr);
    }

    .contact-details,
    .contact-form {
        padding: 28px 24px;
    }
}

/* =========================
   KÜÇÜK TELEFONLAR
========================= */

@media (max-width: 380px) {
    .header {
        padding: 10px 12px;
    }

    .logo-main {
        font-size: 25px;
        letter-spacing: 2px;
    }

    .logo-sub {
        font-size: 6px;
        letter-spacing: 0.25px;
    }

    .logo-sub-wrapper {
        gap: 4px;
    }

    .hamburger {
        width: 36px;
        height: 36px;
        font-size: 1.3rem;
    }

    .hero h1 {
        font-size: 1.7rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .p-details {
        padding: 20px;
    }
}

/* =========================
   HAREKET AZALTMA TERCİHİ
========================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

    /* WhatsApp butonu */
    .whatsapp-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 10px 18px;
        background-color: #25D366;
        color: #ffffff;
        text-decoration: none;
        font-family: 'Montserrat', sans-serif;
        font-size: 14px;
        font-weight: 600;
        border-radius: 8px;
        transition: all 0.3s ease;
        cursor: pointer;
    }

    .whatsapp-button i {
        font-size: 20px;
    }

    .whatsapp-button:hover {
        background-color: #128C7E;
        color: #ffffff;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.25);
    }

    /* MOBİLDE ÜST BİLGİ ÇUBUĞUNU GÖSTER */
    @media screen and (max-width: 768px) {
        .top-bar {
            display: block !important;
            width: 100%;
            height: auto;
            padding: 8px 0;
            overflow: visible;
        }

        .top-bar-content {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 8px;
            width: 100%;
            padding: 0 10px;
            box-sizing: border-box;
        }

        .contact-info,
        .social-links {
            display: flex !important;
            flex-wrap: wrap;
            align-items: center;
            justify-content: center;
            gap: 8px 12px;
            width: 100%;
            text-align: center;
        }

        .contact-info span,
        .social-links a {
            font-size: 11px;
            line-height: 1.5;
            overflow-wrap: anywhere;
        }

        .social-links a {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 4px;
        }

        .whatsapp-button {
            display: inline-flex !important;
            align-items: center;
            justify-content: center;
        }
    }

}

/* =========================
   ERSAN GROUP - ÜRÜNLERİMİZ
========================= */

.products-section {
    padding: 50px 0 70px;
    background: var(--white);
}

.products-section .section-title>p {
    color: var(--gray);
    margin-top: 12px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.product-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: 10px;
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.product-image {
    height: 220px;
    position: relative;
    overflow: hidden;
    background: var(--light);
}

.product-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.04);
}

.product-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 12px;
    border-radius: 20px;
    background: var(--white);
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 700;
}

.product-info {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    padding: 22px;
}

.product-info h3 {
    margin-bottom: 10px;
    font-size: 1.1rem;
    line-height: 1.5;
    color: var(--dark);
}

.product-info p {
    margin-bottom: 20px;
    color: var(--gray);
    font-size: 0.9rem;
    line-height: 1.8;
}

.product-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: auto;
    padding: 11px 18px;
    border-radius: 6px;
    background: #16834a;
    color: var(--white);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
}

.product-button:hover {
    background: #10683a;
    color: var(--white);
}

.products-contact {
    margin-top: 45px;
    padding: 35px 20px;
    text-align: center;
    background: var(--light);
    border-radius: 10px;
}

.products-contact h2 {
    margin-bottom: 10px;
    font-size: 1.5rem;
    color: var(--dark);
}

.products-contact p {
    margin-bottom: 20px;
    color: var(--gray);
}

.products-contact .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Tablet */
@media (max-width: 1000px) {
    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }
}

/* Mobil */
@media (max-width: 768px) {
    .products-section {
        padding: 35px 0 45px;
    }

    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .product-image {
        height: 165px;
    }

    .product-info {
        padding: 15px;
    }

    .product-info h3 {
        font-size: 0.98rem;
    }

    .product-info p {
        font-size: 0.84rem;
    }

    .product-button {
        width: 100%;
        padding: 11px 8px;
        font-size: 0.82rem;
    }

    .products-contact h2 {
        font-size: 1.25rem;
    }
}

/* Küçük telefonlar */
@media (max-width: 380px) {
    .products-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .product-image {
        height: 220px;
    }

    .product-info {
        padding: 20px;
    }
}
