/* ===================================
   Personal Portfolio - Yasser Ahmed
   CSS Variables & Base Styles
   =================================== */

/* --- Color Palette ---
   Deep teal accent with neutral dark/light
   Inspired by: technical, clean, ML/data aesthetic
*/
:root {
    /* Primary Colors */
    --color-bg: #0a0f14;
    --color-bg-secondary: #111820;
    --color-text: #e4e8ec;
    --color-text-muted: #8b9299;
    --color-accent: #2dd4bf;
    /* Teal accent */
    --color-accent-hover: #5eead4;
    --color-accent-subtle: rgba(45, 212, 191, 0.1);

    /* CLI Colors */
    --color-cli-bg: #0d1117;
    --color-cli-text: #58a6ff;
    --color-cli-cursor: #2dd4bf;

    /* Typography */
    --font-mono: 'JetBrains Mono', 'Consolas', 'Monaco', monospace;
    --font-heading: 'Share Tech Mono', 'Courier New', monospace;
    --font-sans: 'Space Mono', 'Consolas', monospace;
    --font-kannada: 'Noto Sans Kannada', sans-serif;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 2rem;
    --space-xl: 4rem;
    --space-2xl: 5rem;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;

    /* Layout */
    --max-width: 900px;
    --border-radius: 4px;
}

\n

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Focus Styles (Accessibility) --- */
:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* --- Selection --- */
::selection {
    background-color: var(--color-accent);
    color: var(--color-bg);
}

/* --- Container --- */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* --- Sections --- */
.section {
    padding: var(--space-xl) 0;
}

/* --- Top Navigation Bar (Task 16) --- */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 55px;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(45, 212, 191, 0.08);
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-inner {
    width: 100%;
    max-width: var(--max-width);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--space-lg);
    gap: var(--space-md);
}

/* User prompt (left) */
.nav-prompt {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    color: var(--color-accent);
    opacity: 0.6;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Nav links (center) */
.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: var(--color-text-muted);
    text-decoration: none;
    padding: var(--space-xs) var(--space-sm);
    border-radius: 2px;
    position: relative;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.nav-link::before {
    content: '[ ';
    opacity: 0;
    transition: opacity 0.2s ease;
}

.nav-link::after {
    content: ' ]';
    opacity: 0;
    transition: opacity 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-accent);
}

.nav-link:hover::before,
.nav-link:hover::after,
.nav-link.active::before,
.nav-link.active::after {
    opacity: 1;
}

/* Active scroll-spy underscore */
.nav-link.active::after {
    content: ' ]_';
    opacity: 1;
    color: var(--color-accent);
    animation: cursor-blink 1s step-end infinite;
}

@keyframes cursor-blink {
    50% {
        opacity: 0.3;
    }
}

/* EXPORT CV button (right) */
.nav-export {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--color-accent);
    text-decoration: none;
    padding: 4px 10px;
    border: 1px solid rgba(45, 212, 191, 0.3);
    border-radius: 2px;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-export:hover {
    background: rgba(45, 212, 191, 0.1);
    border-color: var(--color-accent);
    box-shadow: 0 0 8px rgba(45, 212, 191, 0.15);
}

.export-icon {
    font-size: 1.05rem;
    line-height: 1;
}

/* Offset page content for fixed nav */
.hero {
    padding-top: 55px;
}

/* Mobile: hide prompt, shrink links */
@media (max-width: 768px) {
    .nav-prompt {
        display: none;
    }

    .nav-link {
        font-size: 0.65rem;
        padding: var(--space-xs) 4px;
    }

    .export-text {
        display: none;
    }

    .nav-export {
        padding: 4px 8px;
    }

    .export-icon {
        font-size: 1rem;
    }
}

\n

/* --- Main Content --- */
.main-content[hidden] {
    display: none;
}

.main-content {
    display: block;
}

/* --- Hero Section (Task 2 styling) --- */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.hero-name {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 400;
    /* Share Tech Mono is 400 only */
    letter-spacing: -0.02em;
    margin-bottom: var(--space-md);
    color: var(--color-text);
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 0.1s;
}

.hero-tagline {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 0.3s;
}

.hero-tagline [data-scramble],
.hero-tagline [data-typewriter] {
    color: var(--color-accent);
    cursor: default;
}

