:root {
    --paper: #F5F0E8;
    --paper-dark: #E8E0D0;
    --ink: #1A1A1A;
    --ink-light: #4A4A4A;
    --accent-orange: #FF6B35;
    --accent-yellow: #FFD23F;
    --accent-blue: #3D5A80;
    --accent-green: #06D6A0;
    --accent-pink: #FF85A1;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background-color: var(--paper);
    color: var(--ink);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(245, 240, 232, 0.9);
    backdrop-filter: blur(10px);
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--ink);
    text-decoration: none;
}

.logo span {
    color: var(--accent-orange);
}

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

.nav-links a {
    text-decoration: none;
    color: var(--ink);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: color 0.3s;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-orange);
    transition: width 0.3s;
}

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

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 0 5%;
    padding-top: 80px;
    gap: 2rem;
}

.hero-content {
    z-index: 2;
}

.hero-tag {
    display: inline-block;
    background: var(--accent-yellow);
    color: var(--ink);
    padding: 0.5rem 1.2rem;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 50px;
    margin-bottom: 1.5rem;
    transform: rotate(-2deg);
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3.5rem, 8vw, 7rem);
    font-weight: 900;
    line-height: 0.95;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.hero h1 .highlight {
    color: var(--accent-orange);
    position: relative;
    display: inline-block;
}

.hero h1 .highlight::after {
    content: '';
    position: absolute;
    bottom: 0.1em;
    left: 0;
    right: 0;
    height: 0.15em;
    background: var(--accent-yellow);
    z-index: -1;
    transform: skewX(-5deg);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--ink-light);
    max-width: 450px;
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: var(--ink);
    color: var(--paper);
}

.btn-primary:hover {
    background: var(--accent-orange);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.3);
}

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

.btn-secondary:hover {
    background: var(--ink);
    color: var(--paper);
    transform: translateY(-2px);
}

/* Bento Grid Visual */
.hero-visual {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 1rem;
    height: 500px;
    transform: rotate(3deg);
}

.bento-item {
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.5rem;
    transition: transform 0.3s;
}

.bento-item:hover {
    transform: scale(1.02);
}

.bento-1 {
    grid-column: 1 / 3;
    grid-row: 1 / 2;
    background: var(--accent-orange);
    color: white;
}

.bento-2 {
    grid-column: 3 / 4;
    grid-row: 1 / 2;
    background: var(--accent-blue);
    color: white;
}

.bento-3 {
    grid-column: 1 / 2;
    grid-row: 2 / 4;
    background: var(--accent-yellow);
    color: var(--ink);
}

.bento-4 {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
    background: var(--accent-pink);
    color: var(--ink);
}

.bento-5 {
    grid-column: 3 / 4;
    grid-row: 2 / 3;
    background: var(--ink);
    color: var(--paper);
}

.bento-6 {
    grid-column: 2 / 4;
    grid-row: 3 / 4;
    background: var(--accent-green);
    color: var(--ink);
}

/* Section Styles */
section {
    padding: 6rem 5%;
}

.section-tag {
    display: inline-block;
    background: var(--accent-blue);
    color: white;
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 50px;
    margin-bottom: 1rem;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 3rem;
    line-height: 1.1;
}

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

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image-frame {
    width: 100%;
    aspect-ratio: 3/4;
    border-radius: 20px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.about-image-frame::before {
    content: '';
    position: absolute;
    inset: 10px;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.2'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
    border-radius: 16px;
}

.about-svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 1;
}

.about-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.about-content p {
    font-size: 1.1rem;
    color: var(--ink-light);
    margin-bottom: 1.5rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.stat-card {
    background: var(--paper);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
}

.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-orange);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--ink-light);
}

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

.skill-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    border: 3px solid var(--ink);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-orange);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s;
}

