/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --canvas: #faf8f5;
    --card: #ffffff;
    --title: #1a1a1a;
    --body: #4a4a4a;
    --muted: #8a8a8a;
    --placeholder: #f0f0f0;
    --preview: #f5f5f5;
    --border: #e5e5e5;
    --accent: #4f46e5;
    --accent-hover: #4338ca;
    --accent-light: #eef2ff;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.08);
    --radius-lg: 24px;
    --radius-md: 20px;
    --radius-sm: 12px;
    --radius-pill: 24px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    background-color: var(--canvas);
    color: var(--body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
}

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

/* ===== Layout ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 140px 0;
}

.section-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--title);
    letter-spacing: -1px;
    line-height: 1.1;
    margin-bottom: 48px;
}

/* ===== Navbar ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(250, 248, 245, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    height: 72px;
    transition: border-color 200ms;
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    border-bottom-color: var(--border);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-size: 20px;
    font-weight: 600;
    color: var(--title);
}

.nav-links {
    display: flex;
    gap: 28px;
}

.nav-link {
    font-size: 15px;
    font-weight: 500;
    color: var(--body);
    position: relative;
    transition: color 200ms;
}

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

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

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

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--title);
    padding: 8px;
}

/* ===== Hero ===== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    text-align: center;
    padding: 0 24px;
}

.hero-bg-shape {
    position: absolute;
    bottom: -10%;
    right: -10%;
    width: 50%;
    max-width: 600px;
    opacity: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-name {
    font-size: 80px;
    font-weight: 700;
    color: var(--title);
    letter-spacing: -2px;
    line-height: 1.0;
    margin-bottom: 16px;
}

.hero-role {
    font-size: 28px;
    font-weight: 500;
    color: var(--body);
    letter-spacing: -0.5px;
    margin-bottom: 16px;
}

.hero-tagline {
    font-size: 18px;
    font-weight: 400;
    color: var(--muted);
    font-style: italic;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--muted);
    opacity: 0.4;
    animation: breathe 2s ease-in-out infinite;
}

@keyframes breathe {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ===== Featured Project ===== */
.featured-section {
    padding-top: 0;
}

.featured-card {
    background: var(--card);
    border-radius: var(--radius-lg);
    padding: 48px;
    box-shadow: var(--shadow);
    display: flex;
    gap: 48px;
    align-items: center;
    transition: box-shadow 300ms ease-out;
}

.featured-card:hover {
    box-shadow: var(--shadow-hover);
}

.featured-left {
    flex: 0 0 60%;
}

.featured-right {
    flex: 0 0 40%;
}

.featured-badge {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    margin-bottom: 20px;
}

.featured-title {
    font-size: 40px;
    font-weight: 700;
    color: var(--title);
    letter-spacing: -0.8px;
    line-height: 1.1;
    margin-bottom: 16px;
}

.featured-desc {
    font-size: 16px;
    line-height: 1.7;
    color: var(--body);
    max-width: 480px;
    margin-bottom: 24px;
}

.featured-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 32px;
}

.tag {
    font-size: 13px;
    font-weight: 500;
    color: var(--accent);
    background: var(--accent-light);
    padding: 6px 14px;
    border-radius: var(--radius-pill);
}

.btn-primary {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    transition: background 200ms;
    border: none;
    cursor: pointer;
}

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

.preview-placeholder {
    background: var(--preview);
    border-radius: 16px;
    aspect-ratio: 16 / 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 500;
}

/* ===== Works Grid ===== */
.works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.work-card {
    background: var(--card);
    border-radius: var(--radius-md);
    padding: 32px;
    min-height: 280px;
    box-shadow: var(--shadow);
    transition: transform 300ms ease-out, box-shadow 300ms ease-out;
    display: flex;
    flex-direction: column;
}

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

.work-card-large {
    grid-column: span 2;
    min-height: 360px;
}

.work-preview {
    background: var(--preview);
    border-radius: var(--radius-sm);
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    flex-shrink: 0;
}

.work-type {
    font-size: 12px;
    font-weight: 500;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.work-name {
    font-size: 20px;
    font-weight: 600;
    color: var(--title);
    line-height: 1.3;
    letter-spacing: -0.3px;
    margin-bottom: 8px;
}

.work-card-large .work-name {
    font-size: 24px;
}

.work-desc {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.5;
}

/* ===== About ===== */
.about-layout {
    display: flex;
    gap: 48px;
    align-items: flex-start;
}

.about-photo {
    flex: 0 0 40%;
}

.photo-placeholder {
    background: var(--preview);
    border-radius: var(--radius-lg);
    aspect-ratio: 3 / 4;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-content {
    flex: 0 0 60%;
}

.about-content .section-title {
    margin-bottom: 24px;
}

.about-text {
    font-size: 16px;
    line-height: 1.8;
    color: var(--body);
    max-width: 480px;
    margin-bottom: 32px;
}

.skills-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.skill-tag {
    font-size: 14px;
    font-weight: 500;
    color: var(--body);
    background: var(--placeholder);
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    transition: background 200ms, color 200ms;
}

.skill-tag:hover {
    background: var(--accent-light);
    color: var(--accent);
}

.stats-row {
    display: flex;
    gap: 24px;
}

.stat-item {
    flex: 1;
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: var(--title);
    line-height: 1.2;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--muted);
}

/* ===== Services ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.service-card {
    background: var(--card);
    border-radius: var(--radius-md);
    padding: 36px;
    box-shadow: var(--shadow);
    border: 1px solid transparent;
    transition: transform 300ms ease-out, box-shadow 300ms ease-out, border-color 300ms;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(79, 70, 229, 0.2);
}

.service-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent-light);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.service-name {
    font-size: 22px;
    font-weight: 600;
    color: var(--title);
    line-height: 1.3;
    letter-spacing: -0.4px;
    margin-bottom: 12px;
}

.service-desc {
    font-size: 15px;
    line-height: 1.7;
    color: var(--body);
    margin-bottom: 20px;
}

.service-link {
    font-size: 15px;
    font-weight: 600;
    color: var(--accent);
    transition: color 200ms;
}

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

/* ===== Testimonials ===== */
.testimonials-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
    scrollbar-width: none;
}

