:root {
    --bg-dark: #0d1117;
    /* Deeper Dark BG */
    --bg-card: #161b22;
    /* GitHub-style dark card */
    --primary: #57e92f;
    /* Vibrant Green */
    --primary-hover: #45bd23;
    /* Slightly darker green */
    --primary-glow: rgba(87, 233, 47, 0.4);
    --secondary: rgba(34, 12, 200, 0.1);
    --text-main: #f0f6fc;
    --text-muted: #8b949e;
    --accent: #220cc8;
    /* Blue Accent */
    --glow-1: rgba(34, 12, 200, 0.6);
    --glow-2: rgba(87, 233, 47, 0.3);
    --border: rgba(48, 54, 61, 0.8);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

h1,
h2,
h3,
.logo {
    font-family: 'Outfit', sans-serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Subtle Pixel Background */
.pixels-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

/* Glow Background */
.glow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
}

#orb-1 {
    width: 600px;
    height: 600px;
    background: var(--glow-1);
    top: -200px;
    left: -100px;
}

#orb-2 {
    width: 500px;
    height: 500px;
    background: var(--glow-2);
    bottom: -100px;
    right: -100px;
}

/* Navbar Redesign */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 2000;
    background: rgba(22, 28, 37, 0.8);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.nav-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-main);
    text-decoration: none;
    letter-spacing: 1px;
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 3rem;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
}

/* Hero Section - Minimalist Typographic */
.hero {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 100px 0;
    overflow: hidden;
    background: radial-gradient(circle at center, rgba(50, 208, 197, 0.08) 0%, transparent 70%);
}

.hero-decorations {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
}

.hero-pixel {
    position: absolute;
    width: 15px;
    height: 15px;
    background: var(--primary);
    opacity: 0.15;
    border-radius: 2px;
    animation: float 8s infinite ease-in-out;
}

.p1 {
    top: 15%;
    left: 10%;
    animation-delay: 0s;
}

.p2 {
    top: 70%;
    right: 15%;
    animation-delay: 2s;
}

.p3 {
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

.p4 {
    top: 40%;
    right: 25%;
    animation-delay: 1s;
    width: 10px;
    height: 10px;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.15;
    }

    50% {
        transform: translateY(-40px) rotate(45deg);
        opacity: 0.3;
    }
}

.hero-content {
    z-index: 10;
    width: 100%;
}

.hero-render {
    position: absolute;
    left: 5%;
    /* Swapped from right */
    bottom: 0;
    height: 90%;
    z-index: 5;
    pointer-events: none;
    opacity: 0.9;
    filter: drop-shadow(0 0 50px rgba(50, 208, 197, 0.2));
    animation: renderFadeIn 1.5s ease-out;
}

.hero-render img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

@keyframes renderFadeIn {
    from {
        transform: translateX(-50px);
        opacity: 0;
    }

    /* Anim direction swapped */
    to {
        transform: translateX(0);
        opacity: 0.9;
    }
}

.hero-text.minimalist {
    text-align: right;
    /* Swapped from left */
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    /* Swapped from flex-start */
    max-width: 1200px;
    margin: 0 auto;
    padding-right: 2rem;
    /* Swapped from padding-left */
    padding-left: 0;
}

.hero-signature {
    font-family: 'Reenie Beanie', cursive;
    font-size: 12rem;
    color: var(--text-main);
    line-height: 1.2;
    padding-bottom: 0.2em;
    padding-right: 0.1em;
    margin-bottom: 2rem;
    text-transform: none;
    background: linear-gradient(to bottom, var(--text-main) 40%, var(--primary) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 30px var(--glow-1));
    animation: signatureGlow 4s infinite alternate ease-in-out;
}

@keyframes signatureGlow {
    from {
        filter: drop-shadow(0 0 20px rgba(50, 208, 197, 0.2));
    }

    to {
        filter: drop-shadow(0 0 40px rgba(50, 208, 197, 0.5));
    }
}

.hero-text .badge {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--primary);
    padding: 0.5rem 1.5rem;
    font-size: 0.75rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 2rem;
    display: inline-block;
}

.hero-text p {
    font-size: 1.4rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 4rem;
}

/* Button Base Styles */
.btn {
    padding: 1rem 2.5rem;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    font-size: 1rem;
    display: inline-block;
    border: none;
    text-align: center;
}

.btn:hover {
    transform: translateY(-3px);
}

.btn-primary {
    background: var(--primary);
    color: var(--bg-dark);
    box-shadow: 0 0 30px var(--glow-2);
}

.btn-primary:hover {
    background: var(--primary-hover);
    box-shadow: 0 0 40px var(--glow-2);
}

.btn-secondary {
    border: 1px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-secondary:hover {
    background: var(--secondary);
}

/* Support Cards Refinement */
.support-logo {
    margin-bottom: 1.5rem;
    height: 60px;
    display: flex;
    align-items: center;
}

.support-logo img {
    height: 100%;
    object-fit: contain;
}

/* Support specific button styles */
.btn-ium {
    background: #57e92f;
    color: #161C25;
    font-weight: 700;
}

.btn-discord,
.btn-patreon {
    background: white;
    color: #333;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.image-wrapper {
    position: relative;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    position: relative;
    z-index: 2;
    padding: 8px;
}

.image-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 110%;
    height: 110%;
    background: radial-gradient(circle, var(--glow-1) 0%, transparent 70%);
    filter: blur(30px);
    z-index: 1;
    animation: pulse 4s infinite ease-in-out;
}

