/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #f5f5f5;
    --secondary-color: #a1a1aa;
    --background-color: #09090b;
    --surface-color: #18181b;
    --text-color: #fafafa;
    --text-color-muted: #71717a;
    --light-gray: #27272a;
    --card-background: #18181b;
    --nav-background: rgba(9, 9, 11, 0.95);
    --transition: all 0.3s ease;
    --border-color: #27272a;
    --hover-color: #d4d4d8;
}

html {
    scroll-behavior: smooth;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
nav {
    position: fixed;
    width: 100%;
    background-color: var(--nav-background);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    backdrop-filter: blur(8px);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 1rem 2rem;
}

.nav-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: var(--transition);
}

.mobile-nav-toggle:hover {
    color: var(--hover-color);
}

@media (min-width: 769px) {
    .nav-links {
        display: flex !important;
    }
}

.logo a {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
}

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

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 1rem;
    background-color: var(--surface-color);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, #ffffff 0%, transparent 70%);
    opacity: 0.05;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.highlight {
    color: var(--primary-color);
}

.subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #4b5563;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.primary {
    background-color: var(--light-gray);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.primary:hover {
    background-color: var(--secondary-color);
}

.secondary {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.secondary:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Sections */
section {
    padding: 5rem 0;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
}

/* About Section */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

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

.project-card {
    background: var(--card-background);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.project-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-info {
    padding: 1.5rem;
}

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

.project-tech {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin: 1rem 0;
}

.project-tech span {
    background: var(--light-gray);
    padding: 0.2rem 0.8rem;
    border-radius: 15px;
    font-size: 0.9rem;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-links a {
    color: var(--primary-color);
    text-decoration: none;
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.skill-category {
    text-align: center;
    background: var(--card-background);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.skill-category h3 {
    margin-bottom: 1.5rem;
}

.skill-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1rem;
}

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.skill-item i {
    font-size: 2rem;
    color: var(--primary-color);
}

/* Contact Section */
.contact-content {
    max-width: 600px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-item a {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

.contact-item a:hover {
    color: var(--primary-color);
}

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

footer p {
    color: var(--text-color-muted);
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Navigation */
    .nav-content {
        flex-direction: column;
        align-items: stretch;
        padding: 0;
    }

    .nav-top {
        padding: 1rem;
    }

    .mobile-nav-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1rem;
        background-color: var(--surface-color);
        border-top: 1px solid var(--border-color);
    }

    .nav-links.active {
        display: flex;
    }

    /* Hero Section */
    .hero-content {
        padding: 0 1rem;
    }

    .hero-content h1 {
        font-size: 2rem;
        line-height: 1.2;
    }

    .subtitle {
        font-size: 1.2rem;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    /* Sections */
    section {
        padding: 3rem 1rem;
    }

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

    /* Projects */
    .project-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .project-card {
        max-width: 100%;
    }

    /* Skills */
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .skill-category {
        padding: 1.5rem;
    }

    .skill-items {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
        gap: 0.8rem;
    }

    /* Contact */
    .contact-content {
        padding: 0 1rem;
    }

    .contact-info {
        gap: 1.2rem;
    }
}

/* Small screens */
@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .project-tech {
        flex-wrap: wrap;
        justify-content: center;
    }

    .project-tech span {
        font-size: 0.8rem;
        padding: 0.15rem 0.6rem;
    }

    .project-links {
        flex-direction: column;
        gap: 0.8rem;
        align-items: center;
    }
}