﻿/* ==================== CSS Variables ==================== */
:root {
    /* Colors */
    --primary-color: #00f0ff;
    --secondary-color: #7000ff;
    --accent-color: #ff00e5;
    --bg-dark: #0a0a0f;
    --bg-darker: #050508;
    --bg-card: rgba(20, 20, 30, 0.6);
    --text-primary: #ffffff;
    --text-secondary: #b0b0c8;
    --text-muted: #6b6b8a;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --gradient-accent: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    --gradient-bg: linear-gradient(180deg, var(--bg-darker) 0%, var(--bg-dark) 100%);

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Typography */
    --font-primary: 'Inter', sans-serif;
    --font-display: 'Orbitron', sans-serif;

    /* Effects */
    --blur-sm: 10px;
    --blur-md: 20px;
    --blur-lg: 40px;
    --shadow-glow: 0 0 30px rgba(0, 240, 255, 0.3);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ==================== Light Theme ==================== */
body.light-theme {
    /* Background Colors */
    --bg-dark: #f8f9ff;
    --bg-darker: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.9);

    /* Text Colors */
    --text-primary: #1a1a2e;
    --text-secondary: #4a4a6a;
    --text-muted: #7a7a9a;

    /* Primary Colors - Adjusted for light mode */
    --primary-color: #0066ff;
    --secondary-color: #6b46ff;
    --accent-color: #ff0099;

    /* Gradients - Light mode optimized */
    --gradient-primary: linear-gradient(135deg, #0066ff, #6b46ff);
    --gradient-accent: linear-gradient(135deg, #ff0099, #6b46ff);
    --gradient-bg: linear-gradient(180deg, #ffffff 0%, #f0f2ff 100%);

    /* Effects */
    --shadow-glow: 0 0 30px rgba(0, 102, 255, 0.15);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.08);

    /* Particle colors for light mode */
    --particle-color: rgba(0, 102, 255, 0.3);
}

/* Light mode specific adjustments */
body.light-theme .background-animation {
    opacity: 0.4;
}

body.light-theme .grid-overlay {
    background: linear-gradient(90deg, rgba(0, 102, 255, 0.03) 1px, transparent 1px),
        linear-gradient(rgba(0, 102, 255, 0.03) 1px, transparent 1px);
}

body.light-theme .navbar {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(0, 102, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

body.light-theme .glass-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 102, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

body.light-theme .hero {
    background: linear-gradient(135deg, #e6f0ff 0%, #f0e6ff 50%, #ffe6f7 100%);
}

body.light-theme .code-terminal {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 102, 255, 0.15);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

body.light-theme .terminal-header {
    background: rgba(240, 245, 255, 0.95);
    border-bottom: 1px solid rgba(0, 102, 255, 0.1);
}

body.light-theme .terminal-content {
    color: var(--text-primary);
}

body.light-theme .prompt {
    color: var(--primary-color);
}

body.light-theme .command {
    color: var(--text-primary);
}

body.light-theme .output-text {
    color: var(--text-secondary);
}

body.light-theme .timeline::before {
    background: linear-gradient(180deg, rgba(0, 102, 255, 0.2), rgba(107, 70, 255, 0.2));
}

body.light-theme .timeline-badge {
    background: var(--gradient-primary);
    box-shadow: 0 0 20px rgba(0, 102, 255, 0.3);
}

body.light-theme .btn-primary {
    box-shadow: 0 4px 20px rgba(0, 102, 255, 0.3);
}

body.light-theme .btn-primary:hover {
    box-shadow: 0 8px 30px rgba(0, 102, 255, 0.4);
}

body.light-theme .stat-item {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(0, 102, 255, 0.2);
    padding: 1.5rem 2rem;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 102, 255, 0.15);
    backdrop-filter: blur(10px);
}


body.light-theme .stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 102, 255, 0.25);
    border-color: rgba(0, 102, 255, 0.4);
}

body.light-theme .contact-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 102, 255, 0.1);
}

body.light-theme .footer {
    background: rgba(240, 245, 255, 0.8);
    border-top: 1px solid rgba(0, 102, 255, 0.1);
}

body.light-theme .fab-button {
    box-shadow: 0 4px 20px rgba(0, 102, 255, 0.3);
}

body.light-theme .fab-item {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 102, 255, 0.15);
}

