/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-dark: #0a0a0a;
    --bg-card: #111111;
    --bg-card-hover: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --border-color: #222222;
    --accent-color: #ffffff;
    --discord-color: #5865F2;
    --github-color: #333333;
    --instagram-color: #E1306C;
    --spotify-color: #1DB954;
    --twitter-color: #1DA1F2;
    --youtube-color: #FF0000;
    --tiktok-color: #000000;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: #000000;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Background Grid Pattern (büyük kutucuklar) */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 100px 100px;
    z-index: 0;
    pointer-events: none;
}

/* Mouse Spotlight Gradient */
#backgroundCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Main Section */
.main-section {
    position: relative;
    z-index: 1;
    min-height: calc(100vh - 100px);
    padding: 60px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-container {
    max-width: 1000px;
    width: 100%;
}

/* Top Grid: 3 Column Layout */
.top-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Sol: İletişim Bölümü */
.contact-section-left {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
}

.section-heading {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    color: var(--text-primary);
}

.social-links-vertical {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.social-links-vertical .social-card {
    min-height: auto;
    padding: 0.9rem 1rem;
}

.social-links-vertical .social-icon {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
}

.social-links-vertical .social-info h3 {
    font-size: 0.95rem;
}

/* Sağ: Hakkımda Bölümü */
.about-section-right {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    overflow-y: auto;
    max-height: 500px;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.about-text {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.9rem;
}

.skills-list h3,
.interests h3 {
    font-size: 1rem;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(102, 126, 234, 0.3);
}

.interests ul {
    list-style: none;
    padding: 0;
}

.interests li {
    color: var(--text-secondary);
    padding: 0.5rem 0;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border-color);
}

.interests li:last-child {
    border-bottom: none;
}
/* Top Section: 2 Column (About + Profile) */
.top-section-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
    margin-bottom: 2rem;
    align-items: start;
}

/* Sol taraf kaldırıldı, artık sadece orta ve sağ var */

/* Orta: Hakkımda (Düz metin, kutu yok) */
.about-text-section {
    padding: 1rem 0;
}

.about-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 1.3rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
}

.about-paragraph {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1rem;
    margin-bottom: 1rem;
}

/* Sağ: Discord Profil */
.profile-card-right {
    background: rgba(17, 17, 17, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.8rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: sticky;
    top: 20px;
    transition: all 0.3s ease;
    transform-style: preserve-3d;
    will-change: transform;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.profile-card-right::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at top right, rgba(102, 126, 234, 0.15), transparent 50%),
                radial-gradient(circle at bottom left, rgba(118, 75, 162, 0.15), transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.profile-card-right > * {
    position: relative;
    z-index: 1;
}

.profile-card-right:hover {
    background: rgba(17, 17, 17, 0.7);
    border-color: rgba(255, 255, 255, 0.15);
}

.profile-card-right:hover::before {
    background: radial-gradient(circle at top right, rgba(102, 126, 234, 0.2), transparent 50%),
                radial-gradient(circle at bottom left, rgba(118, 75, 162, 0.2), transparent 50%);
}

/* İletişim Linkleri (Metnin altında, Spotify üstünde) */
.contact-links-bottom {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-links-bottom .social-card {
    min-height: auto;
    padding: 1rem 1.2rem;
}

.profile-image-container {
    position: relative;
    display: inline-block;
}

.profile-image {
    width: 100px;
    height: 100px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--border-color);
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.status-indicator {
    position: absolute;
    bottom: 1rem;
    right: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 3px solid var(--bg-card);
}

.status-online {
    background: #3ba55d;
}

.status-idle {
    background: #faa81a;
}

.status-dnd {
    background: #ed4245;
}

.status-offline {
    background: #747f8d;
}

.profile-name {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.profile-username {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.2rem;
}

.discord-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    background: var(--text-primary);
    color: var(--bg-dark);
    padding: 0.75rem 1.3rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.discord-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
}

/* Spotify Card (Full Width Below Profile) */
.spotify-card-full {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.2rem;
    margin-bottom: 1.2rem;
    transition: all 0.3s ease;
    transform-style: preserve-3d;
    will-change: transform;
}

.spotify-card-full:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
}

.spotify-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.7rem;
    color: var(--text-secondary);
    font-weight: 600;
    letter-spacing: 0.3px;
}

.spotify-header i {
    color: #1DB954;
    font-size: 0.85rem;
}

.spotify-content-full {
    display: flex;
    gap: 1.2rem;
    align-items: center;
}

.spotify-album-full {
    width: 90px;
    height: 90px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}

.spotify-details-full {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 0;
}

.spotify-song-full {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.spotify-artist-full {
    font-size: 0.9rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.spotify-progress-full {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-top: 0.3rem;
}

.progress-bar-full {
    width: 100%;
    height: 5px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill-full {
    height: 100%;
    background: #ffffff;
    border-radius: 3px;
    transition: none;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5), 0 0 20px rgba(255, 255, 255, 0.3);
    will-change: width;
}

.spotify-times {
    display: flex;
    justify-content: space-between;
}

.spotify-time {
    font-size: 0.7rem;
    color: var(--text-secondary);
    font-variant-numeric: tabular-nums;
}

.spotify-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.7rem;
    color: var(--text-secondary);
    font-weight: 600;
    letter-spacing: 0.3px;
}

.spotify-header i {
    color: #1DB954;
    font-size: 0.85rem;
}

.spotify-times {
    display: flex;
    justify-content: space-between;
}

.spotify-time {
    font-size: 0.7rem;
    color: var(--text-secondary);
    font-variant-numeric: tabular-nums;
}

.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: var(--text-secondary);
}

.loading-spinner i {
    font-size: 2rem;
}

.profile-image-container {
    position: relative;
    display: inline-block;
}

.profile-image {
    width: 100px;
    height: 100px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--border-color);
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.status-indicator {
    position: absolute;
    bottom: 1rem;
    right: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 3px solid var(--bg-card);
}

.status-online {
    background: #3ba55d;
}

.status-idle {
    background: #faa81a;
}

.status-dnd {
    background: #ed4245;
}

.status-offline {
    background: #747f8d;
}

.profile-name {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.profile-username {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.2rem;
}

.discord-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    background: var(--text-primary);
    color: var(--bg-dark);
    padding: 0.75rem 1.3rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.discord-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
}

/* Social Links */
.social-links {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.social-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 1.3rem 1.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    color: var(--text-primary);
    min-height: 70px;
    transform-style: preserve-3d;
    will-change: transform;
}

.social-card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.18);
    transform: translateY(-2px);
}

