@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
    --bg: #0b1120;
    --bg-alt: #080d18;
    --surface: #101d35;
    --surface-hover: #142544;
    --border: rgba(255, 255, 255, 0.08);
    --text: #e7edf6;
    --text-muted: #93a1b8;
    --orange: #ff7a45;
    --orange-soft: rgba(255, 122, 69, 0.15);
    --green: #2ecc71;
    --green-soft: rgba(46, 204, 113, 0.15);
    --font-display: 'Space Grotesk', 'Segoe UI', sans-serif;
    --font-body: 'Inter', 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Consolas', monospace;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    margin: 0;
}

a {
    font-family: inherit;
}

/* ---------- Layout & Navbar ---------- */

.layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 60px;
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(8, 13, 24, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.logo {
    font-family: var(--font-mono);
    font-size: 20px;
    font-weight: 500;
    color: var(--text);
}

.logo-bracket {
    color: var(--orange);
}

.logo-accent {
    color: var(--green);
}

.tabs {
    display: flex;
    gap: 4px;
}

.tab {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 8px 8px 0 0;
    border-bottom: 2px solid transparent;
    transition: 0.25s;
}

    .tab:hover {
        color: var(--text);
        background: var(--surface);
        border-bottom-color: var(--orange);
    }

.tab-cta {
    color: var(--green);
}

/* ---------- Hero ---------- */

.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    padding: 80px;
    background: radial-gradient(circle at 15% 20%, rgba(255, 122, 69, 0.10), transparent 45%), radial-gradient(circle at 85% 80%, rgba(46, 204, 113, 0.10), transparent 45%), linear-gradient(160deg, #07152b, #0f2344 70%);
    flex-wrap: wrap;
}

.hero-content {
    max-width: 620px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--orange-soft);
    color: var(--orange);
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 0.5px;
    padding: 8px 16px;
    border-radius: 50px;
    border: 1px solid rgba(255, 122, 69, 0.3);
}

.hero h1 {
    font-size: 58px;
    font-weight: 700;
    margin: 22px 0 14px;
    line-height: 1.1;
}

.primary {
    color: var(--orange);
}

.hero h3 {
    color: var(--text);
    font-weight: 500;
    font-size: 20px;
    margin-bottom: 20px;
    opacity: 0.85;
}

.hero p {
    color: var(--text-muted);
    font-size: 17px;
}

.buttons {
    margin-top: 36px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 15px;
    padding: 14px 26px;
    border-radius: 10px;
    text-decoration: none;
    display: inline-block;
    transition: 0.25s;
}

.btn-primary {
    background: var(--orange);
    color: #0b1120;
}

    .btn-primary:hover {
        background: #ff8f66;
        transform: translateY(-2px);
    }

.btn-outline {
    border: 2px solid var(--green);
    color: var(--green);
}

    .btn-outline:hover {
        background: var(--green-soft);
        transform: translateY(-2px);
    }

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 50px;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    color: var(--green);
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
}

/* ---------- Hero code window ---------- */

.hero-visual {
    flex: 1;
    min-width: 340px;
    max-width: 480px;
}

.code-window {
    background: #0d1526;
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
}

.code-window-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #0a101d;
    border-bottom: 1px solid var(--border);
}

.dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    display: inline-block;
}

.dot-red {
    background: #ff5f56;
}

.dot-orange {
    background: var(--orange);
}

.dot-green {
    background: var(--green);
}

.code-window-title {
    margin-left: 8px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
}

.code-window-body {
    margin: 0;
    padding: 22px;
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.7;
    color: #c3cde0;
    overflow-x: auto;
}

.tok-kw {
    color: var(--orange);
}

.tok-type {
    color: #7fb3ff;
}

.tok-str {
    color: var(--green);
}

.tok-comment {
    color: #6b7d99;
    font-style: italic;
}

/* ---------- Sections ---------- */

.section {
    padding: 100px 80px;
}

    .section.dark {
        background: var(--bg-alt);
    }

.eyebrow {
    display: block;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: 10px;
}