.testimonials-scroll::-webkit-scrollbar {
    display: none;
}

.testimonial-card {
    background: var(--card);
    border-radius: var(--radius-md);
    padding: 32px;
    min-width: 360px;
    flex-shrink: 0;
    box-shadow: var(--shadow);
    scroll-snap-align: start;
    transition: box-shadow 200ms;
}

.testimonial-card:hover {
    box-shadow: var(--shadow-hover);
}

.testimonial-stars {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
}

.testimonial-text {
    font-size: 16px;
    line-height: 1.7;
    color: var(--body);
    font-style: italic;
    border-left: 2px solid var(--accent);
    padding-left: 16px;
    margin-bottom: 24px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--placeholder);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--title);
}

.author-role {
    font-size: 13px;
    color: var(--muted);
}

/* ===== Experience / Timeline ===== */
.timeline {
    position: relative;
    padding-left: 32px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 3px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: rgba(79, 70, 229, 0.2);
}

.timeline-item {
    position: relative;
    padding-bottom: 40px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -32px;
    top: 6px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid var(--canvas);
    box-shadow: 0 0 0 2px var(--accent);
    transition: transform 200ms;
}

.timeline-item:hover .timeline-dot {
    transform: scale(1.3);
}

.timeline-date {
    font-size: 13px;
    font-weight: 500;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    display: block;
}

.timeline-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--title);
    line-height: 1.3;
    margin-bottom: 12px;
}

.timeline-desc {
    font-size: 15px;
    line-height: 1.7;
    color: var(--body);
    transition: color 200ms;
}

.timeline-item:hover .timeline-desc {
    color: var(--title);
}

/* ===== Contact ===== */
.contact-card {
    background: var(--card);
    border-radius: var(--radius-lg);
    padding: 64px 48px;
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
    box-shadow: var(--shadow);
}

.contact-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--title);
    letter-spacing: -1px;
    line-height: 1.1;
    margin-bottom: 16px;
}

.contact-subtitle {
    font-size: 18px;
    color: var(--muted);
    margin-bottom: 40px;
}

.contact-email {
    font-size: 20px;
    font-weight: 500;
    color: var(--accent);
    display: inline-block;
    margin-bottom: 32px;
    transition: text-decoration 150ms;
}

.contact-email:hover {
    text-decoration: underline;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
}

.social-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--placeholder);
    color: var(--body);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 200ms, color 200ms;
}

.social-btn:hover {
    background: var(--accent);
    color: #fff;
}

/* ===== Footer ===== */
.footer {
    background: var(--card);
    border-top: 1px solid var(--border);
    padding: 48px 0;
}

.footer-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-logo {
    font-size: 18px;
    font-weight: 600;
    color: var(--title);
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    font-size: 14px;
    color: var(--body);
    transition: color 150ms;
}

.footer-links a:hover {
    color: var(--title);
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-copy {
    font-size: 13px;
    color: var(--muted);
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    color: var(--muted);
    transition: color 150ms;
}

.footer-social a:hover {
    color: var(--accent);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .section {
        padding: 100px 0;
    }

    .section-title {
        font-size: 40px;
    }

    .hero-name {
        font-size: 72px;
    }

    .featured-card {
        flex-direction: column;
        padding: 36px;
    }

    .featured-left,
    .featured-right {
        flex: none;
        width: 100%;
    }

    .featured-title {
        font-size: 32px;
    }

    .works-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .work-card-large {
        grid-column: span 2;
    }

    .about-layout {
        flex-direction: column;
    }

    .about-photo {
        flex: none;
        width: 100%;
        max-width: 400px;
    }

    .about-content {
        flex: none;
        width: 100%;
    }

    .contact-title {
        font-size: 40px;
    }
}

@media (max-width: 640px) {
    .section {
        padding: 72px 0;
    }

    .section-title {
        font-size: 36px;
        margin-bottom: 32px;
    }

    .hero-name {
        font-size: 56px;
        letter-spacing: -1px;
    }

    .hero-role {
        font-size: 24px;
    }

    .hero-tagline {
        font-size: 16px;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 72px;
        left: 16px;
        right: 16px;
        background: var(--card);
        border-radius: 16px;
        box-shadow: var(--shadow-hover);
        flex-direction: column;
        padding: 16px 24px;
        gap: 16px;
    }

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

    .nav-toggle {
        display: block;
    }

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

    .work-card-large {
        grid-column: span 1;
    }

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

    .testimonial-card {
        min-width: 300px;
    }

    .featured-card {
        padding: 24px;
    }

    .featured-title {
        font-size: 28px;
    }

    .contact-card {
        padding: 40px 24px;
    }

    .contact-title {
        font-size: 36px;
    }

    .footer-layout {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }

    .footer-right {
        flex-direction: column;
        gap: 12px;
    }

    .stats-row {
        gap: 16px;
    }

    .stat-number {
        font-size: 28px;
    }

    .timeline::before {
        display: none;
    }

    .timeline {
        padding-left: 0;
    }

    .timeline-dot {
        display: none;
    }

    .timeline-item {
        padding-bottom: 24px;
        border-bottom: 1px solid var(--border);
    }

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