* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    /* Modern color palette */
    --primary: #3a86ff;       /* Primary blue */
    --secondary: #8338ec;     /* Secondary purple */
    --accent: #ff006e;        /* Accent pink (for highlights) */
    --dark: #121212;          /* Dark background */
    --darker: #0a0a0a;        /* Even darker background */
    --card-bg: #1e1e1e;       /* Card background */
    --light-card: #252525;    /* Lighter card background */
    --text: #ffffff;          /* Main text color */
    --text-secondary: #b3b3b3; /* Secondary text */
    --border: #333333;        /* Border color */
    --success: #06d6a0;       /* Success color */
    --warning: #ffd166;       /* Warning color */
}

body {
    background: var(--dark);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* Background Gradient */
.bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at top right, #1a1a2e, var(--dark) 50%);
    opacity: 0.8;
}

/* Music Control Panel */
.music-control-panel {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 1000;
    background: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 1.5rem;
    border: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 250px;
    transition: all 0.3s ease;
}

.music-control-panel:hover {
    background: rgba(30, 30, 30, 0.98);
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.music-btn {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    color: white;
    padding: 12px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.music-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.music-btn:hover::before {
    left: 100%;
}

.music-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(58, 134, 255, 0.4);
}

.music-btn:active {
    transform: translateY(0);
}

.play-btn {
    background: linear-gradient(135deg, var(--success), #2dd4bf);
}

.play-btn:hover {
    box-shadow: 0 8px 25px rgba(6, 214, 160, 0.4);
}

.pause-btn {
    background: linear-gradient(135deg, var(--accent), #f59e0b);
}

.pause-btn:hover {
    box-shadow: 0 8px 25px rgba(255, 0, 110, 0.4);
}

.music-btn i {
    font-size: 1.1rem;
}

.music-status {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border);
}

.music-status span {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-align: center;
    padding: 0.5rem;
    background: var(--darker);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.5rem;
    background: var(--darker);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.volume-control i {
    color: var(--primary);
    font-size: 1rem;
}

.volume-slider {
    flex: 1;
    height: 6px;
    background: var(--border);
    outline: none;
    border-radius: 3px;
    -webkit-appearance: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: var(--primary);
    cursor: pointer;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(58, 134, 255, 0.3);
    transition: all 0.2s ease;
}

.volume-slider::-webkit-slider-thumb:hover {
    background: var(--accent);
    box-shadow: 0 4px 12px rgba(255, 0, 110, 0.4);
    transform: scale(1.2);
}

.volume-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: var(--primary);
    cursor: pointer;
    border-radius: 50%;
    border: none;
    box-shadow: 0 2px 6px rgba(58, 134, 255, 0.3);
    transition: all 0.2s ease;
}

.volume-slider::-moz-range-thumb:hover {
    background: var(--accent);
    box-shadow: 0 4px 12px rgba(255, 0, 110, 0.4);
    transform: scale(1.2);
}

/* Responsive Design for Music Panel */
@media (max-width: 768px) {
    .music-control-panel {
        position: fixed;
        bottom: 20px;
        right: 20px;
        left: 20px;
        top: auto;
        min-width: auto;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 1rem;
    }
    
    .music-btn {
        padding: 10px 15px;
        font-size: 0.9rem;
        flex: 1;
        justify-content: center;
    }
    
    .music-btn span {
        display: none;
    }
    
    .music-status {
        flex-direction: row;
        align-items: center;
        border-top: none;
        border-left: 1px solid var(--border);
        padding-top: 0;
        padding-left: 1rem;
        gap: 0.5rem;
        flex: 1;
    }
    
    .music-status span {
        font-size: 0.8rem;
        padding: 0.3rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .volume-control {
        padding: 0.3rem;
        min-width: 100px;
    }
}

@media (max-width: 480px) {
    .music-control-panel {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .music-btn {
        min-width: 60px;
    }
    
    .music-status {
        width: 100%;
        border-left: none;
        border-top: 1px solid var(--border);
        padding-left: 0;
        padding-top: 0.5rem;
        margin-top: 0.5rem;
    }
}

/* General Typography */
h1, h2, h3 {
    font-weight: 700;
    letter-spacing: 0.5px;
}

h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2rem;
    color: var(--text);
}

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent);
}

/* Navigation */
nav {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-shadow: 0 0 10px rgba(58, 134, 255, 0.5);
}

nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
}

nav a {
    color: var(--text);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

/* Header & Profile Styling */
header {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 6rem 2rem 2rem;
    position: relative;
}

/* Modern Profile Showcase */
.profile-showcase {
    position: relative;
    margin-bottom: 4.5rem; /* Badge ve yazılar için daha fazla boşluk */
    width: 220px;
}

.profile-frame {
    position: relative;
    width: 210px;
    height: 210px;
    margin: 0 auto;
    border-radius: 28px;
    background: linear-gradient(145deg, var(--card-bg), var(--darker));
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    padding: 5px;
    z-index: 1;
    overflow: hidden;
}

.profile-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 90deg,
        transparent 60%,
        var(--primary) 75%,
        var(--accent) 85%,
        var(--secondary) 95%,
        transparent 100%
    );
    opacity: 0.2;
    z-index: -1;
    animation: rotate-glow 8s linear infinite;
}

@keyframes rotate-glow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.profile-img {
    width: 100%;
    height: 100%;
    border-radius: 22px;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 2;
}

.profile-showcase:hover .profile-img {
    transform: scale(1.05);
}

