@property --angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

:root {
--bg-main: #020202;
--bg-card: #0a0a0a;
--primary: #3b82f6;
--primary-glow: rgba(59, 130, 246, 0.5);
--text-main: #ffffff;
--text-muted: #a1a1aa;
--border: #27272a;
--error: #ef4444;
--success: #10b981;
}

* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

html {
scroll-behavior: smooth;
}

body {
background-color: var(--bg-main);
color: var(--text-main);
overflow-x: hidden;
}

::-webkit-scrollbar {
width: 6px;
}
::-webkit-scrollbar-track {
background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
background: #333;
border-radius: 3px;
}

header {
position: fixed;
top: 0;
left: 0;
width: 100%;
z-index: 1000;
padding: 2.5rem 0;
transition: all 0.5s ease;
}

nav {
display: flex;
justify-content: space-between;
align-items: center;
width: 90%;
max-width: 1200px;
margin: 0 auto;
padding: 0 1rem;
transition: all 0.5s ease;
position: relative;
z-index: 2;
}

.logo {
font-size: 1.6rem;
font-weight: 800;
background: linear-gradient(-90deg, #ffffff, var(--primary));
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
transition: all 0.3s ease;
opacity: 1;
width: auto;
}

/* Masaüstü Menüsü Varsayılan */
.nav-links {
display: flex;
gap: 2.5rem;
list-style: none;
transition: all 0.5s ease;
}

.nav-links a {
color: var(--text-muted);
text-decoration: none;
font-size: 1.15rem;
font-weight: 500;
transition: all 0.3s;
position: relative;
padding: 0.5rem 0;
}

.nav-links a::after {
content: '';
position: absolute;
bottom: 0;
left: 50%;
width: 0;
height: 2px;
background: var(--primary);
transition: all 0.3s ease;
transform: translateX(-50%);
box-shadow: 0 0 10px var(--primary);
}

.nav-links a:hover {
color: #fff;
text-shadow: 0 0 8px rgba(255,255,255,0.5);
}

.nav-links a:hover::after {
width: 100%;
}

/* Hamburger Menü İkonu (Varsayılan Gizli) */
.hamburger {
display: none;
cursor: pointer;
flex-direction: column;
gap: 5px;
}

.hamburger div {
width: 25px;
height: 3px;
background-color: #fff;
transition: all 0.3s ease;
}

header.scrolled {
padding: 1rem 0;
}

header.scrolled nav {
width: fit-content;
min-width: 450px;
justify-content: center;
background-color: rgba(10, 10, 10, 0.95);
backdrop-filter: blur(15px);
border-radius: 50px;
padding: 0.8rem 3rem;
box-shadow: 0 10px 30px rgba(0,0,0,0.8);
position: relative;
border: 2px solid transparent; 
background-clip: padding-box; 
}

header.scrolled nav::before {
content: "";
position: absolute;
inset: -2px; 
border-radius: 50px; 
padding: 2px; 
background: conic-gradient(
    from var(--angle), 
    transparent 0%, 
    transparent 80%, 
    #ffffff 90%, 
    #3b82f6 100%
);
-webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
-webkit-mask-composite: xor;
mask-composite: exclude;
animation: spinLight 3s linear infinite; 
z-index: -1;
pointer-events: none;
}

@keyframes spinLight {
to { --angle: 360deg; }
}

header.scrolled .logo {
display: none;
}

header.scrolled .nav-links {
gap: 3rem;
justify-content: center;
margin: 0 auto;
}

header.scrolled .nav-links a {
font-size: 1rem;
}

section {
padding: 6rem 2rem;
max-width: 1100px;
margin: 0 auto;
scroll-margin-top: 100px;
}

h2 {
font-size: 2.5rem;
margin-bottom: 3rem;
text-align: center;
font-weight: 700;
letter-spacing: -1px;
color: #fff;
}

.hero {
min-height: 100vh;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
padding-top: 0;
text-align: center;
position: relative;
}

.hero-title {
font-size: 6rem;
line-height: 1.1;
font-weight: 800;
margin-bottom: 20px;
color: #fff;
text-shadow: 0 0 30px rgba(255,255,255,0.1);
}

.hero-desc {
font-size: 1.5rem;
line-height: 1.6;
font-weight: 800;
margin-bottom: 4rem;
color: var(--text-muted);
max-width: 800px;
}

.scroll-indicator {
position: absolute;
bottom: 40px;
left: 50%;
transform: translateX(-50%);
display: flex;
flex-direction: column;
align-items: center;
gap: 10px;
opacity: 0.7;
transition: opacity 0.3s;
cursor: pointer;
}

.scroll-indicator:hover {
opacity: 1;
}

.mouse {
width: 30px;
height: 50px;
border: 2px solid var(--text-muted);
border-radius: 20px;
position: relative;
}

.wheel {
width: 4px;
height: 8px;
background: var(--primary);
border-radius: 2px;
position: absolute;
top: 8px;
left: 50%;
transform: translateX(-50%);
animation: scroll 1.5s infinite;
}

.arrow-down {
width: 15px;
height: 15px;
border-right: 2px solid var(--text-muted);
border-bottom: 2px solid var(--text-muted);
transform: rotate(45deg);
animation: arrow 1.5s infinite;
}

@keyframes scroll {
0% { top: 8px; opacity: 1; }
100% { top: 25px; opacity: 0; }
}

@keyframes arrow {
0% { opacity: 0; transform: rotate(45deg) translate(-5px, -5px); }
50% { opacity: 1; }
100% { opacity: 0; transform: rotate(45deg) translate(5px, 5px); }
}

.stats-section {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 2rem;
margin-bottom: 4rem;
}

.stat-card {
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: 16px;
padding: 2rem;
text-align: center;
transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
position: relative;
overflow: hidden;
}

.stat-card:hover {
transform: scale(1.05) translateY(-5px);
border-color: var(--primary);
box-shadow: 0 10px 40px -10px rgba(59, 130, 246, 0.1);
}

.stat-number {
font-size: 3rem;
font-weight: 800;
margin-bottom: 0.5rem;
background: linear-gradient(to bottom right, #fff, var(--primary));
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}

.stat-label {
font-size: 1.1rem;
color: var(--text-muted);
font-weight: 500;
}

.skill-container {
display: flex;
flex-direction: column;
gap: 2rem;
}

.skill-item { width: 100%; }

.skill-info {
display: flex;
justify-content: space-between;
margin-bottom: 0.5rem;
font-weight: 500;
color: #fff;
}

.progress-bg {
width: 100%;
height: 8px;
background: #1a1a1a;
border-radius: 4px;
overflow: hidden;
}

.progress-fill {
height: 100%;
background: linear-gradient(90deg, var(--primary), #60a5fa);
border-radius: 4px;
position: relative;
box-shadow: 0 0 15px var(--primary-glow);
}

.grid-container {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
gap: 2rem;
}

.project-card {
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: 16px;
overflow: hidden;
transition: transform 0.3s, border-color 0.3s;
position: relative;
display: flex;
flex-direction: column;
}

.project-card:hover {
transform: translateY(-5px);
border-color: var(--primary);
box-shadow: 0 5px 20px rgba(0,0,0,0.5);
}

.project-header {
position: relative;
height: 180px;
background: radial-gradient(circle at center, #1e293b, #0a0a0a);
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
}

.project-img {
max-width: 60%;
max-height: 80%;
object-fit: contain;
filter: drop-shadow(0 0 10px rgba(255,255,255,0.1));
transition: transform 0.3s;
}

.project-card:hover .project-img {
transform: scale(1.1);
}

.status-badge {
position: absolute;
top: 15px;
right: 15px;
padding: 5px 10px;
border-radius: 6px;
font-size: 0.75rem;
font-weight: 700;
color: #fff;
letter-spacing: 0.5px;
box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.status-completed { background: rgba(59, 130, 246, 0.2); border: 1px solid #3b82f6; color: #60a5fa; }
.status-cancelled { background: rgba(239, 68, 68, 0.2); border: 1px solid #ef4444; color: #f87171; }
.status-plugin { background: rgba(16, 185, 129, 0.2); border: 1px solid #10b981; color: #34d399; }

.project-content {
padding: 1.5rem;
display: flex;
flex-direction: column;
flex-grow: 1;
}

.project-title-row {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 1rem;
}

.project-title-row h3 {
font-size: 1.4rem;
color: #fff;
}

.link-btn {
display: flex;
align-items: center;
justify-content: center;
width: 30px;
height: 30px;
border-radius: 50%;
background: #1a1a1a;
color: var(--text-muted);
text-decoration: none;
border: 1px solid var(--border);
transition: 0.3s;
font-size: 0.9rem;
}

.link-btn:hover {
background: var(--primary);
color: #fff;
border-color: var(--primary);
}

.project-content p {
color: var(--text-muted);
font-size: 0.95rem;
line-height: 1.6;
margin-bottom: 1.5rem;
flex-grow: 1;
}

.details-btn {
width: 100%;
padding: 0.8rem;
background: transparent;
border: 1px solid var(--border);
color: #fff;
border-radius: 8px;
font-weight: 600;
cursor: pointer;
transition: 0.3s;
}

.details-btn:hover {
background: rgba(255,255,255,0.05);
border-color: var(--primary);
color: var(--primary);
}

.modal {
display: none; 
position: fixed; 
z-index: 2000; 
left: 0;
top: 0;
width: 100%; 
height: 100%; 
overflow: auto; 
background-color: rgba(0,0,0,0.8); 
backdrop-filter: blur(5px);
align-items: center;
justify-content: center;
}

.modal-content {
background: #111;
border: 1px solid var(--border);
border-radius: 20px;
width: 90%;
max-width: 650px;
max-height: 90vh;
overflow-y: auto;
position: relative;
box-shadow: 0 0 50px rgba(0,0,0,0.5);
animation: modalPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-content::-webkit-scrollbar { width: 8px; }
.modal-content::-webkit-scrollbar-track { background: #0f0f0f; border-radius: 0 20px 20px 0; }
.modal-content::-webkit-scrollbar-thumb { 
    background: var(--primary); 
    border-radius: 4px; 
    border: 2px solid #0f0f0f;
}

@keyframes modalPop {
from { transform: scale(0.8); opacity: 0; }
to { transform: scale(1); opacity: 1; }
}

.modal-header {
background: radial-gradient(circle at top, #1e293b, #0f0f0f);
padding: 2rem;
text-align: center;
border-bottom: 1px solid var(--border);
position: relative;
}

.modal-img {
width: 100px;
height: 100px;
object-fit: contain;
filter: drop-shadow(0 0 15px rgba(255,255,255,0.2));
margin-bottom: 1rem;

display: block; 
margin-left: auto;
margin-right: auto;
}

#modalIconContainer svg {
    filter: drop-shadow(0 0 15px var(--primary-glow));
}

.modal-title {
font-size: 1.8rem;
color: #fff;
margin-bottom: 0.5rem;
}

.modal-badge {
display: inline-block;
padding: 4px 12px;
border-radius: 20px;
font-size: 0.8rem;
font-weight: 700;
}

.modal-body {
padding: 2rem;
}

.modal-info-row {
display: flex;
justify-content: flex-start;
align-items: center;
margin-bottom: 1rem;
padding-bottom: 1rem;
border-bottom: 1px solid #222;
font-size: 1rem;
gap: 10px;
}

.modal-info-row span:first-child {
color: #ffffff;
font-weight: 750;
min-width: 140px; 
}

.modal-info-row span:last-child { color: var(--text-muted); font-weight: 500; }
.modal-info-row:last-child { border-bottom: none; }

.plugin-features-title {
color: #fff;
font-weight: 700;
margin-top: 2rem;
margin-bottom: 1rem;
font-size: 1.2rem;
border-left: 3px solid var(--primary);
padding-left: 15px;
}

.plugin-features-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 1.5rem;
}

.feature-chip {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid #333;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: all 0.3s ease;
    cursor: default;
    display: flex;
    align-items: center;
    gap: 6px;
}

.feature-chip:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--primary);
    color: #fff;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.feature-chip::before {
    content: "•";
    color: var(--primary);
    font-size: 1.2em;
    line-height: 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 1rem;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 16/9;
    cursor: pointer;
    border: 1px solid #333;
    transition: all 0.3s;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.gallery-item:hover {
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-caption-mini {
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.7);
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 12px;
    white-space: nowrap;
    opacity: 0;
    transition: 0.3s;
    backdrop-filter: blur(2px);
    pointer-events: none;
}

.gallery-item:hover .gallery-caption-mini {
    opacity: 1;
    bottom: 8px;
}

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 3000;
    display: none; 
    justify-content: center;
    align-items: center;
    flex-direction: column;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    opacity: 1;
}

.lightbox-content {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 4px;
    box-shadow: 0 0 50px rgba(59, 130, 246, 0.2);
    animation: zoomIn 0.3s;
}

@keyframes zoomIn { from {transform: scale(0.9);} to {transform: scale(1);} }

.lightbox-caption-container {
    margin-top: 1rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 20px;
    border-radius: 30px;
    color: #fff;
    font-size: 1rem;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
}

.lightbox-counter {
    position: absolute;
    top: 20px;
    left: 30px;
    color: #aaa;
    font-size: 1rem;
    font-family: monospace;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    line-height: 0.8;
    transition: 0.3s;
}

.lightbox-close:hover { color: var(--error); transform: rotate(90deg); }

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 24px;
    transition: 0.3s;
    user-select: none;
}

.lightbox-nav:hover { background: var(--primary); box-shadow: 0 0 20px var(--primary-glow); }
.lightbox-prev { left: 30px; }
.lightbox-next { right: 30px; }

.close-modal {
position: absolute;
top: 15px;
right: 20px;
color: #aaa;
font-size: 28px;
font-weight: bold;
cursor: pointer;
transition: 0.3s;
z-index: 10;
}

.close-modal:hover { color: #fff; }

.contact-wrapper {
display: grid;
grid-template-columns: 1fr 2fr;
gap: 4rem;
background: var(--bg-card);
border: 1px solid var(--border);
padding: 4rem;
border-radius: 24px;
}

.social-list { display: flex; flex-direction: column; gap: 1.2rem; }

.social-item {
display: flex;
align-items: center;
gap: 1rem;
text-decoration: none;
color: var(--text-muted);
transition: 0.3s;
padding: 0.5rem;
border-radius: 10px;
}

.social-item:hover { color: #fff; background: rgba(255,255,255,0.03); }

.social-icon {
width: 40px;
height: 40px;
background: #111;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
border: 1px solid var(--border);
transition: 0.3s;
color: var(--primary);
}

.social-item:hover .social-icon {
border-color: var(--primary);
background: rgba(59, 130, 246, 0.1);
box-shadow: 0 0 15px var(--primary-glow);
transform: scale(1.1);
}

.form-group {
margin-bottom: 1.5rem;
position: relative;
}

.form-group label {
display: block;
margin-bottom: 0.5rem;
font-size: 0.9rem;
color: var(--text-muted);
}

.input-container {
position: relative;
width: 100%;
}

.form-input {
width: 100%;
padding: 1rem;
padding-right: 40px;
background: #050505;
border: 1px solid var(--border);
border-radius: 8px;
color: #fff;
outline: none;
transition: border-color 0.3s, box-shadow 0.3s;
}

.form-input::placeholder { color: #444; transition: 0.3s; }
.form-input:focus::placeholder { opacity: 0; }

.form-input:focus {
border-color: var(--primary);
box-shadow: 0 0 20px rgba(59, 130, 246, 0.15);
background: #080808;
}

.form-input.error {
border-color: var(--error);
}

.validation-icon {
position: absolute;
right: 15px;
top: 50%;
transform: translateY(-50%);
color: var(--success);
opacity: 0;
transform: translateY(-50%) scale(0.5);
transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
pointer-events: none;
}

.input-container.valid .validation-icon {
opacity: 1;
transform: translateY(-50%) scale(1);
}

textarea.form-input { min-height: 150px; resize: vertical; }

.about-text {
    text-align: center;
    max-width: 850px;
    margin: 0 auto;
    color: var(--text-muted);
    line-height: 1.8; 
    font-size: 1.15rem;
}

.btn {
display: flex;
align-items: center;
justify-content: center;
gap: 10px;
padding: 1rem 2rem;
background: var(--primary);
color: #fff;
text-decoration: none;
border-radius: 8px;
font-weight: 600;
transition: transform 0.2s, box-shadow 0.2s, background-color 0.3s;
border: none;
cursor: pointer;
width: 100%;
position: relative;
}

.btn:hover {
transform: translateY(-2px);
box-shadow: 0 0 20px var(--primary-glow);
}

.btn:disabled {
background-color: #222;
color: #555;
cursor: not-allowed;
transform: none;
box-shadow: none;
}

.plane-svg {
width: 20px;
height: 20px;
fill: currentColor;
transform: rotate(0deg);
}

.flying-plane-element {
position: fixed;
z-index: 9999;
width: 24px;
height: 24px;
color: #fff;
fill: currentColor;
pointer-events: none;
will-change: transform, top, left;
filter: drop-shadow(0 0 10px rgba(255,255,255,0.5));
}

footer {
border-top: 1px solid var(--border);
padding: 1.5rem 2rem;
margin-top: 4rem;
text-align: center;
background: #000000;
color: var(--text-muted);
font-size: 0.9rem;
position: relative;
z-index: 5;
}

/* ============================
   RESPONSIVE / MOBİL TASARIM
   ============================ */

@media (max-width: 900px) {
    /* Başlık Fontlarını Küçült */
    .hero-title { font-size: 3.5rem; }
    .hero-desc { font-size: 1.1rem; padding: 0 1rem; }
    h2 { font-size: 2rem; }
    
    /* İletişim Formunu Alt Alta Al */
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    /* Header ve Navigasyon */
    header { padding: 1rem 0; background-color: rgba(10, 10, 10, 0.95); backdrop-filter: blur(10px); }
    header.scrolled nav { min-width: 90%; padding: 0.8rem 1rem; }
    
    .hamburger { display: flex; z-index: 1001; }
    
    .nav-links {
        position: fixed;
        right: 0px;
        top: 0px;
        height: 100vh;
        background-color: #050505;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%; /* Tam ekran menü */
        transform: translateX(100%);
        transition: transform 0.4s ease-in-out;
        z-index: 1000;
        border-left: 1px solid var(--border);
    }

    .nav-links.nav-active {
        transform: translateX(0%);
    }

    .nav-links li { margin: 1.5rem 0; opacity: 1; }
    .nav-links a { font-size: 1.5rem; }

    /* Animasyonlu Hamburger */
    .hamburger.toggle .line1 { transform: rotate(-45deg) translate(-5px, 6px); }
    .hamburger.toggle .line2 { opacity: 0; }
    .hamburger.toggle .line3 { transform: rotate(45deg) translate(-5px, -6px); }

    /* Projeler ve Eklentiler Grid */
    .grid-container {
        grid-template-columns: 1fr; /* Mobilde tek sütun */
    }
    
    /* İstatistik Kartları */
    .stats-section { grid-template-columns: 1fr; }
    
    /* Yetenek Çubukları */
    .skill-container { width: 100%; }
    
    /* Modal Mobilde Tam Ekran Gibi Davransın */
    .modal-content {
        width: 95%;
        margin-top: 10%;
        max-height: 85vh;
    }
    
    .modal-info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2.8rem; }
    .stat-number { font-size: 2.5rem; }
    
    .contact-wrapper { padding: 1.5rem; }
    .form-input { font-size: 16px; } /* Mobilde zoom engellemek için */
}