/* =========================
   Reset
========================= */

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

/* =========================
   Base Styles
========================= */

html {
    scroll-behavior: smooth;
}

body {
    font-family: "JetBrains Mono", monospace;
    background-color: #0f1117;
    color: #e5e7eb;
    line-height: 1.6;
    padding-top: 74px;
}

/* =========================
   Header
========================= */

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    border-bottom: 1px solid #24504d;
    background-color: rgba(15, 17, 23, 0.92);
    backdrop-filter: blur(8px);
    z-index: 1000;
}

.navbar {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 1.25rem 2rem;
}

.logo {
    font-size: 1rem;
    color: #f9fafb;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}

.logo::before {
    content: "> ";
    color: #38b2a6;
}

.nav-links {
    display: flex;
    gap: 1.25rem;
    list-style: none;
    margin-left: 4rem;
    flex-wrap: wrap;
}

.nav-links a {
    text-decoration: none;
    color: #94a3b8;
    white-space: nowrap;
}

.nav-links a::before {
    content: "/";
    color: #38b2a6;
    margin-right: 0.35rem;
}

/* =========================
   Hero
========================= */

.hero {
    max-width: 1100px;
    margin: 0 auto;
    padding: 8rem 2rem 4rem;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    color: #f8fafc;
    min-height: 4.5rem;
}

#typed-text::after {
    content: "|";
    margin-left: 5px;
    color: #38b2a6;
    animation: blink 0.8s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    50.01%, 100% { opacity: 0; }
}

.cursor-hide::after {
    display: none;
}

.hero-status-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 1.25rem;
}

.hero-status-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.03);
    color: #e5e7eb;
    font-size: 0.82rem;
    position: relative;
}

.status-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 999px;
    background-color: #ff4d4f;
    box-shadow: 0 0 8px rgba(255, 77, 79, 0.75);
    flex-shrink: 0;
}

/* =========================
   Sections
========================= */

.content-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 2rem 4rem;
    scroll-margin-top: 90px;
}

.section-heading {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.section-number {
    font-size: 1.15rem;
    color: #38b2a6;
    font-weight: 700;
}

.section-heading h2 {
    font-size: 1.5rem;
    color: #f8fafc;
    font-weight: 700;
}

.section-line {
    width: 100%;
    height: 1px;
    background-color: rgba(56, 178, 166, 0.18);
    margin-bottom: 2rem;
}

/* =========================
   Cards
========================= */

.card {
    min-height: 220px;
    padding: 1.25rem;
    background-color: #151821;
    border: 1px solid rgba(56, 178, 166, 0.12);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(56, 178, 166, 0.06), transparent 45%);
    pointer-events: none;
}

.card-label {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #7ad3cb;
    background-color: rgba(56, 178, 166, 0.10);
    border: 1px solid rgba(56, 178, 166, 0.22);
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    margin-bottom: 1rem;
    width: fit-content;
}

.card p {
    font-size: 0.95rem;
    color: #94a3b8;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

/* =========================
   About
========================= */

.about-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1rem;
}

.about-main {
    min-height: auto;
}

.about-side {
    display: grid;
    gap: 1rem;
}

.info-card {
    min-height: auto;
}

.tag-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.about-tag {
    display: inline-block;
    padding: 0.45rem 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.03);
    color: #ffffff;
    font-size: 0.78rem;
}

/* =========================
   Education
========================= */

.education-list {
    position: relative;
    z-index: 1;
}

.education-item:last-child p:last-child,
.info-card p:last-child {
    margin-bottom: 0;
}

.edu-school {
    font-size: 0.98rem;
    color: #f8fafc;
    margin-bottom: 0.35rem;
}

.edu-course {
    font-size: 0.88rem;
    color: #94a3b8;
    margin-bottom: 0;
    line-height: 1.5;
}

.education-divider {
    width: 100%;
    height: 1px;
    background-color: rgba(56, 178, 166, 0.12);
    margin: 1rem 0;
}

