/* Design System & Layout for Muhammed Çimiş Portfolio */

:root {
    /* Software Theme Colors (Matrix Green) */
    --soft-accent: #00ff41;
    --soft-dim: #003b00;

    /* Hardware Theme Colors (Cyan Blue) */
    --hard-accent: #00f2ff;
    --hard-dim: #004a5c;

    /* Background & Text */
    --bg-black: #050505;
    --text-main: #e0e0e0;
}

body {
    background-color: var(--bg-black);
    color: var(--text-main);
    font-family: 'Rajdhani', sans-serif;
    overflow-x: hidden;
}

/* Typography helpers */
.font-mono {
    font-family: 'Fira Code', monospace;
}

.font-tech {
    font-family: 'Oswald', sans-serif;
}

/* --- HERO SPLIT --- */
.hero-split {
    position: relative;
    overflow: hidden;
    background: #000;
}

/* MATRIX BACKGROUND */
.matrix-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #000;
    z-index: 0;
}

/* RGB SEPARATOR LINE */
.hero-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    z-index: 20;
    background: linear-gradient(180deg, var(--soft-accent), var(--hard-accent), var(--soft-accent));
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

/* --- PROJECT CARDS --- */
.card-software {
    background: rgba(5, 10, 20, 0.9);
    border: 1px solid var(--soft-dim);
    border-left: 4px solid var(--soft-accent);
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* V1 hover slide shimmer */
.card-software::before {
    content: "";
    position: absolute;
    top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 242, 255, 0.07), transparent);
    transition: 0.5s;
    z-index: 0;
}
.card-software:hover::before { left: 100%; }

.card-software:hover {
    box-shadow: 0 0 25px rgba(0, 255, 65, 0.2);
    transform: translateY(-5px);
    border-color: var(--soft-accent);
}

.soft-tag {
    background: rgba(0, 255, 65, 0.05);
    color: var(--soft-accent);
    border: 1px solid rgba(0, 255, 65, 0.3);
    font-family: 'Fira Code', monospace;
}

.card-hardware {
    background-color: #0b0b0b;
    background-image: radial-gradient(#222 1px, transparent 1px);
    background-size: 10px 10px;
    border: 1px solid #333;
    border-left: 4px solid var(--hard-accent);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.card-hardware::before {
    content: "";
    position: absolute;
    top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 242, 255, 0.07), transparent);
    transition: 0.5s;
    z-index: 0;
}
.card-hardware:hover::before { left: 100%; }

.card-hardware:hover {
    border-color: var(--hard-accent);
    transform: translateY(-5px);
    box-shadow: 0 0 25px rgba(0, 242, 255, 0.2);
}

/* Hybrid card — purple left border */
.card-hybrid {
    background: rgba(5, 10, 20, 0.9);
    border: 1px solid #333;
    border-left: 4px solid #a855f7;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}
.card-hybrid::before {
    content: "";
    position: absolute;
    top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 242, 255, 0.05), rgba(0, 255, 65, 0.05), transparent);
    transition: 0.5s;
    z-index: 0;
}
.card-hybrid:hover::before { left: 100%; }
.card-hybrid:hover {
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.25);
    border-left-color: #a855f7;
    transform: translateY(-5px);
}

/* ECG Wave Animation */
.ecg-svg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0.45;
}
.ecg-path {
    stroke: var(--soft-accent);
    stroke-width: 2;
    fill: none;
    stroke-dasharray: 1200;
    stroke-dashoffset: 1200;
    animation: ecgDash 2s linear infinite;
}
@keyframes ecgDash { to { stroke-dashoffset: 0; } }

.hard-tag {
    background: #111;
    color: var(--hard-accent);
    border: 1px dashed var(--hard-accent);
    font-family: 'Oswald', sans-serif;
    letter-spacing: 0.5px;
}

/* HERO TITLE — neon flicker on page load + letter-spacing expand on hover */
.hero-title {
    animation: neonFlicker 3s ease-in-out forwards;
}

@keyframes neonFlicker {
    0%   { opacity: 0; text-shadow: none; }
    10%  { opacity: 1; text-shadow: 0 0 20px currentColor; }
    15%  { opacity: 0.3; }
    20%  { opacity: 1; text-shadow: 0 0 30px currentColor; }
    100% { opacity: 1; text-shadow: none; }
}

.hero-title:hover {
    letter-spacing: 0.05em;
    transition: letter-spacing 0.4s ease;
}

/* Code background used in ESP32 card */
.code-bg {
    font-family: 'Fira Code', monospace;
    font-size: 8px;
    line-height: 10px;
    color: var(--soft-accent);
    opacity: 0.2;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    white-space: pre-wrap;
    pointer-events: none;
}

/* Career timeline */
.timeline-item {
    position: relative;
    padding-left: 2rem;
    border-left: 2px solid #333;
    margin-bottom: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #00f2ff;
    box-shadow: 0 0 10px #00f2ff;
}

/* Beyond Code badges */
.beyond-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.85rem;
    border: 1px solid rgba(0, 255, 65, 0.3);
    border-radius: 999px;
    font-size: 0.75rem;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    color: #a0a0a0;
    background: rgba(0, 255, 65, 0.03);
    transition: border-color 0.2s, color 0.2s;
}
.beyond-badge:hover {
    border-color: rgba(0, 255, 65, 0.6);
    color: #e0e0e0;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .hero-split {
        flex-direction: column;
    }

    .hero-line {
        width: 100%;
        height: 4px;
        left: 0;
        top: 50%;
    }
}

/* Accessibility: reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
