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

:root {
    --text-dark: #1a1a1a;
    --text-light: #666666;
    --text-lighter: #999999;
    --bg-white: #ffffff;
    --bg-light: #f7f7f7;
    --bg-lighter: #fafafa;
    --accent: #4a5568;
    --accent-hover: #2d3748;
    --border: #e5e5e5;
    --shadow: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-hover: 0 4px 12px rgba(0,0,0,0.1);
    --radius: 4px;
    --max-width: 1100px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-white);
}

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

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    z-index: 100;
    padding: 16px 0;
}

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

.nav-brand {
    font-weight: 600;
    font-size: 18px;
    color: var(--text-dark);
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-link {
    color: var(--text-light);
    font-size: 15px;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--text-dark);
}

.cv-download {
    padding: 8px 16px;
    background: var(--text-dark);
    color: white;
    border-radius: var(--radius);
    font-weight: 500;
}

.cv-download:hover {
    background: var(--accent-hover);
    color: white;
}

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

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    transition: 0.3s;
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 12px;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-light);
    margin-bottom: 20px;
}

.hero-description {
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: 32px;
}

.hero-stats {
    display: flex;
    gap: 48px;
    margin-bottom: 40px;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
}

.stat-label {
    font-size: 14px;
    color: var(--text-lighter);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

.btn {
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 15px;
    transition: all 0.2s;
    display: inline-block;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--text-dark);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-hover);
}

.btn-outline {
    border: 2px solid var(--text-dark);
    color: var(--text-dark);
}

.btn-outline:hover {
    background: var(--text-dark);
    color: white;
}

/* Hero Images */
.hero-visual {
    position: relative;
}

.image-stack {
    position: relative;
    height: 500px;
}

.hero-image {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.main-image {
    width: 100%;
    max-width: 400px;
    position: relative;
    z-index: 2;
}

.float-image {
    position: absolute;
    width: 150px;
    height: 150px;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.image-1 {
    top: -20px;
    right: -30px;
    z-index: 1;
}

.image-2 {
    bottom: -20px;
    left: -30px;
    z-index: 3;
}

/* About Section */
.about {
    padding: 80px 0;
    background: var(--bg-light);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about h2 {
    font-size: 32px;
    margin-bottom: 24px;
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-image img {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* Projects Section */
.projects {
    padding: 80px 0;
}

.section-title {
    font-size: 32px;
    margin-bottom: 48px;
    text-align: center;
}

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

.project-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s;
}

.project-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.project-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: var(--bg-lighter);
}

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

.project-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 12px;
    background: white;
    border-radius: var(--radius);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow);
}

.project-info {
    padding: 24px;
}

.project-info h3 {
    font-size: 20px;
    margin-bottom: 4px;
}

.project-role {
    font-size: 14px;
    color: var(--text-lighter);
    margin-bottom: 12px;
}

.project-brief {
    color: var(--text-light);
    margin-bottom: 16px;
    line-height: 1.6;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.project-tags span {
    padding: 4px 10px;
    background: var(--bg-light);
    color: var(--text-light);
    border-radius: var(--radius);
    font-size: 13px;
}

.project-link {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
}

.project-link:hover {
    color: var(--accent-hover);
}

/* Skills Section */
.skills {
    padding: 80px 0;
    background: var(--bg-light);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.skill-group h3 {
    font-size: 18px;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.skill-group ul {
    list-style: none;
}

.skill-group li {
    padding: 8px 0;
    color: var(--text-light);
    position: relative;
    padding-left: 16px;
}

.skill-group li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--text-lighter);
}

/* Achievements Section */
.achievements {
    padding: 80px 0;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 32px;
}

.achievement {
    text-align: center;
    padding: 32px 24px;
    background: var(--bg-light);
    border-radius: var(--radius);
    transition: transform 0.2s;
}

.achievement:hover {
    transform: translateY(-4px);
}

.achievement-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.achievement h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.achievement p {
    color: var(--text-light);
    font-size: 14px;
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: var(--bg-light);
}

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

.contact-content > p {
    color: var(--text-light);
    margin-bottom: 32px;
    font-size: 17px;
}

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

.contact-link {
    display: flex;
    flex-direction: column;
    padding: 20px;
    background: white;
    border-radius: var(--radius);
    transition: all 0.2s;
    border: 1px solid var(--border);
}

.contact-link:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.contact-link span {
    font-size: 12px;
    color: var(--text-lighter);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

/* Footer */
.footer {
    padding: 24px 0;
    text-align: center;
    color: var(--text-lighter);
    border-top: 1px solid var(--border);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow);
        border-top: 1px solid var(--border);
    }

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

    .menu-toggle {
        display: flex;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .image-stack {
        height: 400px;
    }

    .float-image {
        display: none;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

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

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

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

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