.skill-card:hover::before {
    transform: scaleX(1);
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.skill-icon {
    width: 60px;
    height: 60px;
    background: var(--accent-yellow);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.skill-icon svg, .skill-icon i {
    width: 28px;
    height: 28px;
    color: var(--ink);
}

.project-image {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
}

.project-image svg, .project-image i {
    width: 80px;
    height: 80px;
    color: white;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: white;
    border: 3px solid var(--ink);
    border-radius: 12px;
    text-decoration: none;
    color: var(--ink);
    font-weight: 600;
    transition: all 0.3s;
}

.contact-link svg, .contact-link i {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.skill-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.skill-card p {
    color: var(--ink-light);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    background: var(--paper);
    padding: 0.3rem 0.8rem;
    font-size: 0.8rem;
    border-radius: 50px;
    font-weight: 500;
}

/* Projects Section */
.projects {
    background: var(--paper-dark);
}

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

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

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

.project-image {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
}

.project-card:nth-child(1) .project-image { background: linear-gradient(135deg, var(--accent-orange), var(--accent-yellow)); }
.project-card:nth-child(2) .project-image { background: linear-gradient(135deg, var(--accent-blue), var(--accent-green)); }
.project-card:nth-child(3) .project-image { background: linear-gradient(135deg, var(--accent-pink), var(--accent-orange)); }

.project-content {
    padding: 1.5rem;
}

.project-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.project-content p {
    color: var(--ink-light);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.project-tech span {
    background: var(--paper);
    padding: 0.3rem 0.8rem;
    font-size: 0.8rem;
    border-radius: 50px;
    font-weight: 500;
}

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

.project-link {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s;
}

.project-link.primary {
    background: var(--ink);
    color: var(--paper);
}

.project-link.primary:hover {
    background: var(--accent-orange);
}

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

.project-link.secondary:hover {
    background: var(--ink);
    color: var(--paper);
}

/* Experience Section */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: var(--ink);
}

.timeline-item {
    position: relative;
    padding-left: 3rem;
    margin-bottom: 3rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 0;
    width: 28px;
    height: 28px;
    background: var(--accent-orange);
    border-radius: 50%;
    border: 4px solid var(--paper);
}

.timeline-date {
    font-weight: 600;
    color: var(--accent-orange);
    margin-bottom: 0.5rem;
}

.timeline-item h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 0.3rem;
}

.timeline-item h4 {
    color: var(--ink-light);
    font-weight: 500;
    margin-bottom: 1rem;
}

.timeline-item p {
    color: var(--ink-light);
}

/* Contact Section */
.contact {
    text-align: center;
}

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

.contact h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 1rem;
}

.contact p {
    color: var(--ink-light);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

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

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: white;
    border: 3px solid var(--ink);
    border-radius: 12px;
    text-decoration: none;
    color: var(--ink);
    font-weight: 600;
    transition: all 0.3s;
}

.contact-link:hover {
    background: var(--ink);
    color: var(--paper);
    transform: translateY(-3px);
}

.contact-link span {
    font-size: 1.5rem;
}

/* Footer */
footer {
    background: var(--ink);
    color: var(--paper);
    padding: 3rem 5%;
    text-align: center;
}

footer p {
    opacity: 0.7;
    font-size: 0.9rem;
}

footer .footer-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

footer .footer-logo span {
    color: var(--accent-orange);
}

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

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--ink);
    transition: all 0.3s;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-visual {
        transform: rotate(0);
        height: 350px;
        max-width: 400px;
        margin: 0 auto;
    }

    .hero-subtitle {
        margin: 0 auto 2.5rem;
    }

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

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

    .about-image {
        max-width: 300px;
        margin: 0 auto;
    }

    .about-stats {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    nav {
        padding: 1rem 1.5rem;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--paper);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        transform: translateY(-150%);
        transition: transform 0.3s;
    }

    .nav-links.active {
        transform: translateY(0);
    }

    section {
        padding: 4rem 5%;
    }

    .hero-visual {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(4, 1fr);
        height: 300px;
    }

    .bento-1 { grid-column: 1 / 2; grid-row: 1 / 2; }
    .bento-2 { grid-column: 2 / 3; grid-row: 1 / 2; }
    .bento-3 { grid-column: 1 / 2; grid-row: 2 / 3; }
    .bento-4 { grid-column: 2 / 3; grid-row: 2 / 3; }
    .bento-5 { grid-column: 1 / 2; grid-row: 3 / 4; }
    .bento-6 { grid-column: 2 / 3; grid-row: 3 / 4; }

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

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

    .contact-links {
        flex-direction: column;
        align-items: center;
    }

    .timeline-item {
        padding-left: 2.5rem;
    }

    .timeline-item::before {
        left: -10px;
        width: 24px;
        height: 24px;
    }

    .timeline-date {
        font-size: 0.9rem;
    }

    .timeline-item h3 {
        font-size: 1.2rem;
    }

    .timeline-item h4 {
        font-size: 0.9rem;
    }

    .timeline-item p {
        font-size: 0.9rem;
    }

    .skill-card h3 {
        font-size: 1.2rem;
    }

    .project-content h3 {
        font-size: 1.3rem;
    }
}

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

.animate {
    opacity: 0;
}

.animate.visible {
    animation: fadeInUp 0.6s ease forwards;
}

/* Halftone pattern for decorative use */
.halftone {
    position: relative;
}

.halftone::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, var(--ink) 1px, transparent 1px);
    background-size: 8px 8px;
    opacity: 0.05;
    pointer-events: none;
}
