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

:root {
    --primary: #000000;
    --secondary: #666666;
    --accent: #000000;
    --background: #f5f2ed;
    --surface: #ede8e0;
    --border: #ddd6c9;
    --text-light: #999999;
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', Monaco, monospace;
}

body {
    font-family: var(--font-primary);
    font-weight: 300;
    line-height: 1.6;
    color: var(--primary);
    background: var(--background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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


/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-photo {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.hero-photo:hover {
    transform: translateY(-5px);
}

.hero-content {
    text-align: left;
    color: var(--primary);
}

.hero-greeting {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-light);
    letter-spacing: 1px;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.hero-title {
    font-size: 5rem;
    font-weight: 200;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: var(--primary);
}

.hero-subtitle {
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--secondary);
    margin-bottom: 2rem;
    letter-spacing: 0.3px;
}

.hero-description {
    font-size: 1.2rem;
    font-weight: 300;
    color: var(--secondary);
    margin-bottom: 3rem;
    line-height: 1.7;
    max-width: 600px;
}

.hero-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.hero-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 300;
    font-size: 1.1rem;
    letter-spacing: 0.3px;
    position: relative;
    transition: color 0.3s ease;
}

.hero-link:hover {
    color: var(--secondary);
}

.hero-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

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

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: var(--border);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 20px;
    background: var(--primary);
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { transform: translateY(-20px); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateY(40px); opacity: 0; }
}

/* Section Styles */
section {
    padding: 8rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 200;
    margin-bottom: 4rem;
    letter-spacing: -0.01em;
    text-align: center;
}

/* About Section */
.about {
    background: var(--surface);
}

.about-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.about-text {
    margin-bottom: 4rem;
}

.about-text .section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.about-text p {
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.about-skills {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    max-width: 800px;
    margin: 0 auto;
}

.skill-group {
    text-align: center;
}

.skill-group h3 {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--primary);
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.skill-group p {
    font-size: 1rem;
    font-weight: 300;
    color: var(--secondary);
    line-height: 1.6;
}

/* Work Section */
.work-grid {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.work-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 3rem;
    align-items: start;
    padding: 2rem 0;
    border-bottom: 1px solid var(--border);
}

.work-item:last-child {
    border-bottom: none;
}

.work-number {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-light);
    letter-spacing: 0.5px;
    min-width: 3rem;
}

.work-content h3 {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.work-content p {
    font-size: 1rem;
    font-weight: 300;
    color: var(--secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.work-tech {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.work-tech span {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-light);
    background: var(--surface);
    padding: 0.3rem 0.8rem;
    border-radius: 2px;
    letter-spacing: 0.3px;
}

.work-links {
    display: flex;
    gap: 2rem;
}

.work-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 300;
    font-size: 0.9rem;
    letter-spacing: 0.3px;
    position: relative;
    transition: color 0.3s ease;
}

.work-link:hover {
    color: var(--secondary);
}

.work-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

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

/* Contact Section */
.contact {
    background: var(--surface);
}

.contact-simple {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-simple p {
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--secondary);
    line-height: 1.7;
}

/* Footer */
.footer {
    background: var(--primary);
    color: var(--background);
    padding: 2rem 0;
    font-weight: 300;
    font-size: 0.9rem;
    letter-spacing: 0.3px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-info p {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.footer-contact {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    gap: 1rem;
    align-items: center;
}

.footer-contact span:nth-child(even) {
    color: rgba(255, 255, 255, 0.5);
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    padding: 0.5rem;
}

.footer-links a:hover {
    color: white;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        min-height: 90vh;
        padding: 2rem 1rem;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .hero-content {
        text-align: center;
        order: 2;
    }

    .hero-image {
        order: 1;
    }

    .hero-photo {
        max-width: 320px;
    }

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

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-description {
        font-size: 1.1rem;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-links {
        justify-content: center;
    }

    .about-skills {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-contact {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }

    .work-item {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .work-number {
        display: none;
    }

    .container {
        padding: 0 1rem;
    }

    section {
        padding: 4rem 0;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

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

    .hero-description {
        font-size: 1rem;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection */
::selection {
    background: var(--primary);
    color: var(--background);
}

/* Focus styles */
*:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Loading animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Subtle hover effects */
.work-item:hover .work-number {
    color: var(--primary);
}

.work-item:hover .work-content h3 {
    color: var(--primary);
}

/* Minimal scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--surface);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary);
}