.profile-outline {
    position: absolute;
    inset: 0;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    z-index: 3;
    pointer-events: none;
}

/* Status indicator */
.profile-status {
    position: absolute;
    bottom: -15px;
    right: 20px;
    background: var(--card-bg);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--success);
    border: 1px solid rgba(6, 214, 160, 0.3);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 15; /* Z-index arttırıldı */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.status-dot {
    width: 10px;
    height: 10px;
    background-color: var(--success);
    border-radius: 50%;
    display: block;
    position: relative;
}

.status-dot::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background-color: var(--success);
    border-radius: 50%;
    opacity: 0.4;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.4; }
    50% { transform: scale(1.8); opacity: 0; }
    100% { transform: scale(1); opacity: 0.4; }
}

/* Badges */
.profile-badges {
    display: flex;
    gap: 1rem;
    position: absolute;
    bottom: -30px; /* Badge'leri daha aşağıya taşıdık */
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
}

.badge {
    background: var(--card-bg);
    padding: 0.6rem 1.2rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.badge.developer {
    border-left: 3px solid var(--primary);
}

.badge.gamer {
    border-left: 3px solid var(--accent);
}

.badge i {
    font-size: 1rem;
}

.badge.developer i {
    color: var(--primary);
}

.badge.gamer i {
    color: var(--accent);
}

.badge:hover {
    transform: translateY(-3px);
}

/* Animation for showcase on page load */
@keyframes profileReveal {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.profile-showcase {
    animation: profileReveal 1s ease-out forwards;
}

h1 .highlight {
    color: var(--accent);
    position: relative;
    display: inline-block;
    text-shadow: 0 0 10px rgba(255, 0, 110, 0.5);
}

h1 .highlight::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    bottom: 0;
    left: 0;
    background-color: var(--accent);
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 12px;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    background: var(--card-bg);
    border: 1px solid var(--border);
}

.social-icon:hover {
    transform: translateY(-5px);
}

.github:hover {
    background: #333;
    color: white;
    border-color: #333;
}

.discord:hover {
    background: #5865F2;
    color: white;
    border-color: #5865F2;
}

.instagram:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: white;
    border-color: #dc2743;
}

.youtube:hover {
    background: #FF0000;
    color: white;
    border-color: #FF0000;
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

section {
    margin-bottom: 5rem;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    position: relative;
}

.section-header::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    height: 3px;
    width: 60px;
    background: var(--primary);
}

.section-icon {
    font-size: 1.5rem;
    margin-left: 0.5rem;
}

.content-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid var(--border);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

/* Projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.project-image {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}

.project-image img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-content h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.project-content p {
    margin-bottom: 1rem;
    flex-grow: 1;
}

.project-tag {
    background: var(--darker);
    color: var(--primary);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    display: inline-block;
    margin-right: 0.5rem;
    margin-top: 0.5rem;
    border: 1px solid rgba(58, 134, 255, 0.3);
}

.project-status {
    margin-top: auto;
}

.status-badge {
    background: var(--darker);
    color: var(--success);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(6, 214, 160, 0.3);
    display: inline-block;
}

/* Two Column Layout */
.two-column-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 5rem;
}

@media (max-width: 768px) {
    .two-column-section {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Discord Profile Styles */
.discord-profile {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.discord-profile img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Skills Section */
.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.skill-tag {
    background: var(--darker);
    color: var(--text);
    padding: 0.8rem 1.2rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.skill-tag:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
    box-shadow: 0 5px 15px rgba(58, 134, 255, 0.2);
}

.skill-icon {
    font-size: 1.1rem;
}

/* GitHub Repositories */
.repos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.repo-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 1.5rem;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.repo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    border-color: var(--primary);
}

.repo-name {
    color: var(--primary);
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.repo-name i {
    color: var(--text-secondary);
}

.repo-description {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.repo-stats {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.repo-stat {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.repo-stat i {
    color: var(--primary);
}

.error-message {
    text-align: center;
    color: var(--accent);
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 15px;
    border: 1px solid var(--border);
}

/* Footer */
footer {
    background: var(--darker);
    text-align: center;
    padding: 3rem 2rem;
    border-top: 1px solid var(--border);
    margin-top: 5rem;
}

footer .status-badge {
    margin-bottom: 1rem;
}

footer p {
    color: var(--text-secondary);
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    nav ul {
        gap: 1rem;
    }

    h1 {
        font-size: 2.5rem;
    }

    header {
        padding: 5rem 1rem 2rem;
    }

    .profile-badges {
        flex-direction: column;
        gap: 0.5rem;
        bottom: -50px;
    }

    .social-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    main {
        padding: 1rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .repos-grid {
        grid-template-columns: 1fr;
    }

    .skills-list {
        justify-content: center;
    }

    .profile-showcase {
        margin-bottom: 6rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .logo {
        font-size: 1.2rem;
    }

    nav ul {
        flex-direction: column;
        text-align: center;
    }

    .profile-frame {
        width: 180px;
        height: 180px;
    }

    .profile-showcase {
        width: 190px;
        margin-bottom: 7rem;
    }

    .badge {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
}

/* Animation Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Apply animations to elements */
.content-card {
    animation: fadeInUp 0.8s ease-out;
}

.project-card {
    animation: slideInLeft 0.8s ease-out;
}

.skill-tag {
    animation: slideInRight 0.8s ease-out;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection styling */
::selection {
    background: var(--accent);
    color: white;
}

::-moz-selection {
    background: var(--accent);
    color: white;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--dark);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}