/* =========================
   Experience
========================= */

.experience-list {
    display: grid;
    gap: 1rem;
}

.experience-card {
    min-height: auto;
}

.experience-top {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
    margin-bottom: 0.85rem;
    position: relative;
    z-index: 1;
}

.experience-date {
    display: inline-flex;
    align-items: center;
    padding: 0.38rem 0.75rem;
    border-radius: 999px;
    background-color: rgba(56, 178, 166, 0.10);
    border: 1px solid rgba(56, 178, 166, 0.20);
    color: #7ad3cb;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.experience-type {
    display: inline-flex;
    align-items: center;
    padding: 0.38rem 0.75rem;
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #f8fafc;
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.experience-role {
    font-size: 1.15rem;
    color: #f8fafc;
    margin-bottom: 0.35rem;
    position: relative;
    z-index: 1;
}

.experience-company {
    color: #b6c2d1;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.experience-points {
    list-style: none;
    display: grid;
    gap: 0.85rem;
    position: relative;
    z-index: 1;
}

.experience-points li {
    position: relative;
    padding-left: 1.2rem;
    color: #94a3b8;
    font-size: 0.93rem;
    line-height: 1.7;
}

.experience-points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.6rem;
    width: 0.48rem;
    height: 0.48rem;
    border-radius: 999px;
    background-color: #22c55e;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.7);
}

.experience-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.1rem;
    position: relative;
    z-index: 1;
}

.experience-tags .about-tag {
    margin-bottom: 0;
}

/* =========================
   Events
========================= */

.event-card {
    min-height: auto;
}

.event-summary {
    position: relative;
    z-index: 1;
}

.media-dropdown {
    margin-top: 1.5rem;
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(56, 178, 166, 0.12);
    padding-top: 1rem;
}

.media-dropdown summary {
    list-style: none;
    cursor: pointer;
    color: #f8fafc;
    font-size: 0.9rem;
    user-select: none;
    width: fit-content;
}

.media-dropdown summary::-webkit-details-marker {
    display: none;
}

.media-dropdown summary::before {
    content: "+ ";
    color: #38b2a6;
}

.media-dropdown[open] summary::before {
    content: "- ";
}

.media-content {
    margin-top: 1rem;
    display: grid;
    gap: 1.25rem;
}

.media-item {
    display: grid;
    gap: 0.65rem;
}

.media-label {
    font-size: 0.82rem;
    color: #7ad3cb;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0;
}

.media-image,
.media-video {
    width: 100%;
    border-radius: 10px;
    border: 1px solid rgba(56, 178, 166, 0.16);
    background-color: #0f1117;
}

/* =========================
   Certificates
========================= */

.certificate-list {
    display: grid;
    gap: 1rem;
}

.certificate-card {
    min-height: auto;
    display: grid;
    grid-template-columns: 1.6fr 0.9fr;
    gap: 1rem;
    align-items: start;
}

.certificate-details {
    position: relative;
    z-index: 1;
}