/* Entrance animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    animation: fadeIn 0.6s ease forwards;
    animation-delay: 0.8s;
    text-decoration: none;
}

.scroll-arrow {
    display: block;
    width: 24px;
    height: 24px;
    border-right: 2px solid var(--color-text-muted);
    border-bottom: 2px solid var(--color-text-muted);
    transform: rotate(45deg);
    animation: bounce 2s ease-in-out infinite;
}

.scroll-indicator:hover .scroll-arrow {
    border-color: var(--color-accent);
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: rotate(45deg) translateY(0);
    }

    40% {
        transform: rotate(45deg) translateY(8px);
    }

    60% {
        transform: rotate(45deg) translateY(4px);
    }
}

/* --- Section Headings (Task 3 styling) --- */
.section-heading {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
    font-weight: 400;
    margin-bottom: var(--space-lg);
    position: relative;
    display: inline-block;
    cursor: default;
}

.section-heading::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--color-accent);
}

/* --- About Section (Task 4 styling) --- */
.about-content {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: var(--space-xl);
    align-items: start;
}

.photo-placeholder {
    width: 150px;
    height: 150px;
    background-color: var(--color-bg-secondary);
    border: 2px solid var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* content centered */
}

.photo-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about-text {
    font-size: 1.05rem;
    line-height: 1.8;
}

.about-text p {
    margin-bottom: var(--space-md);
}

/* Skills / System Environment (Task 15) */
.sys-env-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--color-accent);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-top: var(--space-lg);
    margin-bottom: var(--space-md);
    opacity: 0.7;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

/* --- Directory Column --- */
.skills-column {
    background: rgba(17, 24, 32, 0.4);
    border: 1px solid rgba(45, 212, 191, 0.08);
    border-radius: var(--border-radius);
    padding: var(--space-md);
    transition: border-color 0.3s ease;
}

.skills-column:hover {
    border-color: rgba(45, 212, 191, 0.2);
}

/* Directory path header (e.g. $ ls -la ~/runtimes_and_logic) */
.dir-header {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: var(--color-accent);
    margin-bottom: var(--space-sm);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid rgba(45, 212, 191, 0.15);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dir-header .prompt {
    color: var(--color-text-muted);
    opacity: 0.6;
}

/* ls -la column headers */
.ls-header {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: var(--space-sm);
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--color-text-muted);
    opacity: 0.4;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0 var(--space-xs);
    margin-bottom: var(--space-xs);
}

/* Separator line under header */
.ls-separator {
    border: none;
    border-top: 1px dashed rgba(139, 146, 153, 0.15);
    margin: var(--space-xs) 0;
}

/* --- Item list --- */
.skills-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* --- Individual ls row (wraps skill-tag) --- */
.ls-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: var(--space-sm);
    align-items: center;
    padding: 2px var(--space-xs);
    border-radius: 2px;
    transition: background-color 0.2s ease;
}

.ls-row:hover {
    background: rgba(45, 212, 191, 0.04);
}

.ls-row .ls-perms {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--color-text-muted);
    opacity: 0.35;
    order: -1;
    display: none;
    /* Hidden on small screens, shown on wider */
}

.ls-row .ls-size {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--color-text-muted);
    opacity: 0.5;
    text-align: right;
    display: none;
    /* Hidden on small screens */
}