body.light-theme .scroll-progress {
    background: var(--gradient-primary);
}

/* Light mode - Improve readability */
body.light-theme .hero-title {
    color: var(--text-primary);
    text-shadow: 0 2px 10px rgba(0, 102, 255, 0.1);
}

body.light-theme .section-title {
    color: var(--text-primary);
}

body.light-theme .info-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 102, 255, 0.1);
}

body.light-theme .timeline-content {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 102, 255, 0.1);
}

/* Particle effect for light mode */
body.light-theme canvas#particles {
    opacity: 1 !important;
    filter: brightness(1) !important;
}


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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-primary);
    background: var(--gradient-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ==================== Loading Screen ==================== */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0a0f 0%, #1a0a2e 50%, #0a0a0f 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.8s ease, visibility 0.8s ease;
    overflow: hidden;
}

.loading-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(0, 240, 255, 0.1) 0%, transparent 70%);
    animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseGlow {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(1.1);
    }
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-container {
    position: relative;
    width: 200px;
    height: 200px;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hexagon Loader */
.hexagon-loader {
    position: relative;
    width: 100%;
    height: 100%;
}

.hexagon {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 35px;
    background: var(--primary-color);
    transform: translate(-50%, -50%);
    opacity: 0;
    animation: hexagonPulse 3s ease-in-out infinite;
}

.hexagon::before,
.hexagon::after {
    content: '';
    position: absolute;
    width: 0;
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
}

.hexagon::before {
    bottom: 100%;
    border-bottom: 17.5px solid var(--primary-color);
}

.hexagon::after {
    top: 100%;
    border-top: 17.5px solid var(--primary-color);
}

/* Individual hexagon animations */
.hex-1 {
    animation-delay: 0s;
    transform: translate(-50%, -50%) rotate(0deg) translateY(-80px);
}

.hex-2 {
    animation-delay: 0.2s;
    transform: translate(-50%, -50%) rotate(60deg) translateY(-80px);
}

.hex-3 {
    animation-delay: 0.4s;
    transform: translate(-50%, -50%) rotate(120deg) translateY(-80px);
}

.hex-4 {
    animation-delay: 0.6s;
    transform: translate(-50%, -50%) rotate(180deg) translateY(-80px);
}

.hex-5 {
    animation-delay: 0.8s;
    transform: translate(-50%, -50%) rotate(240deg) translateY(-80px);
}

.hex-6 {
    animation-delay: 1s;
    transform: translate(-50%, -50%) rotate(300deg) translateY(-80px);
}

.hex-7 {
    animation-delay: 1.2s;
    transform: translate(-50%, -50%) scale(0.6);
    background: var(--accent-color);
}

.hex-7::before {
    border-bottom-color: var(--accent-color);
}

.hex-7::after {
    border-top-color: var(--accent-color);
}

@keyframes hexagonPulse {

    0%,
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) rotate(var(--rotation, 0deg)) translateY(-80px) scale(0.5);
        filter: brightness(1);
    }

    50% {
        opacity: 1;
        transform: translate(-50%, -50%) rotate(var(--rotation, 0deg)) translateY(-80px) scale(1);
        filter: brightness(1.5) drop-shadow(0 0 20px var(--primary-color));
    }
}

/* Loader Text */
.loader-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Courier New', monospace;
    font-size: 1.5rem;
    font-weight: 600;
    z-index: 10;
    white-space: nowrap;
}

.loader-text .command-line {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: commandPulse 3s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(0, 240, 255, 0.5));
    position: relative;
}

.loader-text .command-line::after {
    content: '_';
    animation: cursorBlink 1s step-end infinite;
    margin-left: 2px;
}

@keyframes commandPulse {

    0%,
    100% {
        opacity: 0.8;
        letter-spacing: 0px;
    }

    50% {
        opacity: 1;
        letter-spacing: 2px;
    }
}

@keyframes cursorBlink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

/* Loading Particles */
.loading-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-color);
    animation: particleFloat 4s ease-in-out infinite;
}

.particle:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 3s;
}

.particle:nth-child(2) {
    top: 60%;
    left: 80%;
    animation-delay: 0.5s;
    animation-duration: 4s;
}

.particle:nth-child(3) {
    top: 40%;
    left: 20%;
    animation-delay: 1s;
    animation-duration: 3.5s;
}

