@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --bg-color: #000000;
    --text-main: #ffffff;
    --text-muted: #a1a1aa;
    --accent-color: #3b82f6;
    /* Blue for dark mode */
    --accent-glow: rgba(59, 130, 246, 0.2);
    --border-color: #27272a;
    --card-bg: #09090b;
    --grid-color: rgba(255, 255, 255, 0.1);
    --nav-bg: rgba(0, 0, 0, 0.8);
    --tag-bg: rgba(255, 255, 255, 0.1);
    --avatar-bg: #27272a;
    --glass-bg: rgba(9, 9, 11, 0.6);
    /* Semi-transparent version of card-bg */

    --container-width: 1200px;
    --header-height: 70px;

    --font-main: 'Inter', sans-serif;
}

[data-theme="light"] {
    --bg-color: #f9fafb;
    --text-main: #18181b;
    --text-muted: #52525b;
    --accent-color: #2563eb;
    --accent-glow: rgba(37, 99, 235, 0.2);
    --border-color: #e4e4e7;
    --card-bg: #ffffff;
    --grid-color: rgba(0, 0, 0, 0.03);
    --nav-bg: rgba(255, 255, 255, 0.8);
    --tag-bg: rgba(0, 0, 0, 0.05);
    --avatar-bg: #f4f4f5;
    --glass-bg: rgba(255, 255, 255, 0.6);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    background-image:
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 24px 24px;
    color: var(--text-main);
    font-family: var(--font-main);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.text-gradient {
    background: linear-gradient(135deg, var(--text-main) 0%, var(--text-muted) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--text-main);
    color: var(--bg-color);
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    background-color: var(--border-color);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav-logo {
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.nav-links a:hover {
    color: var(--text-main);
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    background-color: var(--border-color);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding-top: var(--header-height);
}

.hero-content {
    z-index: 2;
    max-width: 800px;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.04em;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
}

#contact {
    background-color: var(--glass-bg);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

/* Background Effect (Subtle Glow) */
.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60vw;
    height: 60vh;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    filter: blur(100px);
    opacity: 0.2;
    z-index: 1;
    pointer-events: none;
}

/* Sections */
section {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 60px;
    letter-spacing: -0.03em;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    transition: transform 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--text-muted);
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.card p {
    color: var(--text-muted);
    margin-bottom: 24px;
    flex-grow: 1;
}

.tag {
    display: inline-block;
    padding: 4px 12px;
    background-color: var(--tag-bg);
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

/* Coming Soon */
.coming-soon-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.coming-soon-item {
    padding: 24px;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-muted);
    font-style: italic;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Team */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.team-member {
    text-align: center;
    background: var(--card-bg);
    padding: 40px 20px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
    border-color: var(--text-muted);
}

.team-socials {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 20px;
}

.team-socials a {
    color: var(--text-muted);
    transition: color 0.3s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-socials a:hover {
    color: var(--text-main);
    transform: translateY(-2px);
}

.team-socials svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.avatar {
    width: 100px;
    height: 100px;
    background-color: var(--avatar-bg);
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.5rem;
    color: var(--text-muted);
}

.team-member h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.team-member p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Footer */
.footer {
    background-color: var(--bg-color);
    color: var(--text-main);
    padding: 60px 0;
    margin-top: 0;
    border-top: 1px solid var(--border-color);
    /* Removed margin since it now has a bg */
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links a {
    color: #a1a1aa;
    margin-left: 24px;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: #ffffff;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }

    .nav-links {
        display: none;
        /* Simple mobile hide for MVP */
    }

    .section-title {
        font-size: 2rem;
    }
}

/* Blog Modal - "Big Page" View */
.blog-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    z-index: 2000;
    /* Higher than navbar */
    overflow-y: auto;
    padding: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.blog-modal.visible {
    opacity: 1;
    pointer-events: auto;
}

.blog-modal-content {
    max-width: 800px;
    margin: 100px auto 100px;
    /* Space for fixed header/clean layout */
    padding: 20px;
}

.blog-modal-header {
    margin-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 40px;
}

.blog-modal-tag {
    display: inline-block;
    color: var(--accent-color);
    font-size: 0.9rem;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.blog-modal-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
}

.blog-modal-desc {
    font-size: 1.25rem;
    color: var(--text-muted);
}

.blog-modal-body {
    line-height: 1.8;
    color: var(--text-main);
    font-size: 1.1rem;
}

.blog-modal-body h3 {
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.blog-modal-body p {
    margin-bottom: 24px;
}

.blog-modal-body ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 24px;
}

.blog-modal-body li {
    margin-bottom: 8px;
}

.blog-modal-close {
    position: fixed;
    top: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2001;
    transition: all 0.2s ease;
}

.blog-modal-close:hover {
    background: var(--border-color);
    transform: rotate(90deg);
}