/* Portfolio CSS - Enhanced Visual Design */
/* Keeping minimal structure, adding visual depth */

:root {
    /* Colors */
    --bg: #0e0e0e;
    --card: #1a1a1a;
    --hover: #242424;
    --text: #e8e2dc;
    --muted: #8a8580;
    --accent: #FF7D45;
    --accent2: #ff9966;
    --teal: #1281A3;
    --yellow: #F5D547;
    --border: #2a2a2a;

    /* Fonts */
    --mono: 'Cascadia Code', 'Consolas', 'Courier New', monospace;
    --sans: 'Segoe UI', system-ui, -apple-system, sans-serif;
    --max: 960px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    background: url('../images/art/sidebar-bg.jpg') center/cover fixed #0e0e0e;
}

body {
    max-width: var(--max);
    margin: 0 auto;
    font-family: var(--sans);
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);

    /* Subtle texture background pattern (pure CSS) */
    background-image:
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 2px,
            rgba(255, 125, 69, 0.01) 2px,
            rgba(255, 125, 69, 0.01) 4px
        ),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 2px,
            rgba(18, 129, 163, 0.01) 2px,
            rgba(18, 129, 163, 0.01) 4px
        );
    background-size: 100px 100px;
    background-attachment: fixed;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--accent2);
}

.c {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Hero Section */
.hero {
    padding: 4rem 0 3rem;
    text-align: center;
    border-bottom: 1px solid var(--border);
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.3;
}

.hero h1 {
    font-family: var(--mono);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.25rem;
    letter-spacing: -0.02em;
}

.hero .sep {
    font-size: 0.9rem;
    color: var(--accent);
    opacity: 0.4;
    margin: 0.75rem 0;
    letter-spacing: 0.3em;
}

.hero .t {
    font-family: var(--mono);
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 1.5rem;
}

.hero .h {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Pills/Cards Navigation */
.pills {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 3rem 0;
}

/* Center the 4th pill under the middle top pill */
.pill:nth-child(4) {
    grid-column: 2;
}

.pill {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    display: block;
    position: relative;
    overflow: hidden;
}

/* Subtle gradient overlay on cards */
.pill::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 125, 69, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.pill:hover {
    border-color: var(--accent);
    background: var(--hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 125, 69, 0.1);
}

.pill:hover::before {
    opacity: 1;
}

.pill h2 {
    font-family: var(--mono);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.pill p {
    font-size: 0.95rem;
    color: var(--muted);
    line-height: 1.5;
}

.pill .ar {
    display: block;
    margin-top: 1rem;
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--accent);
}

/* Featured Work Section */
.feat {
    padding: 3rem 0;
    border-top: 1px solid var(--border);
}

.feat h2 {
    font-family: var(--mono);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 1.5rem;
}

/* Work Grid */
.wg {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.wg a {
    display: block;
    aspect-ratio: 1;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

/* Gradient overlay on hover */
.wg a::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 125, 69, 0.2), rgba(18, 129, 163, 0.2));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.wg a:hover {
    border-color: var(--accent);
    transform: scale(1.02);
    box-shadow: 0 4px 16px rgba(255, 125, 69, 0.15);
}

.wg a:hover::after {
    opacity: 1;
}

.wg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.wg a:hover img {
    transform: scale(1.05);
}

.sa {
    display: block;
    text-align: right;
    margin-top: 1rem;
    font-family: var(--mono);
    font-size: 0.75rem;
}

/* About Section */
.abt {
    padding: 3rem 0;
    border-top: 1px solid var(--border);
    position: relative;
}

/* Subtle side accent */
.abt::before {
    content: '';
    position: absolute;
    left: 0;
    top: 3rem;
    width: 3px;
    height: 60px;
    background: linear-gradient(180deg, var(--accent), transparent);
    opacity: 0.3;
}

.abt h2 {
    font-family: var(--mono);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 1rem;
}

.abt p {
    font-size: 1rem;
    max-width: 700px;
    margin-bottom: 1rem;
}

.abt .hon {
    font-size: 0.95rem;
    color: var(--muted);
    font-style: italic;
    border-left: 2px solid var(--accent);
    padding-left: 1rem;
}

/* Contact Section */
.con {
    padding: 3rem 0;
    border-top: 1px solid var(--border);
}

.con h2 {
    font-family: var(--mono);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 1.5rem;
}

.cg {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.cs h3 {
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 0.75rem;
}

.cs p,
.cs a {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.ig {
    list-style: none;
}

.ig li {
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
}

.ig .d {
    color: var(--muted);
    font-size: 0.8rem;
}

/* Footer */
footer {
    padding: 2rem 0;
    border-top: 1px solid var(--border);
    text-align: center;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--teal), transparent);
    opacity: 0.5;
}

footer p {
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    color: var(--muted);
}

/* Footer Icons */
.fi{display:flex;gap:1.25rem;justify-content:center;margin:.75rem 0}
.fi a{color:var(--accent);display:flex;align-items:center;transition:color .2s}
.fi a:hover{color:var(--teal)}

/* Responsive */
@media (max-width: 640px) {
    .pills {
        grid-template-columns: 1fr;
    }

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

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

    .hero h1 {
        font-size: 1.8rem;
    }

    body {
        background-size: 50px 50px;
    }
}

/* Print styles */
@media print {
    body {
        background: white;
        color: black;
    }

    .hero::before,
    .pill::before,
    .wg a::after,
    .abt::before,
    footer::before {
        display: none;
    }
}