.particle:nth-child(4) {
    top: 70%;
    left: 60%;
    animation-delay: 1.5s;
    animation-duration: 4.5s;
}

.particle:nth-child(5) {
    top: 30%;
    left: 90%;
    animation-delay: 2s;
    animation-duration: 3.8s;
}

@keyframes particleFloat {

    0%,
    100% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    50% {
        transform: translateY(-100px) translateX(50px) scale(1.5);
        opacity: 0.8;
    }

    90% {
        opacity: 1;
    }
}

/* Loading Progress Bar */
.loading-progress {
    width: 350px;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    position: relative;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.3);
}

.loading-progress::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(0, 240, 255, 0.1) 50%,
            transparent 100%);
    animation: shimmer 2s linear infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.loading-bar {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 10px;
    width: 0;
    transition: width 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.6);
    position: relative;
    overflow: hidden;
}

.loading-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.3) 50%,
            transparent 100%);
    animation: barShine 1.5s ease-in-out infinite;
}

@keyframes barShine {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* Loading Message */
.loading-message {
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-family: var(--font-display);
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.loading-text {
    animation: textPulse 2s ease-in-out infinite;
}

@keyframes textPulse {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}

.loading-dots {
    display: flex;
    gap: 0.2rem;
}

.loading-dots span {
    animation: dotBounce 1.4s ease-in-out infinite;
}

.loading-dots span:nth-child(1) {
    animation-delay: 0s;
}

.loading-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes dotBounce {

    0%,
    60%,
    100% {
        transform: translateY(0);
        opacity: 0.6;
    }

    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

/* ==================== Scroll Progress Bar ==================== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 4px;
    background: var(--gradient-primary);
    z-index: 9999;
    transition: width 0.1s ease;
    box-shadow: 0 0 10px var(--primary-color);
}


/* ==================== Background Animation ==================== */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(50px, 50px);
    }
}

#particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ==================== Navigation ==================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(var(--blur-md));
    border-bottom: 1px solid rgba(0, 240, 255, 0.1);
    transition: all var(--transition-normal);
}

.navbar.scrolled {
    padding: 0.5rem 0;
    background: rgba(10, 10, 15, 0.95);
    box-shadow: var(--shadow-card);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
}

.logo-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 50%;
    filter: blur(15px);
    opacity: 0.6;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.6;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.5;
    }
}

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

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    transition: color var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-normal);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.theme-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    font-size: 1.2rem;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(180deg);
}


.lang-toggle {
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    font-family: var(--font-display);
    font-weight: bold;
    font-size: 1rem;
    transition: all var(--transition-normal);
    opacity: 0.8;
}

.lang-toggle:hover {
    color: var(--primary-color);
    opacity: 1;
    text-shadow: 0 0 10px var(--primary-color);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
    transition: all var(--transition-normal);
}

