/* ========== RESET & BASE ========== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #0a192f;
    color: #8892b0;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

::selection {
    background: rgba(100, 255, 218, 0.15);
    color: #ccd6f6;
}

a {
    color: #ccd6f6;
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: #64ffda;
}

strong {
    color: #ccd6f6;
    font-weight: 500;
}

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

/* ========== CURSOR GLOW ========== */
.cursor-glow {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    transition: background 0.3s ease;
}

/* ========== LAYOUT ========== */
.layout {
    display: flex;
    max-width: 1280px;
    margin: 0 auto;
    min-height: 100vh;
    position: relative;
    z-index: 2;
}

/* ========== SIDEBAR ========== */
.sidebar {
    width: 48%;
    max-width: 520px;
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 100px 48px 48px;
}

.sidebar-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #233554;
    margin-bottom: 20px;
    transition: border-color 0.3s;
}

.avatar:hover {
    border-color: #64ffda;
}

.name {
    font-size: 2.8rem;
    font-weight: 700;
    color: #ccd6f6;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.title {
    font-size: 1.1rem;
    font-weight: 500;
    color: #64ffda;
    margin-top: 8px;
    font-family: 'JetBrains Mono', monospace;
}

.tagline {
    margin-top: 16px;
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 340px;
}

.highlight {
    color: #64ffda;
}

/* ========== SIDEBAR NAV ========== */
.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 48px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 8px 0;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #495670;
    transition: all 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: #ccd6f6;
}

.nav-indicator {
    width: 32px;
    height: 1px;
    background: #495670;
    transition: all 0.3s;
}

.nav-link:hover .nav-indicator,
.nav-link.active .nav-indicator {
    width: 64px;
    background: #ccd6f6;
}

/* ========== NAV SUBMENU ========== */
.nav-submenu {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-left: 48px;
    margin-top: 2px;
    margin-bottom: 4px;
}

.nav-submenu a {
    font-size: 0.65rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #374151;
    transition: all 0.2s;
    padding: 3px 0;
}

.nav-submenu a:hover {
    color: #64ffda;
    padding-left: 4px;
}

/* ========== SIDEBAR SOCIAL ========== */
.sidebar-social {
    display: flex;
    gap: 20px;
    margin-top: auto;
    padding-top: 32px;
}

.sidebar-social a {
    font-size: 1.25rem;
    color: #495670;
    transition: color 0.2s, transform 0.2s;
}

.sidebar-social a:hover {
    color: #64ffda;
    transform: translateY(-3px);
}

/* ========== MAIN CONTENT ========== */
.content {
    flex: 1;
    padding: 100px 48px 48px 48px;
}

/* ========== SECTIONS ========== */
.section {
    margin-bottom: 120px;
    scroll-margin-top: 80px;
}

.section p {
    margin-bottom: 16px;
}

.section-header-mobile {
    display: none;
}

