:root {
    --primary-color: #6a11cb;
    --secondary-color: #2575fc;
    --dark-bg: #121212;
    --light-bg: #1e1e1e;
    --text-color: #ffffff;
    --subtle-text-color: #a0a0a0;
    --glow-color: rgba(106, 17, 203, 0.7);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-color);
    line-height: 1.6;
}

#star-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 5%;
    background: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(10px);
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    display: block;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.1);
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.main-header nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.main-header nav a {
    color: var(--subtle-text-color);
    text-decoration: none;
    font-weight: 300;
    transition: color 0.3s ease;
}

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

main {
    padding-top: 80px; /* Header height */
}

.hero {
    height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 5%;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.hero-content .subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--subtle-text-color);
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    padding: 0.8rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    box-shadow: 0 5px 20px var(--glow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--glow-color);
}

.content-section {
    padding: 6rem 5%;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.content-section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.content-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
}

#about p {
    font-size: 1.1rem;
    color: var(--subtle-text-color);
    max-width: 800px;
    margin: 0 auto;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    text-align: left;
}

.project-card {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.project-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.project-card p {
    color: var(--subtle-text-color);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 600px;
    margin: 3rem auto 0;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: var(--light-bg);
    color: var(--text-color);
    font-family: 'Poppins', sans-serif;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--subtle-text-color);
}

.contact-form button {
    cursor: pointer;
}

.main-footer {
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--subtle-text-color);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .main-header {
        padding: 1rem 5%;
    }
    .main-header nav ul {
        display: none; /* Simplification for mobile, could be a hamburger menu */
    }
    .hero-content h1 {
        font-size: 3rem;
    }
    .hero-content .subtitle {
        font-size: 1.2rem;
    }
    .content-section {
        padding: 4rem 5%;
    }
    .content-section h2 {
        font-size: 2rem;
    }
}
