@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('../media/fonts/roboto300.woff2') format('woff2');
}
@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../media/fonts/roboto400.woff2') format('woff2');
}
@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../media/fonts/roboto700.woff2') format('woff2');
}

:root {
    --primary-color: #007bff;
    --hover-blue: #0056b3;
    --bg-dark: #000000;
    --text-light: #e0e0e0;
    --text-muted: #a0a0a0;
    --white: #ffffff;
    --black: #000000;
    --border-light: rgba(255, 255, 255, 0.1);   
    --shadow-dark: rgba(0, 0, 0, 0.6);
}

html, body, a, button{
    cursor: none !important;
}

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

body {
    font-family: 'Roboto', sans-serif;
    font-display: swap;
    color: var(--text-light);
    overflow-x: hidden;
    line-height: 1.6;
    background-color: var(--bg-dark);
    background-attachment: fixed;
    position: relative;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

a:hover {
    color: var(--hover-blue);
}
/* ==================================== */
/*  Animasyonlar                        */
/* ==================================== */
/* Logo Titreme Efekti */
@keyframes wiggle-minimal {
    0%, 100% { transform: skewX(0deg) translateX(0); }
    10% { transform: skewX(1deg) translateX(1px); }
    20% { transform: skewX(-1deg) translateX(-1px); }
    30% { transform: skewX(0.5deg); }
    40% { transform: skewX(-0.5deg); }
    50% { transform: skewX(0deg); }
    60% { transform: skewX(0.5deg); }
    70% { transform: skewX(-0.5deg); }
    80% { transform: skewX(1deg); }
    90% { transform: skewX(-1deg); }
}

/* Terminal / İmleç Yanıp Sönme */
@keyframes terminal-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Scroll Reveal Ortak Sınıf */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
    filter: blur(5px);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

/* ==================================== */
/*         HEADER VE NAVİGASYON         */
/* ==================================== */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(8px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-logo-img {
    height: 30px;
    width: auto;
    display: block;
    transition: transform 0.3s ease;
    will-change: transform;
}

.logo:hover .header-logo-img {
    transform: scale(1.05);
}

/* --- Navigasyon --- */
nav ul {
    display: flex;
    list-style: none;
    align-items: center;
}

nav ul li {
    margin-left: 15px;
}

nav a {
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--primary-color);
}

/* ==================================== */
/*    LOGO ZOOM VE GEÇİŞ EFEKTLERİ      */
/* ==================================== */

.logo-transition-clone {
    position: fixed;
    z-index: 99999; 
    transition: all 0.8s cubic-bezier(0.65, 0, 0.35, 1);
    pointer-events: none;
    transform-origin: center center;
    will-change: transform, top, left;
}

.logo-transition-clone.active {
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) scale(100) !important;
    opacity: 0;
}

.transition-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: #000;
    z-index: 99998;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.transition-overlay.active {
    opacity: 1;
}

/* --- Ay Yıldız İkon Animasyonu --- */
.ay-yildiz-icon {
    display: inline-block;
    width: 30px;
    height: 30px;
    background-image: url('../media/ayyildizb.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    animation: flag-pulse 3s infinite ease-in-out;
}

@keyframes flag-pulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 0px rgba(255, 0, 0, 0));
    }
    50% {
        transform: scale(1.2);
        filter: drop-shadow(0 0 10px rgba(255, 0, 0, 0.6)); 
    }
}

/* Hamburger Buton Stili */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 0;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--text-muted);
    border-radius: 2px;
    transition: all 0.3s ease;
}
/* ==================================== */
/*  HERO VE BUTONLAR                    */
/* ==================================== */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 100px;
    text-align: center;
}

.hero-logo {
    width: auto;
    max-width: 150px;
    height: auto;
    margin-bottom: 10px;
    filter: drop-shadow(0 0 10px rgba(0, 123, 255, 0.5));
}

.hero p {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 400;
    min-height: 40px;
    margin-bottom: 10px;
}

.btn-primary {
    margin-top: 20px;
    padding: 12px 30px;
    background: var(--primary-color);
    color: var(--bg-dark);
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    z-index: 5;
    box-shadow: 0 4px 15px var(--hover-blue);
}

