:root {
    --bg: #0c2a2a;
    --surface: rgba(255, 255, 255, 0.03);
    --surface-strong: rgba(255, 255, 255, 0.06);
    --primary: #00ad9f;
    --secondary: #74f6eb;
    --primary-hover: #0cc5b3;
    --text-main: #ffffff;
    --text-body: #d1e3e3;
    --text-muted: #9fb9b9;
    --border-subtle: rgba(255, 255, 255, 0.12);

    --radius-md: 12px;
    --radius-lg: 20px;
    --section-y: 96px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    margin: 0 auto;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text-body);
    font-family: "Figtree", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

.header-container {
    width: min(1120px, 100% - 32px);
    margin: 0 auto;
}

.section {
    padding: var(--section-y) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(12, 42, 42, 0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
}

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

.logo {
    color: var(--text-main);
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.04em;
}

.main-nav a {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 20px;
    font-size: 0.95rem;
}

.main-nav a:hover {
    color: var(--text-main);
}

/* Hero */
.hero {
    padding: 120px 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
}

.hero-right {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-illustration {
    max-width: 420px;
    width: 100%;
    height: auto;
    display: block;
}

.hero-left {
    flex: 0 0 540px;
    max-width: 540px;
}

.hero-avatar {
    width: 96px;
    height: 96px;
    border-radius: 999px;
    overflow: hidden;
    border: 2px solid var(--primary);
    margin-bottom: 30px;
}

.hero-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 40% 30%
}

.hero h1 {
    margin: 0 0 8px;
    color: var(--text-main);
    font-size: 2.4rem;
}

.hero-greeting {
    margin: 0;
    color: var(--text-body);
    line-height: 1.6;

}

.hero-title {
    margin: 0 0 16px;
    color: var(--primary);
    font-weight: 600;
}

.hero-tagline {
    margin: 0 0 24px;
    color: var(--text-body);
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: #ffffff;
}

.btn-primary:hover {
    background: var(--primary-hover);
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    border-color: var(--border-subtle);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.hero-socials {
    display: flex;
    gap: 20px;
}

.hero-socials a {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 1px solid var(--border-subtle);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    text-decoration: none;
    margin-bottom: 10px;
}

.hero-socials a:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.hero-socials img {
    background-color: #d1e3e3;
    border-radius: 30px;
    height: 30px;
    width: 30px;
}

@media (max-width: 900px) {
    .hero-right {
        display: none;
    }

    .hero-inner {
        justify-content: center;
        padding-left: 50px;
    }

    .hero-left {
        flex: 1;
        max-width: 600px;
        margin: 0 auto;
    }
}

/* About */
.about {
    padding: 120px 0;
}

.about h2 {
    color: var(--text-main);
    margin-bottom: 24px;
}

.about-container {
    width: min(1200px, 100% - 32px);
    margin: 0 auto;
    padding: 0 24px;
}


.about-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
}

.about-left {
    width: 250px;
    height: 400px;
    min-width: 250px;
    margin: auto 0;
    border: 1px solid var(--border-subtle);
}

.about-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    overflow-clip-margin: content-box;
}

.about-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.about-card {
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: 16px 18px;
    margin: auto 0;
    border: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    align-content: center;
}

.about-card .label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin: 0 0 4px;
}

.about-card .value {
    margin: 0 0 4px;
    color: var(--text-main);
    font-weight: 600;
}

.about-card .subtext {
    margin: 0;
    color: var(--text-body);
    font-size: 0.9rem;
}

.about-text {
    line-height: 1.7;
    color: var(--text-body);
    text-align: justify;
}


@media (max-width: 850px) {
    .about-inner {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .about-left {
        width: 100%;
        height: 250px;
        min-width: unset;
        margin-bottom: 16px;
    }

    .about-image {
        height: 100%;
        width: 100%;
        object-fit: cover;
    }

    .about-right {
        width: 100%;
        align-items: center;
    }
}

/* Experience */
.experience h2 {
    color: var(--text-main);
    margin-bottom: 24px;
}

/* Tabs */
.experience-tabs {
    display: inline-flex;
    gap: 8px;
    padding: 6px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--border-subtle);
    margin-bottom: 24px;
}

.experience-tab {
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 0.95rem;
    padding: 6px 16px;
    border-radius: 999px;
    cursor: pointer;
}

.experience-tab.is-active {
    background: var(--primary);
    color: #ffffff;
}

/* Panels + grid */
.experience-panels {
    margin-top: 8px;
}

.experience-panel {
    display: none;
}

.experience-panel.is-active {
    display: block;
}

.experience-grid {
    display: grid;
    gap: 20px;
}

@media (min-width: 768px) {
    .experience-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.experience-card {
    background: var(--surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    padding: 18px 20px;
}

.exp-logo-wrap {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 10px;
    height: 36px;
}

.exp-logo-wrap.double {
    gap: 12px;
}

.exp-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 8px;
    /* background: #fff; */
    border: 1px solid var(--primary-hover);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    padding: 2px;
}

.experience-card h3 {
    margin: 0 0 4px;
    color: var(--text-main);
    font-size: 1.05rem;
}

.exp-org {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-body);
}

.exp-meta {
    margin: 4px 0 10px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.exp-summary {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-body);
    line-height: 1.6;
}

/* modals */

.experience-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    z-index: 100;
    padding: 24px;
}

.experience-modal.is-open {
    display: flex;
}

.experience-modal-content {
    background: #082021;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    padding: 20px 22px;
    max-width: 520px;
    width: 100%;
}

.experience-modal-content h3 {
    margin: 0 0 6px;
    color: var(--text-main);
}

