/* ==========================================
   1. TEMEL SIFIRLAMALAR VE AYARLAR
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    background-color: #000000;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    overflow: hidden !important;
}

p {
    text-align: justify;
    -webkit-hyphens: auto;
    hyphens: auto;
}

.hidden-start {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.show-content {
    opacity: 1;
    visibility: visible;
}

/* ==========================================
   2. PRELOADER
   ========================================== */
#preloader {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background-color: #000000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.8s ease-out, visibility 0.8s;
}

.logo-wrapper {
    position: relative;
    display: inline-block;
    width: 350px;
}

.preloader-logo {
    display: block;
    width: 100%;
    height: auto;
    opacity: 0;
    animation: glowPulse 3.5s ease-in-out forwards;
    will-change: opacity, transform, filter;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

@keyframes glowPulse {
    0%   {
        opacity: 0;
        transform: translateZ(0) scale(0.95);
        filter: drop-shadow(0 0 0px rgba(255,255,255,0));
    }
    30%  {
        opacity: 1;
        transform: translateZ(0) scale(1);
        filter: drop-shadow(0 0 8px rgba(255,255,255,0.7))
                drop-shadow(0 0 20px rgba(255,255,255,0.4));
    }
    60%  {
        opacity: 1;
        transform: translateZ(0) scale(1);
        filter: drop-shadow(0 0 18px rgba(255,255,255,1))
                drop-shadow(0 0 45px rgba(255,255,255,0.6))
                drop-shadow(0 0 70px rgba(255,255,255,0.3));
    }
    100% {
        opacity: 0;
        transform: translateZ(0) scale(1.05);
        filter: drop-shadow(0 0 0px rgba(255,255,255,0));
    }
}

@media (max-width: 768px) {
    .logo-wrapper { width: 200px; }
}

.preloader-hidden {
    opacity: 0 !important;
    visibility: hidden !important;
}

/* ==========================================
   3. SAHNE SİSTEMİ
   ========================================== */
#views-container {
    position: relative;
    width: 100vw;
    height: 100vh;
}

.view {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100vh;
    padding-left: 140px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.8s ease-in-out, visibility 0.8s;
    overflow-y: auto;
    overflow-x: hidden;
}

#hero,
#about,
#contact {
    display: flex;
    align-items: center;
    min-height: 100vh;
    padding-top: 80px;
    padding-bottom: 60px;
}

#work {
    display: block !important;
    padding-top: 0 !important;
    padding-bottom: 60px;
}

.view::-webkit-scrollbar { width: 6px; }
.view::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.view.active-view {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 10;
}

/* ==========================================
   4. SABİT ARAYÜZ — DESKTOP (sol panel & üst menü)
   ========================================== */
.left-sidebar {
    position: fixed;
    left: 0; top: 0;
    width: 120px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px 0 40px 30px;
    z-index: 9999 !important;
}

.sidebar-top {
    display: flex;
    align-items: center;
    gap: 15px;
}

.side-logo-img {
    width: 80px;
    height: auto;
}

.side-divider {
    position: absolute;
    right: 0; top: 0;
    width: 1px; height: 100%;
    background: rgba(255, 255, 255, 0.15);
}

.sidebar-bottom {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.side-socials {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.side-socials a {
    color: #fff;
    font-size: 1rem;
    opacity: 0.7;
    transition: 0.3s;
}

.side-socials a:hover { opacity: 1; }

.side-lang {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.active-lang {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.top-navbar {
    position: fixed;
    top: 0;
    right: 0;
    width: calc(100% - 120px);
    z-index: 9999 !important;
    display: flex;
    justify-content: flex-end;
    gap: 30px;
    padding: 30px 40px 60px 0;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.7) 45%, rgba(0,0,0,0) 100%);
}

.top-navbar a {
    pointer-events: auto;
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    transition: opacity 0.3s;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.top-navbar a:hover { opacity: 0.7; }

/* ==========================================
   5. CUSTOM CURSOR
   ========================================== */
.cursor-glow {
    position: fixed;
    top: 0; left: 0;
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0) 60%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    transition: width 0.4s ease, height 0.4s ease, background 0.4s ease;
    will-change: transform;
}

.cursor-glow.active {
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.16) 0%, rgba(255,255,255,0) 60%);
}