.section h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 38px;
}

/* ---------- About ---------- */

.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 50px;
    max-width: 1100px;
    margin: 0 auto;
    align-items: start;
}

.about-text {
    color: var(--text-muted);
    font-size: 17px;
}

.about-cards {
    display: grid;
    gap: 16px;
}

.about-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 3px solid var(--orange);
    padding: 20px 24px;
    border-radius: 10px;
}

    .about-card h4 {
        color: var(--green);
        font-size: 15px;
        margin-bottom: 6px;
    }

    .about-card p {
        margin: 0;
        color: var(--text-muted);
        font-size: 14px;
    }

/* ---------- Skills ---------- */

.skills-groups {
    display: grid;
    gap: 44px;
    max-width: 1100px;
    margin: 0 auto;
}

.group-title {
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 400;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.skills {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 22px 24px;
    border-radius: 14px;
    transition: 0.3s;
}

    .card:hover {
        transform: translateY(-6px);
        border-color: var(--orange);
        box-shadow: 0 15px 35px rgba(255, 122, 69, 0.15);
    }

    .card h4 {
        font-size: 16px;
        margin-bottom: 12px;
    }

.bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
}

    .bar span {
        display: block;
        height: 100%;
        background: linear-gradient(90deg, var(--orange), var(--green));
        border-radius: 10px;
    }

/* ---------- Timeline ---------- */

.timeline {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    padding-left: 30px;
    border-left: 2px solid var(--border);
}

.timeline-item {
    position: relative;
    padding-bottom: 44px;
}

    .timeline-item:last-child {
        padding-bottom: 0;
    }

.timeline-marker {
    position: absolute;
    left: -37px;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 4px var(--green-soft);
}

.timeline-date {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--orange);
}

.timeline-content h4 {
    font-size: 19px;
    margin: 6px 0 6px;
}

.timeline-content p {
    color: var(--text-muted);
    margin: 0;
    font-size: 15px;
}

/* ---------- Projects ---------- */

.projects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 26px;
    max-width: 1200px;
    margin: 0 auto;
}

.project {
    background: var(--surface);
    padding: 32px;
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

    .project:hover {
        transform: translateY(-8px);
        border-color: var(--green);
        box-shadow: 0 20px 45px rgba(46, 204, 113, 0.15);
    }

.project-tag {
    align-self: flex-start;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--green);
    background: var(--green-soft);
    padding: 4px 10px;
    border-radius: 6px;
}

.project h3 {
    font-size: 20px;
}

.project p {
    color: var(--text-muted);
    font-size: 14.5px;
    margin: 0;
    flex-grow: 1;
}

.project-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

    .project-stack span {
        font-family: var(--font-mono);
        font-size: 11.5px;
        color: var(--text-muted);
        border: 1px solid var(--border);
        padding: 4px 10px;
        border-radius: 20px;
    }

/* ---------- Testimonials ---------- */

.testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.testimonial {
    background: var(--surface);
    border: 1px solid var(--border);
    border-top: 3px solid var(--green);
    padding: 28px;
    border-radius: 14px;
}

    .testimonial p {
        color: var(--text-muted);
        font-style: italic;
        margin: 0 0 14px;
    }

.testimonial-author {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--orange);
}

/* ---------- Contact ---------- */

.contact-section {
    text-align: center;
}

    .contact-section p {
        max-width: 560px;
        margin: 0 auto;
        color: var(--text-muted);
    }

.contact-actions {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-top: 36px;
    flex-wrap: wrap;
}

.contact-links {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 26px;
    font-family: var(--font-mono);
    font-size: 13px;
}

    .contact-links a {
        color: var(--text-muted);
        text-decoration: none;
    }

        .contact-links a:hover {
            color: var(--green);
        }

/* ---------- Gallery ---------- */

.gallery-section {
    text-align: center;
}

.gallery-intro {
    max-width: 560px;
    margin: 0 auto 40px;
    color: var(--text-muted);
}

    .gallery-intro code {
        font-family: var(--font-mono);
        color: var(--green);
    }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
    text-align: left;
}

