:root {
    --accent: #7c6af7;          /* your light accent — a soft purple */
    --accent-hover: #6254d4;
    --surface: #1a1a2e;         /* slightly elevated surface color */
}

body {
    background-color: #0f0f1a;
    color: #e0e0e0;
}

/* Accent color for links and highlights */
a {
    color: var(--accent);
    text-decoration: none;
}

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

/* Tags (categories, tech stack) */
.tag {
    display: inline-block;
    background-color: var(--surface);
    color: var(--accent);
    border: 1px solid var(--accent);
    border-radius: 4px;
    padding: 2px 10px;
    font-size: 0.8rem;
    margin: 2px;
}

/* Project grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}


.project-card {
    background-color: var(--surface);
    border: 1px solid #2a2a4a;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

a.project-card {
    display: block;
    color: inherit;
    text-decoration: none;
}

a.project-card:hover {
    color: inherit;
}

.project-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
}

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

.project-card-body {
    padding: 1.25rem;
}

.project-card-body h2 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 2rem;
    border-left: 2px solid var(--accent);
    margin-top: 2rem;
}

.timeline-entry {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-entry::before {
    content: '';
    position: absolute;
    left: -2.45rem;
    top: 0.4rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--accent);
}

.timeline-year {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 600;
    display: block;
    margin-bottom: 0.25rem;
}

/* About profile */
.about-profile {
    display: flex;
    gap: 2rem;
    align-items: center;
    margin-bottom: 3rem;
}

.about-profile img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent);
}

/* Gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.gallery img {
    width: 100%;
    border-radius: 6px;
    object-fit: cover;
}

/* ── Hero ─────────────────────────────────── */
.hero {
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 1rem;
}

.hero-eyebrow {
    color: var(--accent);
    font-size: 1rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.hero-name {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.25rem;
    color: #ffffff;
}

.hero-tagline {
    font-size: 1.15rem;
    color: #a0a0b0;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-tagline .accent {
    color: var(--accent);
    font-weight: 600;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.featured-grid {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {
    .featured-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* ── Sections ─────────────────────────────── */
.section-featured,
.section-skills,
.section-contact {
    padding: 5rem 0;
}

.section-skills {
    background-color: var(--surface);
}

.section-contact {
    background-color: var(--surface);
}

.section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.see-all {
    font-size: 0.9rem;
    color: var(--accent);
}

/* ── Skills grid ──────────────────────────── */
.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.skill-pill {
    background-color: #0f0f1a;
    border: 1px solid #2a2a4a;
    color: #c0c0d0;
    border-radius: 6px;
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.skill-pill:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ── Gallery ──────────────────────────────── */
.main-image-wrap {
    position: relative;
    background-color: var(--surface);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.main-image {
    width: 100%;
    height: 420px;
    object-fit: contain;
    display: block;
    transition: opacity 0.2s ease;
    background-color: #0f0f1a;
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    font-size: 2.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    border-radius: 4px;
    transition: background 0.2s ease;
    padding: 0;
    line-height: 0; 
    padding-bottom: 12px; 
}

.gallery-arrow:hover {
    background: rgba(0,0,0,0.8);
}

.gallery-arrow.left  { left: 0.5rem; text-align: center;}
.gallery-arrow.right { right: 0.5rem; }

.thumbnail-row {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.thumbnail {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s ease;
    opacity: 0.7;
}

.thumbnail:hover {
    opacity: 1;
}

.thumbnail.active {
    border-color: var(--accent);
    opacity: 1;
}

/* ── Animated Hero Background ─────────────── */
.hero {
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 1rem;
    position: relative;
    overflow: hidden;
    background: linear-gradient(125deg, #0f0f1a, #1a1a2e, #0f0f1a, #16213e);
    background-size: 400% 400%;
    animation: gradientShift 12s ease infinite;
}

@keyframes gradientShift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Subtle grid overlay for depth */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(124, 106, 247, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(124, 106, 247, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

/* ── Fade In Up ───────────────────────────── */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-eyebrow {
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 0.1s;
    opacity: 0;
}

.hero-name {
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 0.3s;
    opacity: 0;
}

.hero-tagline {
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 0.5s;
    opacity: 0;
}

.hero-cta {
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 0.7s;
    opacity: 0;
}

/* ── Scroll Reveal ────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.tag-category {
    display: inline-block;
    background-color: var(--surface);
    color: var(--accent);
    border: 1px solid var(--accent);
    border-radius: 4px;
    padding: 2px 10px;
    font-size: 0.8rem;
    margin: 2px;
}

.tag-tech {
    display: inline-block;
    background-color: transparent;
    color: #a0a0b0;
    border: 1px solid #3a3a5a;
    border-radius: 4px;
    padding: 2px 10px;
    font-size: 0.8rem;
    margin: 2px;
}