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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    -webkit-font-smoothing: antialiased;
    background: #0a192f;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: transparent;
    color: #8892b0;
    line-height: 1.6;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

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

/* Skip link */
.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    padding: 8px 16px;
    background: #64ffda;
    color: #0a192f;
    font-weight: 600;
    border-radius: 4px;
    z-index: 10000;
}

.skip-link:focus {
    top: 16px;
}

/* Cursor elements hidden */
.cursor, .cursor-dot { display: none; }

/* ============================================
   PARTICLE CANVAS
   ============================================ */
#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* ============================================
   SPOTLIGHT (mouse-following radial gradient)
   ============================================ */
.spotlight {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    background: radial-gradient(
        600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(29, 78, 216, 0.07),
        transparent 60%
    );
    transition: background 0.15s ease;
}

/* ============================================
   LAYOUT — SPLIT SCREEN
   ============================================ */
.layout {
    position: relative;
    z-index: 5;
    display: flex;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 clamp(24px, 5vw, 96px);
    gap: clamp(16px, 4vw, 80px);
    min-height: 100vh;
}

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

.sidebar__name {
    font-family: 'Syne', sans-serif;
    font-size: clamp(3.5rem, 6vw, 5.5rem);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -0.04em;
    color: #ccd6f6;
    margin-bottom: 16px;
}

.sidebar__role {
    font-size: clamp(1rem, 1.6vw, 1.25rem);
    font-weight: 500;
    color: #ccd6f6;
    margin-bottom: 16px;
}

.sidebar__bio {
    font-size: 0.95rem;
    color: #8892b0;
    max-width: 340px;
    line-height: 1.6;
}

/* Social icons */
.sidebar__socials {
    display: none;
}

.social-icon {
    color: #8892b0;
    transition: color 0.25s, transform 0.25s;
}

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

/* ============================================
   CONTENT (Scrollable right)
   ============================================ */
.content {
    flex: 1;
    padding: 96px 0;
    min-width: 0;
}

.section {
    margin-bottom: 120px;
    scroll-margin-top: 80px;
}

.section__heading-mobile {
    display: none;
}

/* About */
.about {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.about p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #8892b0;
}

.highlight {
    color: #ccd6f6;
    font-weight: 500;
}

/* ============================================
   PROJECT CARDS
   ============================================ */
.project-card {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 20px;
    padding: 24px;
    margin: 0 -24px;
    border-radius: 8px;
    transition: background 0.3s, box-shadow 0.3s;
    align-items: start;
    text-decoration: none;
    color: inherit;
    margin-bottom: 8px;
}

.project-card:hover,
.project-card:focus-visible {
    background: rgba(100, 255, 218, 0.03);
    box-shadow: inset 0 1px 0 0 rgba(100, 255, 218, 0.05);
}

.project-card:focus-visible {
    outline: 2px solid #64ffda;
    outline-offset: -2px;
}

/* Thumbnail */
.project-card__img {
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid rgba(136, 146, 176, 0.15);
    aspect-ratio: 16 / 10;
    transition: border-color 0.3s;
    background: rgba(10, 25, 47, 0.8);
}

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

.project-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s, opacity 0.3s;
    opacity: 0.7;
}

.project-card:hover .project-card__img img {
    opacity: 1;
    transform: scale(1.03);
}

/* Logo variant for projects without screenshots */
.project-card__img--logo img {
    object-fit: contain;
    padding: 20%;
}

/* Contain variant — show full image without cropping */
.project-card__img--contain {
    background: #1a1f36;
}

.project-card__img--contain img {
    object-fit: contain;
}

/* Card body */
.project-card__title {
    font-size: 1rem;
    font-weight: 600;
    color: #ccd6f6;
    line-height: 1.3;
    margin-bottom: 8px;
    transition: color 0.3s;
}

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

.project-card__arrow {
    display: inline-block;
    font-size: 0.85rem;
    transition: transform 0.3s;
}

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

.project-card__desc {
    font-size: 0.85rem;
    line-height: 1.6;
    color: #8892b0;
    margin-bottom: 12px;
}

.project-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.project-card__tags span {
    font-size: 0.65rem;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 100px;
    background: rgba(100, 255, 218, 0.08);
    color: #64ffda;
    letter-spacing: 0.02em;
}

/* No-link variant */
.project-card--no-link {
    cursor: default;
}

/* ============================================
   INLINE LINKS
   ============================================ */
.inline-link {
    color: #64ffda;
    position: relative;
}

.inline-link::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 1px;
    background: #64ffda;
    opacity: 0.3;
    transition: opacity 0.3s;
}

.inline-link:hover::after {
    opacity: 1;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    padding: 40px 0 24px;
    margin-top: 40px;
}

.footer p {
    font-size: 0.75rem;
    color: #4a5568;
    line-height: 1.6;
}

/* ============================================
   RESPONSIVE — MOBILE (< 1024px)
   ============================================ */
@media (max-width: 1024px) {
    .layout {
        flex-direction: column;
        gap: 0;
    }

    .sidebar {
        position: relative;
        width: 100%;
        max-width: 100%;
        height: auto;
        padding: 96px 0 48px;
    }

    .content {
        padding: 0 0 64px;
    }

    .section {
        margin-bottom: 80px;
    }

    .section__heading-mobile {
        display: block;
        position: sticky;
        top: 0;
        z-index: 10;
        padding: 16px 0;
        margin: 0 0 24px;
        font-size: 0.75rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.12em;
        color: #ccd6f6;
        background: rgba(10, 25, 47, 0.85);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }

    .project-card {
        grid-template-columns: 1fr;
        margin: 0 -16px;
        padding: 20px 16px;
    }

    .project-card__img {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 600px) {
    .sidebar__name {
        font-size: 3rem;
    }

    .sidebar__socials {
        margin-top: 24px;
    }
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.15s !important;
    }

    html {
        scroll-behavior: auto;
    }
}