/* Footer & Signature */
.footer {
    padding: 6rem 0 4rem;
    background: var(--bg-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--border);
}

.footer-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.signature {
    font-family: 'Reenie Beanie', cursive;
    font-size: 6rem;
    color: var(--text-main);
    text-shadow: 0 0 20px var(--glow-1);
    transition: var(--transition);
    cursor: default;
    line-height: 1;
}

.footer-socials {
    display: flex;
    gap: 2rem;
    z-index: 5;
}

.footer-socials a {
    color: var(--text-muted);
    font-size: 1.5rem;
    transition: var(--transition);
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.footer-credit {
    font-size: 0.85rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.footer-rights {
    font-size: 0.75rem;
    color: var(--text-muted);
    opacity: 0.6;
}

.footer-credit span {
    color: var(--primary);
    font-weight: 700;
}

.heart-icon {
    color: #ff424d;
    margin: 0 4px;
    animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

.footer-socials a:hover {
    color: var(--primary);
    transform: translateY(-5px);
    text-shadow: 0 0 15px var(--primary);
}

.footer-glow {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 100px;
    background: radial-gradient(ellipse, var(--glow-1) 0%, transparent 70%);
    filter: blur(30px);
    z-index: 1;
    opacity: 0.6;
}

/* Section Spacing Fix */
section {
    scroll-margin-top: 100px;
}

@media (max-width: 768px) {
    .nav-links {
        gap: 1rem;
        font-size: 0.85rem;
    }

    .logo {
        font-size: 1.4rem;
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.8;
    }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mouse {
    width: 25px;
    height: 40px;
    border: 2px solid var(--text-muted);
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--text-muted);
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
    animation: scroll 2s infinite ease-in-out;
}

@keyframes scroll {
    0% {
        transform: translate(-50%, 0);
        opacity: 0;
    }

    30% {
        opacity: 1;
    }

    100% {
        transform: translate(-50%, 15px);
        opacity: 0;
    }
}

/* Mobile Responsive */
@media (max-width: 968px) {
    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
        gap: 2rem;
    }

    .hero-text h1 {
        font-size: 3rem;
    }

    .hero-text p {
        margin: 0 auto 2.5rem;
    }

    .hero-actions {
        justify-content: center;
    }

    .image-wrapper {
        width: 300px;
        height: 300px;
    }

    .nav-links {
        display: none;
        /* Basitlik için şimdilik gizleyelim */
    }
}

/* Section Shared Styles */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-top: 5rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.highlight {
    color: var(--primary);
}

/* Portfolio Filters */
.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
    cursor: pointer;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px -15px var(--glow-1);
}

.item-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #1e2030;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
    transition: var(--transition);
}

.portfolio-item:hover .item-image img {
    transform: scale(1.05);
}

.item-info {
    padding: 1.5rem;
}

.item-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.item-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Support Section */
.support-cards {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-top: 2rem;
    padding-bottom: 5rem;
}

.support-card {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 15px;
    flex: 1;
    max-width: 500px;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.support-card.discord {
    background: linear-gradient(135deg, #5865f2 0%, #4752c4 100%);
}

.support-card.patreon {
    background: linear-gradient(135deg, #ff424d 0%, #e83a44 100%);
}

.support-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.support-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.support-card p {
    margin-bottom: 2rem;
    color: var(--text-muted);
}

.btn-discord,
.btn-patreon {
    background: white;
    color: #333;
    align-self: flex-start;
    border-radius: 8px;
    padding: 0.8rem 1.5rem;
    border: none;
    box-shadow: 0 5px 15px -5px rgba(0, 0, 0, 0.2);
}

.btn-discord:hover,
.btn-patreon:hover {
    transform: scale(1.05);
    background: #f8f8f8;
}

/* Clean & Sharp Modal Redesign */
.modal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(13, 17, 23, 0.9);
}

.modal-content {
    position: relative;
    background-color: #161b22;
    margin: 8vh auto;
    width: 90%;
    max-width: 850px;
    border: 2px solid var(--primary);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 40px rgba(50, 208, 197, 0.2);
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    color: var(--text-muted);
    font-size: 2.5rem;
    cursor: pointer;
    transition: var(--transition);
    z-index: 100;
}

.close-modal:hover {
    color: var(--primary);
}

.modal-header {
    padding: 2rem;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.modal-header h2 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.modal-header p {
    color: var(--text-muted);
    font-size: 0.8rem;
    letter-spacing: 4px;
}

.modal-body {
    padding: 0;
}

.modal-image-container {
    width: 100%;
    height: 450px;
    background: #0d1117;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.modal-image-container img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.modal-info {
    padding: 2rem;
    background: #1c2331;
    text-align: center;
}

.modal-info p {
    color: var(--text-main);
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .support-cards {
        flex-direction: column;
    }
}