:root {
    --purple: #6a0dad;
    --purple-glow: #8a2be2;
    --purple-light: #e0b0ff;
    --purple-dark: #4b087a;
    --yellow: #ffd000;
    --yellow-glow: #ffea00;
    --bg-dark: #0f0f16;
    --bg-card: rgba(20, 20, 30, 0.7);
    --text-main: #ffffff;
    --text-muted: #b0b0c0;
    --glass-border: rgba(255, 255, 255, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

img {
    max-width: 100%;
    height: auto;
    display: block;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-main);
    overflow-x: hidden;
    background-color: var(--bg-dark);
    background-image:
        linear-gradient(135deg, rgba(106, 13, 173, 0.2) 0%, rgba(0, 0, 0, 0) 50%),
        radial-gradient(circle at 20% 30%, rgba(106, 13, 173, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(255, 208, 0, 0.1) 0%, transparent 40%);
    background-attachment: fixed;
}

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--purple), var(--purple-dark)); border-radius: 5px; }

.fade-in-up { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.fade-in-up.visible { opacity: 1; transform: translateY(0); }

#introOverlay { display: none !important; }


nav {
    height: 70px;
    padding: 0 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(15, 15, 22, 0.8);
    border-bottom: 1px solid var(--glass-border);
    transition: 0.3s;
    transform: translateY(-100%);
    animation: navSlideDown 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards 2s;
}

@keyframes navSlideDown { to { transform: translateY(0); } }

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 70px;
    position: relative;
    overflow: visible;
}

.nav-logo-img {
    height: 50px;
    width: auto;
    position: relative;
    filter: drop-shadow(0 0 5px rgba(106, 13, 173, 0.5));
    transition: transform 0.3s ease, filter 0.3s ease;
    z-index: 1100;
    pointer-events: none;
}
.nav-logo-img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 10px rgba(106, 13, 173, 0.8));
}

.nav-links { display: flex; gap: 40px; list-style: none; margin-left: 10px; }
.nav-links a { text-decoration: none; color: var(--text-muted); font-weight: 600; font-size: 14px; text-transform: uppercase; transition: 0.3s; position: relative; }
.nav-links a::after { content: ''; position: absolute; bottom: -5px; left: 0; width: 0%; height: 2px; background: var(--yellow); transition: 0.3s; }
.nav-links a:hover { color: var(--yellow); }
.nav-links a:hover::after { width: 100%; }

.cta-btn {
    text-decoration: none;
    padding: 12px 30px; background: linear-gradient(90deg, var(--purple), var(--purple-glow));
    color: white; font-weight: 700; border: none; border-radius: 4px; cursor: pointer;
    text-transform: uppercase; letter-spacing: 1px;
    clip-path: polygon(10% 0, 100% 0, 100% 70%, 90% 100%, 0 100%, 0 30%);
    transition: transform 0.3s, box-shadow 0.3s;
}
.cta-btn:hover { transform: scale(1.05); box-shadow: 0 0 20px rgba(138, 43, 226, 0.5); }


.hero { height: 100vh; width: 100%; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; perspective: 1500px; }
.hero-content { position: relative; z-index: 10; text-align: center; max-width: 1400px; width: 80%; transform-style: preserve-3d; }
.title-stack { position: relative; height: 400px; display: flex; justify-content: center; align-items: center; margin-bottom: 10px; transform-style: preserve-3d; }

.layer { font-family: 'Montserrat', sans-serif; font-weight: 900; text-transform: uppercase; position: absolute; line-height: 1; white-space: nowrap; pointer-events: none; }

.layer-front {
    font-size: 10rem;
    z-index: 3;
    color: var(--purple);
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transform: translateZ(50px);
    opacity: 0;
    will-change: transform, opacity, letter-spacing, color;
}
.hero-content.animate-start .layer-front {
    animation: cinematicSmash 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards 0.2s;
}

.layer-back {
    font-size: 10.5rem;
    color: transparent;
    -webkit-text-stroke: 2px rgba(106, 13, 173, 0.7);
    z-index: 1;
    opacity: 0;
}