.btn-primary:hover {
    background: var(--hover-blue);
    color: var(--text-light);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

/* Animasyon tanımı animations.css'e taşındı, burada sadece çağrılıyor */
.logo-glitch-wrapper:hover .hero-logo {
    animation: wiggle-minimal 0.3s linear infinite;
    filter: 
        drop-shadow(2px 2px rgba(246, 0, 153, 0.5)) 
        drop-shadow(-2px -2px rgba(15, 210, 255, 0.5)) 
        drop-shadow(-1px 1px rgba(255, 210, 0, 0.5));
}


/* ==================================== */
/* 4. ORTAK SECTION VE KART STİLLERİ */
/* ==================================== */
section {
    padding: 120px 100px;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.section-title {
    font-family: sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 70px;
    text-align: center;
    color: var(--text-light);
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 10px;
    display: inline-block;
}

.section-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    color: var(--text-muted);
}

.cards-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    max-width: 1200px;
}

/* TECH CARD */
.tech-card {
    background: var(--bg-dark);
    padding: 35px;
    border-radius: 12px;
    flex: 1 1 300px;
    max-width: 320px;
    text-align: center;
    transform-style: preserve-3d;
    perspective: 1000px;
    z-index: 5;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    border: 1px solid rgba(0, 123, 255, 0.1);
    box-shadow:
        0 0 0 1px rgba(0, 123, 255, 0.3),
        0 0 15px rgba(0, 123, 255, 0.1),
        0 4px 10px var(--shadow-dark);    
}

.tech-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 123, 255, 0.3);
    box-shadow:
        0 0 0 2px rgba(0, 123, 255, 0.5),
        0 0 25px rgba(0, 123, 255, 0.4),
        0 15px 30px rgba(0, 0, 0, 0.8);
}

/* KART İÇERİĞİ */
.tech-card .tech-logo {
    width: 150px;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 10px;
    border: 1px solid rgba(0, 123, 255, 0.3);
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.5);
}

.tech-card i {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: var(--primary-color);
    height: 50px;
    width: 50px;
    object-fit: contain;
    transition: transform 0.3s;
}

.tech-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.tech-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.card-link {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 700;
    border-bottom: 2px solid transparent;
}

.card-link:hover {
    border-bottom-color: var(--primary-color);
}

/* SKILL ROZETLERİ */
.skill-tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
    padding: 0;
}

.skill-tags span {
    background: rgba(0, 123, 255, 0.05);
    border: 1px solid rgba(0, 123, 255, 0.3);
    color: var(--text-light);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.3);
    transition: background 0.3s, box-shadow 0.3s, transform 0.3s;
}

.skill-tags span:hover {
    background: rgba(0, 123, 255, 0.15);
    box-shadow: 0 0 15px rgba(0, 123, 255, 0.6);
    transform: translateY(-1px);
}

#demo-siteler {
    padding-bottom: 50px;
}

#elementler {
    padding-top: 50px;
}

.category-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.custom-icon {
    width: 1.6rem;
    height: 1.6rem;
    display: inline-block;
    vertical-align: middle;
    transition: fill 0.3s ease, transform 0.3s ease;
    color: var(--primary-color);
}

/* Lab Section */
#lab-promo p{
    font-size: 1.1rem; 
    color: var(--text-muted); 
    margin-bottom: 40px; 
    line-height: 1.6;
    width: 70%;
}

#labpromo .card-link:hover{
    color:#000;
}

/* ==================================== */
/* 5. İLETİŞİM */
/* ==================================== */
.contact-content {
    width: 100%;
    max-width: 600px;
    background: var(--bg-dark);
    padding: 40px;
    border-radius: 8px;
    border: 1px solid var(--border-light);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.contact-content p {
    color: var(--text-muted);
    margin-bottom: 25px;
}

.contact-item {
    margin: 10px 0;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    color: var(--text-light);
}

.contact-item i {
    color: var(--primary-color);
    font-size: 1.3rem;
}

.contact-item a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-item a:hover {
    color: var(--text-muted); 
}

.contact-btn {
    margin-top: 20px;
    display: inline-block;
    z-index: 5;
}   

.btn-whatsapp {
    margin-top: 5px; 
    padding: 12px 20px;
    background: var(--primary-color); 
    color: var(--bg-dark); 
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    z-index: 5;
    display: inline-flex; 
    align-items: center;
    gap: 10px; 
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3); 
    transition: all 0.3s;
}

.btn-whatsapp i{
    font-size: 1.3rem;
}

.btn-whatsapp:hover {
    background: var(--hover-blue);
    color: var(--text-light); 
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

/* ==================================== */
/* 6. CUSTOM CURSOR VE ANİMASYONLAR */
/* ==================================== */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 1001;
    pointer-events: none;
}

.cursor-dot {
    width: 6px;
    height: 6px;
    background-color: var(--primary-color);
    box-shadow: 0 0 5px var(--primary-color);
}

.cursor-outline {
    width: 15px;
    height: 15px;
    border: 1px solid var(--primary-color);
    transition: width 0.2s, height 0.2s, background-color 0.2s, border-color 0.2s;
}

