/* ========================================
   MINIMAL THEME - 2026 Refined Clean
   Typography-focused with subtle flair
   ======================================== */

:root {
    --bg-primary: #09090b;
    --bg-secondary: #111113;
    --bg-card: #16161a;
    --text-primary: #fafafa;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --accent-1: #22c55e;
    --accent-2: #16a34a;
    --accent-3: #4ade80;
    --gradient-primary: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    --border-color: #27272a;
    --border-hover: #3f3f46;
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --glow: rgba(34, 197, 94, 0.08);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    min-height: 100vh;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

.noise, .gradient-orb {
    display: none;
}

/* Subtle gradient accent */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 300px;
    background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(34, 197, 94, 0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

/* Container */
.container {
    max-width: 740px;
    margin: 0 auto;
    padding: 3rem 2rem;
    position: relative;
}

/* Hero Section */
.hero {
    padding: 4rem 0 3rem;
    margin-bottom: 0;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.avatar-wrapper {
    position: relative;
    flex-shrink: 0;
}

.avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    box-shadow: 0 0 0 4px var(--bg-primary);
}

.avatar:hover {
    border-color: var(--accent-1);
    box-shadow: 0 0 0 4px var(--bg-primary), 0 0 30px var(--glow);
}

.hero-text h1 {
    font-size: 2.25rem;
    font-weight: 600;
    letter-spacing: -0.025em;
    margin-bottom: 0.35rem;
    color: var(--text-primary);
}

.subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-weight: 400;
}

.social-row {
    display: flex;
    gap: 0.125rem;
}

.social-row a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 1.05rem;
    transition: all 0.2s ease;
}

.social-row a:hover {
    color: var(--accent-1);
    background: var(--glow);
}

/* Cards */
.card {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 2.5rem 0;
    margin-bottom: 0;
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.5s ease;
    position: relative;
}

.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

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

.card-header {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-bottom: 1.25rem;
}

.card-header i {
    font-size: 0.875rem;
    color: var(--accent-1);
}

.card-header h2 {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* About Card */
.about-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.85;
    font-size: 1.025rem;
}

.about-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.resume-btn,
.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.25rem;
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.resume-btn {
    background: var(--accent-1);
    color: #000;
}

.resume-btn:hover {
    background: var(--accent-3);
    box-shadow: 0 4px 20px var(--glow);
}

.contact-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.contact-btn:hover {
    border-color: var(--border-hover);
    background: var(--bg-secondary);
}

/* Projects Grid - Card style */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.875rem;
}

.project-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: inherit;
    transition: all 0.25s ease;
    position: relative;
    opacity: 0;
    transform: translateY(10px);
}

.project-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.project-item:hover {
    border-color: var(--border-hover);
    background: var(--bg-secondary);
}

.project-item:hover .project-info h3 {
    color: var(--accent-1);
}

.project-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.project-item:hover .project-icon {
    border-color: var(--accent-1);
    background: var(--glow);
}

.project-icon i {
    font-size: 1rem;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.project-item:hover .project-icon i {
    color: var(--accent-1);
}

.project-info {
    flex: 1;
}

.project-info h3 {
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 0.2rem;
    transition: color 0.2s ease;
}

.project-info p {
    font-size: 0.825rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.project-status {
    font-size: 0.6875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.status-progress {
    background: rgba(251, 191, 36, 0.12);
    color: #fbbf24;
}

.status-released {
    background: rgba(34, 197, 94, 0.12);
    color: var(--accent-1);
}

.app-store-badge {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Skills */
.skills-container {
    display: grid;
    gap: 1.5rem;
}

.skill-category h4 {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 0.7rem;
    font-weight: 500;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.skill-tags span {
    padding: 0.45rem 0.9rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.825rem;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.skill-tags span:hover {
    border-color: var(--accent-1);
    color: var(--text-primary);
    background: var(--glow);
}

/* Footer */
footer {
    text-align: center;
    padding: 2.5rem 0 2rem;
    color: var(--text-muted);
    font-size: 0.825rem;
}

footer::before {
    content: "";
    display: block;
    width: 60px;
    height: 1px;
    background: var(--border-color);
    margin: 0 auto 2rem;
}

/* Responsive */
@media (max-width: 640px) {
    .container {
        padding: 2rem 1.25rem;
    }

    .hero {
        padding: 2.5rem 0 2rem;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .avatar {
        width: 88px;
        height: 88px;
    }

    .hero-text h1 {
        font-size: 1.875rem;
    }

    .social-row {
        justify-content: center;
    }

    .card {
        padding: 2rem 0;
    }

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

    .about-actions {
        flex-direction: column;
    }

    .about-actions a {
        justify-content: center;
    }
}

/* Animation delays */
.project-item:nth-child(1) { transition-delay: 0.03s; }
.project-item:nth-child(2) { transition-delay: 0.06s; }
.project-item:nth-child(3) { transition-delay: 0.09s; }
.project-item:nth-child(4) { transition-delay: 0.12s; }
.project-item:nth-child(5) { transition-delay: 0.15s; }
.project-item:nth-child(6) { transition-delay: 0.18s; }
.project-item:nth-child(7) { transition-delay: 0.21s; }
.project-item:nth-child(8) { transition-delay: 0.24s; }
.project-item:nth-child(9) { transition-delay: 0.27s; }

.card:nth-of-type(1) { transition-delay: 0.05s; }
.card:nth-of-type(2) { transition-delay: 0.1s; }
.card:nth-of-type(3) { transition-delay: 0.15s; }
