* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --text: #1f2937;
    --text-light: #6b7280;
    --bg: #ffffff;
    --bg-alt: #fafafa;
    --border: #e5e7eb;
    --accent: #10b981;
}

@keyframes fadeGradient {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.7; }
}

@keyframes slideIn {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes gridMove {
    0% { transform: translateY(0); }
    100% { transform: translateY(50px); }
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(30px, -30px); }
    66% { transform: translate(-20px, 20px); }
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: #fafafa;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 200%;
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.03) 2px, transparent 2px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.03) 2px, transparent 2px);
    background-size: 60px 60px;
    animation: gridMove 15s linear infinite;
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    top: 10%;
    right: 10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.08), transparent 60%);
    border-radius: 50%;
    animation: float 12s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
}

header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, var(--text), transparent);
    animation: slideIn 3s ease-in-out infinite;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
}

.header-links {
    display: flex;
    gap: 1.5rem;
}

.header-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.header-links a:hover {
    color: var(--text);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: #000;
    border-radius: 2px;
    transition: all 0.3s;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Hero Section */
.hero {
    padding: 5rem 5% 4rem;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero::before {
    content: '';
    position: absolute;
    top: 20%;
    right: -15%;
    width: 500px;
    height: 500px;
    background: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 30px,
            rgba(0, 0, 0, 0.04) 30px,
            rgba(0, 0, 0, 0.04) 60px
        );
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
    animation: fadeGradient 5s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 10%;
    left: -10%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.06), transparent 70%);
    border-radius: 50%;
    animation: float 10s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

.availability {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.05);
    color: var(--text);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    animation: fadeGradient 3s ease-in-out infinite;
}

.availability::before {
    content: "";
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.7;
}

/* Sections */
.section {
    padding: 4rem 5%;
    background: white;
    position: relative;
    z-index: 1;
}

.section.gray {
    background: #fafafa;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.1), transparent);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 700;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--text), transparent);
    transition: left 0.5s ease;
}

.project-card:hover::before {
    left: 100%;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
    border-color: rgba(0, 0, 0, 0.15);
}

.project-tag {
    display: inline-block;
    background: #000;
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.project-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.project-challenge {
    margin-bottom: 1rem;
}

.project-challenge strong {
    color: var(--text);
    font-weight: 600;
    font-size: 0.95rem;
}

.project-challenge p {
    color: var(--text-light);
    margin-top: 0.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.project-description {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.7;
    font-size: 0.95rem;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.skill-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--text), transparent);
    transition: left 0.5s ease;
}

.skill-card:hover::before {
    left: 100%;
}

.skill-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
    border-color: rgba(0, 0, 0, 0.15);
}

.skill-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

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

.skill-card li {
    color: var(--text-light);
    padding: 0.6rem 0;
    border-bottom: 1px solid #f5f5f5;
    font-size: 0.95rem;
}

.skill-card li:last-child {
    border-bottom: none;
}

/* Artifacts Grid */
.artifacts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.artifact-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

.artifact-card::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--text), transparent);
    transition: left 0.5s ease;
}

.artifact-card:hover::before {
    left: 100%;
}

.artifact-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.15);
    border-color: rgba(0, 0, 0, 0.15);
}

.artifact-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.artifact-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.artifact-card p {
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

.btn {
    background: #000;
    color: #fff;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
}

.btn:hover {
    background: #333;
    transform: translateY(-2px);
}

/* About Section */
.about-content {
    max-width: 900px;
    margin: 0 auto;
    background: #fafafa;
    padding: 2.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--text);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.about-content::before {
    content: '';
    position: absolute;
    left: -100%;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.02), transparent);
    transition: left 0.6s ease;
}

.about-content:hover::before {
    left: 100%;
}

.about-content:hover {
    transform: translateX(8px);
}

.about-content p {
    font-size: 1.125rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* Contact Section */
.contact-section {
    background: #000;
    color: #fff;
    padding: 6rem 5%;
}

.contact-section .section-title {
    color: #fff;
}

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

.contact-content p {
    font-size: 1.125rem;
    color: #999;
    margin-bottom: 2.5rem;
}

.contact-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-links a {
    padding: 1rem 2.5rem;
    border: 2px solid #fff;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s;
    font-weight: 600;
    font-size: 1rem;
}

.contact-links a:hover {
    background: #fff;
    color: #000;
    transform: translateY(-2px);
}

/* Footer */
footer {
    background: #1a1a1a;
    color: #999;
    text-align: center;
    padding: 1.5rem 2rem;
    border-top: 1px solid #2a2a2a;
}

footer p {
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 1200px) {
    .projects-grid,
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .header-links {
        position: absolute;
        top: 100%;
        right: 1rem;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        border: 1px solid #e0e0e0;
        border-radius: 12px;
        flex-direction: column;
        padding: 1rem;
        gap: 0;
        box-shadow: 0 10px 40px rgba(0,0,0,0.1);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        min-width: 180px;
    }

    .header-links.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .header-links a {
        width: 100%;
        padding: 0.75rem 1rem;
        border-radius: 6px;
        transition: all 0.2s;
    }

    .header-links a:hover {
        background: #f5f5f5;
    }

    header {
        padding: 1rem 4%;
    }

    .hero {
        padding: 4rem 4% 3rem;
    }

    .hero::before,
    .hero::after {
        display: none;
    }

    body::after {
        width: 300px;
        height: 300px;
    }

    .hero h1 {
        font-size: 2rem;
    }

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

    .section {
        padding: 3rem 4%;
    }

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

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

@media (max-width: 480px) {
    header {
        padding: 1rem 3%;
    }

    .hero {
        padding: 3rem 3%;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

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

    .section {
        padding: 2.5rem 3%;
    }

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