@media (pointer: coarse) {
    .cursor-glow { display: none !important; }
}

/* ==========================================
   6. HERO
   ========================================== */
.hero-center {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero-line-1 {
    font-size: 4.5rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    letter-spacing: -1px;
}

.hero-line-2 {
    font-size: 4.5rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: -1px;
}

.serif-italic {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 500;
    color: #d1d5db;
}

.bottom-links {
    position: absolute;
    bottom: 50px;
    left: 140px;
    width: calc(100% - 140px);
    display: flex;
    justify-content: center;
    gap: 80px;
    z-index: 1000;
}

.bottom-link {
    color: #fff;
    text-decoration: none;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 15px;
    opacity: 0.8;
    transition: 0.3s;
}

.bottom-link:hover { opacity: 1; }

.arrow-circle {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 35px; height: 35px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    font-size: 0.8rem;
    transition: 0.3s;
}

.bottom-link:hover .arrow-circle {
    background-color: #fff;
    color: #000;
}

/* ==========================================
   7. ABOUT
   ========================================== */
.about-container {
    width: 100%;
    max-width: 1200px;
    padding: 0 80px;
}

.section-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 60px;
    letter-spacing: -1px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 80px;
    align-items: start;
}

#contact .about-grid {
    align-items: center;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #a0a0a0;
    margin-bottom: 25px;
    font-weight: 300;
}

.about-text strong {
    color: #ffffff;
    font-weight: 500;
}

.cv-buttons {
    display: flex;
    gap: 20px;
    margin-top: 40px;
}

.btn-outline {
    display: inline-block;
    padding: 12px 24px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background-color: #ffffff;
    color: #000000;
    border-color: #ffffff;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 40px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding-left: 40px;
}

.stat-box h3 {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.5rem;
    color: #ffffff;
    margin: 0 0 10px 0;
    font-weight: 400;
}

.stat-box p {
    color: #888888;
    font-size: 0.9rem;
    margin: 0;
    letter-spacing: 0.5px;
}

/* ==========================================
   8. WORK — NETFLIX CAROUSEL
   ========================================== */
.work-container {
    padding-top: 140px !important;
    width: 100%;
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 80px !important;
    padding-right: 60px !important;
    padding-bottom: 50px;
}

#work .section-title {
    font-size: 3rem;
    text-align: left;
    margin-bottom: 40px;
    line-height: 1.2;
}

.category-title {
    font-size: 1.2rem;
    color: #e5e5e5;
    margin-bottom: 10px;
    padding-left: 40px;
    font-weight: 600;
}

.carousel-wrapper {
    position: relative;
    padding: 0 40px;
    margin-bottom: 40px;
}

.carousel-track {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 20px 0;
}

.carousel-track::-webkit-scrollbar { display: none; }