/* Base Skill Tag (PRESERVED from Task 9) */
.skill-tag {
    position: relative;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    color: var(--color-text-muted);
    padding: var(--space-xs) var(--space-sm);
    background: transparent;
    transition: color 0.3s ease;
    cursor: default;
    width: fit-content;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.skill-tag:hover,
.skill-tag.active {
    color: var(--color-accent);
}

/* --- Status Tags --- */
.status-tag {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    letter-spacing: 0.08em;
    padding: 1px 6px;
    border-radius: 2px;
    border: 1px solid;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
}

.status-tag--learning {
    color: rgba(45, 212, 191, 0.45);
    border-color: rgba(45, 212, 191, 0.2);
    animation: pulse-border 2s ease-in-out infinite;
}

.status-tag--active {
    color: var(--color-accent);
    border-color: var(--color-accent);
}

.status-tag--deployed {
    color: #4ade80;
    border-color: rgba(74, 222, 128, 0.5);
}

@keyframes pulse-border {

    0%,
    100% {
        border-color: rgba(45, 212, 191, 0.15);
    }

    50% {
        border-color: rgba(45, 212, 191, 0.4);
    }
}

/* --- Corner Brackets (Center-to-Corner Expansion) --- */
.bracket {
    position: absolute;
    width: 8px;
    height: 8px;
    border: 2px solid var(--color-accent);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
}

/* Initial positions (centered) */
.bracket.top-left {
    top: 50%;
    left: 50%;
    border-right: none;
    border-bottom: none;
}

.bracket.top-right {
    top: 50%;
    right: 50%;
    border-left: none;
    border-bottom: none;
}

.bracket.bottom-left {
    bottom: 50%;
    left: 50%;
    border-right: none;
    border-top: none;
}

.bracket.bottom-right {
    bottom: 50%;
    right: 50%;
    border-left: none;
    border-top: none;
}

/* Hover / Active State: Expand via Positioning */
.skill-tag:hover .bracket,
.skill-tag.active .bracket {
    opacity: 1;
}

.skill-tag:hover .bracket.top-left,
.skill-tag.active .bracket.top-left {
    top: 0;
    left: 0;
}

.skill-tag:hover .bracket.top-right,
.skill-tag.active .bracket.top-right {
    top: 0;
    right: 0;
}

.skill-tag:hover .bracket.bottom-left,
.skill-tag.active .bracket.bottom-left {
    bottom: 0;
    left: 0;
}

.skill-tag:hover .bracket.bottom-right,
.skill-tag.active .bracket.bottom-right {
    bottom: 0;
    right: 0;
}

/* Show permissions/size columns on wider screens */
@media (min-width: 1100px) {

    .ls-row .ls-perms,
    .ls-row .ls-size {
        display: block;
    }

    .ls-header {
        display: grid;
    }

    .ls-row {
        grid-template-columns: auto 1fr auto;
    }
}

/* Responsive: Stack on mobile */
@media (max-width: 768px) {
    .skills-grid {
        grid-template-columns: 1fr;
        /* Stack vertically */
    }
}

/* --- Projects Section (Task 11 — Upgraded) --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
}

/* --- Card Base --- */
.project-card {
    position: relative;
    background-color: var(--color-bg-secondary);
    border: 1px solid rgba(45, 212, 191, 0.06);
    border-radius: var(--border-radius);
    padding: var(--space-lg) var(--space-lg) var(--space-md);
    transition: transform 250ms ease-out, box-shadow 250ms ease-out, border-color 250ms ease-out;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.project-card:hover,
.project-card:focus-within {
    transform: translateY(-6px);
    border-color: rgba(45, 212, 191, 0.15);
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.25),
        0 2px 8px rgba(45, 212, 191, 0.06);
}

/* Accent top-line on hover */
.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: var(--space-md);
    right: var(--space-md);
    height: 2px;
    background: var(--color-accent);
    border-radius: 0 0 2px 2px;
    opacity: 0;
    transition: opacity 250ms ease-out;
}

.project-card:hover::before,
.project-card:focus-within::before {
    opacity: 1;
}

/* --- Card Header (Title + GitHub Link) --- */
.project-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}

.project-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    /* Slightly wider for mono */
    line-height: 1.3;
    margin: 0;
}

.project-title a {
    color: var(--color-text);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.project-title a:hover {
    color: var(--color-accent);
}

/* GitHub Icon Button */
.project-link-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: var(--border-radius);
    color: var(--color-text-muted);
    transition: color var(--transition-fast), background-color var(--transition-fast);
}

.project-link-btn:hover {
    color: var(--color-accent);
    background-color: var(--color-accent-subtle);
}

.project-link-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* --- Description --- */
.project-desc {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-bottom: var(--space-md);
    line-height: 1.65;
}

/* --- Tech Stack Pills --- */
.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: var(--space-md);
}

.project-tech span {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--color-accent);
    background-color: rgba(45, 212, 191, 0.08);
    padding: 3px 10px;
    border-radius: 12px;
    border: 1px solid rgba(45, 212, 191, 0.12);
    letter-spacing: 0.02em;
    white-space: nowrap;
}

/* --- Project Action Buttons --- */
.project-actions {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.project-action {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--color-accent);
    text-decoration: none;
    padding: 6px 16px;
    border: 1px solid var(--color-accent);
    border-radius: var(--border-radius);
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 250ms ease-out, transform 250ms ease-out, background-color var(--transition-fast), color var(--transition-fast);
}

.project-card:hover .project-action,
.project-card:focus-within .project-action {
    opacity: 1;
    transform: translateY(0);
}

.project-action:hover {
    background-color: var(--color-accent);
    color: var(--color-bg);
}

.project-action svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

/* Live link: green accent */
.project-live {
    color: #4ade80;
    border-color: rgba(74, 222, 128, 0.4);
}

.project-live:hover {
    background-color: #4ade80;
    color: var(--color-bg);
}

.project-live svg {
    width: 10px;
    height: 10px;
    animation: live-pulse 2s ease-in-out infinite;
}

@keyframes live-pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

/* --- "all projects →" Link --- */
.all-projects-link {
    display: inline-block;
    margin-top: var(--space-lg);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color 0.2s ease, letter-spacing 0.2s ease;
}

.all-projects-link:hover {
    color: var(--color-accent);
    letter-spacing: 0.05em;
}

/* --- Certifications Section (Task 17) --- */
.cert-matrix {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
}

