/* Modern Reset & Base - RebelFox Inspired */
:root {
    /* Refined Color Palette - Clean & Gem Tones */
    --bg-base: #f8f9fa; /* Very light gray/white */
    --bg-surface: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.85);
    
    --text-primary: #18181b; /* Zinc 900 */
    --text-secondary: #52525b; /* Zinc 600 */
    --text-tertiary: #a1a1aa; /* Zinc 400 */
    
    /* Accents from reference */
    --primary: #18181b; /* Bold Black */
    --accent-gold: #f59e0b; /* Amber 500 */
    --accent-green: #15803d; /* Green 700 */
    --accent-teal: #14b8a6; /* Teal 500 */
    
    --border-light: #e4e4e7; /* Zinc 200 */
    --border-hover: #d4d4d8; /* Zinc 300 */
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
    --shadow-card: 0 0 0 1px rgba(0,0,0,0.03), 0 2px 8px rgba(0,0,0,0.04);
    
    --radius-xl: 1.5rem; /* 24px */
    --radius-lg: 1rem;   /* 16px */
    --radius-md: 0.75rem; /* 12px */
    --radius-sm: 0.5rem;  /* 8px */
    --radius-pill: 9999px;
    
    --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

/* Typography Enhancements */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

h1 {
    font-size: 3.5rem;
    font-weight: 800;
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

p {
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition-smooth);
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

/* Glassmorphism Utilities - Refined */
.glass {
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

/* Header & Hero */
header {
    padding: 3rem 0 2rem;
    position: relative;
    text-align: center; /* Center align header content like reference */
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.hero-title {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 4rem;
}

.intro {
    font-size: 1.25rem;
    color: var(--text-secondary);
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
}

/* Modern Navigation - Pill Style */
.main-nav {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem;
    margin: 0 auto 4rem;
    overflow-x: auto;
    scrollbar-width: none;
    background: white;
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-sm);
    width: fit-content;
    border: 1px solid var(--border-light);
}

.main-nav::-webkit-scrollbar {
    display: none;
}

.nav-tab {
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-pill);
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    white-space: nowrap;
}

.nav-tab:hover {
    color: var(--text-primary);
    background: rgba(0,0,0,0.03);
}

.nav-tab.active {
    background: var(--text-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

/* Cards & Sections */
main {
    flex: 1;
    animation: fadeIn 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.about-me {
    display: grid;
    gap: 4rem;
    margin-bottom: 4rem;
}

.tagline-container {
    text-align: center;
    padding: 0 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.tagline {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
}

/* Feature Cards (Skills, Contact) */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.info-card {
    background: var(--bg-surface);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    border: 1px solid transparent;
    box-shadow: var(--shadow-card);
    transition: var(--transition-smooth);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.info-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

/* Icon updates to match style */
.card-icon {
    font-size: 1.75rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    display: inline-block;
    padding: 12px;
    background: #f4f4f5; /* Zinc 100 */
    border-radius: 16px;
    width: fit-content;
}

.info-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* Skills Tags - Cleaner */
.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    background: #f4f4f5;
    border-radius: var(--radius-pill);
    color: var(--text-secondary);
    font-weight: 500;
    border: 1px solid transparent;
}

/* Contact Links */
.contact-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-secondary);
    padding: 1rem;
    border-radius: var(--radius-lg);
    transition: var(--transition-smooth);
    background: #f9fafb;
}

.contact-link:hover {
    background: var(--text-primary);
    color: white;
}

/* Repos */
.repos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.repo-card {
    background: var(--bg-surface);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-card);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
}

.repo-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.repo-card h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.repo-card h2 a {
    color: var(--text-primary);
}

.repo-description {
    color: var(--text-secondary);
    font-size: 1rem;
    flex: 1;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

/* Colorful Accents for Links */
.repo-link {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--accent-green); /* Using green accent */
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.8rem;
}

.repo-link i {
    transition: transform 0.2s ease;
}

.repo-link:hover i {
    transform: translateX(4px);
}

/* Specific card accents for variety like the reference site */
.info-card:nth-child(2) .card-icon {
    color: var(--accent-gold);
    background: rgba(245, 158, 11, 0.1);
}

.info-card:nth-child(3) .card-icon {
    color: var(--accent-green);
    background: rgba(21, 128, 61, 0.1);
}

/* Footer */
footer {
    margin-top: 8rem;
    padding: 4rem 0;
    text-align: center;
    color: var(--text-tertiary);
    font-size: 0.9rem;
    border-top: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.footer-link {
    color: var(--text-tertiary);
    font-size: 0.85rem;
    transition: var(--transition-smooth);
}

.footer-link:hover {
    color: var(--text-primary);
}

/* Architecture Page Styles */
.architecture-page {
    margin-bottom: 4rem;
}

.architecture-header {
    text-align: center;
    margin-bottom: 3rem;
}

.architecture-header h2 {
    margin-bottom: 1rem;
}

.architecture-intro {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.architecture-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.arch-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.arch-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: #f9fafb;
    border-radius: var(--radius-md);
}

.arch-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.arch-value {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.architecture-diagram {
    margin-top: 1.5rem;
}

.diagram-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 2rem;
    background: #f9fafb;
    border-radius: var(--radius-lg);
}

.diagram-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.25rem 1.5rem;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    min-width: 100px;
}

.diagram-node i {
    font-size: 1.5rem;
    color: var(--text-primary);
}

.diagram-node span {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.diagram-arrow {
    color: var(--text-tertiary);
    font-size: 1.25rem;
}

.arch-benefits {
    list-style: none;
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.arch-benefits li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: var(--text-secondary);
}

.arch-benefits li i {
    color: var(--accent-green);
    margin-top: 0.25rem;
}

.arch-benefits li strong {
    color: var(--text-primary);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    .hero-title { font-size: 3rem; }
    .main-nav { width: 100%; border-radius: 0; border-left: 0; border-right: 0; justify-content: flex-start; padding: 1rem; }
    .container { padding: 0 1.5rem; }
    .info-card, .repo-card { padding: 1.5rem; }
}