.gallery-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    transition: 0.3s;
}

    .gallery-item:hover {
        transform: translateY(-6px);
        border-color: var(--orange);
        box-shadow: 0 20px 40px rgba(255, 122, 69, 0.15);
    }

.gallery-image-frame {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--bg-alt);
}

    .gallery-image-frame img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform 0.4s;
    }

.gallery-item:hover .gallery-image-frame img {
    transform: scale(1.06);
}

.gallery-item-body {
    padding: 16px 20px;
}

    .gallery-item-body h4 {
        font-size: 16px;
        margin-bottom: 6px;
    }

    .gallery-item-body p {
        margin: 0;
        color: var(--text-muted);
        font-size: 13.5px;
    }

/* ---------- Live HTML Playground ---------- */

.playground-section {
    text-align: center;
}

.playground-intro {
    max-width: 560px;
    margin: 0 auto 40px;
    color: var(--text-muted);
}

.playground {
    max-width: 1100px;
    margin: 0 auto;
    text-align: left;
    background: #0d1526;
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
}

.playground-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    background: #0a101d;
    border-bottom: 1px solid var(--border);
}

.playground-label {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
}

.playground-actions {
    display: flex;
    gap: 10px;
}

.btn-chip {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--green);
    background: transparent;
    border: 1px solid rgba(46, 204, 113, 0.4);
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    transition: 0.25s;
}

    .btn-chip:hover {
        background: var(--green-soft);
    }

.playground-panes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 320px;
}

.playground-input {
    width: 100%;
    height: 100%;
    min-height: 320px;
    background: #0d1526;
    color: #c3cde0;
    font-family: var(--font-mono);
    font-size: 13.5px;
    line-height: 1.6;
    border: none;
    border-right: 1px solid var(--border);
    padding: 20px;
    resize: vertical;
}

    .playground-input:focus {
        outline: none;
    }

.playground-output {
    width: 100%;
    height: 100%;
    min-height: 320px;
    border: none;
    background: #ffffff;
}

@media (max-width: 800px) {
    .playground-panes {
        grid-template-columns: 1fr;
    }

    .playground-input,
    .playground-output {
        min-height: 260px;
    }
}

/* ---------- Guestbook / Comments ---------- */

.guestbook {
    max-width: 640px;
    margin: 60px auto 0;
    text-align: left;
}

.guestbook-title {
    font-size: 20px;
    margin-bottom: 20px;
    text-align: center;
}

.guestbook-form {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

    .form-row label {
        font-family: var(--font-mono);
        font-size: 13px;
        color: var(--text-muted);
    }

    .form-row input,
    .form-row textarea {
        font-family: var(--font-body);
        font-size: 15px;
        color: var(--text);
        background: var(--bg-alt);
        border: 1px solid var(--border);
        border-radius: 8px;
        padding: 12px 14px;
        resize: vertical;
    }

        .form-row input:focus,
        .form-row textarea:focus {
            outline: none;
            border-color: var(--orange);
        }

    .form-row .validation-message {
        color: #ff8080;
        font-size: 13px;
    }

.guestbook-form .btn {
    align-self: flex-start;
}

.guestbook-form button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-status {
    font-size: 14px;
    color: var(--green);
    margin: 0;
}

.guestbook-list {
    margin-top: 26px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.guestbook-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 3px solid var(--green);
    border-radius: 10px;
    padding: 16px 20px;
}

.guestbook-item-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    flex-wrap: wrap;
    gap: 6px;
}

.guestbook-name {
    font-weight: 600;
    color: var(--text);
}

.guestbook-date {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
}

.guestbook-message {
    margin: 0;
    color: var(--text-muted);
    font-size: 14.5px;
}

.text-muted {
    color: var(--text-muted);
    text-align: center;
}

/* ---------- Avatar ---------- */

.avatar-frame {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, var(--orange), var(--green));
    margin-bottom: 26px;
    position: relative;
    display: flex;
}

.avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--bg);
    display: block;
}