.social-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.social-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.social-info p {
    display: none;
}

.social-arrow {
    display: none;
}

.discord-bg {
    background: #000000;
}

.discord-bg i {
    color: #ffffff;
}

.github-bg {
    background: #000000;
}

.github-bg i {
    color: #ffffff;
}

.instagram-bg {
    background: #000000;
}

.instagram-bg i {
    color: #ffffff;
}

.spotify-bg {
    background: #000000;
}

.spotify-bg i {
    color: #ffffff;
}

.twitter-bg {
    background: #000000;
}

.twitter-bg i {
    color: #ffffff;
}

.youtube-bg {
    background: #000000;
}

.youtube-bg i {
    color: #ffffff;
}

.tiktok-bg {
    background: #000000;
    position: relative;
    overflow: visible;
}

.tiktok-bg i {
    color: #ffffff;
    position: relative;
}

.telegram-bg {
    background: #000000;
}

.telegram-bg i {
    color: #ffffff;
}

.social-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.social-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.social-arrow {
    margin-left: auto;
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .top-grid {
        grid-template-columns: 1fr;
    }
    
    .about-section-right {
        max-height: none;
    }
    
    .social-links {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

@media (max-width: 768px) {
    .main-section {
        padding: 40px 15px;
    }
    
    .social-links {
        grid-template-columns: 1fr;
    }
    
    .spotify-content-full {
        flex-direction: column;
        text-align: center;
    }
    
    .spotify-album-full {
        width: 100%;
        max-width: 200px;
        height: auto;
        aspect-ratio: 1;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .profile-card-center {
        padding: 2rem 1.5rem;
    }

    .social-card {
        padding: 1rem 1.2rem;
    }

    .main-section {
        padding: 30px 15px;
    }
    
    .spotify-card-full {
        padding: 1.2rem;
    }
}



/* Custom Status Bubble */
.status-bubble {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    margin-bottom: 1rem;
    margin-left: auto;
    margin-right: auto;
    font-size: 0.85rem;
    color: var(--text-primary);
    max-width: 90%;
    width: fit-content;
    position: relative;
}

/* Baloncuk kuyruk efekti */
.status-bubble::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid rgba(255, 255, 255, 0.12);
}

.status-bubble::before {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 7px solid rgba(255, 255, 255, 0.06);
    z-index: 1;
}

#customStatusEmoji {
    font-size: 1rem;
    line-height: 1;
    flex-shrink: 0;
}

.status-emoji {
    width: 18px;
    height: 18px;
    vertical-align: middle;
}

#customStatusText {
    white-space: nowrap;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .top-section-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-links-left {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    .profile-card-right {
        position: relative;
        top: 0;
        max-width: 350px;
        margin: 0 auto;
    }
}

/* Footer */
.site-footer {
    position: relative;
    z-index: 1;
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.5);
}

.footer-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.footer-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.footer-visitors {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding: 0.4rem 0.9rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.footer-visitors:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
}

.footer-visitors i {
    color: var(--text-primary);
    font-size: 0.9rem;
}

#visitorCount {
    font-weight: 600;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
}

.visitor-text {
    color: var(--text-secondary);
}

.footer-text {
    font-weight: 600;
    color: var(--text-primary);
}

.footer-divider {
    color: var(--text-secondary);
}

.footer-year {
    color: var(--text-secondary);
}

.footer-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding: 0.4rem 0.8rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.footer-status:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
}

.footer-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #747f8d;
    animation: pulse 2s ease-in-out infinite;
}

.footer-status-dot.online {
    background: #3ba55d;
}

.footer-status-dot.idle {
    background: #faa81a;
}

.footer-status-dot.dnd {
    background: #ed4245;
}

.footer-status-dot.offline {
    background: #747f8d;
    animation: none;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(0.95);
    }
}

.footer-status-text {
    font-weight: 500;
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-center {
        position: static;
        transform: none;
    }
}
