/* Palette & globals */
:root {
    --violet: #6C47FF;
    --violet-dark: #4d2ec7;
    --bg: #f7f7fb;
    --card: #ffffff;
    --text: #1f1f2e;
    --muted: #5b5b73;
    --border: #e5e5f0;
    --shadow: 0 10px 35px rgba(18, 11, 52, 0.12);
    --radius: 14px;
    --radius-sm: 10px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(1100px, 92vw);
    margin: 0 auto;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    gap: 16px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.logo img {
    height: 32px;
    width: auto;
}

.nav {
    display: flex;
    align-items: center;
    gap: 18px;
    font-weight: 600;
}

.nav a {
    padding: 8px 0;
    color: #383852;
    transition: color 0.2s ease;
}

.nav a:hover,
.nav a.active {
    color: var(--violet);
}

.nav .btn-ghost {
    padding: 10px 14px;
    border-radius: 999px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border-radius: 999px;
    background: var(--violet);
    color: #fff;
    font-weight: 600;
    border: 1px solid var(--violet);
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.btn-ghost {
    background: transparent;
    color: #383852;
    border: 1px solid #cbcbe2;
}

.btn-ghost:hover {
    border-color: var(--violet);
    color: var(--violet);
}

/* Typography helpers */
.eyebrow {
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-size: 12px;
    color: var(--violet);
    font-weight: 700;
    margin-bottom: 8px;
}

.lead {
    color: var(--muted);
    font-size: 18px;
}

.muted {
    color: var(--muted);
}

/* Layout sections */
.hero {
    padding: 56px 0 40px;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    gap: 24px;
    align-items: center;
}

.hero h1 {
    font-size: clamp(28px, 6vw, 40px);
    margin-bottom: 14px;
}

.hero .lead {
    margin-bottom: 18px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.hero-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
}

.checklist {
    list-style: none;
    margin-top: 10px;
    color: var(--muted);
}

.checklist li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
}

.checklist li::before {
    content: "•";
    color: var(--violet);
    position: absolute;
    left: 0;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.stats strong {
    font-size: 20px;
    color: var(--violet);
}

.section {
    padding: 48px 0;
}

.section.alt {
    background: #f0eefe;
    position: relative;
    overflow: hidden;
}

.section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.section-header h2 {
    font-size: 26px;
}

.grid {
    display: grid;
    gap: 18px;
}

.cards-3 {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.card h3, .card h2 {
    font-size: 20px;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 45px rgba(27, 24, 88, 0.18);
    border-color: rgba(108, 71, 255, 0.4);
}

.link-arrow {
    color: var(--violet);
    font-weight: 600;
}

.image-card .placeholder-img {
    background: linear-gradient(135deg, #6c47ff, #9f86ff);
    color: #fff;
    border-radius: var(--radius-sm);
    padding: 36px 14px;
    text-align: center;
    font-weight: 700;
    letter-spacing: 0.5px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quote {
    position: relative;
}

.quote::before {
    content: "“";
    font-size: 32px;
    color: var(--violet);
}

.quote-author {
    color: var(--muted);
    font-size: 14px;
}

.page-hero {
    padding: 48px 0 24px;
}

/* About */
.about-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: 1fr;
}

.portrait {
    height: 220px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
}

.skills ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 8px;
    margin: 12px 0 16px;
}

.skills li {
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #fbfaff;
}

.about-grid .btn {
    margin-top: 8px;
}

/* Contact */
.contact-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr;
}

.legal-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.form-card {
    gap: 12px;
}

label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-weight: 600;
    color: var(--text);
}

input, textarea {
    padding: 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: #fff;
    font: inherit;
    color: var(--text);
    transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--violet);
    box-shadow: 0 0 0 3px rgba(108, 71, 255, 0.18);
}

.status {
    min-height: 18px;
    font-size: 14px;
    color: var(--muted);
}

.status.success { color: #1b9c55; }
.status.error { color: #c0392b; }

.visually-hidden {
    position: absolute;
    left: -9999px;
}

.contact-points {
    list-style: none;
    margin-top: 10px;
    color: var(--muted);
}

.contact-points li {
    margin-bottom: 6px;
}

/* Placeholder visuals */
.placeholder-img {
    background: linear-gradient(135deg, #6c47ff, #a68aff);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 700;
    border-radius: var(--radius-sm);
    min-height: 160px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.placeholder-img.portrait {
    border-radius: 50%;
    width: 220px;
    height: 220px;
    min-height: auto;
    justify-self: center;
}

/* Footer */
.site-footer {
    margin-top: 32px;
    padding: 24px 0 32px;
    border-top: 1px solid var(--border);
    background: #fff;
}

.footer-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-logo img {
    width: 220px;
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
}

.socials {
    display: flex;
    gap: 10px;
}

.icon-link svg {
    width: 22px;
    height: 22px;
    fill: var(--text);
    transition: fill 0.12s ease;
}

.icon-link:hover svg {
    fill: var(--violet);
}

/* Responsive */
@media (max-width: 900px) {
    .hero {
        padding-top: 42px;
    }
    .hero-card {
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    .nav {
        position: absolute;
        top: 64px;
        right: 16px;
        background: #fff;
        border: 1px solid var(--border);
        border-radius: var(--radius);
        box-shadow: var(--shadow);
        padding: 12px;
        flex-direction: column;
        gap: 10px;
        min-width: 200px;
        display: none;
    }
.nav.open {
    display: flex;
}
.section-header {
    flex-direction: column;
}
}

@media (min-width: 769px) {
    .hero-grid {
        grid-template-columns: 1.2fr 0.8fr;
    }
    .about-grid {
        grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
        align-items: center;
    }
    .skills ul {
        grid-template-columns: repeat(4, minmax(160px, 1fr));
    }
    .contact-grid {
        grid-template-columns: 0.9fr 1.1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr auto;
        align-items: center;
    }
}

@media (max-width: 600px) {
    .header-inner {
        padding: 12px 0;
    }
    .hero {
        padding: 42px 0 28px;
    }
    .hero h1 {
        font-size: 28px;
        line-height: 1.2;
    }
    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }
    .stats {
        grid-template-columns: 1fr;
    }
    .card {
        padding: 14px;
    }
    .image-card .placeholder-img {
        min-height: 180px;
    }
    .about-grid {
        grid-template-columns: 1fr;
    }
    .placeholder-img.portrait {
        width: 180px;
        height: 180px;
        margin: 0 auto 12px;
    }
    .skills ul {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }
    .section-header h2 {
        font-size: 22px;
    }
}
