/* ==========================================================
   ibanousis.tech — sections: about, projects, experience,
   skills, education, contact, modals, responsive
   ========================================================== */

/* ===== Shared panel ===== */
.panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--rad);
    padding: 2.2rem 2.4rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
}

.panel-label {
    font-family: var(--font-m);
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    color: var(--cyan-soft);
    text-transform: lowercase;
    margin-bottom: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.panel-label::before {
    content: '//';
    color: var(--faint);
}

.panel h3 {
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 1rem;
}

.panel p {
    color: var(--muted);
    line-height: 1.75;
    font-weight: 300;
    font-size: 0.99rem;
}

.panel p + p {
    margin-top: 1rem;
}

/* ===== About ===== */
.about-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 1.6rem;
}

.ach-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.ach-list li {
    color: var(--muted);
    font-weight: 300;
    line-height: 1.65;
    padding-left: 1.4rem;
    position: relative;
    font-size: 0.99rem;
}

.ach-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--cyan-soft);
}

/* ===== Projects ===== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 1.6rem;
}

.project-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--rad);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform 0.35s var(--ease), border-color 0.35s ease, box-shadow 0.35s ease;
    overflow: hidden;
}

.project-card:hover,
.project-card:focus-visible {
    transform: translateY(-6px);
    border-color: rgba(0, 242, 255, 0.4);
    box-shadow: 0 18px 50px rgba(0, 90, 140, 0.25), 0 0 0 1px rgba(0, 242, 255, 0.08);
    outline: none;
}

.pc-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1.5rem;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.018);
}

.pc-slug {
    font-family: var(--font-m);
    font-size: 0.72rem;
    color: var(--faint);
    letter-spacing: 0.04em;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pc-slug::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--blue-lt);
    flex: none;
}

.project-card:hover .pc-slug::before {
    background: var(--cyan);
    box-shadow: 0 0 8px rgba(0, 242, 255, 0.8);
}

.pc-badge {
    font-family: var(--font-m);
    font-size: 0.6rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.28rem 0.6rem;
    border-radius: 5px;
    flex: none;
}

.pc-badge.work {
    color: var(--cyan-soft);
    border: 1px solid rgba(0, 242, 255, 0.3);
    background: rgba(0, 242, 255, 0.06);
}

.pc-badge.personal {
    color: #a3b8e8;
    border: 1px solid rgba(125, 95, 255, 0.35);
    background: rgba(125, 95, 255, 0.08);
}

.pc-body {
    padding: 1.6rem 1.5rem 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
}

.pc-title {
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.pc-desc {
    color: var(--muted);
    font-weight: 300;
    line-height: 1.65;
    font-size: 0.93rem;
}

.pc-features {
    border-top: 1px dashed var(--line);
    padding-top: 1rem;
}

.pc-features p {
    font-family: var(--font-m);
    font-size: 0.66rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--faint);
    margin-bottom: 0.7rem;
}

.pc-features ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.pc-features li {
    color: var(--muted);
    font-weight: 300;
    font-size: 0.85rem;
    line-height: 1.55;
    padding-left: 1.1rem;
    position: relative;
}

.pc-features li::before {
    content: '+';
    position: absolute;
    left: 0;
    color: var(--blue-lt);
    font-family: var(--font-m);
}

.pc-foot {
    margin-top: auto;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.repo-link {
    font-family: var(--font-m);
    font-size: 0.74rem;
    color: var(--muted);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    transition: color 0.25s ease;
}

.repo-link:hover {
    color: var(--cyan);
}

.pc-cta {
    font-family: var(--font-m);
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    color: var(--cyan-soft);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-left: auto;
}

.pc-cta::after {
    content: '→';
    transition: transform 0.25s var(--ease);
}

.project-card:hover .pc-cta::after {
    transform: translateX(4px);
}

/* ===== Experience ===== */
.timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
    max-width: 880px;
    padding-left: 2.2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 12px;
    bottom: 12px;
    width: 1px;
    background: linear-gradient(var(--cyan-soft), var(--line) 30%, var(--line));
}

.xp-item {
    position: relative;
}

.xp-item::before {
    content: '';
    position: absolute;
    left: -2.2rem;
    top: 2rem;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    border: 1px solid var(--cyan-soft);
    background: var(--bg-0);
    box-shadow: 0 0 12px rgba(0, 242, 255, 0.3);
}

.xp-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.1rem;
}

.xp-title {
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.xp-org {
    color: var(--blue-lt);
    font-size: 0.95rem;
    margin-top: 0.25rem;
    font-weight: 400;
}

.xp-date {
    font-family: var(--font-m);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    color: var(--cyan-soft);
    border: 1px solid rgba(0, 242, 255, 0.25);
    background: rgba(0, 242, 255, 0.05);
    padding: 0.35rem 0.7rem;
    border-radius: 6px;
    white-space: nowrap;
}

.xp-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.xp-list li {
    color: var(--muted);
    font-weight: 300;
    font-size: 0.95rem;
    line-height: 1.65;
    padding-left: 1.3rem;
    position: relative;
}

.xp-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--blue-lt);
}