.cert-card {
    position: relative;
    background-color: var(--color-bg-secondary);
    border: 1px solid rgba(45, 212, 191, 0.06);
    border-radius: var(--border-radius);
    padding: var(--space-lg);
    display: flex;
    align-items: flex-start;
    gap: var(--space-lg);
    transition: transform 250ms ease-out, box-shadow 250ms ease-out, border-color 250ms ease-out;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    opacity: 0;
    transform: translateY(20px);
}

.cert-card.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 250ms ease-out, border-color 250ms ease-out;
}

.cert-card:hover {
    transform: translateY(-4px);
    border-color: rgba(45, 212, 191, 0.15);
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.25),
        0 2px 8px rgba(45, 212, 191, 0.06);
}

/* Accent top-line on hover (same as project cards) */
.cert-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--color-accent);
    opacity: 0;
    transition: opacity 250ms ease-out;
}

.cert-card:hover::before {
    opacity: 1;
}

/* Badge image with grayscale-to-color "decrypt" */
.cert-badge {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid rgba(45, 212, 191, 0.1);
}

.cert-badge img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: grayscale(100%) brightness(0.7);
    transition: filter 0.4s ease;
}

.cert-card:hover .cert-badge img {
    filter: grayscale(0%) brightness(1);
}

/* Card info */
.cert-info {
    flex: 1;
    min-width: 0;
}

.cert-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--color-text);
    font-weight: 400;
    margin-bottom: var(--space-xs);
}

.cert-issuer {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-xs);
}

.cert-id {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--color-text-muted);
    opacity: 0.5;
    margin-bottom: var(--space-sm);
}

.cert-meta {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

/* Reuse status-tag styles from System Environment */
.cert-status {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.08em;
    padding: 2px 8px;
    border-radius: 2px;
    border: 1px solid;
    text-transform: uppercase;
    white-space: nowrap;
}

.cert-status--certified {
    color: #4ade80;
    border-color: rgba(74, 222, 128, 0.5);
}

.cert-status--coming {
    color: var(--color-text-muted);
    border-color: rgba(139, 146, 153, 0.3);
    opacity: 0.6;
}

.cert-year {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--color-text-muted);
    opacity: 0.4;
}

.cert-verify {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--color-accent);
    text-decoration: none;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 250ms ease-out, transform 250ms ease-out;
    margin-top: var(--space-sm);
    display: inline-block;
}

.cert-card:hover .cert-verify {
    opacity: 1;
    transform: translateY(0);
}

.cert-verify:hover {
    text-decoration: underline;
}

/* Coming soon card dimming */
.cert-card--coming {
    opacity: 0.5;
}

.cert-card--coming.visible {
    opacity: 0.5;
}

/* --- Contact Section (Task 6 styling) --- */
.contact {
    text-align: center;
}

.contact-content p {
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
}

.contact-link {
    font-family: var(--font-mono);
    font-size: 1.125rem;
    color: var(--color-accent);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.contact-link:hover {
    color: var(--color-accent-hover);
    text-decoration: underline;
}

.socials {
    margin-top: var(--space-lg);
    display: flex;
    justify-content: center;
    gap: var(--space-md);
}

.social-link {
    color: var(--color-text-muted);
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-sm);
}

.social-link:hover {
    color: var(--color-accent);
    transform: translateY(-2px);
}

.social-link svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* --- Footer / Quote --- */
.footer {
    padding: var(--space-xl) 0;
    text-align: center;
    border-top: 1px solid var(--color-bg-secondary);
}

.quote {
    font-style: italic;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    max-width: 500px;
    margin: 0 auto;
}

.quote cite {
    display: block;
    margin-top: var(--space-sm);
    font-style: normal;
    font-size: 0.8rem;
    color: var(--color-accent);
}

/* --- Mobile Responsive (Task 7 base) --- */
@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .photo-placeholder {
        margin: 0 auto var(--space-lg);
    }

    .section-heading::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-md);
    }

    .section {
        padding: var(--space-xl) 0;
    }
}

/* --- Mobile Responsive Extra Polish (Task 7) --- */
@media (max-width: 768px) {
    :root {
        --space-xl: 2rem;
        /* Tighter vertical spacing on mobile */
    }

    .section {
        padding: var(--space-lg) 0;
    }

    .hero-name {
        font-size: 2.5rem;
    }

    .hero-tagline {
        font-size: 1.1rem;
    }

    .about-content {
        justify-items: center;
        gap: var(--space-lg);
    }

    .project-card {
        padding: var(--space-md);
    }

    .contact-link {
        font-size: 1rem;
        word-break: break-all;
    }

    .social-link {
        padding: var(--space-md);
        /* Better (44px+) touch target */
    }
}

/* --- Accessibility (Focus Visibility) --- */
:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 4px;
    border-radius: 2px;
}

.skip-link:focus {
    top: 0;
}