:root {
    --bg-color: #050505;
    --text-color: #ffffff;
    --accent-1: #00ff9d;
    /* Neon Green */
    --accent-2: #0ea5e9;
    /* Sky Blue */
    --accent-3: #ccff33;
    /* Lime */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.05);
    --font-main: 'Space Grotesk', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #000;
    /* Fallback */
    /* background-image removed for video */
    background-attachment: fixed;

    color: var(--text-color);
    font-family: var(--font-main);
    overflow: hidden;
    /* Prevent scroll for the "app" feel */
    height: 100vh;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    cursor: none;
    /* Hide default cursor */
}

/* Background Video */
#bg-video {
    position: fixed;
    right: 0;
    bottom: 0;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -1;
    object-fit: cover;
    opacity: 0.8;
    /* Slight dim for readability */
}

/* Ensure cursor is hidden on all interactive elements */
a,
button,
.node-link {
    cursor: none;
}

/* Ambient Background Glows */
.ambient-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    z-index: 1;
    animation: float 10s infinite ease-in-out;
}

.glow-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-1), transparent 70%);
    top: -10%;
    left: -10%;
}

.glow-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-2), transparent 70%);
    bottom: -10%;
    right: -10%;
    animation-delay: -5s;
}

/* Custom Cursor Elements */
.cursor-dot {
    position: fixed;
    width: 8px;
    height: 8px;
    background-color: white;
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    mix-blend-mode: exclusion;
    transition: width 0.3s, height 0.3s, background-color 0.3s;
}

/* Hover state for cursor dot */
body.hovering .cursor-dot {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(2px);
}

/* Cursor Follower Glow */
.cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 255, 157, 0.15), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 2;
    transition: width 0.3s, height 0.3s;
    mix-blend-mode: screen;
}

/* Neural Network Canvas */
#neural-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    /* Between glow (1) and noise (3) */
    pointer-events: none;
    opacity: 0.6;
}

/* System HUD */
.system-hud {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-family: monospace;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    z-index: 50;
    text-align: right;
    pointer-events: none;
}

.hud-item span {
    color: var(--accent-2);
    font-weight: bold;
}

.status-online {
    color: #00ff00 !important;
    text-shadow: 0 0 5px #00ff00;
}

/* Vignette Effect (Cinematic Dark Corners) */
#vignette {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    background: radial-gradient(circle, transparent 40%, rgba(0, 0, 0, 0.8) 100%);
}

/* Texture Overlay for Grain effect */
.overlay-texture {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 3;
}

/* Main Content */
.container {
    position: relative;
    z-index: 10;
    text-align: center;
}