.experience-modal-content p {
    margin: 0 0 12px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.experience-modal-content ul {
    margin: 30px 0;
    padding-left: 18px;
    list-style: square;
}

.experience-modal-content li {
    margin-bottom: 10px;
    color: var(--text-body);
    font-size: 0.95rem;
    list-style: square;
}

.modal-media-grid {
    display: flex;
    gap: 12px;
    margin: 16px 0;
    flex-wrap: wrap;
}

.modal-media-img {
    width: 100%;
    max-height: 260px;
    object-fit: cover;
    border-radius: var(--radius-sm, 6px);
    flex: 1 1 calc(50% - 6px);
    min-width: 140px;
    cursor: zoom-in;
    transition: opacity 0.2s;
}

.modal-media-img:hover {
    opacity: 0.85;
}

.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.92);
    align-items: center;
    justify-content: center;
}

.lightbox.is-open {
    display: flex;
}

.lightbox-img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: var(--radius-sm, 6px);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    opacity: 0.8;
}

.lightbox-close:hover {
    opacity: 1;
}

.form-success,
.form-error {
    padding: 24px;
    border-radius: var(--radius-md);
    text-align: center;
    font-size: 1rem;
    font-weight: 500;
}

.form-success {
    color: #4ade80;
    background: rgba(74, 222, 128, 0.08);
    border: 1px solid rgba(74, 222, 128, 0.25);
}

.form-error {
    color: #f87171;
    background: rgba(248, 113, 113, 0.08);
    border: 1px solid rgba(248, 113, 113, 0.25);
}

.experience-modal-close {
    border: none;
    background: var(--primary);
    color: #ffffff;
    font-family: inherit;
    font-size: 0.9rem;
    padding: 6px 14px;
    border-radius: 999px;
    cursor: pointer;
}

.experience-more {
    background: none;
    border: none;
    padding: 5px 0;
    margin: 0;
    gap: 3px;

    position: relative;
    display: inline-flex;
    align-items: center;

    color: var(--secondary);
    text-decoration: underline;
    text-decoration-color: var(--primary-hover);
    font-weight: 500;
    line-height: 24px;
    font-size: 12px;
    font-family: "Instrument Sans", sans-serif;
    cursor: pointer;
    outline: none;
}

.experience-more:hover {
    transform: translate(3px, -1px);
    transition: transform 0.2s ease;
}


/* skills */
.skills h1 {
    color: var(--text-main);
    margin-bottom: 32px;
}

.skills-card {
    background: var(--surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 32px 28px;
}

.skills-category {
    color: var(--text-body);
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 24px;
    text-align: center;
    text-decoration: underline;
    text-decoration-color: var(--secondary);
}

.skills-category:not(:first-of-type) {
    margin-top: 32px;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    align-items: center;
}

.skills-list img {
    height: 28px;
    max-width: 100%;
}

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
}

.skill-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.skill-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.skill-title {
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.95rem;
}

.skill-level {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.skill-level.level-expert {
    color: var(--text-body);
}

.skill-level.level-basic {
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .skills-list {
        gap: 10px;
    }

    .skills-list img {
        height: 24px;
    }

    .skills-card {
        padding: 24px 20px;
    }
}

/* projects */
.projects {
    padding: 120px 0;
}

.projects h2 {
    color: var(--text-main);
    margin-bottom: 24px;
}

.projects-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.projects-grid {
    display: grid;
    gap: 20px;
}

@media (min-width: 768px) {
    .projects-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.project-tile {
    background: var(--surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    padding: 0px 0px 20px 0px;
    /* padding: 0; */


    /* height: 480px; */
    /* gap: 20px; */
    display: flex;
    flex-direction: column;
    /* grid-template-rows: 38% 62%; */
    /* overflow: hidden; */
}

.project-tile::after {
    filter: blur(90px);
    opacity: 0.4;
}

.project-img-container {
    position: relative;
    /* padding-bottom: 24px; */
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.project-info {
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

}

.project-info h3 {
    color: var(--text-main);
    font-size: larger;
}

.project-info p {
    text-align: center;
    text-align: justify;
    margin: 0;
}

.project-buttons {
    display: flex;
    gap: 12px;
}

.project-btn {
    /* 
    padding: 10px 16px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-main);
    backdrop-filter: blur(6px);
    transition: background 0.2s ease, border 0.2s ease; */

    margin-top: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    /* border: 1px solid transparent; */
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
    cursor: pointer;
}

.non {
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .project-tile {
        height: 460px;
    }
}

/* Contact */
.contact h2 {
    color: var(--text-main);
    margin-bottom: 24px;
}

.contact-intro {
    color: var(--text-body);
    margin-bottom: 48px;
    font-size: 1.05rem;
    max-width: 680px;
}

.contact-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.contact-left h3 {
    color: var(--text-main);
    margin-top: 0;
    margin-bottom: 12px;
}

.contact-text {
    color: var(--text-body);
    line-height: 1.7;
    margin-bottom: 32px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    background: var(--surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    transition: border-color 0.2s ease, background 0.2s ease;
}

.contact-item:hover {
    border-color: var(--primary);
    background: var(--surface-strong);
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 8px;
    background: rgba(0, 173, 159, 0.1);
    color: var(--primary);
}

.contact-details {
    flex: 1;
}

.contact-label {
    margin: 0 0 4px;
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contact-link {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.contact-link:hover {
    color: var(--primary);
}

/* Contact Form */
.contact-form {
    background: var(--surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 32px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.04);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    width: 100%;
    margin-top: 8px;
}

@media (max-width: 900px) {
    .contact-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-form {
        padding: 24px;
    }
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--border-subtle);
    padding: 20px 0 32px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* temp placeholders */
.placeholder {
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}