/* ==========================================================================
   MYSHINE DEV - PREMIUM THEMES & LIGHTBOX
   ========================================================================== */

/* DEFAULT THEME (Siyah & Kurumsal/Minimalist) */
:root {
    --bg-dark: #000000;
    --bg-secondary: #0a0a0a;
    --primary-color: #ffffff;
    --primary-glow: rgba(255, 255, 255, 0.1);
    --secondary-color: #d1d1d1;
    --secondary-glow: rgba(209, 209, 209, 0.05);
    
    --text-main: #f5f5f5;
    --text-muted: #888888;
    
    --glass-bg: rgba(10, 10, 10, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.05);

    --font-head: 'Space Grotesk', sans-serif;
    --font-body: 'Outfit', sans-serif;
}

/* BLUE THEME (Gece Mavisi) */
body[data-theme="blue"] {
    --bg-dark: #020617;
    --bg-secondary: #0f172a;
    --primary-color: #38bdf8;
    --primary-glow: rgba(56, 189, 248, 0.2);
    --secondary-color: #818cf8;
    --secondary-glow: rgba(129, 140, 248, 0.15);
    
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    
    --glass-bg: rgba(15, 23, 42, 0.5);
    --glass-border: rgba(56, 189, 248, 0.15);
    --glass-highlight: rgba(56, 189, 248, 0.1);
}

/* PURPLE THEME (Soft Mor) */
body[data-theme="purple"] {
    --bg-dark: #0f0a1c;
    --bg-secondary: #1a102f;
    --primary-color: #a855f7;
    --primary-glow: rgba(168, 85, 247, 0.2);
    --secondary-color: #d946ef;
    --secondary-glow: rgba(217, 70, 239, 0.15);
    
    --text-main: #faf5ff;
    --text-muted: #a78bfa;
    
    --glass-bg: rgba(26, 16, 47, 0.5);
    --glass-border: rgba(168, 85, 247, 0.15);
    --glass-highlight: rgba(168, 85, 247, 0.1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.7;
    overflow-x: hidden;
    cursor: none;
    transition: background-color 0.5s ease;
}

/* ==========================================================================
   BACKGROUND & EFFECTS
   ========================================================================== */
.void-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at 50% 50%, var(--bg-secondary) 0%, var(--bg-dark) 100%);
    z-index: -2;
    transition: background 0.5s ease;
}

.ambient-light {
    position: fixed;
    border-radius: 50%;
    filter: blur(150px);
    z-index: -1;
    opacity: 0.15; 
    animation: float 15s infinite alternate ease-in-out;
    transition: background 0.5s ease;
}

.light-1 {
    top: -15%; left: -10%;
    width: 55vw; height: 55vw;
    background: var(--primary-color);
}

.light-2 {
    bottom: -15%; right: -10%;
    width: 45vw; height: 45vw;
    background: var(--secondary-color);
    animation-delay: -7.5s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(60px, 60px) scale(1.15); }
}

/* Custom Cursor */
.cursor-glow {
    position: fixed;
    top: 0; left: 0;
    width: 32px; height: 32px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid var(--primary-color);
    box-shadow: 0 0 15px var(--primary-glow);
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    backdrop-filter: blur(1px);
    transition: width 0.3s, height 0.3s, border-color 0.5s;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color)); border-radius: 3px; }

/* ==========================================================================
   UTILITIES
   ========================================================================== */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-padding { padding: 120px 0; }
.text-center { text-align: center; }
.mb-5 { margin-bottom: 4rem; }

.section-title {
    font-family: var(--font-head);
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 2.5rem;
    color: var(--text-main);
    position: relative;
    display: inline-block;
    letter-spacing: -0.5px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

/* Glasscard */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    transition: all 0.4s ease;
}

.glass-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), inset 0 0 0 1px var(--glass-highlight);
    transform: translateY(-5px);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 34px;
    border-radius: 4px; /* More professional, less rounded */
    font-family: var(--font-head);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    cursor: none;
}

.btn-glow {
    background: var(--text-main);
    color: var(--bg-dark);
    border: none;
}
.btn-glow:hover {
    background: var(--primary-color);
    box-shadow: 0 0 20px var(--primary-glow);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--text-muted);
}
.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 5px 15px var(--primary-glow);
    transform: translateY(-2px);
}

.discord-btn svg {
    margin-right: 10px;
    transition: transform 0.3s ease;
}

/* ==========================================================================
   NAVIGATION & THEME SWITCHER
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0; left: 0; width: 100%;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(15px);
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-family: var(--font-head);
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -1px;
}
.void-text { color: var(--primary-color); margin-left: 5px; }

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
    align-items: center;
}
.nav-links li a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    cursor: none;
}
.nav-links li a:hover { color: var(--text-main); }

.theme-switcher {
    display: flex;
    gap: 10px;
    margin-left: 20px;
    padding-left: 20px;
    border-left: 1px solid var(--glass-border);
}
.theme-btn {
    width: 20px; height: 20px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: none;
    transition: transform 0.3s, border-color 0.3s;
}
.theme-btn:hover { transform: scale(1.2); }
.theme-btn.active { border-color: #fff; }

.theme-black { background: #000; border: 1px solid #333; }
.theme-blue { background: #0f172a; }
.theme-purple { background: #1a102f; }

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.hero-content { max-width: 800px; z-index: 10; }
.mt-top { margin-top: 50px; }

.hero-title {
    font-family: var(--font-head);
    font-size: 4.5rem;
    font-weight: 800;
    letter-spacing: -2px;
    line-height: 1.1;
    margin-bottom: 20px;
}

.gradient-text { color: var(--primary-color); }

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto; margin-right: auto;
    font-weight: 300;
}
.hero-buttons {
    display: flex; justify-content: center; gap: 15px; flex-wrap: wrap;
}

/* ==========================================================================
   ABOUT & PROJECTS
   ========================================================================== */
