/* ══════════════════════════════════════════
   Page Sections & Component Layouts
   ══════════════════════════════════════════ */

/* ── Navigation ── */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 15, 15, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    z-index: 100;
    padding: 0 24px;
}

.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

.nav-logo {
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--accent);
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 8px;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 6px;
    transition: all 0.25s;
}

.nav-links a:hover {
    color: var(--accent);
    background: var(--accent-dim);
}

.menu-btn {
    display: none;
    background: none;
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 1.3rem;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
}

/* ── Hero ── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 212, 170, 0.08) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    pointer-events: none;
}

.hero-tag {
    display: inline-block;
    background: var(--accent-dim);
    color: var(--accent);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 24px;
    border: 1px solid rgba(0, 212, 170, 0.2);
}

.hero h1 {
    font-size: clamp(2.4rem, 5.5vw, 4rem);
    font-weight: 700;
    letter-spacing: -1.5px;
    line-height: 1.15;
    margin-bottom: 20px;
}

.hero h1 .gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

.hero-btns {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── About / CV ── */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.about-text {
    color: var(--text-muted);
    font-size: 1rem;
}

.about-text p {
    margin-bottom: 16px;
}

.about-text strong {
    color: var(--text);
}

.cv-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 32px;
}

.cv-card h3 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.timeline-item {
    position: relative;
    padding-left: 20px;
    border-left: 2px solid var(--border);
    margin-bottom: 24px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 6px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-date {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    color: var(--accent);
    margin-bottom: 2px;
}

.timeline-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.timeline-place {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ── Skills ── */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.skill-category {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px;
    transition: border-color 0.3s;
}

.skill-category:hover {
    border-color: var(--accent);
}

.skill-category h3 {
    font-size: 1rem;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    background: var(--accent-dim);
    color: var(--accent);
    padding: 4px 12px;
    border-radius: 6px;
    border: 1px solid rgba(0, 212, 170, 0.15);
}

/* ── Projects ── */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
}

.project-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.project-img {
    height: 200px;
    background: linear-gradient(135deg, #1a2a3a 0%, #0f1f2f 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    border-bottom: 1px solid var(--border);
}

.project-body {
    padding: 24px;
}

.project-body h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.project-body p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.project-tech span {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    background: rgba(0, 136, 255, 0.1);
    color: #5cb8ff;
    padding: 3px 10px;
    border-radius: 4px;
}

.project-links {
    display: flex;
    gap: 12px;
}

.project-links a {
    font-size: 0.85rem;
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s;
}

.project-links a:hover {
    opacity: 0.7;
}

/* ── Read More Toggle ── */
.project-desc {
    position: relative;
    max-height: 4.8em;
    overflow: hidden;
    transition: max-height 0.4s ease;
    line-height: 1.6;
}

.project-desc.expanded {
    max-height: 600px;
}

.project-desc:not(.expanded)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2.4em;
    background: linear-gradient(transparent, var(--bg-card));
    pointer-events: none;
}

.read-more-btn {
    background: none;
    border: none;
    color: var(--accent);
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    padding: 4px 0;
    margin-top: 6px;
    transition: opacity 0.2s;
}

.read-more-btn:hover {
    opacity: 0.7;
}

/* ── Contact ── */
.contact-wrap {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-wrap p {
    color: var(--text-muted);
    margin-bottom: 32px;
    font-size: 1.05rem;
}

.contact-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 12px 24px;
    border-radius: 10px;
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.25s;
}

.contact-link:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

/* ── Footer ── */
footer {
    text-align: center;
    padding: 40px 24px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.85rem;
}
