/* ============================================================
   RAGHAV SURIYASHEKAR — Portfolio CSS
   Design: Dark technical aesthetic with animated skill bars,
   unified work grid, expandable card details.
   ============================================================ */

/* Google Fonts loaded in HTML — Space Mono + DM Sans */

/* ---- CSS Custom Properties -------------------------------- */
@import url('https://fonts.googleapis.com/css?family=Roboto');
@import url('https://fonts.googleapis.com/css2?family=Poppins&display=swap');

:root {
    --bg: #0e0e10;
    --surface: #18181c;
    --surface2: #222228;
    --border: rgba(255, 255, 255, 0.08);
    --border-hi: rgba(255, 255, 255, 0.18);

    --orange: #FF8C00;
    --purple: #BB86FC;
    --green: #00E676;
    --cyan: #00CFFF;
    --red: #FF4C4C;

    --text: #f0f0f0;
    --text-muted: #888;
    --text-dim: #555;

    --font-head: 'Space Mono', monospace;
    --font-body: 'DM Sans', sans-serif;

    --card-radius: 14px;
    --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Reset ------------------------------------------------ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    overflow-y: scroll;
    scrollbar-width: none;
}

html::-webkit-scrollbar {
    display: none;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    user-select: none;
    -webkit-user-select: none;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    scroll-snap-align: start;
    position: relative;
    overflow: hidden;
    padding: 60px 24px 40px;
    gap: 48px;
}

.hero-background {
    position: absolute;
    inset: 0;
    background: url('../Images/PageImages/Waterways/IslandOutput.png') no-repeat center / cover;
    filter: blur(18px) brightness(0.4) saturate(0.7);
    transform: scale(1.12);
    z-index: 0;
}

/* subtle grid overlay */
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 207, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 207, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 0;
}

.hero-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 56px;
    max-width: 1100px;
    width: 100%;
    z-index: 1;
}

/* ---- Profile pic ---- */
.profile-pic {
    width: 360px;
    height: 360px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--orange);
    box-shadow: 0 0 0 6px rgba(255, 140, 0, 0.12), 0 20px 50px rgba(0, 0, 0, 0.6);
    flex-shrink: 0;
}

/* ---- Hero text ---- */
.hero-eyebrow {
    font-family: var(--font-head);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 12px;
}

.hero-text-area h1 {
    font-family: var(--font-head);
    font-size: clamp(2.4rem, 5vw, 4rem);
    line-height: 1.05;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8);
}

.hero-bio {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: rgba(255, 255, 255, 0.8);
    max-width: 520px;
    line-height: 1.65;
    text-shadow: none;
}

.highlight-orange {
    color: var(--orange);
    font-weight: 600;
}

.highlight-purple {
    color: var(--purple);
}

.highlight-green {
    color: var(--green);
}

/* ---- Socials ---- */
.hero-socials {
    display: flex;
    gap: 14px;
    margin-top: 28px;
}

.social-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    border: 1px solid var(--border-hi);
    background-color: rgba(255, 255, 255, 0.07);
    background-size: 58%;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform var(--transition), background-color var(--transition), border-color var(--transition);
    cursor: pointer;
}

.social-icon:hover {
    transform: translateY(-4px);
    background-color: rgba(255, 255, 255, 0.15);
    border-color: white;
}

.github {
    background-color: #6e5494;
    background-image: url("../Images/github_logo.png");
}

.itch {
    background-color: #fa5c5c;
    background-image: url("../Images/itch_logo.png");
}

.linkedin {
    background-color: #0077b5;
    background-image: url("../Images/linkedin_logo.png");
}

.resume {
    background-color: #2ecc71;
    background-image: url("../Images/resume_logo.png");
}

/* ============================================================
   SKILLS PANEL
   ============================================================ */