body.hovering .cursor-outline {
    width: 30px;
    height: 30px;
    background-color: rgba(0, 123, 255, 0.1);
    border-color: rgba(0, 123, 255, 0.5);
    box-shadow: 0 0 15px rgba(0, 123, 255, 0.5);
}

/* Reveal Sınıfı animations.css'e taşındı, nesneler hala o dosyaya bağlı çalışıyor */

/* ==================================== */
/* 9.SHOWROOM & DEMO ÖZEL STİLLER */
/* ==================================== */

/* Showroom Sade Tasarım Stilleri */
#showroom .section-description {
    text-align: center;
    max-width: 700px;
    margin: -30px auto 60px;
    color: var(--text-muted);
    font-size: 1.1rem;
    font-weight: 300;
    opacity: 0.8;
}

/* Performans Rozeti - Daha Minimal */
.performance-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--primary-color);
    border-bottom: 1px solid var(--primary-color);
    padding-bottom: 2px;
}

.category-tag {
    display: inline-block;
    color: var(--primary-color);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 20px;
    opacity: 0.9;
}

.tech-card p {
    margin-bottom: 30px; 
    line-height: 1.7;
    font-size: 0.95rem;
}

.card-link {
    font-weight: 700;
    text-decoration: none;
    color: var(--text-color);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 10px 20px;
    border-radius: 5px;
    transition: 0.3s;
}

.card-link:hover {
    background: var(--primary-color);
    color: var(--black);
    box-shadow: 0 0 15px var(--primary-color);
}

.mockup-img {
    width: 100%;
    height: auto;
    max-height: 180px;
    object-fit: contain;
    margin: 20px auto;
    display: block;
    filter: drop-shadow(0 0 10px rgba(0, 123, 255, 0.2));
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.5s ease;
}

.tech-card:hover .mockup-img {
    transform: scale(1.08) translateY(-10px); 
    filter: drop-shadow(0 0 25px var(--primary-color));
}

/* ================================================= */
/* TERMINAL FOOTER MODÜLÜ                */
/* ================================================= */

/* 1. Global Terminal Konteynırı & Font Mirası */
.terminal-container {
    width: 100%;
    max-width: 900px;
    background: rgba(10, 10, 10, 0.98);
    border: 1px solid #27c93f;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease;
    /* Fontu bir kez burada tanımlıyoruz, alt elemanlar miras alacak */
    font-family: 'Courier New', Courier, monospace;
    font-size: 15px;
    line-height: 1.5;
}

.terminal-container:hover {
    transform: translateY(-5px);
}

#terminal-footer {
    width: 100%;
    padding: 80px 20px;
    display: flex;
    justify-content: center;
    background: transparent;
    position: relative;
}

/* 2. Header Bölümü */
.terminal-header {
    background: rgba(30, 30, 30, 0.9);
    padding: 12px 15px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 10;
}

.terminal-buttons {
    display: flex;
    gap: 8px;
}

