:root {
    --color-bg: #0a0a0f;
    --color-card-bg: #111122;
    --color-primary: #00d9ff;
    --color-secondary: #9a66ff;
    --color-text: #e0e0ff;
    --color-text-muted: #8888aa;
    --border-radius: 8px;
    --spacing-unit: 1rem;
    --font-mono: 'Space Mono', monospace;
    --font-sans: 'Inter', sans-serif;
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    background-image:
            radial-gradient(circle at 15% 50%, rgba(20, 20, 60, 0.4) 0%, transparent 20%),
            radial-gradient(circle at 85% 30%, rgba(100, 20, 100, 0.3) 0%, transparent 20%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-unit);
}

/* ===== TYPOGRAPHY & LINKS ===== */
a {
    color: var(--color-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}
a:hover {
    color: var(--color-secondary);
    text-decoration: underline;
}

h1, h2, h3, h4 {
    font-family: var(--font-mono);
    font-weight: 700;
    line-height: 1.2;
}

/* ===== HEADER & HERO ===== */
.site-header {
    padding: 4rem 0 3rem;
    text-align: center;
    border-bottom: 1px solid rgba(0, 217, 255, 0.1);
}

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

.logo-img {
    max-width: 250px;
    height: auto;
    margin-bottom: 1rem;
}

.logo-text {
    font-size: 2.5rem;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.5px;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
}

.logo-text i {
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.tagline {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0.5rem;
}

.sub-tagline {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    font-style: italic;
    max-width: 600px;
}

/* ===== MAIN CONTENT SECTIONS ===== */
.main-content {
    flex: 1;
}

.section {
    padding: 4rem 0;
}
.section:nth-child(even) {
    background-color: rgba(10, 10, 20, 0.5);
}

.section-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
}
.section-title i {
    color: var(--color-secondary);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
    max-width: 700px;
    text-align: center;
    display: block;
    margin: 0 auto 2rem;
}

.intro-text {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    color: var(--color-text-muted);
}
.intro-text strong {
    color: var(--color-text);
    font-weight: 600;
}

/* ===== PROJECTS GRID ===== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.project-card {
    background: var(--color-card-bg);
    border-radius: var(--border-radius);
    padding: 1.8rem;
    border: 1px solid rgba(154, 102, 255, 0.1);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.project-card:hover {
    transform: translateY(-5px);
    border-color: rgba(154, 102, 255, 0.4);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.project-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    color: var(--color-primary);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}
.tech-pill {
    background: rgba(0, 217, 255, 0.1);
    color: var(--color-primary);
    padding: 0.3rem 0.7rem;
    border-radius: 20px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
}

.project-description {
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-weight: 700;
    margin-top: auto;
}

/* ===== QUESTIONS SECTION ===== */
.questions-section {
    padding: 4rem 0;
    background-color: rgba(10, 10, 20, 0.5);
}

.questions-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
    padding: 0 1rem;
}

.questions-content > p:first-child {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--color-text);
}

.questions-content > p:last-child {
    margin-top: 2rem;
    font-style: italic;
    color: var(--color-text-muted);
}

/* Question mark styling */
.curiosity-questions {
    margin: 2rem 0;
    padding-left: 2rem;
    color: var(--color-text-muted);
    list-style: none;
}

.curiosity-questions li {
    margin-bottom: 1.2rem;
    line-height: 1.6;
    position: relative;
    padding-left: 0.5rem;
}

.curiosity-questions li:before {
    content: "?";
    position: absolute;
    left: -2rem;
    color: var(--color-primary);
    font-weight: bold;
    font-family: var(--font-mono), monospace;
    font-size: 1.1em;
}

/* ===== PHILOSOPHY SECTION ===== */
.philosophy-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
}
.philosophy-content p {
    margin-bottom: 1.5rem;
    color: var(--color-text-muted);
}
.philosophy-content strong {
    color: var(--color-text);
}

blockquote {
    border-left: 3px solid var(--color-secondary);
    padding-left: 1.5rem;
    margin: 2rem auto;
    font-style: italic;
    color: var(--color-text-muted);
    max-width: 600px;
}
cite {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--color-primary);
    font-style: normal;
}

/* ===== FOOTER ===== */
.site-footer {
    background-color: rgba(5, 5, 15, 0.9);
    padding: 3rem 0 2rem;
    border-top: 1px solid rgba(154, 102, 255, 0.2);
    text-align: center;
}

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

.footer-logo {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

.footer-tagline {
    color: var(--color-text-muted);
    font-size: 1rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}
.footer-link {
    display: flex;
    align-items: center;
    gap: 6px;
}

.copyright {
    margin-top: 1.5rem;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .logo-text {
        font-size: 2rem;
    }
    .tagline {
        font-size: 1.3rem;
    }
    .section {
        padding: 3rem 0;
    }
    .projects-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
    }
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}

/* ===== FOOTER ===== */
.site-footer {
    background-color: rgba(5, 5, 15, 0.9);
    padding: 2rem 0 1.5rem; /* Reduced from 3rem 0 2rem */
    border-top: 1px solid rgba(154, 102, 255, 0.2);
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem; /* Reduced from 1.5rem */
}

.footer-logo {
    font-family: var(--font-mono), monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.25rem; /* Added small spacing */
}

.footer-tagline {
    color: var(--color-text-muted);
    font-size: 1rem;
    margin-bottom: 0.75rem; /* Added spacing before copyright */
}

.copyright {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-top: 0.5rem; /* Reduced from 1.5rem */
}