/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --black: #000000;
    --white: #ffffff;
    --gray-100: #f7f7f7;
    --gray-200: #e5e5e5;
    --gray-300: #d4d4d4;
    --gray-400: #a3a3a3;
    --gray-600: #525252;
    --gray-800: #262626;
    --gray-900: #171717;

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --max-width: 1200px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--black);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 3rem;
    letter-spacing: -0.02em;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid var(--gray-200);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -0.05em;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-link {
    color: var(--black);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    opacity: 0.6;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--black);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--black);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 0 4rem;
    background: var(--white);
}

.hero-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

.hero-content {
    max-width: 800px;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    line-height: 1;
}

.hero-name {
    display: block;
}

.hero-subtitle {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 500;
    color: var(--gray-600);
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--gray-600);
    margin-bottom: 3rem;
    max-width: 600px;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: 2px solid transparent;
    font-size: 1rem;
    cursor: pointer;
}

.btn-primary {
    background: var(--black);
    color: var(--white);
    border-color: var(--black);
}

.btn-primary:hover {
    background: var(--gray-800);
    border-color: var(--gray-800);
}

.btn-secondary {
    background: transparent;
    color: var(--black);
    border-color: var(--black);
}

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

/* About Section */
.about {
    padding: 6rem 0;
    background: var(--gray-100);
}

.about-content {
    max-width: 900px;
}

.about-text .lead {
    font-size: 1.375rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    font-weight: 500;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--gray-600);
    line-height: 1.8;
}

.about-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.highlight {
    padding: 2rem;
    background: var(--white);
    border: 1px solid var(--gray-200);
}

.highlight h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.highlight p {
    color: var(--gray-600);
    margin: 0;
}

/* Projects Section */
.projects {
    padding: 6rem 0;
    background: var(--white);
}

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

.project-card {
    padding: 2.5rem;
    background: var(--white);
    border: 2px solid var(--black);
    transition: var(--transition);
    position: relative;
}

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

.project-card.featured {
    grid-column: span 2;
    background: var(--black);
    color: var(--white);
}

.project-status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
    border: 1px solid currentColor;
}

.featured .project-status {
    border-color: var(--white);
}

.project-title {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.project-role {
    font-size: 1.125rem;
    color: var(--gray-400);
    margin-bottom: 1rem;
}

.featured .project-role {
    color: var(--gray-300);
}

.project-description {
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.project-tech span {
    padding: 0.375rem 0.875rem;
    font-size: 0.875rem;
    border: 1px solid currentColor;
}

.project-link {
    display: inline-block;
    margin-top: 1.5rem;
    color: var(--black);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
}

.featured .project-link {
    color: var(--white);
}

.project-link:hover {
    opacity: 0.7;
}

.project-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: currentColor;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.project-link:hover::after {
    transform: scaleX(1);
}

/* Thoughts Section */
.thoughts {
    padding: 6rem 0;
    background: var(--gray-100);
}

.thoughts-content {
    max-width: 600px;
    margin: 0 auto;
}

.twitter-container {
    background: var(--white);
    padding: 2rem;
    border: 1px solid var(--gray-200);
    margin-bottom: 2rem;
    min-height: 400px;
}

.thoughts-cta {
    text-align: center;
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background: var(--black);
    color: var(--white);
}

.contact .section-title {
    color: var(--white);
}

.contact-intro {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    color: var(--gray-300);
}

.contact-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--gray-900);
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid var(--gray-800);
}

.contact-link:hover {
    background: var(--gray-800);
    transform: translateY(-3px);
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--white);
    color: var(--black);
    font-weight: 700;
    font-size: 0.875rem;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 2rem;
        border-bottom: 1px solid var(--gray-200);
    }

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

    .nav-toggle {
        display: flex;
    }

    .hero-cta {
        flex-direction: column;
    }

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

    .project-card.featured {
        grid-column: span 1;
    }

    .about-highlights {
        grid-template-columns: 1fr;
    }

    .contact-links {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }
}