:root {
    --bg-primary: #0a0e27;
    --bg-secondary: #151b3d;
    --accent-cyan: #00f0ff;
    --accent-magenta: #ff006e;
    --accent-yellow: #ffbe0b;
    --text-primary: #e8f1f5;
    --text-secondary: #8892b0;
    --glow-cyan: rgba(0, 240, 255, 0.5);
    --glow-magenta: rgba(255, 0, 110, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'JetBrains Mono', monospace;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    cursor: none;
    position: relative;
}

/* Mobil cihazlarda normal cursor */
@media (max-width: 768px) {
    body {
        cursor: auto;
    }
    
    .cursor-glow {
        display: none;
    }
}

/* Video Background */
#bg-video {
    position: fixed;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: -2;
    object-fit: cover;
    opacity: 0.7;
    filter: brightness(0.9) contrast(1.4) saturate(1.3);
}

/* Custom Cursor */
.cursor-glow {
    position: fixed;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-cyan) 0%, transparent 70%);
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: screen;
    transition: transform 0.1s ease;
}

/* Background Canvas */
#bgCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.9;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 5%;
    background: rgba(10, 14, 39, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 240, 255, 0.1);
    z-index: 1000;
    animation: slideDown 0.6s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.nav-logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-magenta));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.nav-logo:hover {
    transform: scale(1.1) rotate(-5deg);
}

.nav-links {
    display: flex;
    gap: 3rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    position: relative;
    transition: color 0.3s ease;
    cursor: pointer;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-cyan);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--accent-cyan);
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8rem 5% 4rem;
    gap: 4rem;
    position: relative;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    animation: fadeInUp 0.8s ease 0.2s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-tag {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid var(--accent-cyan);
    border-radius: 50px;
    font-size: 0.75rem;
    letter-spacing: 3px;
    margin-bottom: 2rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 10px var(--glow-cyan);
    }
    50% {
        box-shadow: 0 0 20px var(--glow-cyan), 0 0 30px var(--glow-cyan);
    }
}

.hero-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
}

.glitch {
    position: relative;
    display: inline-block;
    animation: glitchText 3s infinite;
}

.glitch:nth-child(1) {
    color: var(--accent-cyan);
    text-shadow: 2px 2px 0 var(--accent-magenta);
}

