:root {
    /* Zinc Color Palette */
    --zinc-50: #fafafa;
    --zinc-100: #f4f4f5;
    --zinc-200: #e4e4e7;
    --zinc-300: #d4d4d8;
    --zinc-400: #a1a1aa;
    --zinc-500: #71717a;
    --zinc-600: #52525b;
    --zinc-700: #3f3f46;
    --zinc-800: #27272a;
    --zinc-900: #18181b;
    --zinc-950: #09090b;

    --bg-color: var(--zinc-50);
    --text-color: var(--zinc-900);
    --text-muted: var(--zinc-500);
    --primary-color: var(--zinc-900);
    --border-color: var(--zinc-200);
    --card-bg: #ffffff;
    
    --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--zinc-600);
}

/* Layout */
.container {
    max-width: 1024px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
header {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 4rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.025em;
    color: var(--zinc-900);
}

.brand img {
    height: 32px;
    width: auto;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav ul li a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--zinc-600);
}

nav ul li a:hover {
    color: var(--zinc-900);
}

/* Hero Section */
.hero {
    padding: 6rem 0 4rem;
    text-align: center;
    max-width: 768px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    color: var(--zinc-900);
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Section Common */
.section {
    padding: 4rem 0;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
}

.project-image-container {
    width: 100%;
    height: 200px;
    background-color: var(--zinc-100);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.project-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.project-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    letter-spacing: -0.025em;
}

.project-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.btn-link {
    display: inline-flex;
    align-items: center;
    font-weight: 500;
    font-size: 0.9rem;
    margin-top: auto;
}

.btn-link:after {
    content: "→";
    margin-left: 4px;
    transition: transform 0.2s;
}

.btn-link:hover:after {
    transform: translateX(4px);
}

/* Legal Pages / Content */
.legal-content {
    max-width: 768px;
    margin: 4rem auto;
    background: white;
    padding: 3rem;
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
}

.legal-content h1 {
    font-size: 2.25rem;
    letter-spacing: -0.025em;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.legal-content h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--zinc-800);
}

.legal-content h3 {
    font-size: 1.15rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--zinc-700);
}

.legal-content p, .legal-content li {
    color: var(--zinc-600);
    margin-bottom: 1rem;
}

.legal-content ul {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Footer */
footer {
    border-top: 1px solid var(--border-color);
    padding: 3rem 0;
    margin-top: 4rem;
    background-color: white;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-col h4 {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--zinc-500);
    margin-bottom: 1rem;
}

.footer-col p, .footer-col a {
    font-size: 0.9rem;
    color: var(--zinc-600);
    display: block;
    margin-bottom: 0.5rem;
}

.copyright {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--zinc-400);
    font-size: 0.85rem;
}

/* Apps Pages specific */
.app-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.app-icon {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    background-color: var(--zinc-200);
    object-fit: cover;
}

.contact-link {
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: var(--zinc-300);
    text-underline-offset: 2px;
}

.contact-link:hover {
    text-decoration-color: var(--zinc-900);
}

/* Improved content typography and list styles for app pages */
.section p {
    font-size: 1.05rem;
    color: var(--zinc-700);
    max-width: 70ch;
    margin-bottom: 1rem;
    line-height: 1.8;
}

.section ul {
    margin-left: 1.25rem;
    margin-bottom: 1.25rem;
    padding-left: 1rem;
    color: var(--zinc-700);
}

.section li {
    margin-bottom: 0.5rem;
}

/* App header improvements */
.app-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.app-icon {
    width: 96px;
    height: 96px;
    border-radius: 16px;
    background-color: var(--zinc-100);
    object-fit: cover;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
    flex: 0 0 auto;
}

/* Primary button (used on app pages) */
.btn-primary {
    display: inline-block;
    background: var(--zinc-900);
    color: #fff;
    padding: 0.6rem 1rem;
    border-radius: 10px;
    font-weight: 600;
    box-shadow: 0 6px 18px rgba(15,23,42,0.06);
    transition: transform 0.12s ease, background 0.12s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: var(--zinc-700);
}

/* Make section titles a little tighter for app pages */
.section-title {
    font-size: 1.35rem;
    margin-bottom: 1.25rem;
}

@media (max-width: 640px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero h1 {
        font-size: 2.25rem;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    nav ul {
        gap: 1rem;
    }
}