/* ==================== Hero Section ==================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem 4rem;
    position: relative;
}

.hero-content {
    max-width: 1400px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text {
    animation: fadeInLeft 1s ease;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.glitch-wrapper {
    margin-bottom: 1rem;
}

.hero-title {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
}

.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glitch::before {
    animation: glitch-1 2s infinite;
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
}

.glitch::after {
    animation: glitch-2 2s infinite;
    clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
}

@keyframes glitch-1 {

    0%,
    100% {
        transform: translate(0);
    }

    20% {
        transform: translate(-3px, 3px);
    }

    40% {
        transform: translate(-3px, -3px);
    }

    60% {
        transform: translate(3px, 3px);
    }

    80% {
        transform: translate(3px, -3px);
    }
}

@keyframes glitch-2 {

    0%,
    100% {
        transform: translate(0);
    }

    20% {
        transform: translate(3px, -3px);
    }

    40% {
        transform: translate(3px, 3px);
    }

    60% {
        transform: translate(-3px, -3px);
    }

    80% {
        transform: translate(-3px, 3px);
    }
}

.typing-container {
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.typing-text {
    color: var(--primary-color);
}

.cursor {
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--bg-dark);
    border: none;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary span {
    position: relative;
    z-index: 1;
}

.btn-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    filter: blur(20px);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.btn-primary:hover .btn-glow {
    opacity: 0.6;
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--bg-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.3);
}

.hero-stats {
    display: flex;
    gap: 3rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem 2rem;
    border-radius: 15px;
    background: rgba(20, 20, 30, 0.4);
    border: 1px solid rgba(0, 240, 255, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.2);
    border-color: rgba(0, 240, 255, 0.4);
}

.stat-number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInRight 1s ease;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.avatar-container {
    position: relative;
    width: 400px;
    height: 400px;
}

.avatar-ring,
.avatar-ring-2 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 2px solid;
}

.avatar-ring {
    width: 100%;
    height: 100%;
    border-color: var(--primary-color);
    animation: rotate 10s linear infinite;
}

.avatar-ring-2 {
    width: 85%;
    height: 85%;
    border-color: var(--accent-color);
    animation: rotate 15s linear infinite reverse;
}

@keyframes rotate {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.avatar {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    height: 70%;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-glow);
}

.avatar-inner {
    font-family: var(--font-display);
    font-size: 5rem;
    font-weight: 900;
    color: var(--bg-dark);
}

.floating-icons {
    position: absolute;
    width: 100%;
    height: 100%;
}

.float-icon {
    position: absolute;
    font-size: 2rem;
    animation: float 3s ease-in-out infinite;
    animation-delay: var(--delay);
}

.float-icon:nth-child(1) {
    top: 10%;
    left: 10%;
}

.float-icon:nth-child(2) {
    top: 10%;
    right: 10%;
}

.float-icon:nth-child(3) {
    bottom: 10%;
    left: 10%;
}

.float-icon:nth-child(4) {
    bottom: 10%;
    right: 10%;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

.mouse {
    width: 25px;
    height: 40px;
    border: 2px solid var(--primary-color);
    border-radius: 15px;
    margin: 0 auto 0.5rem;
    position: relative;
}

.wheel {
    width: 3px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% {
        opacity: 1;
        top: 8px;
    }

    100% {
        opacity: 0;
        top: 20px;
    }
}

.scroll-indicator p {
    color: var(--text-secondary);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ==================== Common Section Styles ==================== */
section {
    padding: var(--spacing-xl) 2rem;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-radius: 50px;
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1rem;
}

.title-underline {
    width: 100px;
    height: 4px;
    background: var(--gradient-primary);
    margin: 0 auto;
    border-radius: 2px;
}

/* ==================== Glass Card ==================== */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(var(--blur-md));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    transition: all var(--transition-normal);
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-card);
    border-color: rgba(0, 240, 255, 0.3);
}

/* ==================== About Section ==================== */
.about-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
}

.card-title {
    font-family: var(--font-display);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card-text {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.8;
}

/* Eşit yükseklik için güncellendi */
.about-info {
    height: 100%;
}

.info-grid {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    gap: 1.5rem;
}

.info-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem;
    background: rgba(0, 240, 255, 0.05);
    border: 1px solid rgba(0, 240, 255, 0.1);
    border-radius: 15px;
    transition: all var(--transition-normal);
}

.info-card:hover {
    background: rgba(0, 240, 255, 0.1);
    border-color: rgba(0, 240, 255, 0.3);
    transform: translateX(5px);
}

.info-icon {
    font-size: 2rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: 12px;
    flex-shrink: 0;
}

.info-content {
    flex: 1;
}

.info-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-value {
    font-size: 1.1rem;
    color: var(--text-primary);
    font-weight: 600;
}

/* ==================== Experience Section ==================== */
.experience {
    background: rgba(0, 0, 0, 0.2);
}

.timeline-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: var(--gradient-primary);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    width: 50%;
}

.timeline-item.left {
    left: 0;
    padding-right: 3rem;
}

.timeline-item.right {
    left: 50%;
    padding-left: 3rem;
}

.timeline-content {
    position: relative;
}

.timeline-badge {
    position: absolute;
    top: 0;
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow-glow);
    z-index: 10;
}

.timeline-item.left .timeline-badge {
    right: -30px;
}

.timeline-item.right .timeline-badge {
    left: -30px;
}