/* ========== SUBSECTION ========== */
.subsection-title {
    font-size: 1rem;
    font-weight: 600;
    color: #ccd6f6;
    margin: 40px 0 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.num {
    font-family: 'JetBrains Mono', monospace;
    color: #64ffda;
    font-size: 0.85rem;
}

/* ========== CATEGORY TITLE ========== */
.category-title {
    font-size: 1rem;
    font-weight: 600;
    color: #ccd6f6;
    margin: 48px 0 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 1px solid #233554;
}

.category-title i {
    color: #64ffda;
    font-size: 0.85rem;
}

/* ========== SKILLS GRID ========== */
.skills-grid-compact {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.skill-group h4 {
    font-size: 0.8rem;
    font-weight: 600;
    color: #64ffda;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.skill-group h4 i {
    font-size: 0.75rem;
}

/* ========== TAGS ========== */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.tags span {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(100, 255, 218, 0.1);
    color: #64ffda;
    white-space: nowrap;
}

/* ========== SKILL CHIPS WITH LOGOS ========== */
.skill-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.skill-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px 5px 6px;
    border-radius: 999px;
    background: rgba(100, 255, 218, 0.08);
    border: 1px solid rgba(100, 255, 218, 0.12);
    transition: all 0.2s;
}

.skill-chip:hover {
    background: rgba(100, 255, 218, 0.15);
    border-color: rgba(100, 255, 218, 0.3);
    transform: translateY(-1px);
}

.skill-chip img {
    width: 18px;
    height: 18px;
    border-radius: 2px;
}

.skill-chip span {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    color: #64ffda;
    white-space: nowrap;
}

/* ========== EDUCATION ========== */
.education-block {
    margin-top: 40px;
}

.edu-item {
    display: flex;
    gap: 20px;
    padding: 12px 0;
    align-items: baseline;
}

.edu-year {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: #495670;
    min-width: 110px;
    white-space: nowrap;
}

.edu-item strong {
    display: block;
    color: #ccd6f6;
}

.edu-school {
    display: block;
    font-size: 0.85rem;
    color: #64ffda;
    margin-top: 2px;
}

/* ========== GROUP LIST (DIM EFFECT) ========== */
.group-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.group-list:hover>* {
    opacity: 0.5;
}

.group-list:hover>*:hover {
    opacity: 1 !important;
}

/* ========== EXPERIENCE CARD ========== */
.exp-card {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 16px;
    padding: 20px 24px;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
}

.exp-card:hover {
    background: rgba(100, 255, 218, 0.03);
    border-color: rgba(100, 255, 218, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
    color: inherit;
}

.exp-card:hover h3 {
    color: #64ffda;
}

.exp-date {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    color: #495670;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding-top: 6px;
    white-space: nowrap;
}

.exp-body h3 {
    font-size: 0.95rem;
    font-weight: 500;
    color: #ccd6f6;
    line-height: 1.4;
    transition: color 0.2s;
    margin-bottom: 8px;
}

.company {
    color: #64ffda;
}

.exp-body p {
    font-size: 0.85rem;
    margin-bottom: 12px;
    line-height: 1.6;
}

/* ========== PROJECT CARD ========== */
.project-card {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 16px;
    padding: 20px 24px;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
    align-items: start;
}

.project-card:hover {
    background: rgba(100, 255, 218, 0.03);
    border-color: rgba(100, 255, 218, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
    color: inherit;
}

.project-card:hover h3 {
    color: #64ffda;
}

.project-card:hover .link-icon {
    transform: translate(3px, -3px);
}

.project-img {
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid #233554;
    aspect-ratio: 16/10;
    transition: border-color 0.3s;
}

.project-card:hover .project-img {
    border-color: rgba(100, 255, 218, 0.3);
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-icon-bg {
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-body h3 {
    font-size: 0.95rem;
    font-weight: 500;
    color: #ccd6f6;
    transition: color 0.2s;
    margin-bottom: 8px;
    line-height: 1.4;
}

.link-icon {
    font-size: 0.7rem;
    display: inline-block;
    margin-left: 4px;
    transition: transform 0.2s;
}

.project-body p {
    font-size: 0.83rem;
    margin-bottom: 12px;
    line-height: 1.6;
}

/* ========== CONTACT ========== */
.contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 24px 0;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 6px;
    border: 1px solid #233554;
    font-size: 0.85rem;
    font-weight: 500;
    color: #ccd6f6;
    transition: all 0.2s;
}

.contact-btn:hover {
    background: rgba(100, 255, 218, 0.05);
    border-color: #64ffda;
    color: #64ffda;
}

.contact-btn.primary {
    border-color: #64ffda;
    color: #64ffda;
}

.contact-meta {
    font-size: 0.8rem;
    color: #495670;
    margin-top: 8px;
}

.contact-meta i {
    color: #64ffda;
    margin-right: 4px;
}

/* ========== SECTION CTA ========== */
.section-cta {
    margin-top: 24px;
}

.inline-link {
    font-weight: 600;
    font-size: 0.9rem;
    color: #ccd6f6;
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
    transition: all 0.2s;
}

.inline-link:hover {
    color: #64ffda;
    border-color: #64ffda;
}

.inline-link i {
    transition: transform 0.2s;
    margin-left: 4px;
    font-size: 0.7rem;
}

.inline-link:hover i {
    transform: translateX(4px);
}

/* ========== FOOTER ========== */
.footer {
    padding: 60px 0 24px;
    font-size: 0.8rem;
    color: #495670;
    line-height: 1.8;
}

.footer a {
    color: #64ffda;
}

.footer a:hover {
    text-decoration: underline;
}

/* ========== MOBILE NAV ========== */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 16px 24px;
    background: rgba(10, 25, 47, 0.9);
    backdrop-filter: blur(12px);
    z-index: 100;
    justify-content: space-between;
    align-items: center;
}

.mobile-logo {
    font-weight: 700;
    font-size: 1.3rem;
    color: #64ffda;
    font-family: 'JetBrains Mono', monospace;
}

.hamburger {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: #ccd6f6;
    transition: all 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    max-width: 320px;
    height: 100vh;
    background: #112240;
    z-index: 99;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
}

.mobile-menu.active {
    right: 0;
    display: flex;
}

.mobile-menu a {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: #ccd6f6;
    letter-spacing: 0.05em;
}

.mobile-menu a:hover {
    color: #64ffda;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .sidebar {
        padding: 80px 32px 32px;
    }

    .content {
        padding: 80px 32px 32px;
    }

    .name {
        font-size: 2.2rem;
    }

    .exp-card,
    .project-card {
        grid-template-columns: 1fr;
    }

    .exp-date {
        padding-top: 0;
        margin-bottom: 4px;
    }
}

@media (max-width: 768px) {
    .layout {
        flex-direction: column;
    }

    .sidebar {
        position: relative;
        width: 100%;
        max-width: 100%;
        height: auto;
        padding: 100px 24px 32px;
    }

    .sidebar-nav {
        display: none;
    }

    .content {
        padding: 24px;
    }

    .mobile-nav {
        display: flex;
    }

    .mobile-menu {
        display: flex;
        right: -100%;
    }

    .section {
        margin-bottom: 60px;
    }

    .section-header-mobile {
        display: block;
        position: sticky;
        top: 0;
        z-index: 10;
        background: rgba(10, 25, 47, 0.85);
        backdrop-filter: blur(8px);
        padding: 12px 0;
        margin: -12px -24px 24px;
        padding-left: 24px;
    }

    .section-header-mobile h2 {
        font-size: 0.85rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        color: #ccd6f6;
    }

    .skills-grid-compact {
        grid-template-columns: 1fr;
    }

    .exp-card,
    .project-card {
        padding: 16px;
    }

    .project-card {
        grid-template-columns: 80px 1fr;
    }

    .edu-item {
        flex-direction: column;
        gap: 2px;
    }

    .contact-links {
        flex-direction: column;
    }

    .name {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .project-card {
        grid-template-columns: 1fr;
    }

    .project-img {
        max-width: 120px;
    }
}