.certificate-preview {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.certificate-image {
    width: 100%;
    max-width: 320px;
    border-radius: 10px;
    border: 1px solid rgba(56, 178, 166, 0.16);
    background-color: #0f1117;
    object-fit: cover;
}

/* =========================
   Awards
========================= */

.awards-list {
    display: grid;
    gap: 1rem;
}

.award-year-card {
    background-color: #151821;
    border: 1px solid rgba(56, 178, 166, 0.12);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.award-year-card summary {
    list-style: none;
    cursor: pointer;
    padding: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.award-year-card summary::-webkit-details-marker {
    display: none;
}

.award-year-card summary::after {
    content: "+";
    color: #38b2a6;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.award-year-card[open] summary::after {
    content: "-";
}

.award-year {
    font-size: 1.15rem;
    font-weight: 700;
    color: #f8fafc;
}

.award-summary-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.award-count {
    font-size: 0.8rem;
    color: #7ad3cb;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background-color: rgba(56, 178, 166, 0.10);
    border: 1px solid rgba(56, 178, 166, 0.20);
}

.award-items {
    padding: 0 1.25rem 1.25rem;
    display: grid;
    gap: 0.75rem;
}

.award-item {
    position: relative;
    z-index: 1;
    padding: 0.95rem 1rem;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.award-item p {
    margin-bottom: 0;
    color: #cbd5e1;
    font-size: 0.92rem;
}

/* =========================
   Testimonial
========================= */

.testimonial-layout {
    display: grid;
    grid-template-columns: 1fr 0.82fr;
    gap: 1rem;
    align-items: stretch;
}

.testimonial-text-card {
    min-height: auto;
    justify-content: center;
}

.testimonial-quote-mark {
    font-size: 4.25rem;
    line-height: 1;
    color: #38b2a6;
    margin-bottom: 0.5rem;
}

.testimonial-quote {
    position: relative;
    z-index: 1;
    font-size: 1rem;
    line-height: 1.9;
    color: #cbd5e1;
    font-weight: 400;
    font-style: normal;
    margin-bottom: 1.5rem;
}

.testimonial-meta {
    position: relative;
    z-index: 1;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(56, 178, 166, 0.12);
}

.testimonial-name {
    color: #f8fafc;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.testimonial-role {
    color: #7ad3cb;
    font-size: 0.84rem;
    margin-bottom: 0;
}

.testimonial-image-card {
    min-height: auto;
    padding: 0;
    display: flex;
    align-items: stretch;
    justify-content: center;
}

.testimonial-portrait {
    width: 100%;
    height: 100%;
    min-height: 540px;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 12px;
}

/* =========================
   Contact
========================= */

.contact-card {
    min-height: auto;
}

.contact-text {
    font-size: 0.95rem;
    color: #cbd5e1;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    max-width: 60ch;
}

.contact-links {
    display: grid;
    gap: 0.85rem;
    position: relative;
    z-index: 1;
}

.contact-link {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    text-decoration: none;
    padding: 1rem 1.05rem;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(56, 178, 166, 0.14);
    transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
    position: relative;
    z-index: 1;
}

.contact-link:hover {
    border-color: rgba(56, 178, 166, 0.35);
    background-color: rgba(56, 178, 166, 0.08);
    transform: translateY(-2px);
}

.contact-link-label {
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #7ad3cb;
}

.contact-link-value {
    font-size: 0.95rem;
    color: #f8fafc;
    word-break: break-word;
}

/* =========================
   Empty blocks
========================= */

.empty-block {
    min-height: 180px;
}

/* =========================
   Responsive
========================= */

@media (max-width: 992px) {
    .about-layout {
        grid-template-columns: 1fr;
    }

    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-links {
        margin-left: 0;
        margin-top: 0.75rem;
        gap: 0.85rem 1.25rem;
    }

    .certificate-card {
        grid-template-columns: 1fr;
    }

    .certificate-preview {
        justify-content: flex-start;
    }

    .award-year-card summary {
        flex-direction: column;
        align-items: flex-start;
    }

    .testimonial-layout {
        grid-template-columns: 1fr;
    }

    .testimonial-portrait {
        min-height: 460px;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.6rem;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.35rem;
    }

    .section-number {
        font-size: 1rem;
    }

    .section-heading h2 {
        font-size: 1.3rem;
    }

    .content-section {
        padding: 2rem 2rem 3rem;
    }

    .experience-role {
        font-size: 1rem;
    }

    .experience-points li {
        font-size: 0.9rem;
    }

    .award-summary-meta {
        gap: 0.5rem;
    }

    .testimonial-quote-mark {
        font-size: 3.5rem;
    }

    .testimonial-quote {
        font-size: 0.95rem;
        line-height: 1.8;
    }

    .testimonial-portrait {
        min-height: 380px;
    }

    .contact-link-value {
        font-size: 0.9rem;
    }
}