.timeline-date {
    display: inline-block;
    padding: 0.3rem 1rem;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-radius: 20px;
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.timeline-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.timeline-company {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

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

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

.tag {
    padding: 0.3rem 0.8rem;
    background: rgba(112, 0, 255, 0.2);
    border: 1px solid rgba(112, 0, 255, 0.4);
    border-radius: 15px;
    color: var(--secondary-color);
    font-size: 0.8rem;
    font-weight: 500;
}

.timeline-content.education {
    background: rgba(255, 0, 229, 0.05);
    border-color: rgba(255, 0, 229, 0.2);
}

/* ==================== Skills Section ==================== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.skill-category {
    background: var(--bg-card);
    backdrop-filter: blur(var(--blur-md));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
}

.category-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.skill-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.skill-card {
    position: relative;
}

.skill-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.skill-name {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.skill-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 10px;
    width: 0;
    transition: width 1s ease;
    position: relative;
}

.skill-progress::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    filter: blur(10px);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {

    0%,
    100% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }
}

/* ==================== Contact Section ==================== */
.contact {
    background: rgba(0, 0, 0, 0.2);
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.contact-card {
    text-align: center;
    padding: 2.5rem 1.5rem;
}

.contact-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.contact-card h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.contact-card a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

.contact-card p {
    color: var(--text-secondary);
}

.available {
    color: #00ff88 !important;
    font-weight: 600;
}

/* ==================== Footer ==================== */
.footer {
    padding: 3rem 2rem 2rem;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(0, 240, 255, 0.1);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.footer-logo {
    margin-bottom: 1rem;
}

.footer-text {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ==================== Responsive Design ==================== */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-visual {
        order: -1;
    }

    .avatar-container {
        width: 300px;
        height: 300px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .timeline::before {
        left: 30px;
    }

    .timeline-item {
        width: 100%;
        left: 0 !important;
        padding-left: 5rem !important;
        padding-right: 0 !important;
    }

    .timeline-item .timeline-badge {
        left: 0 !important;
        right: auto !important;
    }

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

    .contact-info {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background: rgba(10, 10, 15, 0.98);
        width: 100%;
        padding: 2rem;
        gap: 1rem;
        transition: left var(--transition-normal);
        backdrop-filter: blur(var(--blur-md));
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 2rem;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }

    .avatar-container {
        width: 250px;
        height: 250px;
    }

    .avatar-inner {
        font-size: 3rem;
    }
}

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

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
    }

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

/* ==================== Projects Section ==================== */
.projects {
    background: rgba(0, 0, 0, 0.1);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.project-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition-normal);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.project-card:hover {
    transform: translateY(-10px) scale(1.02);
}

.project-image {
    position: relative;
    height: 250px;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.2), rgba(112, 0, 255, 0.2));
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-btn {
    padding: 0.8rem 2rem;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50px;
    color: var(--bg-dark);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.project-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px var(--primary-color);
}

.project-tech-stack {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-end;
}

.tech-badge {
    padding: 0.4rem 0.8rem;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid var(--primary-color);
    border-radius: 15px;
    color: var(--primary-color);
    font-size: 0.75rem;
    font-weight: 600;
}

.project-content {
    padding: 0 0.5rem;
}

.project-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.project-stats {
    display: flex;
    gap: 2rem;
}

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

.project-stats .stat-icon {
    font-size: 1.2rem;
}

/* ==================== Testimonials Section ==================== */
.testimonials {
    background: rgba(0, 0, 0, 0.2);
}

.testimonials-slider {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    padding: 2rem 0;
}

.testimonial-track {
    display: flex;
    transition: transform 0.5s ease;
}

.testimonial-card {
    min-width: 100%;
    padding: 3rem;
    position: relative;
}

.quote-icon {
    font-size: 5rem;
    color: var(--primary-color);
    opacity: 0.2;
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-text {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    font-style: italic;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.2rem;
    color: var(--bg-dark);
}

.author-name {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.author-role {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.rating {
    display: flex;
    gap: 0.3rem;
}

.star {
    font-size: 1.2rem;
    animation: starPulse 2s ease-in-out infinite;
}

.star:nth-child(1) {
    animation-delay: 0s;
}

.star:nth-child(2) {
    animation-delay: 0.1s;
}

.star:nth-child(3) {
    animation-delay: 0.2s;
}

.star:nth-child(4) {
    animation-delay: 0.3s;
}

.star:nth-child(5) {
    animation-delay: 0.4s;
}

@keyframes starPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none;
}

.slider-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-primary);
    border: none;
    color: var(--bg-dark);
    font-size: 2rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    pointer-events: all;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px var(--primary-color);
}

.slider-btn.prev {
    margin-left: -25px;
}

.slider-btn.next {
    margin-right: -25px;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 2rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.dot.active {
    background: var(--primary-color);
    transform: scale(1.3);
}

/* ==================== Floating Action Button ==================== */
.fab-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
}

.fab-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-primary);
    border: none;
    color: var(--bg-dark);
    font-size: 2rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 240, 255, 0.4);
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
}

