:root {
    --bg-dark: #1A1A1A;
    --bg-light-dark: #242424;
    --text-white: #E0E0E0;
    --accent-blue: #00AFFF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 120px 0;
}

h1, h2, h3 {
    font-family: 'Manrope', sans-serif;
    color: var(--accent-blue);
    margin-bottom: 1rem;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.5rem; }
p { margin-bottom: 1rem; }

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 0 20px;
    overflow: hidden; /* Prevent canvas overflow issues */
}

#sphereCanvas {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.hero .bio {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    font-family: 'Inter', sans-serif;
    color: var(--text-white);
}

/* Section Styles */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-intro {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem auto;
    font-size: 1.1rem;
}

/* Card Layout */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background-color: var(--bg-light-dark);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: transform 0.3s ease, border-color 0.3s ease;
    text-decoration: none;
    color: var(--text-white);
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-blue);
}

.card h3 {
    margin-bottom: 1rem;
}

/* About Section */
.about-section {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.about-image {
    flex: 1;
    max-width: 300px;
}

.about-image img {
    width: 100%;
    border-radius: 50%;
    filter: grayscale(100%) contrast(1.2);
}

.about-text {
    flex: 2;
}

.about-text .code-accent {
    font-family: 'Source Code Pro', monospace;
    color: var(--accent-blue);
    opacity: 0.7;
}

/* Footer */
footer {
    text-align: center;
    padding: 40px 20px;
    border-top: 1px solid var(--bg-light-dark);
    font-family: 'Source Code Pro', monospace;
}

.cta-section {
    text-align: center;
    margin-top: 3rem;
}

.cta-button {
    display: inline-block;
    background: var(--accent-blue);
    color: var(--bg-dark);
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.2s;
}

.cta-button:hover {
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
    h1 { font-size: 2.8rem; }
    .hero h1 { font-size: 3rem; }
    h2 { font-size: 2rem; }
    .container { padding: 80px 0; }
    .about-section {
        flex-direction: column;
        text-align: center;
    }
}