.project-card {
    flex: 0 0 calc((100% / 5) - 12px);
    flex-shrink: 0 !important;
    aspect-ratio: 16/9;
    background-color: #111;
    background-size: cover;
    background-position: center;
    border-radius: 5px;
    cursor: pointer;
    position: relative;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.3s ease;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.project-card:hover {
    transform: scale(1.15) translateY(-5px);
    z-index: 50 !important;
    box-shadow: 0 20px 40px rgba(0,0,0,0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.card-info {
    width: 100%;
    padding: 30px 15px 15px 15px;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.project-card:hover .card-info { transform: translateY(0); }

.card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
    font-family: 'Inter', sans-serif;
}

.card-tech {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.card-tech span {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #e5e5e5;
    letter-spacing: 0.5px;
}

.slider-btn {
    position: absolute;
    top: 20px;
    bottom: 20px;
    width: 40px;
    background: rgba(0,0,0,0.6);
    color: white;
    border: none;
    cursor: pointer;
    z-index: 5;
    font-size: 1.5rem;
    transition: background 0.3s;
}

.slider-btn:hover { background: rgba(0,0,0,0.9); }
.left-btn { left: 0; }
.right-btn { right: 0; }

/* ==========================================
   9. PROJE MODAL
   ========================================== */
.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
    backdrop-filter: blur(10px);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: rgba(24, 24, 24, 0.8);
    width: 90%;
    max-width: 800px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    transform: translateY(50px);
    transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 25px 50px rgba(0,0,0,0.8);
}

.modal-overlay.active .modal-content { transform: translateY(0); }

.close-modal {
    position: absolute;
    top: 15px; right: 15px;
    background: rgba(0,0,0,0.5);
    color: #fff;
    border-radius: 50%;
    width: 36px; height: 36px;
    z-index: 10;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    font-size: 1.2rem;
    transition: 0.3s;
    backdrop-filter: blur(5px);
}

.close-modal:hover { background: #fff; color: #000; }

.modal-video-box {
    width: 100%;
    aspect-ratio: 21 / 9;
    background: #000;
    position: relative;
}

.video-placeholder {
    width: 100%; height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #444;
}

.play-icon {
    font-size: 3rem;
    color: rgba(229, 9, 20, 0.5);
    margin-bottom: 5px;
}



.modal-details {
    padding: 25px;
    position: relative;
    z-index: 3;
    margin-top: -10px;
}

.modal-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    width: 100%;
    gap: 20px;
}

#modal-title { font-size: 1.8rem; margin: 0; }

.github-btn-transparent {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff !important;
    padding: 8px 18px;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

.github-btn-transparent i { font-size: 1rem; }

.github-btn-transparent:hover {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.modal-tech-stack {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.tech-tag {
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #e5e5e5;
}

.modal-text-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.block-label {
    color: #888;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 6px;
}

#modal-purpose,
#modal-solution {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #d2d2d2;
}

/* ==========================================
   10. CONTACT
   ========================================== */
.contact-info p {
    font-size: 1.1rem;
    color: #a0a0a0;
    margin-bottom: 40px;
}

.contact-details h3 {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: #ffffff;
    font-size: 1.2rem;
    margin-top: 30px;
    margin-bottom: 5px;
}

.contact-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: 0.3s;
}

.contact-link:hover { border-bottom-color: #ffffff; }

.premium-form {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 10px;
}

.input-group { position: relative; }

.input-group input,
.input-group textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    padding: 10px 0;
    outline: none;
    transition: border-color 0.3s;
}

.input-group textarea { resize: none; }

.input-group input:focus,
.input-group textarea:focus { border-bottom-color: #ffffff; }

.input-group label {
    position: absolute;
    top: 10px; left: 0;
    color: #888888;
    font-size: 1rem;
    pointer-events: none;
    transition: 0.3s ease all;
}

.input-group input:focus ~ label,
.input-group input:not(:placeholder-shown) ~ label,
.input-group textarea:focus ~ label,
.input-group textarea:not(:placeholder-shown) ~ label {
    top: -20px;
    font-size: 0.8rem;
    color: #ffffff;
}

.submit-btn {
    background: transparent;
    cursor: pointer;
    align-self: flex-start;
    margin-top: 10px;
    font-family: 'Inter', sans-serif;
}

.premium-form input:-webkit-autofill,
.premium-form input:-webkit-autofill:hover,
.premium-form input:-webkit-autofill:focus,
.premium-form textarea:-webkit-autofill,
.premium-form textarea:-webkit-autofill:hover,
.premium-form textarea:-webkit-autofill:focus {
    -webkit-text-fill-color: #ffffff !important;
    -webkit-box-shadow: 0 0 0px 1000px #000000 inset !important;
    background-color: transparent !important;
    transition: background-color 5000s ease-in-out 0s !important;
}

.premium-form textarea::-webkit-scrollbar        { width: 8px; background-color: #000; }
.premium-form textarea::-webkit-scrollbar-track  { background: #000; }
.premium-form textarea::-webkit-scrollbar-thumb  { background-color: rgba(255,255,255,0.3); border-radius: 10px; border: 2px solid #000; }
.premium-form textarea::-webkit-scrollbar-thumb:hover { background-color: rgba(255,255,255,0.6); }

/* ==========================================
   11. MOBİL — YENİ BİRLEŞİK HEADER
   ========================================== */

/* Desktop'ta kesinlikle gizli */
.mobile-header {
    display: none;
}

@media (max-width: 768px) {

    /* Desktop sidebar ve top-navbar'ı gizle */
    .left-sidebar {
        display: none !important;
    }

    .top-navbar {
        display: none !important;
    }

    /* ---- Yeni tek satır mobil header ---- */
    .mobile-header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 9999;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 20px;
        height: 58px;

        /* Scroll'da içerikle üst üste gelmesin: solid arka plan + ince border */
        background-color: rgba(0, 0, 0, 0.92);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.07);

        /* Yumuşak geçiş — scroll'da renk değişimi için */
        transition: background-color 0.3s ease, border-color 0.3s ease;
    }

    /* Header scroll'da daha opak olsun (JS ile .scrolled class'ı eklenir) */
    .mobile-header.scrolled {
        background-color: rgba(0, 0, 0, 0.98);
        border-bottom-color: rgba(255, 255, 255, 0.12);
    }

    /* Logo */
    .mobile-header-logo img {
        width: 42px;
        height: auto;
        display: block;
        cursor: pointer;
    }

    /* Orta nav linkleri */
    .mobile-header-nav {
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .mobile-header-nav a {
        text-decoration: none;
        color: rgba(255, 255, 255, 0.55);
        font-size: 0.78rem;
        font-weight: 500;
        letter-spacing: 0.8px;
        padding: 6px 10px;
        border-radius: 6px;
        transition: color 0.25s ease, background-color 0.25s ease;
        white-space: nowrap;
    }

    .mobile-header-nav a:hover,
    .mobile-header-nav a.active-nav-link {
        color: #ffffff;
        background-color: rgba(255, 255, 255, 0.08);
    }

    /* Aktif sayfa göstergesi — linkin altında nokta */
    .mobile-header-nav a.active-nav-link {
        position: relative;
    }

    .mobile-header-nav a.active-nav-link::after {
        content: '';
        position: absolute;
        bottom: 2px;
        left: 50%;
        transform: translateX(-50%);
        width: 3px;
        height: 3px;
        background: rgba(255, 255, 255, 0.7);
        border-radius: 50%;
    }

    /* Sağ: dil seçimi */
    .mobile-header-lang {
        font-size: 0.72rem;
        font-weight: 600;
        letter-spacing: 1px;
        color: rgba(255, 255, 255, 0.5);
        display: flex;
        align-items: center;
        gap: 4px;
        white-space: nowrap;
    }

    .mobile-header-lang .lang-btn {
        cursor: pointer;
        transition: color 0.2s;
        padding: 2px 0;
    }

    .mobile-header-lang .lang-btn:hover { color: #fff; }
    .mobile-header-lang .active-lang { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
    .mobile-header-lang span.sep { color: rgba(255,255,255,0.2); }

    /* ---- View padding: header yüksekliği kadar boşluk ---- */
    .view {
        padding-left: 0;
    }

    #hero {
        padding-top: 0;
        padding-bottom: 0;
        min-height: 100vh;
        align-items: stretch;
    }

    #about,
    #contact {
        padding-top: 90px;
        padding-bottom: 60px;
        align-items: flex-start;
        min-height: 100vh;
    }

    #work {
        padding-top: 0 !important;
    }

    /* ---- Hero: tam ekran, içerik ortada ---- */
    .hero-center {
        width: 100%;
        min-height: 100vh;
        height: auto;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        padding: 80px 28px 60px;
        text-align: left;
        box-sizing: border-box;
    }

    .hero-line-1,
    .hero-line-2 {
        font-size: 3rem;
        line-height: 1.08;
        letter-spacing: -1.5px;
    }

    .bottom-links {
        position: relative;
        bottom: auto;
        left: 0;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
        padding: 52px 0 0;
    }

    .bottom-link { font-size: 0.85rem; gap: 14px; }
    .arrow-circle { width: 40px; height: 40px; font-size: 0.85rem; }

    /* ---- About ---- */
    .about-container {
        padding: 24px 24px 0;
        width: 100%;
        box-sizing: border-box;
    }

    .section-title {
        font-size: 2.4rem;
        margin-bottom: 36px;
    }

    .about-grid {
        display: flex;
        flex-direction: column;
        gap: 36px;
    }

    .about-text p { font-size: 1rem; line-height: 1.75; }

    .cv-buttons { flex-wrap: wrap; gap: 12px; }

    .about-stats {
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-left: 0;
        padding-top: 32px;
        gap: 28px;
    }

    /* ---- Work ---- */
    #work .work-container {
        padding-top: 80px !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        margin-top: 0 !important;
    }

    .project-card {
        flex: 0 0 calc(50% - 10px) !important;
        min-width: calc(50% - 10px) !important;
    }

    /* ---- Contact ---- */
    #contact .about-grid {
        flex-direction: column;
        gap: 44px;
        align-items: flex-start;
    }

    .contact-info { width: 100%; }
    .contact-info .section-title { margin-bottom: 12px !important; }
    .contact-info p { font-size: 1rem; margin-bottom: 24px; }
    .contact-details h3 { margin-top: 20px; font-size: 1.1rem; }
    .contact-link { font-size: 1rem; word-break: break-all; }
    .contact-form-wrapper { width: 100%; }

    .premium-form { gap: 32px; }

    .input-group input,
    .input-group textarea { font-size: 16px; width: 100%; }

    .input-group input:focus ~ label,
    .input-group input:not(:placeholder-shown) ~ label,
    .input-group textarea:focus ~ label,
    .input-group textarea:not(:placeholder-shown) ~ label {
        top: -18px;
        font-size: 0.75rem;
    }

    .file-group label {
        position: relative !important;
        z-index: 10;
        display: inline-flex !important;
    }

    /* ---- Modal ---- */
    .modal-content { width: 95%; max-width: none; }
    .modal-video-box { aspect-ratio: 16/9 !important; }
    .modal-header-flex { flex-direction: column; align-items: flex-start; gap: 10px; }
    #modal-title { font-size: 1.5rem; }
    .modal-text-grid { grid-template-columns: 1fr; gap: 15px; }
}

/* ==========================================
   12. KÜÇÜK TELEFON (480px altı)
   ========================================== */
@media (max-width: 480px) {

    .mobile-header { height: 54px; padding: 0 16px; }
    .mobile-header-logo img { width: 36px; }
    .mobile-header-nav a { font-size: 0.75rem; padding: 5px 8px; }
    .mobile-header-lang { font-size: 0.68rem; }

    #hero { padding-top: 0; }

    #about,
    #contact { padding-top: 80px; }

    #work .work-container { padding-top: 70px !important; }

    .hero-center { padding: 70px 20px 50px; }

    .hero-line-1,
    .hero-line-2 { font-size: 2.6rem; letter-spacing: -1px; }

    .about-container { padding: 16px 18px 0; }

    .section-title { font-size: 2rem; }

    .project-card {
        flex: 0 0 85% !important;
        min-width: 85% !important;
        aspect-ratio: 4/3 !important;
    }

    .slider-btn { width: 30px !important; }
}
/* Ana Buton Kapsayıcısı */
.cv-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    padding: 0 20px;
    background: transparent;
    border: 1px solid #333; /* Sitenin temasına göre rengi ayarla (örn: #fff veya var(--renk)) */
    color: #ffffff; /* Yazı ve ikon rengi */
    border-radius: 30px;
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Başlangıçtaki "CV İndir" kısmı */
.cv-label {
    display: flex;
    align-items: center;
    gap: 8px; /* İkon ile yazı arasındaki boşluk */
    white-space: nowrap;
    transition: opacity 0.3s ease, width 0.3s ease;
}

/* Gizli "TR | EN" Linkleri */
.cv-links {
    display: flex;
    align-items: center;
    opacity: 0;
    width: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
    pointer-events: none; /* Gizliyken tıklanmayı engeller */
    white-space: nowrap;
}

.cv-links a {
    text-decoration: none;
    color: inherit;
    font-weight: 600;
    padding: 0 10px;
    transition: opacity 0.2s;
}

.cv-links a:hover {
    opacity: 0.6;
}

.cv-sep {
    color: #888;
}

/* === TIKLANINCA ÇALIŞACAK AKTİF DURUM === */
.cv-btn.aktif .cv-label {
    opacity: 0;
    width: 0;
    gap: 0;
}

.cv-btn.aktif .cv-links {
    opacity: 1;
    width: auto;
    transform: translateX(0);
    pointer-events: auto;
}
.modal-video-box {
    position: relative; 
}

.modal-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: background 0.3s ease, transform 0.2s ease;
}

.modal-slider-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.modal-slider-btn.prev-btn {
    left: 15px;
}

.modal-slider-btn.next-btn {
    right: 15px;
}
/* Google ve SEO için saklanan metinler */
.seo-gizli {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}