.skills-panel {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1200px;
    width: 100%;
    z-index: 1;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid var(--border-hi);
    border-radius: var(--card-radius);
    padding: 28px 32px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.skills-heading {
    font-family: var(--font-body);
    font-size: 1rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 16px;
}

.skill-bar-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.skill-name {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
}

.skill-track {
    width: 80px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 99px;
    overflow: hidden;
    flex-shrink: 0;
}

.skill-fill {
    height: 100%;
    width: 0;
    /* animated in */
    border-radius: 99px;
    background: linear-gradient(90deg, var(--cyan), var(--green));
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* triggered when panel enters view */
.skills-panel.in-view .skill-fill {
    width: var(--pct);
}

.skill-level {
    font-family: var(--font-head);
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
}

.skill-level.expert {
    background: rgba(0, 230, 118, 0.15);
    color: var(--green);
}

.skill-level.advanced {
    background: rgba(0, 207, 255, 0.15);
    color: var(--cyan);
}

.skill-level.mid {
    background: rgba(187, 134, 252, 0.15);
    color: var(--purple);
}

.skill-level.beginner {
    background: rgba(255, 255, 255, 0.07);
    color: var(--text-muted);
}

/* ============================================================
   WORK SECTION
   ============================================================ */
.work-section {
    padding: 80px 24px 100px;
    max-width: 1200px;
    margin: 0 auto;
    scroll-snap-align: start;
}

.work-header {
    margin-bottom: 48px;
}

.work-header h1 {
    font-family: var(--font-head);
    font-size: clamp(3em, 4vw, 3.2rem);
    font-weight: 800;
    font-style: Bold;
    margin-bottom: 10px;
}

.work-subheading {
    color: var(--text-muted);
    font-size: 1.35rem;
    max-width: 1200px;
}

/* ---- Grid ---- */
.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(480px, 1fr));
    gap: 20px;
}

/* ============================================================
   WORK CARDS
   ============================================================ */
.work-card {
    position: relative;
    border-radius: var(--card-radius);
    background: var(--surface);
    border: 1px solid var(--border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
    cursor: pointer;
}

.work-card:hover {
    border-color: var(--border-hi);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.6);
    transform: translateY(-3px);
}

/* Invisible full-card link overlay */
.card-link-overlay {
    position: absolute;
    inset: 0;
    z-index: 10;
}

/* ---- Media (GIF/image) ---- */
.card-media {
    width: 100%;
    height: 360px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: brightness(0.72) saturate(0.9);
    transition: filter var(--transition), height var(--transition);
    flex-shrink: 0;
}

.work-card:hover .card-media {
    filter: brightness(0.95) saturate(1.05);
}

/* ---- Body ---- */
.card-body {
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

/* ---- Meta row: tags + complexity ---- */
.card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.card-tag {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid var(--border);
    color: var(--text-muted);
}

.card-tag.coming {
    background: rgba(255, 140, 0, 0.12);
    border-color: rgba(255, 140, 0, 0.3);
    color: var(--orange);
}

/* complexity dots pushed to the right */
.card-complexity {
    margin-left: auto;
    display: flex;
    gap: 4px;
    align-items: center;
}

.dot {
    width: 0px;
    height: 0px;
    border-radius: 50%;
    background: var(--border-hi);
    flex-shrink: 0;
}

.dot.filled {
    background: var(--orange);
    box-shadow: 0 0 6px rgba(255, 140, 0, 0.5);
}

/* ---- Title ---- */
.card-title {
    font-family: var(--font-head);
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text);
}

/* ---- Summary (always visible) ---- */
.card-summary {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.55;
}

/* ---- Detail panel (revealed on hover) ---- */
.card-detail {
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow: hidden;
    max-height: 400px;
    opacity: 1;
    margin-top: 8px;
    border-top-color: var(--border);
    padding-top: 12px;
}

.detail-row {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 10px;
    font-size: 1rem;
    line-height: 1.45;
}

.detail-label {
    font-family: var(--font-head);
    font-size: 0.96rem;
    letter-spacing: 0em;
    text-transform: uppercase;
    color: var(--cyan);
    padding-top: 2px;
    flex-shrink: 0;
}

.skill-chips {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
}

/* ---- CTA ---- */
.card-cta {
    font-family: var(--font-head);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    color: var(--orange);
    margin-top: auto;
    padding-top: 12px;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.25s ease 0.05s, transform 0.25s ease 0.05s;
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* ---- Coming-soon cards ---- */
.work-card.coming-soon {
    opacity: 0.55;
    pointer-events: none;
}

.work-card.coming-soon .card-media {
    filter: brightness(0.4) grayscale(0.6);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .hero-content {
        flex-direction: column;
        gap: 28px;
        text-align: center;
    }

    .hero-bio {
        max-width: 100%;
    }

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

    .profile-pic {
        width: 200px;
        height: 200px;
    }

    .skills-panel {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .skill-track {
        width: 100px;
    }
}

@media (max-width: 640px) {
    .work-grid {
        grid-template-columns: 1fr;
    }

    .hero-section {
        padding: 48px 16px 32px;
    }

    .skills-panel {
        padding: 20px 18px;
    }
}