.layer-back.top { transform: translateY(-500px) translateZ(-50px); }
.hero-content.animate-start .layer-back.top { animation: dropFromTop 1.4s cubic-bezier(0.19, 1, 0.22, 1) forwards 0.6s; }

.layer-back.bottom { transform: translateY(500px) translateZ(-50px); }
.hero-content.animate-start .layer-back.bottom { animation: riseFromBottom 1.4s cubic-bezier(0.19, 1, 0.22, 1) forwards 0.6s; }

@keyframes cinematicSmash {
    0% {
        opacity: 0;
        transform: translateZ(300px) scale(1.5);
        letter-spacing: 40px; 
        color: var(--purple-light);
        text-shadow: 0 0 60px var(--purple-glow);
    }
    50% {
        opacity: 1;
        color: var(--purple-glow);
    }
    100% {
        opacity: 1;
        transform: translateZ(50px) scale(1);
        letter-spacing: 0px; 
        color: var(--purple);
        text-shadow: 0 10px 30px rgba(0,0,0,0.5);
    }
}

@keyframes dropFromTop {
    0% { opacity: 0; transform: translateY(-400px) translateZ(-50px); }
    100% { opacity: 0.5; transform: translateY(-80px) translateZ(-20px); }
}

@keyframes riseFromBottom {
    0% { opacity: 0; transform: translateY(400px) translateZ(-50px); }
    100% { opacity: 0.5; transform: translateY(80px) translateZ(-20px); }
}

.hero-subtitle {
    font-size: 1.5rem; color: var(--text-muted); margin-bottom: 40px; letter-spacing: 3px; text-transform: uppercase;
    transform: translateZ(80px); text-shadow: 0 5px 10px rgba(0,0,0,0.8); opacity: 0;
}
.hero-content.animate-start .hero-subtitle { animation: fadeUp 1s ease-out forwards 1.4s; }

.hero-buttons-container { display: flex; gap: 20px; justify-content: center; transform: translateZ(100px); opacity: 0; }
.hero-content.animate-start .hero-buttons-container { animation: fadeUpButtons 1s ease-out forwards 1.6s; }
.hero-buttons-container button { pointer-events: auto; box-shadow: 0 15px 40px rgba(0,0,0,0.5); }

@keyframes fadeUp { from { opacity: 0; transform: translateY(20px) translateZ(80px); } to { opacity: 1; transform: translateY(0) translateZ(80px); } }
@keyframes fadeUpButtons { from { opacity: 0; transform: translateY(20px) translateZ(100px); } to { opacity: 1; transform: translateY(0) translateZ(100px); } }


.showcase { padding: 100px 5%; position: relative; background: var(--bg-dark); }
.skew-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(135deg, rgba(106, 13, 173, 0.05) 0%, transparent 100%); transform: skewY(-3deg); z-index: 0; pointer-events: none; }
.showcase-container { display: flex; align-items: center; justify-content: space-between; gap: 50px; position: relative; z-index: 2; flex-wrap: wrap; }
.showcase-text { flex: 1; min-width: 300px; }
.section-tag { color: var(--yellow); font-weight: 700; letter-spacing: 2px; margin-bottom: 10px; display: block; font-size: 0.9rem; }
.section-title { font-family: 'Montserrat', sans-serif; font-size: 3rem; font-weight: 800; margin-bottom: 20px; line-height: 1.1; }
.showcase-visual { flex: 1; min-width: 300px; height: 500px; perspective: 1000px; display: flex; justify-content: center; align-items: center; }