.fab-button:hover {
    transform: rotate(45deg) scale(1.1);
    box-shadow: 0 6px 30px rgba(0, 240, 255, 0.6);
}

.fab-icon {
    transition: transform var(--transition-normal);
}

.fab-container.active .fab-button {
    transform: rotate(45deg);
}

.fab-menu {
    position: absolute;
    bottom: 80px;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-normal);
}

.fab-container.active .fab-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.fab-item {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-card);
    backdrop-filter: blur(var(--blur-md));
    border: 1px solid rgba(0, 240, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all var(--transition-normal);
    position: relative;
    animation: fabItemSlide 0.3s ease forwards;
    opacity: 0;
}

.fab-container.active .fab-item:nth-child(1) {
    animation-delay: 0.05s;
}

.fab-container.active .fab-item:nth-child(2) {
    animation-delay: 0.1s;
}

.fab-container.active .fab-item:nth-child(3) {
    animation-delay: 0.15s;
}

.fab-container.active .fab-item:nth-child(4) {
    animation-delay: 0.2s;
}

@keyframes fabItemSlide {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fab-item:hover {
    background: var(--gradient-primary);
    transform: translateX(-10px) scale(1.1);
    box-shadow: 0 0 20px var(--primary-color);
}

.fab-item-icon {
    font-size: 1.5rem;
}

.fab-item::before {
    content: attr(data-tooltip);
    position: absolute;
    right: 65px;
    background: var(--bg-card);
    backdrop-filter: blur(var(--blur-md));
    border: 1px solid rgba(0, 240, 255, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 10px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
    font-size: 0.9rem;
    color: var(--text-primary);
}

.fab-item:hover::before {
    opacity: 1;
    visibility: visible;
    right: 70px;
}

/* ==================== Terminal Section ==================== */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.code-terminal {
    width: 100%;
    max-width: 500px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    transition: transform 0.3s ease;
}

.code-terminal:hover {
    transform: translateY(-5px);
}

.terminal-header {
    background: rgba(0, 0, 0, 0.9);
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.terminal-controls {
    display: flex;
    gap: 8px;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.control.close {
    background: #ff5f57;
}

.control.minimize {
    background: #ffbd2e;
}

.control.maximize {
    background: #28ca42;
}

.terminal-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
}

.terminal-content {
    padding: 1.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    min-height: 250px;
    color: var(--text-primary);
    overflow-y: auto;
}

.terminal-line {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.prompt {
    color: var(--primary-color);
    font-weight: 600;
    min-width: 15px;
}

.command {
    color: var(--text-primary);
}

.output {
    margin-left: 0;
    margin-bottom: 1rem;
    display: block;
    padding-left: 1.5rem;
}

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

.blinking {
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

/* ==================== Signature Styles ==================== */
.signature-container {
    margin-top: 2rem;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.signature-image {
    max-width: 200px;
    height: auto;
    opacity: 0.9;
    filter: brightness(1.2) contrast(1.1);
    transition: all 0.3s ease;
}

.signature-image:hover {
    opacity: 1;
    transform: scale(1.05);
}



/* Light mode signature adjustments - Make it more visible */
body.light-theme .signature-image {
    filter: invert(1) brightness(0.3) contrast(1.5);
    opacity: 0.9;
}

body.light-theme .signature-image:hover {
    opacity: 1;
    filter: invert(1) brightness(0.2) contrast(1.6);
}

@media (max-width: 768px) {
    .signature-container {
        justify-content: center;
    }

    .signature-image {
        max-width: 150px;
    }
}

/* ==================== Z-Index & Layering Fixes (FINAL) ==================== */

/* 1. Base Background & Canvas Layer */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    /* En altta */
    pointer-events: none;
}

#particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    /* Background divi içinde */
}

/* 2. Content Layer - Must be transparent to show background */
section,
.hero,
.about,
.experience,
.contact {
    position: relative;
    z-index: 1;
    background: transparent !important;
    /* KRİTİK: Sectionlar şeffaf olmalı */
}

/* Light mode specific background fixes */
body.light-theme section,
body.light-theme .hero {
    background: transparent !important;
}

/* 3. Navbar Layer - Always on top */
.navbar {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000 !important;
    /* En üstte */
    backdrop-filter: blur(10px);
    background: rgba(10, 10, 15, 0.8);
    /* Default dark mode bg */
    border-bottom: 1px solid rgba(0, 240, 255, 0.1);
}

/* Light Mode Navbar */
body.light-theme .navbar {
    background: rgba(255, 255, 255, 0.85) !important;
    border-bottom: 1px solid rgba(0, 102, 255, 0.1);
}

/* 4. Global Light Theme Background Fix */
body.light-theme {
    background-color: transparent !important;
}

body.light-theme .background-animation {
    /* Tüm sayfanın arka planı burası */
    background: linear-gradient(180deg, #ffffff 0%, #f0f2ff 50%, #e6f0ff 100%) !important;
    z-index: -2;
}

body.light-theme #particles {
    opacity: 0.8 !important;
    /* Görünürlük ayarı */
    z-index: -1;
}

/* 5. Loading Screen - En en üstte */
.loading-screen {
    z-index: 9999 !important;
}

/* ==================== Footer Social Icons ==================== */
.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: var(--text-secondary);
    transition: all var(--transition-normal);
    opacity: 0.7;
}

.social-link svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.social-link:hover {
    color: var(--primary-color);
    transform: translateY(-3px) scale(1.1);
    opacity: 1;
    filter: drop-shadow(0 0 5px var(--primary-color));
}

/* Light Theme Adjustments */
body.light-theme .social-link {
    color: #666;
}

body.light-theme .social-link:hover {
    color: var(--primary-color);
}

/* ==================== ULTIMATE MOBILE OPTIMIZATION ==================== */

@media (max-width: 991px) {

    /* Genel Container Padding Ayarı */
    .container {
        padding: 0 1.5rem;
    }

    /* About Section Düzenlemesi - Tablet/Küçük Laptop */
    .about-content {
        grid-template-columns: 1fr;
        /* Tek sütuna düşür */
        gap: 2rem;
    }

    .info-grid {
        grid-template-columns: repeat(2, 1fr);
        /* Bilgi kartları 2'li olsun */
    }
}

@media (max-width: 768px) {

    /* ----- TIPOGRAFI ----- */
    html {
        font-size: 14px;
        /* Base font küçültme */
    }

    h1.hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    /* ----- HERO SECTION ----- */
    .hero .container {
        flex-direction: column;
        text-align: center;
        padding-top: 100px;
        gap: 3rem;
    }

    .hero-buttons {
        justify-content: center;
        width: 100%;
    }

    .hero-stats {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1.5rem;
    }

    .code-terminal {
        margin-top: 2rem;
        width: 100%;
        max-width: 100%;
    }

    /* ----- TIMELINE (DENEYİM) ----- */
    .timeline::after {
        left: 31px;
        /* Çizgiyi sola al */
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        /* Soldan boşluk bırak */
        padding-right: 0;
        margin-bottom: 2rem;
    }

    .timeline-item.left,
    .timeline-item.right {
        left: 0;
    }

    .timeline-item.left::after,
    .timeline-item.right::after {
        left: 21px;
        /* Daireleri çizgiye hizala */
        right: auto;
    }

    /* Ok işaretlerini (Triangle) gizle veya sola al */
    .timeline-item.left::before,
    .timeline-item.right::before {
        left: 60px;
        border: medium solid white;
        border-width: 10px 10px 10px 0;
        border-color: transparent white transparent transparent;
    }

    /* ----- ABOUT INFO ----- */
    .info-grid {
        grid-template-columns: 1fr;
        /* Kartlar tek sütun */
    }

    .about-info,
    .about-text .glass-card {
        height: auto;
        /* Yükseklik eşitlemesini iptal et */
    }

    /* ----- CONTACT ----- */
    .contact-info {
        grid-template-columns: 1fr;
    }

    /* ----- NAV & FAB ----- */
    .fab-menu {
        bottom: 80px;
        right: 20px;
    }
}

@media (max-width: 480px) {

    /* Çok Küçük Ekranlar */
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .code-terminal {
        font-size: 0.85rem;
        /* Terminal yazısını küçült */
    }

    .section-header {
        margin-bottom: 2rem;
    }
}