@import url("css-template.css");

main {
    padding-top: 56px;
    padding-left: 220px;
    flex: 1;
}

/* ── Hero ── */
.hero {
    min-height: calc(100vh - 56px);
    display: flex;
    align-items: center;
    padding: 3rem 2rem;
    background: radial-gradient(ellipse at 70% 50%, rgba(212,96,58,0.06) 0%, transparent 60%);
}
.hero-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 4rem;
    width: 100%;
}
.hero-text { flex: 1; }
.hero-label {
    font-size: 0.8rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 500;
    margin-bottom: 1rem;
}
.hero-text h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.25rem;
    background: linear-gradient(135deg, var(--text) 0%, var(--text-muted) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-desc {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-muted);
    max-width: 520px;
    margin-bottom: 2rem;
}
.hero-actions {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2rem;
}
.hero-links {
    display: flex;
    gap: 0.75rem;
}
.hero-links a {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-muted);
    transition: all 0.2s;
}
.hero-links a:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: var(--accent-glow);
}
.hero-image {
    flex-shrink: 0;
    width: 320px;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid var(--border);
    position: relative;
}
.hero-image::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    background: linear-gradient(180deg, transparent 60%, rgba(14,14,14,0.4) 100%);
}
.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.7rem 1.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    font-family: inherit;
}
.btn-primary {
    background: var(--accent);
    color: white;
}
.btn-primary:hover {
    background: var(--accent-hover);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(212,96,58,0.3);
}
.btn-secondary {
    background: var(--surface-2);
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-secondary:hover {
    background: var(--surface-3);
    color: var(--text);
    border-color: var(--text-muted);
}

/* ── Sections ── */
.section {
    padding: 4rem 2rem;
}
.section-inner {
    max-width: 1100px;
    margin: 0 auto;
}
.section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
}
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}
.section-header h2 { margin-bottom: 0; }
.section-link {
    font-size: 0.82rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.2rem;
    transition: color 0.15s;
}
.section-link:hover { color: var(--accent); }

/* ── Work Grid ── */
.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
}
.work-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    text-decoration: none;
    color: var(--text);
    transition: all 0.25s;
}
.work-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    color: var(--text);
}
.work-card-img {
    position: relative;
    height: 180px;
    overflow: hidden;
    background: var(--surface-2);
}
.work-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}
.work-card:hover .work-card-img img { transform: scale(1.05); }
.work-tag {
    position: absolute;
    bottom: 0.6rem;
    left: 0.6rem;
    background: rgba(14,14,14,0.85);
    color: var(--accent);
    font-size: 0.68rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    letter-spacing: 0.04em;
}
.work-card-body {
    padding: 1.1rem;
}
.work-card-body h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.work-card-body p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.55;
}

/* ── Skills ── */
#skills { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.25rem;
}
.skill-group {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
}
.skill-group h3 {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.skill-group h3 i { font-size: 1rem; color: var(--accent); }
.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.skill-tags span {
    background: var(--surface-3);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 0.3rem 0.65rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* ── Courses ── */
.courses-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.course-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    text-decoration: none;
    color: var(--text);
    transition: all 0.2s;
}
.course-card:hover {
    border-color: var(--accent);
    background: var(--surface-2);
    color: var(--text);
}
.course-card.coming { opacity: 0.6; cursor: default; }
.course-card.coming:hover { border-color: var(--border); background: var(--surface); }
.course-icon {
    width: 48px;
    height: 48px;
    border-radius: 4px;
    background: var(--surface-2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.course-icon img { width: 28px; }
.course-info { flex: 1; min-width: 0; }
.course-info h3 { font-size: 0.9rem; font-weight: 600; margin-bottom: 0.2rem; }
.course-info p { font-size: 0.78rem; color: var(--text-muted); line-height: 1.4; }
.course-badge {
    font-size: 0.68rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    background: var(--surface-3);
    color: var(--text-muted);
    flex-shrink: 0;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.course-badge.live {
    background: rgba(76,175,80,0.15);
    color: var(--green);
}

/* ── CTA ── */
.cta-section { padding-bottom: 3rem; }
.cta-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 3rem;
    text-align: center;
}
.cta-box h2 { margin-bottom: 0.75rem; }
.cta-box p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto 1.5rem;
}
.cta-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    main { padding-left: 0; }
    .hero { min-height: auto; padding: 2rem 1.25rem; }
    .hero-content { flex-direction: column-reverse; gap: 2rem; text-align: center; }
    .hero-text { align-items: center; display: flex; flex-direction: column; }
    .hero-desc { max-width: 100%; }
    .hero-image { width: 200px; height: 250px; }
    .hero-actions { justify-content: center; }
    .hero-links { justify-content: center; }
    .section { padding: 2.5rem 1.25rem; }
    .work-grid { grid-template-columns: 1fr; }
    .skills-grid { grid-template-columns: 1fr 1fr; }
    .cta-box { padding: 2rem 1.25rem; }
    .cta-actions { flex-direction: column; align-items: center; }
    .section-header { flex-direction: column; gap: 0.5rem; align-items: flex-start; }
}

@media (max-width: 480px) {
    .hero-image { width: 160px; height: 200px; }
    .hero-text h1 { font-size: 2rem; }
    .skills-grid { grid-template-columns: 1fr; }
    .course-card { flex-wrap: wrap; }
}

@media (min-width: 769px) {
    main { padding-left: 220px; }
}