/* ===== Skills ===== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 1.6rem;
}

.skill-panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--rad);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.sp-head {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.8rem 1.3rem;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.018);
}

.sp-dots {
    display: flex;
    gap: 5px;
}

.sp-dots i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(148, 186, 222, 0.22);
}

.sp-dots i:first-child {
    background: rgba(0, 242, 255, 0.55);
}

.sp-name {
    font-family: var(--font-m);
    font-size: 0.74rem;
    letter-spacing: 0.06em;
    color: var(--muted);
}

.sp-body {
    padding: 1.3rem 1.4rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    flex: 1;
}

.skill-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.skill-list li {
    color: var(--muted);
    font-weight: 300;
    font-size: 0.92rem;
    line-height: 1.55;
    padding-left: 1.2rem;
    position: relative;
}

.skill-list li::before {
    content: '·';
    position: absolute;
    left: 0.2rem;
    color: var(--cyan-soft);
    font-weight: 700;
}

.llm-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    border-top: 1px dashed var(--line);
    padding-top: 1.1rem;
    margin-top: auto;
}

.llm-tag,
.tech-tag {
    font-family: var(--font-m);
    font-size: 0.68rem;
    letter-spacing: 0.03em;
    color: var(--text);
    border: 1px solid var(--line-strong);
    background: rgba(58, 110, 165, 0.16);
    padding: 0.3rem 0.65rem;
    border-radius: 5px;
}

/* ===== Education ===== */
.degree-card {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.degree-title {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 0.4rem;
}

.degree-school {
    color: var(--blue-lt);
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.degree-details {
    color: var(--faint);
    font-size: 0.88rem;
    font-weight: 300;
}

.degree-thesis {
    margin-top: 1.3rem;
    border-top: 1px dashed var(--line);
    padding-top: 1.2rem;
    color: var(--muted);
    font-weight: 300;
    font-size: 0.95rem;
    line-height: 1.65;
}

.degree-thesis .grade {
    font-family: var(--font-m);
    color: var(--cyan-soft);
    font-size: 0.82rem;
    display: inline-block;
    margin-top: 0.45rem;
}

.certs-heading {
    font-family: var(--font-m);
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    color: var(--cyan-soft);
    margin-bottom: 1.4rem;
}

.certs-heading::before {
    content: '// ';
    color: var(--faint);
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 0.9rem;
    margin-bottom: 3rem;
}

.cert-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.2rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(11, 24, 39, 0.55);
    text-decoration: none;
    transition: border-color 0.25s ease, transform 0.25s var(--ease), background 0.25s ease;
}

a.cert-item:hover {
    border-color: rgba(0, 242, 255, 0.4);
    transform: translateY(-3px);
    background: rgba(14, 30, 48, 0.7);
}

.cert-ico {
    width: 38px;
    height: 38px;
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--blue-lt);
    font-size: 0.95rem;
    background: rgba(58, 110, 165, 0.1);
}

.cert-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.cert-name {
    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1.35;
    color: var(--text);
}

.cert-meta {
    font-family: var(--font-m);
    font-size: 0.66rem;
    letter-spacing: 0.05em;
    color: var(--faint);
}

a.cert-item .cert-meta::after {
    content: ' ↗';
    color: var(--cyan-soft);
}

.cert-item.upcoming {
    border-style: dashed;
    opacity: 0.75;
}

.cert-item.upcoming .cert-meta {
    color: var(--blue-lt);
}

.extras-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.6rem;
}

.lang-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.col-label {
    font-family: var(--font-m);
    font-size: 0.66rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--faint);
    margin-bottom: 0.7rem;
}

.plain-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.plain-list li {
    color: var(--muted);
    font-weight: 300;
    font-size: 0.92rem;
    padding-left: 1.1rem;
    position: relative;
}

.plain-list li::before {
    content: '·';
    position: absolute;
    left: 0.2rem;
    color: var(--cyan-soft);
    font-weight: 700;
}

.interest-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.interest-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    color: var(--muted);
    font-weight: 300;
}

.interest-chip i {
    color: var(--blue-lt);
    font-size: 0.8rem;
}

/* ===== Contact ===== */
.contact-section {
    text-align: center;
    padding-bottom: 7rem;
}

.contact-section .sec-meta {
    justify-content: center;
}

.contact-section .sec-sub {
    margin-left: auto;
    margin-right: auto;
}

.contact-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2.6rem;
}

.contact-mail {
    margin-top: 2rem;
    font-family: var(--font-m);
    font-size: 0.8rem;
    color: var(--faint);
    letter-spacing: 0.05em;
}

.contact-mail a {
    color: var(--cyan-soft);
    text-decoration: none;
}

.contact-mail a:hover {
    text-decoration: underline;
}