.about-card { text-align: center; max-width: 800px; margin: 0 auto; }
.blog-text { font-size: 1.15rem; color: var(--text-muted); line-height: 1.8; }

.projects-timeline {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 0;
}
.projects-timeline::before {
    content: '';
    position: absolute;
    top: 0; bottom: 0; left: 50%;
    width: 2px; margin-left: -1px;
    background: linear-gradient(to bottom, transparent, var(--primary-color), var(--secondary-color), transparent);
    box-shadow: 0 0 15px var(--primary-glow);
}
.project-card {
    position: relative;
    width: calc(50% - 50px);
    margin-bottom: 60px;
    display: flex; 
    flex-direction: column;
}
.project-card:nth-child(odd) {
    margin-right: calc(50% + 50px);
    margin-left: 0;
}
.project-card:nth-child(even) {
    margin-left: calc(50% + 50px);
}
.project-card::after {
    content: '';
    position: absolute;
    width: 16px; height: 16px;
    border-radius: 50%;
    background: var(--bg-dark);
    border: 3px solid var(--primary-color);
    top: 40px;
    box-shadow: 0 0 15px var(--primary-glow);
    z-index: 10;
    transition: all 0.4s ease;
}
.project-card.glass-card:hover::after {
    background: var(--primary-color);
    box-shadow: 0 0 25px var(--primary-glow);
    transform: scale(1.3);
}
.project-card:nth-child(odd)::after {
    left: calc(100% + 39px); /* 50px gap - 11px half width = 39px */
}
.project-card:nth-child(even)::after {
    right: calc(100% + 39px);
}

.project-card.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    transition: all 0.4s ease;
}
.project-card.glass-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), inset 0 0 0 1px var(--glass-highlight);
    transform: translateY(-5px);
}
.project-info { padding: 0; display: flex; flex-direction: column; justify-content: space-between; width: 100%; height: 100%;}
.project-date {
    display: inline-block;
    color: var(--primary-color);
    font-size: 0.9rem; font-weight: 700;
    letter-spacing: 2px; margin-bottom: 15px; text-transform: uppercase;
}
.project-name {
    font-family: var(--font-head); font-size: 2.4rem;
    font-weight: 800; margin-bottom: 20px; line-height: 1.15; color: var(--text-main); letter-spacing: -0.5px;
}
.project-desc { color: var(--text-muted); font-size: 1.15rem; margin-bottom: 30px; line-height: 1.8; flex-grow: 1;}

/* ==========================================================================
   MODAL / LIGHTBOX
   ========================================================================== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.9);
    backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 1000px;
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
    padding: 10px;
    box-shadow: 0 0 50px rgba(0,0,0,0.8);
}

.close-modal {
    position: absolute;
    top: 15px; right: 20px;
    color: #fff;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2010;
    transition: color 0.3s;
}
.close-modal:hover { color: var(--primary-color); }

.slider-container {
    position: relative;
    width: 100%; height: 70vh;
    display: flex; align-items: center; justify-content: center;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.slider-img {
    position: absolute;
    width: 100%; height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.5s ease;
}
.slider-img.active { opacity: 1; }

.slider-btn {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white; border: none;
    padding: 15px 20px; font-size: 24px;
    cursor: pointer; transition: background 0.3s;
    border-radius: 4px;
}
.slider-btn:hover { background: var(--primary-color); }
.prev-btn { left: 10px; }
.next-btn { right: 10px; }

.slider-dots {
    text-align: center;
    padding: 15px 0 5px;
}
.dot {
    display: inline-block;
    width: 10px; height: 10px;
    background: #555;
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: background 0.3s;
}
.dot.active, .dot:hover { background: var(--primary-color); }

/* ==========================================================================
   FOOTER & ANIMATIONS
   ========================================================================== */
.footer {
    padding: 50px 0; border-top: 1px solid var(--glass-border);
    margin-top: 80px; color: var(--text-muted); font-size: 0.9rem;
}
.fade-in { opacity: 0; transition: opacity 1s, transform 1s; transform: translateY(20px); }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.slide-up { opacity: 0; transform: translateY(50px); transition: opacity 0.8s, transform 0.8s; }
.slide-up.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
    .projects-timeline::before {
        left: 20px;
    }
    .project-card {
        width: calc(100% - 60px);
        margin-left: 60px !important;
        margin-right: 0 !important;
    }
    .project-card::after {
        left: -51px !important; 
        right: auto !important;
    }
    .hero-title { font-size: 3rem; }
    .nav-links { display: none; }
}