.terminal-buttons .btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.btn.red { background: #ff5f56; }
.btn.yellow { background: #ffbd2e; }
.btn.green { background: #27c93f; }

.terminal-title {
    margin-left: 20px;
    font-size: 0.75rem;
    color: var(--white);
}

/* 3. Terminal Gövdesi & İçerik */
.terminal-body {
    padding: 25px;
    height: 380px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    scrollbar-width: thin;
    scrollbar-color: #27c93f transparent;
}

/* Scrollbar Tasarımı */
.terminal-body::-webkit-scrollbar { width: 4px; }
.terminal-body::-webkit-scrollbar-thumb { 
    background: var(--primary-color); 
    border-radius: 10px; 
}

.hacker-text { color: #00ff41; margin: 4px 0; }
.highlight { color: var(--primary-color); font-weight: bold; }
.error { color: #ff5f56; }

/* 4. Input & Prompt Alanı */
.input-line {
    display: inline-flex;
    align-items: center;
    width: fit-content;
}

.prompt {
    color: var(--primary-color);
    font-weight: bold;
    margin-right: 10px;
    white-space: nowrap;
}

#terminal-input {
    background: transparent;
    border: none;
    outline: none;
    color: #00ff41;
    font: inherit; /* Üstteki Courier New fontunu miras alır */
    padding: 0;
    caret-color: transparent;
    width: 0px;
    min-width: 1px;
}

.terminal-cursor {
    display: inline-block;
    width: 10px;
    height: 18px;
    background-color: var(--white);
    animation: terminal-blink 1s infinite;
    margin-left: -5px; 
    vertical-align: middle;
}

#matrix-canvas {
    position: absolute;
    top: 0; left: 0;
    z-index: 1;
    pointer-events: none;
}

.civic-svg-container {
    position: fixed;
    bottom: 15%;
    right: -300px;
    width: 350px;
    z-index: 10000;
    pointer-events: none;
    animation: civic-drift-svg 3.5s ease-in-out forwards;
}

/* 1. TABLET VE KÜÇÜK MASAÜSTÜ (992px Altı) */
@media (max-width: 992px) {
    section { padding: 80px 20px; }
    .hero { padding: 0 40px; }
    .hero h1 { font-size: 3rem; }
    .hero p { font-size: 1.3rem; }
}

/* 2. MOBİL CİHAZLAR (768px Altı) */
@media (max-width: 768px) {
    
    /* Gruplandırılmış Ortak Özellikler */
    section, .hero, .contact-content, #lab-promo {
        width: 100% !important;
        box-sizing: border-box !important;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    section { padding: 60px 15px !important; }

    /* Navigasyon */
    header { padding: 15px 15px; }
    .logo { font-size: 1.2rem; }
    .hamburger { display: block; }
    
    /*Menü*/
    .mobile-menu-btn {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -110%;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.98);
        backdrop-filter: blur(10px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        visibility: hidden;
    }

    .nav-menu.active {
        right: 0 !important;
        visibility: visible !important;
        opacity: 1 !important;
        display: flex !important;
    }

    .nav-menu ul {
        flex-direction: column;
        gap: 25px;
        padding: 0;
    }

    .nav-menu ul li {
        margin: 0;
        opacity: 0;
        transform: translateY(-50px);
        transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .nav-menu.active ul li {
        opacity: 1;
        transform: translateY(0);
    }

    .nav-menu ul li a:hover, 
    .nav-menu ul li a:active {
        background: rgba(0, 242, 255, 0.1);
        border-color: var(--accent-neon);
        color: var(--accent-neon);
        transform: scale(1.05);
        box-shadow: 0 0 15px rgba(0, 242, 255, 0.2);
    }

    /* Sırayla gelme efekti (Gecikme süreleri) */
    .nav-menu.active ul li:nth-child(1) { transition-delay: 0.1s; }
    .nav-menu.active ul li:nth-child(2) { transition-delay: 0.15s; }
    .nav-menu.active ul li:nth-child(3) { transition-delay: 0.2s; }
    .nav-menu.active ul li:nth-child(4) { transition-delay: 0.25s; }
    .nav-menu.active ul li:nth-child(5) { transition-delay: 0.3s; }
    .nav-menu.active ul li:nth-child(6) { transition-delay: 0.35s; }
    .nav-menu.active ul li:nth-child(7) { transition-delay: 0.4s; }

    /* Hamburger Butonu Açık*/
    .mobile-menu-btn.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
        transform: translateX(-10px);
    }
    .mobile-menu-btn.active span:nth-child(3) {
        transform: translateY(-10px) rotate(-45deg);
    }
    /* Hero & Typewriter */
    .hero { padding: 0 15px !important; gap: 15px; justify-content: center; }
    .hero h1 { font-size: 2.2rem; }
    
    #typewriter, .hero p {
        white-space: nowrap;
        text-align: center;
        font-size: 1.1rem;
    }

    /* Butonlar */
    .btn-primary {
        width: 90% !important; 
        max-width: 300px;
        white-space: nowrap;
        font-size: 0.85rem; 
        padding: 15px 10px; 
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        margin: 20px auto !important;
    }

    /* Kartlar */
    .cards-container { width: 100%; gap: 20px; padding: 0; }
    .tech-card {
        width: 100% !important;
        max-width: 100%;
        padding: 25px 20px;
        margin-bottom: 10px;
        flex: none; /* flex: 1 1 100% yerine daha temiz */
    }

    /* Lab Promo */
    #lab-promo p {
        width: 80% !important;
        margin: 20 auto !important;
        text-align: center;
        line-height: 1.6;
    }

    /* Terminal Footer */
    #terminal-footer { padding: 40px 10px; width: 100%; }
    .terminal-container { border-radius: 8px; font-size: 14px; }
    .terminal-body { height: 280px; padding: 15px; }
    #terminal-input { font-size: 14px; }

    /* Görsel & Etkileşim */
    .section-title { font-size: 1.8rem; margin-bottom: 30px; }
    .demo-mockup, .mockup-img { max-height: 140px; }
    .cursor-dot, .cursor-outline { display: none !important; }
    html, body { cursor: auto !important; }

    #cengiz-ascii {
        font-size: 2.6px !important;
        line-height: 2px !important;
        letter-spacing: 0.5px !important;
        overflow: hidden;
    }
}