:root {
    --bg-color: #ffffff;
    --text-color: #1a1a1a;
    --accent-color: #2563eb;
    --border-color: #e5e7eb;
    --hover-bg: #f3f4f6;
    --nav-bg: rgba(255, 255, 255, 0.8);
    --nav-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --footer-bg: #f8f9fa;
}

[data-theme="dark"] {
    --bg-color: #1a1a1a;
    --text-color: #ffffff;
    --accent-color: #3b82f6;
    --border-color: #374151;
    --hover-bg: #2d3748;
    --nav-bg: rgba(26, 26, 26, 0.8);
    --nav-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    --footer-bg: #111827;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    transition: background-color 0.3s ease, color 0.3s ease;
    display: flex;
    flex-direction: column;
}

/* Navbar Styles */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--nav-bg);
    backdrop-filter: blur(10px);
    box-shadow: var(--nav-shadow);
    z-index: 1000;
}

.nav-container {
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
}

.mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.3rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.mobile-menu-btn:hover {
    background-color: var(--hover-bg);
}

.nav-center {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--nav-bg);
    padding: 1rem;
    box-shadow: var(--nav-shadow);
}

.nav-center.active {
    display: block;
}

.nav-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

.nav-link {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    cursor: pointer;
    width: 100%;
    text-align: left;
}

.nav-link:hover, .nav-link.active {
    background-color: var(--hover-bg);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Theme Toggle */
.theme-toggle {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.3rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    background-color: var(--hover-bg);
}

/* Main Content */
.container {
    flex: 1;
    position: relative;
    margin-top: 60px;
    height: calc(100vh - 60px);
    overflow: hidden;
}

/* Section Styles */
.section {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1rem;
    overflow-y: auto;
}

.section.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.section-content {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

/* Hero Section */
#home {
    text-align: center;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-text {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.project-card {
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
}

/* About Section */
.about-content {
    max-width: 600px;
    margin: 0 auto;
}

.skills {
    margin-top: 1.5rem;
}

.skills-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.skills-list li {
    background-color: var(--hover-bg);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* Footer */
.footer {
    background-color: var(--footer-bg);
    padding: 1rem;
    width: 100%;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
}

.footer p {
    color: var(--text-color);
    opacity: 0.8;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--text-color);
    font-size: 1.2rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
}

/* Section Headers */
h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Tablet and Desktop Styles */
@media (min-width: 768px) {
    .mobile-menu-btn {
        display: none;
    }

    .nav-center {
        display: block;
        position: static;
        background: none;
        padding: 0;
        box-shadow: none;
    }

    .nav-menu {
        flex-direction: row;
        margin-bottom: 0;
    }

    .nav-link {
        width: auto;
        text-align: center;
    }

    .container {
        margin-top: 80px;
        height: calc(100vh - 80px);
    }

    .section {
        padding: 2rem;
    }

    .section-content {
        max-width: 1200px;
    }

    h1 {
        font-size: 4rem;
        margin-bottom: 2rem;
    }

    .hero-text {
        font-size: 1.25rem;
        margin-bottom: 2rem;
    }

    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
    }

    h2 {
        font-size: 2.5rem;
        margin-bottom: 2rem;
    }

    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 2rem;
    }
} 