/* ===== Modals ===== */
.modal {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.2rem;
    background: rgba(3, 8, 14, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal.open {
    opacity: 1;
    pointer-events: auto;
}

.modal-panel {
    width: min(1060px, 100%);
    max-height: calc(100vh - 4rem);
    background: #0a1726;
    border: 1px solid var(--line-strong);
    border-radius: 14px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6), 0 0 60px rgba(0, 130, 180, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(16px) scale(0.985);
    transition: transform 0.35s var(--ease);
}

.modal.open .modal-panel {
    transform: translateY(0) scale(1);
}

.modal-head {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.75rem 1.2rem;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.02);
    flex: none;
}

.modal-dots {
    display: flex;
    gap: 6px;
}

.modal-dots i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(148, 186, 222, 0.22);
}

.modal-dots i:first-child {
    background: rgba(0, 242, 255, 0.55);
}

.modal-path {
    font-family: var(--font-m);
    font-size: 0.7rem;
    color: var(--faint);
    letter-spacing: 0.04em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.modal-close {
    margin-left: auto;
    background: transparent;
    border: 1px solid var(--line);
    color: var(--muted);
    border-radius: 7px;
    width: 30px;
    height: 30px;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease;
    flex: none;
}

.modal-close:hover,
.modal-close:focus-visible {
    color: var(--cyan);
    border-color: var(--cyan-soft);
    outline: none;
}

.modal-body {
    padding: 2rem 2.2rem 2.4rem;
    overflow-y: auto;
}

.modal-title {
    font-size: clamp(1.5rem, 2.6vw, 2.1rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 1.6rem;
}

.modal-intro {
    color: var(--muted);
    font-weight: 300;
    line-height: 1.7;
    margin: -0.6rem 0 1.6rem;
}

.flow-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.flow-step {
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
    padding: 1.2rem 1.3rem 1.3rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.flow-step-top {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.2rem;
}

.step-no {
    font-family: var(--font-m);
    font-size: 0.72rem;
    color: var(--cyan);
    letter-spacing: 0.1em;
}

.step-track {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(0, 242, 255, 0.35), transparent);
}

.flow-step h4 {
    font-size: 0.98rem;
    font-weight: 600;
}

.flow-step p {
    color: var(--muted);
    font-weight: 300;
    font-size: 0.84rem;
    line-height: 1.6;
}

.flow-step code {
    font-family: var(--font-m);
    font-size: 0.78em;
    background: rgba(0, 242, 255, 0.08);
    border-radius: 4px;
    padding: 0.05em 0.35em;
}

.hl {
    color: var(--cyan-soft);
}

.module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.module-card {
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
    padding: 1.3rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.module-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--cyan-soft);
    background: rgba(0, 242, 255, 0.05);
    font-size: 0.9rem;
}

.module-card h4 {
    font-size: 1rem;
    font-weight: 600;
}

.module-card p {
    color: var(--muted);
    font-weight: 300;
    font-size: 0.84rem;
    line-height: 1.6;
}

.modal-sec {
    margin-top: 1.8rem;
    border-top: 1px solid var(--line);
    padding-top: 1.4rem;
}

.modal-sec-label {
    font-family: var(--font-m);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    color: var(--cyan-soft);
    margin-bottom: 1rem;
    font-weight: 500;
}

.modal-sec-label::before {
    content: '// ';
    color: var(--faint);
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.modal-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.modal-list li {
    color: var(--muted);
    font-weight: 300;
    font-size: 0.88rem;
    line-height: 1.65;
    padding-left: 1.2rem;
    position: relative;
}

.modal-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--blue-lt);
}

.modal-list strong {
    color: var(--text);
    font-weight: 500;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .hero-visual {
        order: -1;
        height: clamp(300px, 42vw, 420px);
        max-width: 520px;
        margin: 0 auto;
        width: 100%;
    }

    .hero-copy {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .extras-grid {
        grid-template-columns: 1fr;
    }

    .flow-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .wrap,
    .nav-inner {
        padding-left: 1.4rem;
        padding-right: 1.4rem;
    }

    .section {
        padding: 5rem 0 4rem;
    }

    .menu-btn {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: rgba(6, 13, 22, 0.97);
        border-bottom: 1px solid var(--line);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s var(--ease);
    }

    .nav-links.open {
        max-height: 420px;
    }

    .nav-link {
        padding: 1rem 1.6rem;
        border-top: 1px solid var(--line);
        font-size: 0.85rem;
    }

    .hero {
        padding-top: 6.5rem;
    }

    .hero-stats {
        flex-direction: column;
    }

    .stat {
        border-right: none;
        border-bottom: 1px solid var(--line);
        flex-direction: row;
        align-items: baseline;
        justify-content: space-between;
        padding: 0.9rem 1.2rem;
    }

    .stat:last-child {
        border-bottom: none;
    }

    .node-tag {
        display: none;
    }

    .scroll-hint {
        display: none;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .timeline {
        padding-left: 1.6rem;
    }

    .xp-item::before {
        left: -1.6rem;
    }

    .panel {
        padding: 1.7rem 1.5rem;
    }

    .flow-grid {
        grid-template-columns: 1fr;
    }

    .lang-cols {
        grid-template-columns: 1fr;
    }

    .modal {
        padding: 1rem 0.8rem;
    }

    .modal-body {
        padding: 1.5rem 1.3rem 1.8rem;
    }
}