.glitch:nth-child(2) {
    background: linear-gradient(135deg, var(--accent-magenta), var(--accent-yellow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes glitchText {
    0%, 90%, 100% {
        transform: translate(0);
    }
    92% {
        transform: translate(-2px, 2px);
    }
    94% {
        transform: translate(2px, -2px);
    }
    96% {
        transform: translate(-2px, -2px);
    }
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 3rem;
}

.typing-text {
    color: var(--accent-cyan);
    border-right: 2px solid var(--accent-cyan);
    animation: blink 0.7s step-end infinite;
}

@keyframes blink {
    50% {
        border-color: transparent;
    }
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
}

.btn {
    padding: 1rem 2.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--accent-cyan);
    color: var(--bg-primary);
    border: 2px solid var(--accent-cyan);
    box-shadow: 0 0 20px var(--glow-cyan);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 30px var(--glow-cyan);
}

.btn-secondary {
    background: transparent;
    color: var(--accent-magenta);
    border: 2px solid var(--accent-magenta);
}

.btn-secondary:hover {
    background: var(--accent-magenta);
    color: var(--bg-primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 30px var(--glow-magenta);
}

/* Hero Visual */
.hero-visual {
    flex: 1;
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.hero-illustration {
    width: 120%;
    height: 120%;
    filter: drop-shadow(0 0 30px rgba(0, 240, 255, 0.3));
    animation: floatIllustration 6s ease-in-out infinite;
}

@keyframes floatIllustration {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.hero-illustration .main-device {
    animation: devicePulse 3s ease-in-out infinite;
    transform-origin: center;
}

@keyframes devicePulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

.hero-illustration .code-lines line {
    animation: codeFade 2s ease-in-out infinite;
}

.hero-illustration .code-lines line:nth-child(1) { animation-delay: 0s; }
.hero-illustration .code-lines line:nth-child(2) { animation-delay: 0.2s; }
.hero-illustration .code-lines line:nth-child(3) { animation-delay: 0.4s; }
.hero-illustration .code-lines line:nth-child(4) { animation-delay: 0.6s; }
.hero-illustration .code-lines line:nth-child(5) { animation-delay: 0.8s; }
.hero-illustration .code-lines line:nth-child(6) { animation-delay: 1s; }
.hero-illustration .code-lines line:nth-child(7) { animation-delay: 1.2s; }
.hero-illustration .code-lines line:nth-child(8) { animation-delay: 1.4s; }
.hero-illustration .code-lines line:nth-child(9) { animation-delay: 1.6s; }

@keyframes codeFade {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.9;
    }
}

/* Tech Stack Slider */
.tech-slider {
    padding: 3rem 0;
    background: rgba(21, 27, 61, 0.5);
    border-top: 1px solid rgba(0, 240, 255, 0.2);
    border-bottom: 1px solid rgba(0, 240, 255, 0.2);
    overflow: hidden;
    position: relative;
}

.tech-slider::before,
.tech-slider::after {
    content: '';
    position: absolute;
    top: 0;
    width: 200px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.tech-slider::before {
    left: 0;
    background: linear-gradient(90deg, var(--bg-primary) 0%, transparent 100%);
}

.tech-slider::after {
    right: 0;
    background: linear-gradient(270deg, var(--bg-primary) 0%, transparent 100%);
}

.slider-track {
    display: flex;
    gap: 4rem;
    animation: scroll 40s linear infinite;
    width: fit-content;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    min-width: 120px;
    transition: transform 0.3s ease;
}

.tech-item:hover {
    transform: translateY(-10px);
}

.tech-item img {
    width: 60px;
    height: 60px;
    filter: brightness(1);
    transition: all 0.3s ease;
}

.tech-item:hover img {
    filter: brightness(1.2) drop-shadow(0 0 10px rgba(0, 240, 255, 0.5));
    transform: scale(1.1);
}

.tech-item span {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.3s ease;
}

.tech-item:hover span {
    color: var(--accent-cyan);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

/* Section Title */
.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 4rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.title-number {
    font-size: 1.5rem;
    color: var(--accent-cyan);
}

/* Skills Section */
.skills {
    padding: 8rem 0;
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.skill-category {
    background: rgba(21, 27, 61, 0.5);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease both;
}

.skill-category:nth-child(1) { animation-delay: 0.1s; }
.skill-category:nth-child(2) { animation-delay: 0.2s; }
.skill-category:nth-child(3) { animation-delay: 0.3s; }
.skill-category:nth-child(4) { animation-delay: 0.4s; }
.skill-category:nth-child(5) { animation-delay: 0.5s; }
.skill-category:nth-child(6) { animation-delay: 0.6s; }

.skill-category:hover {
    transform: translateY(-10px);
    border-color: var(--accent-cyan);
    box-shadow: 0 10px 40px var(--glow-cyan);
}

.skill-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.skill-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.skill-header h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    color: var(--accent-cyan);
}

.skill-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.skill-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.skill-name {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.skill-bar {
    height: 8px;
    background: rgba(0, 240, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.skill-progress {
    height: 100%;
    width: var(--progress);
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-magenta));
    border-radius: 10px;
    position: relative;
    animation: fillBar 1.5s ease-out;
    box-shadow: 0 0 10px var(--glow-cyan);
}

@keyframes fillBar {
    from {
        width: 0;
    }
}

/* Projects Section */
.projects {
    padding: 8rem 0;
    background: var(--bg-secondary);
}

.projects-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.project-card {
    background: rgba(10, 14, 39, 0.6);
    border: 1px solid rgba(255, 0, 110, 0.3);
    border-radius: 16px;
    padding: 3rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 0, 110, 0.1), transparent);
    transition: left 0.6s ease;
}

.project-card:hover::before {
    left: 100%;
}

.project-card:hover {
    transform: translateX(20px);
    border-color: var(--accent-magenta);
    box-shadow: 0 10px 50px var(--glow-magenta);
}

.project-number {
    font-family: 'Orbitron', sans-serif;
    font-size: 4rem;
    font-weight: 900;
    color: rgba(255, 0, 110, 0.3);
    min-width: 100px;
}

.project-content {
    flex: 1;
}

.project-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.project-desc {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.tag {
    padding: 0.4rem 1rem;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid var(--accent-cyan);
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--accent-cyan);
}

.project-link {
    font-size: 3rem;
    color: var(--accent-magenta);
    transition: transform 0.3s ease;
}

.project-card:hover .project-link {
    transform: translateX(10px);
}

/* Contact Section */
.contact {
    padding: 8rem 0;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.contact-content {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.contact-text h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-magenta));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-text p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 600px;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: rgba(21, 27, 61, 0.5);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-method:hover {
    transform: translateY(-5px);
    border-color: var(--accent-cyan);
    box-shadow: 0 10px 40px var(--glow-cyan);
}

.method-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.method-text {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.method-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.method-value {
    font-size: 1.1rem;
    color: var(--accent-cyan);
    font-weight: 600;
}

/* Footer */
.footer {
    padding: 3rem 5%;
    background: var(--bg-primary);
    border-top: 1px solid rgba(0, 240, 255, 0.1);
}

.footer-content {
    text-align: center;
}

.footer-content p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.footer-quote {
    font-style: italic;
    color: var(--accent-cyan);
}

/* Responsive */
@media (max-width: 968px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 6rem;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .hero-visual {
        height: 400px;
        width: 100%;
    }
    
    .nav-links {
        gap: 1.5rem;
    }
    
    .nav-link {
        font-size: 0.8rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .project-card {
        flex-direction: column;
        text-align: center;
    }
    
    .project-number {
        min-width: auto;
    }
}

@media (max-width: 640px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .floating-card {
        padding: 1rem;
    }
    
    .card-icon {
        font-size: 1.5rem;
    }
    
    .card-text {
        font-size: 0.7rem;
    }
}