.content-wrapper {
    background: rgba(10, 20, 15, 0.4);
    /* Darker tint for readability */
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    /* Highlight top edge */
    border-bottom: 1px solid rgba(0, 0, 0, 0.3);
    /* Shadow bottom edge */
    padding: 3rem 6rem;
    border-radius: 32px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.content-wrapper:hover {
    box-shadow: 0 30px 60px rgba(0, 255, 157, 0.1);
    border-color: rgba(0, 255, 157, 0.2);
    transform: translateY(-5px);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 0.5rem;
    opacity: 0;
}

.header-profile-img {
    width: 165px;
    height: 165px;
    border-radius: 50%;
    object-fit: cover;
    /* filter: grayscale(100%);  Remove grayscale based on user request for "logo styling" usually implying color */
    border: 3px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.header-profile-img:hover {
    border-color: var(--accent-1);
    transform: scale(1.05) rotate(5deg);
    box-shadow: 0 0 25px rgba(0, 255, 157, 0.4);
}

.intro-finished .header-row {
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    animation-delay: 0.1s;
}

.status-icons {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(10, 10, 10, 0.6);
    padding: 0.8rem 1.2rem;
    border-radius: 99px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.status-icons i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.status-icons i:hover {
    transform: scale(1.2) rotate(10deg);
}

.icon-robot {
    color: var(--accent-1);
    /* Neon Green */
    filter: drop-shadow(0 0 8px var(--accent-1));
}

.icon-bolt {
    color: var(--accent-3);
    /* Lime/Yellow */
    filter: drop-shadow(0 0 8px var(--accent-3));
}

.icon-ghost {
    color: var(--accent-2);
    /* Sky Blue */
    filter: drop-shadow(0 0 8px var(--accent-2));
}

.icon-code {
    color: #f72585;
    /* Neon Pink */
    filter: drop-shadow(0 0 8px #f72585);
}

/* Typography */
h1.glitch-text {
    font-size: 4rem;
    font-weight: 600;
    margin-bottom: 0;
    /* Alignment handled by row gap */
    letter-spacing: -2px;
    position: relative;
    /* New Greenish Gradient */
    background: linear-gradient(135deg, #00ff9d 0%, #00b8ff 50%, #ccff33 100%);
    background-size: 200% auto;
    animation: shine 5s linear infinite;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 15px rgba(0, 255, 157, 0.4));

    /* Typewriter Cursor */
    border-right: 4px solid var(--accent-1);
    white-space: nowrap;
    overflow: hidden;
    padding-right: 5px;
}

.subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 3rem;
    font-weight: 300;
    opacity: 0;
}

.intro-finished .subtitle {
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    animation-delay: 0.3s;
}

/* Interactive Grid (Minimal Links) */
.interactive-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    opacity: 0;
}

.intro-finished .interactive-grid {
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    animation-delay: 0.5s;
}

.node-link {
    text-decoration: none;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.node-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    transition: all 0.4s ease;
    border: 1px solid transparent;
}

.node-link:hover .node-icon {
    background: rgba(67, 97, 238, 0.2);
    box-shadow: 0 0 20px var(--accent-2);
    border-color: var(--accent-2);
    transform: scale(1.1);
}

.node-link:nth-child(2):hover .node-icon {
    background: rgba(123, 44, 191, 0.2);
    box-shadow: 0 0 20px var(--accent-1);
    border-color: var(--accent-1);
}

.node-link:nth-child(3):hover .node-icon {
    background: rgba(247, 37, 133, 0.2);
    box-shadow: 0 0 20px var(--accent-3);
    border-color: var(--accent-3);
}

.node-label {
    font-size: 0.9rem;
    opacity: 0.6;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.node-link:hover .node-label {
    opacity: 1;
    transform: translateY(0);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Animations */
@keyframes float {
    0% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(30px, -30px);
    }

    100% {
        transform: translate(0, 0);
    }
}

@media (max-width: 768px) {
    h1.glitch-text {
        font-size: 2.5rem;
    }

    .content-wrapper {
        padding: 2rem;
        width: 90%;
    }

    .interactive-grid {
        gap: 1rem;
    }
}

/* Overlay Sections */
.overlay-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(3, 3, 3, 0.95);
    backdrop-filter: blur(15px);
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    transform: scale(0.95);
}

.overlay-section.active {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

.overlay-content {
    max-width: 800px;
    width: 90%;
    color: white;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem;
}

.overlay-content::-webkit-scrollbar {
    width: 6px;
}

.overlay-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.overlay-content::-webkit-scrollbar-thumb {
    background: var(--accent-1);
    border-radius: 10px;
    box-shadow: 0 0 10px var(--accent-1);
}

.overlay-content.centered {
    text-align: center;
}

.overlay-content h2 {
    font-size: 3rem;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, #fff 0%, #aaa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
    display: inline-block;
}

.close-btn {
    position: absolute;
    top: 2rem;
    right: 3rem;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 3rem;
    cursor: pointer;
    transition: color 0.3s;
    line-height: 1;
    z-index: 101;
}

.close-btn:hover {
    color: white;
}

/* Timeline (Deneyim) */
.timeline {
    border-left: 2px solid rgba(255, 255, 255, 0.1);
    padding-left: 2rem;
    text-align: left;
}

.timeline-item {
    margin-bottom: 3rem;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.6rem;
    top: 0.5rem;
    width: 1rem;
    height: 1rem;
    background: var(--accent-1);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-1);
}

.timeline-item:nth-child(2)::before {
    background: var(--accent-2);
    box-shadow: 0 0 10px var(--accent-2);
}

.timeline-item:nth-child(3)::before {
    background: var(--accent-3);
    box-shadow: 0 0 10px var(--accent-3);
}

.timeline-item .date {
    font-size: 0.9rem;
    opacity: 0.5;
    display: block;
    margin-bottom: 0.5rem;
    font-family: monospace;
}

.timeline-item h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.timeline-item p {
    font-weight: 300;
    opacity: 0.8;
}

/* Social Links (Bağlantı) */
.social-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 500px;
    margin: 0 auto;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: white;
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-2);
    transform: translateY(-5px);
}