.card-3d { width: 350px; height: 480px; background: var(--bg-card); border: 1px solid var(--glass-border); border-radius: 20px; position: relative; transform-style: preserve-3d; transition: transform 0.1s ease-out; box-shadow: 0 20px 50px rgba(0,0,0,0.5); }
.card-3d-inner { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; }
.card-image { height: 70%; width: 100%; background: url('https://placehold.co/600x800/4c307a/fff?text=Karakter+Fotoğrafı') center/cover; position: relative; }
.card-content { height: 30%; padding: 20px; background: rgba(10, 10, 15, 0.9); border-top: 1px solid var(--purple); transform: translateZ(30px); }
.floating-badge { position: absolute; top: 20px; right: 20px; background: var(--yellow); color: black; padding: 5px 15px; font-weight: 800; transform: translateZ(50px); border-radius: 4px; box-shadow: 0 10px 20px rgba(0,0,0,0.3); }

.setup-section, .features-section { padding: 100px 0; position: relative; }
.setup-section { background: rgba(15, 15, 22, 0.3); }
.grid-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }

.feature-box { background: linear-gradient(160deg, rgba(30,30,40,0.6), rgba(10,10,15,0.8)); border: 1px solid var(--glass-border); padding: 40px; position: relative; overflow: hidden; transition: 0.4s; clip-path: polygon(0 0, 100% 0, 100% 85%, 85% 100%, 0 100%); }
.feature-box:hover { transform: translateY(-10px); background: linear-gradient(160deg, rgba(40,40,60,0.6), rgba(106, 13, 173, 0.1)); }
.feature-box::before { content: ''; position: absolute; top: 0; left: 0; width: 3px; height: 0; background: var(--yellow); transition: 0.4s; }
.feature-box:hover::before { height: 100%; }

.step-number { position: absolute; top: -10px; right: 10px; font-size: 6rem; font-weight: 900; color: rgba(106, 13, 173, 0.1); font-family: 'Montserrat', sans-serif; z-index: 0; user-select: none; transition: 0.4s; }
.feature-box:hover .step-number { color: rgba(255, 208, 0, 0.15); transform: translateY(-10px); }

.f-icon { font-size: 3rem; color: var(--purple); margin-bottom: 20px; transition: 0.4s; }
.feature-box:hover .f-icon { color: var(--yellow); transform: scale(1.1) rotate(5deg); }
.feature-box h3, .feature-box p, .feature-box i { position: relative; z-index: 1; }
.feature-box h3 { font-size: 1.5rem; margin-bottom: 10px; color: white; }
.feature-box p { color: var(--text-muted); line-height: 1.6; font-size: 0.9rem; }


.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85); backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex; justify-content: center; align-items: center;
    opacity: 0; visibility: hidden; transition: 0.4s;
}
.modal-overlay.active { opacity: 1; visibility: visible; }

.auth-box {
    width: 900px; height: 550px; background: #0f0f13;
    border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 20px;
    position: relative; transform: scale(0.95); transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    overflow: hidden; box-shadow: 0 30px 60px rgba(0,0,0,0.8);
    display: flex;
}
.modal-overlay.active .auth-box { transform: scale(1); }
.auth-box.expanded { width: 1100px; }

