/* Global Styles */
:root {
    --primary-color: #000000;
    --text-color: #292929;
    --background-color: #ffffff;
    --soft-gray: #757575;
    --border-color: #e6e6e6;
    --max-width: 680px;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    font-size: 18px;
}

/* Typography */
h1, h2, h3 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--primary-color);
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 0.8rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.6rem;
}

p {
    margin-bottom: 1.2rem;
    color: var(--text-color);
}

/* Navigation */
.navbar {
    background-color: var(--background-color);
    padding: 2rem;
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav-links {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 2.5rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--soft-gray);
}

#about {
    padding-top: 6rem; /* Adds space below fixed navbar */
}

/* Hero Section */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 2rem 4rem;
    background-color: var(--background-color);
    max-width: var(--max-width);
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.25rem;
    color: var(--soft-gray);
}

.sphere-animation-container {
    width: 100%;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.iframe-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.iframe-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .sphere-animation-container {
        margin: 1rem auto;
    }
    
    .iframe-wrapper {
        padding-bottom: 75%; /* Adjust aspect ratio for mobile */
    }
}
/* Sections */
section {
    padding: 4rem 2rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

.section-title {
    text-align: left;
    margin-bottom: 2.5rem;
}

/* About */
.about {
    background-color: var(--background-color);
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Projects */
.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.project-card {
    background-color: var(--background-color);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 2.5rem;
}

.project-content h3 {
    margin-bottom: 1rem;
}

.project-content p {
    color: var(--soft-gray);
}

/* Musings */
.blog-posts {
    display: grid;
    gap: 2.5rem;
}

.blog-post {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 2.5rem;
}

.blog-post p {
    color: var(--soft-gray);
}

/* Contact */
.contact-form {
    margin-top: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--soft-gray);
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s ease;
}

.btn:hover {
    opacity: 0.9;
}

/* Footer */
footer {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--soft-gray);
    border-top: 1px solid var(--border-color);
}

/* Utilities */
.text-center {
    text-align: center;
    margin-top: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        font-size: 16px;
    }

    .nav-links {
        gap: 1.5rem;
    }

    .hero {
        padding: 5rem 1.5rem 3rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    section {
        padding: 3rem 1.5rem;
    }

    .projects-grid {
        gap: 2rem;
    }
}

/* Content width control */
.about-content,
.projects-grid,
.blog-posts,
.contact-form {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
}

#projects {
    padding-top: 6rem; /* Adds space below fixed navbar */
}

/* Project Detail Styles */
.project-detail {
    padding: 8rem 2rem 2rem; /* More space at top */
    max-width: var(--max-width);
    margin: 0 auto;;
}

.project-header {
    margin-bottom: 3rem;
}

.project-subtitle {
    font-size: 1.2rem;
    color: var(--soft-gray);
    margin: 1rem 0 2rem;
    line-height: 1.6;
}

.project-meta {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-top: 1rem;
}

.date {
    color: var(--soft-gray);
    font-size: 0.9rem;
}

/* Project Tags */
.project-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin: 1rem 0;
}

.tag {
    background-color: #f5f5f5;
    color: var(--text-color);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
}