/* Intro Sequence */
#intro-overlay {
    position: fixed;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--accent-2);
    font-family: monospace;
    font-size: 1.5rem;
    flex-direction: column;
}

.intro-text {
    opacity: 0;
    animation: fadeInOut 3s forwards;
}

.bar-loader {
    width: 200px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    margin-top: 1rem;
    position: relative;
    overflow: hidden;
}

.bar-loader::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: var(--accent-3);
    animation: loadBar 2.5s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

@keyframes fadeInOut {
    0% {
        opacity: 0;
        letter-spacing: 0px;
    }

    20% {
        opacity: 1;
        letter-spacing: 2px;
    }

    80% {
        opacity: 1;
        letter-spacing: 2px;
    }

    100% {
        opacity: 0;
        letter-spacing: 5px;
    }
}

@keyframes loadBar {
    0% {
        width: 0%;
    }

    100% {
        width: 100%;
    }
}

.hidden-intro {
    opacity: 0;
    pointer-events: none;
    transition: opacity 1s ease;
}

/* Lab Grid */
.lab-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: left;
}

.lab-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    text-align: center;
}

.lab-item:hover {
    border-color: var(--accent-3);
    background: rgba(255, 255, 255, 0.08);
}

.lab-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--accent-3);
}

.lab-item h3 {
    margin-bottom: 0.5rem;
}


@keyframes shine {
    to {
        background-position: 200% center;
    }
}

/* Spotify Widget - Detailed Card Style */
.spotify-widget {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    /* Hafif yuvarlatılmış köşeler */
    z-index: 50;
    /* Behind overlays (z-index 100) */
    transition: transform 0.3s ease, border-color 0.3s ease;
    width: 320px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}

.spotify-widget.offline {
    filter: grayscale(1);
    opacity: 0.7;
    pointer-events: none;
}

.spotify-widget:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
}

.spotify-album-art {
    width: 64px;
    height: 64px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.spotify-album-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.spotify-widget:hover .spotify-album-art img {
    transform: scale(1.1);
}

.spotify-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    overflow: hidden;
}

.song-info {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.song-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.artist-name {
    font-weight: 400;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* .spotify-controls removed */

.spotify-progress-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    width: 100%;
}

.spotify-progress-bar {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.spotify-progress-fill {
    width: 65%;
    /* Simulated progress */
    height: 100%;
    background-color: #1DB954;
    border-radius: 4px;
}

.time-stamp {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
    font-family: monospace;
}

/* Branding Signature */
.brand-signature {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    opacity: 0.6;
    z-index: 50;
    /* Behind overlays */
    letter-spacing: 0.5px;
    font-weight: 300;
    pointer-events: none;
    color: rgba(255, 255, 255, 0.8);
    font-family: var(--font-main);
}

.brand-signature span {
    font-weight: 600;
    color: var(--accent-3);
    text-shadow: 0 0 10px rgba(247, 37, 133, 0.5);
}