:root {
    --bg-dark: #1a1a1a;
    --bg-card: #2a2a2a;
    --text-light: #e8e8e8;
    --text-dark: #2a2a2a;
    --accent: #00bcd4;
    --bg-light: #f5f5f5;
    --bg-card-light: #ffffff;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
}

body.light-mode {
    background-color: var(--bg-light);
    color: var(--text-dark);
}

#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(26, 26, 26, 0.9);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    z-index: 1000;
}

body.light-mode #navbar {
    background: rgba(255, 255, 255, 0.9);
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-content a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s;
}

body.light-mode .nav-content a {
    color: var(--text-dark);
}

.nav-content a:hover {
    color: var(--accent);
}

#theme-toggle {
    margin-left: auto;
    padding: 0.5rem 1rem;
    background: var(--accent);
    border: none;
    border-radius: 16px;
    color: white;
    cursor: pointer;
    transition: opacity 0.3s;
}

#theme-toggle:hover {
    opacity: 0.8;
}

section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#hero {
    text-align: center;
}

#hero h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

#hero h2 {
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 2rem;
}

.links {
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.links a {
    color: var(--text-light);
    text-decoration: none;
    padding: 0.5rem 1.5rem;
    border: 2px solid var(--accent);
    border-radius: 16px;
    transition: all 0.3s;
}

body.light-mode .links a {
    color: var(--text-dark);
}

.links a:hover {
    background: var(--accent);
    color: white;
}

.card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 20px;
    margin-bottom: 2rem;
}

body.light-mode .card {
    background: var(--bg-card-light);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.project-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 20px;
    transition: transform 0.3s;
}

body.light-mode .project-card {
    background: var(--bg-card-light);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-card h3 {
    color: var(--accent);
    margin-bottom: 1rem;
}

.tech {
    font-size: 0.9rem;
    opacity: 0.7;
    margin: 1rem 0;
}

.project-card a {
    display: inline-block;
    margin-top: 1rem;
    margin-right: 1rem;
    color: var(--accent);
    text-decoration: none;
    transition: opacity 0.3s;
}

.project-card a:hover {
    opacity: 0.7;
}

#contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#contact-form input,
#contact-form textarea {
    padding: 1rem;
    border: 2px solid var(--bg-card);
    border-radius: 16px;
    background: var(--bg-dark);
    color: var(--text-light);
    font-family: inherit;
}

body.light-mode #contact-form input,
body.light-mode #contact-form textarea {
    background: var(--bg-light);
    color: var(--text-dark);
    border-color: #ddd;
}

#contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

#contact-form button {
    padding: 1rem 2rem;
    background: var(--accent);
    border: none;
    border-radius: 16px;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: opacity 0.3s;
}

#contact-form button:hover {
    opacity: 0.8;
}

@media (max-width: 768px) {
    #hero h1 {
        font-size: 2rem;
    }
    
    .nav-content {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .project-grid {
        grid-template-columns: 1fr;
    }
}