.avatar-initials {
    display: none;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid var(--bg);
    background: var(--surface);
    color: var(--text);
    font-family: var(--font-display);
    font-size: 42px;
    font-weight: 700;
    align-items: center;
    justify-content: center;
}

.avatar-fallback .avatar-initials {
    display: flex;
}

/* ---------- Strengths ---------- */

.strengths-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    max-width: 800px;
    margin: 0 auto;
}

.strength-pill {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 30px;
    padding: 12px 22px;
    transition: 0.25s;
}

    .strength-pill:hover {
        border-color: var(--green);
        color: var(--green);
        transform: translateY(-3px);
    }

/* ---------- Services ---------- */

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.service-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px 26px;
    text-align: center;
    transition: 0.3s;
}

    .service-card:hover {
        transform: translateY(-8px);
        border-color: var(--orange);
        box-shadow: 0 20px 40px rgba(255, 122, 69, 0.15);
    }

.service-icon {
    font-size: 30px;
    margin-bottom: 14px;
}

.service-card h4 {
    font-size: 17px;
    margin-bottom: 10px;
}

.service-card p {
    color: var(--text-muted);
    font-size: 14px;
    margin: 0;
}

/* ---------- Process ---------- */

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.process-step {
    background: var(--surface);
    border: 1px solid var(--border);
    border-top: 3px solid var(--green);
    border-radius: 14px;
    padding: 26px 22px;
}

.process-number {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--orange);
    display: block;
    margin-bottom: 10px;
}

.process-step h4 {
    font-size: 17px;
    margin-bottom: 8px;
}

.process-step p {
    color: var(--text-muted);
    font-size: 13.5px;
    margin: 0;
}

/* ---------- Education & Certifications ---------- */

.credentials-grid {
    display: grid;
    gap: 16px;
    max-width: 800px;
    margin: 0 auto;
}

.credential-card {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 3px solid var(--orange);
    border-radius: 12px;
    padding: 20px 24px;
}

.credential-icon {
    font-size: 24px;
    line-height: 1;
}

.credential-card h4 {
    font-size: 16px;
    margin: 0 0 6px;
}

.credential-card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 14px;
}

/* ---------- FAQ ---------- */

.faq-list {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px 22px;
}

    .faq-item summary {
        cursor: pointer;
        font-weight: 600;
        font-size: 15.5px;
        list-style: none;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

        .faq-item summary::-webkit-details-marker {
            display: none;
        }

        .faq-item summary::after {
            content: '+';
            color: var(--green);
            font-size: 20px;
            margin-left: 12px;
            transition: transform 0.25s;
        }

    .faq-item[open] summary::after {
        transform: rotate(45deg);
    }

    .faq-item p {
        margin: 14px 0 0;
        color: var(--text-muted);
        font-size: 14.5px;
        line-height: 1.7;
    }

/* ---------- Reading progress & scroll-to-top ---------- */

.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: transparent;
    z-index: 100;
}

.reading-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--orange), var(--green));
    transition: width 0.1s ease-out;
}

.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: none;
    background: var(--orange);
    color: #0b1120;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s, transform 0.25s, background 0.25s;
    z-index: 60;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

    .scroll-top-btn:hover {
        background: #ff8f66;
        transform: translateY(-3px);
    }

/* ---------- Footer ---------- */

.site-footer {
    margin-top: auto;
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    padding: 50px 80px 24px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-brand .logo {
    display: block;
    margin-bottom: 8px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 13.5px;
    max-width: 320px;
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

    .footer-links a {
        color: var(--text-muted);
        text-decoration: none;
        font-size: 14px;
    }

        .footer-links a:hover {
            color: var(--orange);
        }

.footer-bottom {
    max-width: 1200px;
    margin: 30px auto 0;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
    flex-wrap: wrap;
    gap: 10px;
}

.build-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--green);
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
    .navbar, .hero, .section, .site-footer {
        padding-left: 24px;
        padding-right: 24px;
    }

    .tabs {
        display: none;
    }

    .hero h1 {
        font-size: 40px;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }
}