.close-modal { position: absolute; top: 20px; right: 20px; color: #888; cursor: pointer; font-size: 1.2rem; z-index: 50; transition: 0.3s; }
.close-modal:hover { color: var(--yellow); }

.login-visual-side {
    width: 45%; height: 100%; position: relative; flex-shrink: 0;
    background: url('https://wallpapers.com/images/hd/gta-5-franklin-clinton-purple-smoke-q5n3k6k5k5k5k5k5.jpg') center/cover;
}
.login-visual-side::after { content: ''; position: absolute; top:0; left:0; width:100%; height:100%; background: linear-gradient(135deg, rgba(106, 13, 173, 0.6), rgba(0,0,0,0.8)); }
.visual-content { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding: 40px; }
.visual-content h2 { font-family: 'Montserrat'; font-size: 2.5rem; color: white; line-height: 1; margin-bottom: 10px; }
.visual-content p { color: #ccc; font-size: 0.9rem; }

.form-container-side { width: 55%; background: #0f0f13; position: relative; overflow: hidden; }

.slide-form {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    transition: transform 0.4s ease-in-out, opacity 0.4s ease-in-out;
    opacity: 0; pointer-events: none;
    background: #0f0f13;
    display: flex; flex-direction: column; justify-content: center;
    padding: 50px;
}

.slide-form.active { opacity: 1; pointer-events: auto; transform: translateX(0); z-index: 5; }
#loginFormSection:not(.active) { transform: translateX(-50px); }
#recoverFormSection:not(.active) { transform: translateX(50px); }

.login-header-group { margin-bottom: 30px; }
.login-header-group h2 { font-family: 'Montserrat'; color: white; font-size: 1.8rem; margin-bottom: 5px; }
.login-header-group p { color: #666; font-size: 0.9rem; }
.input-group { margin-bottom: 20px; }
.input-label { display: block; color: #bbb; font-size: 0.85rem; margin-bottom: 8px; font-weight: 600; }
.custom-input { width: 100%; padding: 14px; background: #16161c; border: 1px solid #2a2a35; border-radius: 8px; color: white; font-family: 'Poppins'; outline: none; transition: 0.3s; }
.custom-input:focus { border-color: var(--purple); background: #1a1a22; }

.auth-btn {
    width: 100%; padding: 14px;
    background: linear-gradient(90deg, var(--purple), #8a2be2);
    color: white; border: none; font-weight: 700; font-size: 1rem; border-radius: 8px; cursor: pointer; transition: 0.3s;
    box-shadow: 0 5px 15px rgba(106, 13, 173, 0.3);
}
.auth-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 25px rgba(106, 13, 173, 0.5); }

.forgot-pass-link { display: block; text-align: right; color: #666; font-size: 0.8rem; text-decoration: none; margin-top: -10px; margin-bottom: 25px; transition:0.3s; }
.forgot-pass-link:hover { color: white; }

.msg-box { padding: 12px; border-radius: 6px; font-size: 0.85rem; margin-top: 10px; display: flex; align-items: center; gap: 8px; }
.msg-box.error { background: rgba(231, 76, 60, 0.1); border: 1px solid rgba(231, 76, 60, 0.3); color: #ff6b6b; }
.msg-box.success { background: rgba(46, 204, 113, 0.1); border: 1px solid rgba(46, 204, 113, 0.3); color: #2ecc71; }

#dashboardSection { display: none; width: 100%; height: 100%; padding: 0; }
.dashboard-container { padding: 30px; display: flex; flex-direction: column; gap: 20px; height: 100%; width: 100%; overflow-y: auto; }
.dash-header-card { background: #16161c; border: 1px solid rgba(255,255,255,0.05); padding: 20px; border-radius: 12px; display: flex; align-items: center; justify-content: space-between; }
.user-profile-group { display: flex; align-items: center; gap: 15px; }
.avatar-box { width: 60px; height: 60px; background: linear-gradient(135deg, var(--purple-dark), #222); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: white; border: 1px solid rgba(255,255,255,0.1); }
.dash-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.dash-card { background: #16161c; border: 1px solid rgba(255,255,255,0.05); border-radius: 12px; padding: 20px; display: flex; flex-direction: column; min-height: 200px; }
.card-title { font-family: 'Montserrat'; color: white; font-weight: 700; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; font-size: 0.95rem; }
.card-title i { color: #555; background: #222; padding: 6px; border-radius: 6px; }
.finance-row { display: flex; justify-content: space-between; padding: 10px; background: rgba(255,255,255,0.02); margin-bottom: 8px; border-radius: 6px; align-items: center; }

footer { background: #08080c; padding: 80px 5% 30px 5%; border-top: 1px solid var(--glass-border); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 50px; max-width: 1400px; margin: 0 auto; }
.footer-column h4 { color: var(--yellow); font-family: 'Montserrat', sans-serif; font-size: 1.1rem; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 25px; position: relative; }
.footer-column h4::after { content: ''; position: absolute; bottom: -8px; left: 0; width: 30px; height: 2px; background: var(--purple); }
.footer-column ul { list-style: none; }
.footer-column ul li { margin-bottom: 12px; }
.footer-column ul li a { text-decoration: none; color: var(--text-muted); font-size: 0.9rem; transition: 0.3s; display: flex; align-items: center; gap: 8px; }
.footer-column ul li a:hover { color: var(--purple-glow); transform: translateX(5px); }
.footer-info-item { display: flex; align-items: center; gap: 12px; color: var(--text-muted); font-size: 0.9rem; margin-bottom: 15px; }
.footer-info-item i { color: #ffffff; opacity: 0.9; width: 20px; }
.logo-footer-img { width: 250px; max-width: 100%; height: auto; display: block; margin-bottom: 20px; }

.social-links { display: flex; gap: 12px; margin-top: 25px; }
.social-links a { width: 40px; height: 40px; background: rgba(255,255,255,0.03); display: flex; align-items: center; justify-content: center; color: white; text-decoration: none; clip-path: polygon(15% 0%, 100% 0, 100% 85%, 85% 100%, 0 100%, 0% 15%); transition: 0.3s; border: 1px solid rgba(106, 13, 173, 0.2); }
.social-links a:hover { background: var(--purple); transform: translateY(-5px); box-shadow: 0 5px 15px rgba(106, 13, 173, 0.3); }
.copyright { margin-top: 60px; padding-top: 25px; border-top: 1px solid rgba(255,255,255,0.05); display: flex; justify-content: space-between; align-items: center; color: #555; font-size: 0.8rem; max-width: 1400px; margin-left: auto; margin-right: auto; }


@media (max-width: 768px) {
    nav { padding: 0 20px; height: 60px; }
    .nav-links { display: none; } 
    .nav-logo-img { height: 35px; }

    .layer-back.top, .layer-back.bottom { display: none !important; }
    
    .title-stack {
        height: auto;
        min-height: 150px;
        margin-bottom: 20px;
        margin-top: 80px;
    }
    
    .layer-front {
        font-size: 2.8rem;
        transform: translateZ(0) !important;
        letter-spacing: 1px !important;
    }

    .hero-subtitle { font-size: 0.95rem; margin-bottom: 30px; padding: 0 20px; line-height: 1.5; }

    .hero-buttons-container { 
        flex-direction: row; 
        flex-wrap: wrap; 
        justify-content: center;
        width: 100%; 
        gap: 15px; 
        padding: 0 20px; 
    }

    .cta-btn {
        width: auto !important;
        min-width: 130px;
        padding: 10px 20px;
        font-size: 0.9rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .showcase-text { 
        margin-bottom: 40px; 
        text-align: center; 
        padding: 0 20px;   
    }

    .section-title { 
        font-size: 1.8rem;
        line-height: 1.3;
        margin-bottom: 15px;
    }

    .showcase-text p {
        font-size: 0.9rem;
        line-height: 1.6;
        color: #bbb;
    }

    .showcase-text div[style*="display: flex"] {
        justify-content: center;
        gap: 30px !important;
    }

    .showcase-visual { height: 350px; }

    .auth-box { 
        width: 90%; 
        max-height: 85vh; 
        flex-direction: column; 
        overflow-y: auto; 
        background: #0f0f13; 
    }
    
    .login-visual-side { display: none; }
    
    .form-container-side { 
        width: 100% !important; 
        display: flex;      
        flex-direction: column;
        flex: 1;           
        min-height: 400px; 
    }

    .slide-form { 
        position: relative;
        height: auto; 
        padding: 30px 20px;
        opacity: 0;       
        display: none;      
        transform: none;   
    }
    
    .slide-form.active {
        opacity: 1;
        display: flex; 
        flex-direction: column;
        justify-content: center;
        height: 100%;
    }

    .grid-container { grid-template-columns: 1fr; padding: 0 15px; }
    .feature-box { padding: 25px; margin-bottom: 10px; }
    
    .dash-grid { grid-template-columns: 1fr; }
    .dash-header-card { flex-direction: column; gap: 15px; text-align: center; }
    .user-profile-group { flex-direction: column; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; gap: 30px; }
    .logo-footer-img { margin: 0 auto 20px auto; width: 160px; }
    .copyright { flex-direction: column; gap: 10px; }
}