/* ---- GOOGLE FONT İÇERİ AKTARMA ---- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

/* ---- CSS DEĞİŞKENLERİ (RENK PALETİ VE GENEL AYARLAR) ---- */
:root {
    --bg-color: #121212;
    --primary-color: #1E1E1E;
    --text-color: #e0e0e0;
    --heading-color: #ffffff;
    --accent-gradient: linear-gradient(45deg, #00bfff, #1effa3);
    --heading-font: 'Poppins', sans-serif;
}

/* ---- GENEL SIFIRLAMA VE BODY STİLLERİ ---- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--heading-font);
    color: var(--text-color);
    line-height: 1.6;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, #1a1a2e, #16213e, #0f343b, #121212);
    background-size: 30px 30px, 30px 30px, 400% 400%;
    animation: animateGradient 20s ease infinite;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: auto;
    padding: 0 20px;
}

/* ---- HEADER VE NAVİGASYON ---- */
header {
    background-color: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 10;
}

.logo {
    height: 40px; /* Header yüksekliğine uygun */
    display: flex;
    align-items: center;
}

.logo img {
    height: 100%; /* Div'in yüksekliğine uyar */
    width: auto;
    max-width: 180px; /* Logonun çok geniş olmasını engeller */
    transition: transform 0.2s ease-in-out;
}

.logo img:hover {
    transform: scale(1.05); /* Fare üzerine gelince hafif büyüme efekti */
}
header .container { display: flex; justify-content: space-between; align-items: center; }

nav ul { list-style: none; display: flex; }
nav ul li { margin-left: 25px; }
nav ul li a { color: var(--text-color); text-decoration: none; font-weight: 400; transition: color 0.3s ease; }
nav ul li a:hover { color: white; }
nav ul li a.active { background: var(--accent-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 600; }

/* ---- FOOTER ---- */
footer { text-align: center; padding: 30px 0; margin-top: 60px; border-top: 1px solid rgba(255, 255, 255, 0.1); }

/* ---- ANA SAYFA BÖLÜMLERİ ---- */
.hero { text-align: center; padding: 120px 0; }
.hero h2 { font-size: 3.5rem; margin-bottom: 1rem; font-weight: 700; color: var(--heading-color); }
.hero p { font-size: 1.2rem; margin-bottom: 2rem; font-weight: 300; max-width: 600px; margin-left: auto; margin-right: auto; }

.references { padding: 60px 0; background-color: var(--primary-color); border-top: 1px solid rgba(255, 255, 255, 0.1); border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.section-subtitle { text-align: center; color: rgba(255, 255, 255, 0.5); font-size: 0.9rem; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 40px; }
.logos-container { display: flex; justify-content: space-around; align-items: center; flex-wrap: wrap; gap: 40px; }
.logos-container img { max-height: 35px; width: auto; opacity: 0.6; filter: grayscale(100%) brightness(1.5); transition: all 0.3s ease-in-out; }
.logos-container img:hover { opacity: 1; filter: grayscale(0%) brightness(1); transform: scale(1.1); }

.showcase { padding: 80px 0; }
.showcase h3 { text-align: center; font-size: 2.8rem; margin-bottom: 50px; color: var(--heading-color); }
.showcase-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.grid-item { background-color: var(--primary-color); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 12px; padding: 30px; transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease; position: relative; height: 100%; }
@media (min-width: 768px) { .showcase-grid { grid-template-columns: repeat(3, 1fr); } .grid-item--large { grid-column: span 2; grid-row: span 2; } .grid-item--wide { grid-column: span 2; } }
.grid-item h4 { font-size: 1.6rem; margin-bottom: 10px; color: var(--heading-color); }

.final-cta { padding: 80px 20px; text-align: center; background: var(--accent-gradient); }
.final-cta h2 { font-size: 2.8rem; color: var(--primary-color); margin-bottom: 15px; }
.final-cta p { font-size: 1.1rem; color: #1E1E1E; margin-bottom: 30px; max-width: 600px; margin-left: auto; margin-right: auto; }
.cta-buttons { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }

/* ---- GENEL BİLEŞENLER VE ALT SAYFA STİLLERİ ---- */
.cta-button { background: var(--accent-gradient); color: #000; padding: 15px 35px; border: none; border-radius: 8px; text-decoration: none; font-weight: 600; display: inline-block; transition: transform 0.2s cubic-bezier(0.215, 0.61, 0.355, 1), box-shadow 0.3s ease; }
.cta-button:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0, 191, 255, 0.2); }
.cta-button.cta-button--secondary { background: transparent; border: 2px solid var(--primary-color); color: var(--primary-color); }
.cta-button.cta-button--secondary:hover { background: var(--primary-color); color: white; box-shadow: 0 10px 20px rgba(0,0,0,0.2); }

.page-header { text-align: center; padding: 60px 20px; }
.page-header h2 { font-size: 3rem; color: var(--heading-color); margin-bottom: 10px; }
.service-details, .portfolio, .contact { padding: 80px 0; }
.service-content-wrapper { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 50px; align-items: center; }
.service-text h3 { font-size: 2.2rem; color: var(--heading-color); margin-bottom: 20px; }
.service-text h4 { font-size: 1.5rem; color: var(--heading-color); margin-top: 30px; margin-bottom: 15px; }
.service-list { list-style: none; padding-left: 0; }
.service-list li { padding: 10px 0 10px 25px; position: relative; font-size: 1.1rem; }
.service-list li::before { content: '✓'; position: absolute; left: 0; background: var(--accent-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.service-image img { width: 100%; border-radius: 12px; }

.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.portfolio-item { background-color: var(--primary-color); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 12px; overflow: hidden; transition: box-shadow 0.3s ease; }
.portfolio-item:hover { box-shadow: 0 8px 30px rgba(0, 191, 255, 0.15); }
.portfolio-image { overflow: hidden; height: 220px; }
.portfolio-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease-out; }
.portfolio-item:hover .portfolio-image img { transform: scale(1.1); }
.portfolio-content { padding: 25px; }
.portfolio-tags { margin-bottom: 15px; }
.portfolio-tags span { background-color: rgba(0, 191, 255, 0.1); color: var(--accent-gradient); padding: 5px 10px; border-radius: 5px; font-size: 0.8rem; margin-right: 5px; font-weight: 600; }
.portfolio-content h4 { font-size: 1.5rem; color: var(--heading-color); margin-bottom: 10px; }
.portfolio-content p { font-size: 0.95rem; margin-bottom: 20px; }
.portfolio-link { color: var(--text-color); text-decoration: none; font-weight: 600; transition: color 0.3s ease; }
.portfolio-link:hover { background: var(--accent-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }

.contact-wrapper { display: grid; grid-template-columns: 1fr 2fr; gap: 50px; }
.contact-info h4 { font-size: 1.8rem; color: var(--heading-color); margin-bottom: 20px; }
.contact-info p { margin-bottom: 30px; }
.info-item { display: flex; align-items: center; margin-bottom: 20px; }
.info-item svg { color: var(--accent-gradient); stroke: url(#accent-gradient); margin-right: 15px; min-width: 24px; }
.form-group { margin-bottom: 20px; }
.contact-form input, .contact-form textarea { width: 100%; padding: 15px; background-color: var(--bg-color); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 8px; color: var(--text-color); font-family: var(--heading-font); font-size: 1rem; transition: border-color 0.3s ease, box-shadow 0.3s ease; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: rgba(0, 191, 255, 0.5); box-shadow: 0 0 15px rgba(0, 191, 255, 0.1); }
.contact-form button { width: 100%; border: none; cursor: pointer; }

.video-gallery { padding: 60px 0; }
.video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 30px; }
.video-embed-wrapper { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: 12px; }
.video-embed-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }

.cta-section { background-color: var(--primary-color); padding: 60px 20px; text-align: center; }
.cta-section h3 { font-size: 2.5rem; margin-bottom: 15px; }
.cta-section p { margin-bottom: 30px; font-size: 1.1rem; }

/* ---- EFEKTLER VE ANİMASYONLAR ---- */
.parallax-bg { background-image: 
        linear-gradient(rgba(18, 18, 18, 0.7), rgba(18, 18, 18, 0.7)),
        url('images/parallax-bg.jpg'); background-size: cover; background-position: center; background-attachment: fixed; }
.hidden { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.show { opacity: 1; transform: translateY(0); }

#hero-title { opacity: 0; }
#hero-title.is-visible { opacity: 1; }
.word-wrapper { display: inline-block; overflow: hidden; vertical-align: bottom; }
.word { display: block; transform: translateY(110%); transition: transform 0.6s cubic-bezier(0.215, 0.61, 0.355, 1); }
.is-visible .word { transform: translateY(0); }

.grid-item-link { text-decoration: none; color: inherit; display: block; }
.grid-item-icon { margin-bottom: 20px; color: var(--accent-gradient); stroke: url(#accent-gradient); background: var(--accent-gradient); -webkit-background-clip: text; background-clip: text; }
.grid-arrow { position: absolute; bottom: 30px; right: 30px; font-size: 1.5rem; opacity: 0; transform: translateX(-10px); transition: opacity 0.3s ease, transform 0.3s ease; }
.grid-item-link:hover .grid-item { border-color: rgba(0, 191, 255, 0.5); transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.4); }
.grid-item-link:hover .grid-arrow { opacity: 1; transform: translateX(0); }

.transition-fade { transition: opacity 0.4s ease, transform 0.4s ease; opacity: 1; transform: translateY(0); }
html.is-leaving .transition-fade { opacity: 0; transform: translateY(20px); }
html.is-animating .transition-fade { opacity: 0; transform: translateY(20px); }

@keyframes animateGradient { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }

/* ---- RESPONSIVE DÜZENLEMELER ---- */
@media (max-width: 820px) { .contact-wrapper { grid-template-columns: 1fr; } }
@media (max-width: 768px) { nav ul { display: none; } .hero h2 { font-size: 2.5rem; } }
/* ---- FOOTER NAVİGASYON VE YASAL İÇERİK STİLLERİ ---- */

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Küçük ekranlar için */
    gap: 10px;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: white;
    text-decoration: underline;
}

.legal-content {
    padding: 80px 0;
}

.legal-content .container {
    max-width: 800px; /* Metnin okunabilirliğini artırmak için genişliği daralt */
}

.legal-content h3 {
    font-size: 1.8rem;
    color: var(--heading-color);
    margin-top: 30px;
    margin-bottom: 15px;
}

.legal-content p, .legal-content li {
    line-height: 1.8;
    color: var(--text-color);
}

.legal-content ul {
    list-style-position: inside;
    margin-top: 15px;
}

.legal-content a {
    color: var(--accent-gradient);
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    text-decoration: none;
}
.legal-content a:hover {
    text-decoration: underline;
}


/* Mobil için footer düzenlemesi */
@media (max-width: 500px) {
    footer .container {
        flex-direction: column; /* Elemanları alt alta diz */
        justify-content: center;
    }
}

/* ---- SOSYAL MEDYA İKONLARI STİLLERİ ---- */

.social-title {
    font-size: 1.5rem;
    color: var(--heading-color);
    margin-top: 40px; /* Üstteki elemanlarla arasına boşluk koyar */
    margin-bottom: 20px;
}

.social-icons {
    display: flex; /* İkonları yatayda yan yana dizmek için */
    gap: 15px; /* İkonlar arasına boşluk koyar */
}

.social-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%; /* İkonları daire içine alır */
    text-decoration: none;
    transition: all 0.3s ease; /* Tüm animasyonların yumuşak olmasını sağlar */
}

.social-icon svg {
    width: 22px;
    height: 22px;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

/* Hover Efekti */
.social-icon:hover {
    background: var(--accent-gradient); /* Arka planı ana gradyan rengimizle değiştirir */
    transform: translateY(-5px); /* İkonu hafifçe yukarı kaldırır */
    box-shadow: 0 8px 15px rgba(0, 191, 255, 0.2);
}

.social-icon:hover svg {
    color: var(--primary-color); /* İkon rengini koyu yapar */
}

/* ---- MOBİL MENÜ STİLLERİ ---- */

.mobile-nav-toggle {
    display: none; /* Varsayılan olarak (geniş ekranda) gizli */
}

/* 768px ve altındaki ekranlar için */
@media (max-width: 768px) {
    /* Mevcut header'daki ul menüsünü gizle */
    header nav > ul {
        display: none;
    }

    /* Mobil menü panelinin kendisi */
    .primary-navigation {
        display: flex;
        position: fixed;
        z-index: 1000;
        inset: 0 0 0 30%; /* Üst, alt ve sağ 0, soldan %30 boşluk bırakarak ekranın %70'ini kaplar */
        flex-direction: column;
        padding: min(20vh, 10rem) 2em;
        gap: 2em;
        background: rgba(18, 18, 18, 0.9);
        backdrop-filter: blur(10px);
        transform: translateX(100%); /* Başlangıçta ekranın sağında gizli */
        transition: transform 350ms ease-out;
    }

    /* Menü görünür olduğunda */
    .primary-navigation[data-visible="true"] {
        transform: translateX(0%);
    }

    /* Mobil menüdeki linkler */
    .primary-navigation a {
        font-size: 1.2rem;
        font-weight: 600;
    }
    
    /* Hamburger butonunu görünür yap */
    .mobile-nav-toggle {
        display: block;
        position: absolute;
        z-index: 2000;
        right: 1rem;
        top: 1.5rem;
        background: transparent;
        border: 0;
        width: 2rem;
        aspect-ratio: 1;
        cursor: pointer;
    }
    
    /* Hamburger ikonunun çizgileri */
    .mobile-nav-toggle .sr-only { display: none; }
    .mobile-nav-toggle::before,
    .mobile-nav-toggle::after,
    .mobile-nav-toggle span {
        content: '';
        position: absolute;
        width: 2rem;
        height: 3px;
        background: white;
        left: 0;
        transition: transform 300ms ease-in-out, opacity 200ms linear;
    }
    .mobile-nav-toggle::before { top: 0.5rem; }
    .mobile-nav-toggle span { top: 1rem; }
    .mobile-nav-toggle::after { top: 1.5rem; }

    /* Menü açıkken hamburger ikonunu 'X' işaretine dönüştür */
    .mobile-nav-toggle[aria-expanded="true"]::before {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .mobile-nav-toggle[aria-expanded="true"] span {
        opacity: 0;
    }
    .mobile-nav-toggle[aria-expanded="true"]::after {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    /* ---- HAKKIMIZDA SAYFASI STİLLERİ ---- */

.values-section {
    padding: 60px 0;
    background-color: var(--primary-color);
}

.values-grid {
    display: grid;
    /* Geniş ekranlarda 3 sütun, dar ekranlarda 1 sütun */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    text-align: center;
}

.value-item h4 {
    font-size: 1.5rem;
    color: var(--heading-color);
    margin-bottom: 10px;
}

.value-item p {
    font-size: 0.95rem;
    color: var(--text-color);
}
}