/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', 'SF Pro Display', -apple-system, system-ui, sans-serif;
    background-color: #faf8f5;
    color: #1a1a1a;
    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; }
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}
@media (max-width: 640px) {
    .container { padding: 0 16px; }
}

/* === Typography === */
.section-title {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -0.8px;
    color: #1a1a1a;
    margin-bottom: 48px;
    line-height: 1.2;
}
@media (max-width: 640px) {
    .section-title { font-size: 28px; letter-spacing: -0.5px; margin-bottom: 32px; }
}

/* === Section Spacing === */
.section {
    padding: 120px 0;
}
@media (max-width: 1024px) {
    .section { padding: 80px 0; }
}
@media (max-width: 640px) {
    .section { padding: 64px 0; }
}

/* === Navbar === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 72px;
    background: rgba(250, 248, 245, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    transition: box-shadow 0.2s;
}
.navbar.scrolled {
    box-shadow: 0 1px 0 #e5e5e5;
}
.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}
.nav-logo {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    letter-spacing: -0.3px;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}
.nav-link {
    font-size: 15px;
    font-weight: 500;
    color: #4a4a4a;
    position: relative;
    padding-bottom: 2px;
    transition: color 0.2s;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #4f46e5;
    transition: width 0.2s;
}
.nav-link:hover {
    color: #1a1a1a;
}
.nav-link:hover::after {
    width: 100%;
}
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: #4a4a4a;
    padding: 4px;
}
@media (max-width: 640px) {
    .nav-links { display: none; }
    .hamburger { display: block; }
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: #ffffff;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    z-index: 999;
    padding: 16px 24px;
    flex-direction: column;
    gap: 4px;
}
.mobile-menu.open {
    display: flex;
}
.mobile-link {
    display: block;
    padding: 12px 0;
    font-size: 16px;
    font-weight: 500;
    color: #4a4a4a;
    border-bottom: 1px solid #f0f0f0;
    transition: color 0.2s;
}
.mobile-link:last-child { border-bottom: none; }
.mobile-link:hover { color: #1a1a1a; }

/* === Hero === */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.hero-bg-shape {
    position: absolute;
    bottom: -120px;
    right: -80px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle at 30% 30%, #4f46e5, transparent 70%);
    opacity: 0.08;
    border-radius: 50%;
    pointer-events: none;
}
@media (max-width: 640px) {
    .hero-bg-shape {
        width: 300px;
        height: 300px;
        bottom: -60px;
        right: -60px;
    }
}
.hero-content {
    text-align: center;
    max-width: 800px;
    position: relative;
    z-index: 1;
}
.hero-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    border: 2px solid #e5e5e5;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}
.hero-name {
    font-size: 80px;
    font-weight: 700;
    letter-spacing: -2px;
    color: #1a1a1a;
    line-height: 1;
    margin-bottom: 16px;
}
.hero-role {
    font-size: 28px;
    font-weight: 500;
    letter-spacing: -0.5px;
    color: #4a4a4a;
    margin-bottom: 16px;
}
.hero-tagline {
    font-size: 18px;
    font-weight: 400;
    font-style: italic;
    color: #8a8a8a;
    margin-bottom: 48px;
}
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: breathe 2s ease-in-out infinite;
    opacity: 0.4;
}
@keyframes breathe {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}
@media (max-width: 1024px) {
    .hero-name { font-size: 72px; letter-spacing: -1.5px; }
    .hero-role { font-size: 24px; }
}
@media (max-width: 640px) {
    .hero-name { font-size: 56px; letter-spacing: -1px; }
    .hero-role { font-size: 24px; }
    .hero-tagline { font-size: 16px; }
}

/* === Featured Project === */
.featured-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 48px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: box-shadow 0.3s ease-out;
}
.featured-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.featured-grid {
    display: grid;
    grid-template-columns: 60% 40%;
    gap: 48px;
    align-items: start;
}
.featured-badge {
    display: inline-block;
    background: #4f46e5;
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 20px;
}
.featured-title {
    font-size: 40px;
    font-weight: 700;
    letter-spacing: -1px;
    color: #1a1a1a;
    line-height: 1.1;
    margin-bottom: 16px;
}
.featured-desc {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.7;
    color: #4a4a4a;
    max-width: 480px;
    margin-bottom: 24px;
}
.featured-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}
.tag {
    font-size: 13px;
    font-weight: 500;
    background: #eef2ff;
    color: #4f46e5;
    padding: 6px 14px;
    border-radius: 20px;
}
.featured-preview {
    background: #f5f5f5;
    border-radius: 16px;
    aspect-ratio: 16 / 10;
    display: flex;
    align-items: center;
    justify-content: center;
}
.preview-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: #8a8a8a;
    font-size: 14px;
    font-weight: 500;
}
.preview-placeholder.sm { gap: 8px; }
.btn {
    display: inline-block;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.2s;
    text-align: center;
}
.btn-primary {
    background: #4f46e5;
    color: #ffffff;
    padding: 14px 28px;
}
.btn-primary:hover {
    background: #4338ca;
}
@media (max-width: 1024px) {
    .featured-grid { grid-template-columns: 1fr; gap: 32px; }
    .featured-title { font-size: 32px; }
}
@media (max-width: 640px) {
    .featured-card { padding: 32px 24px; }
    .featured-title { font-size: 28px; }
}

/* === Works Grid (Bento Grid) === */
.works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.work-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 32px;
    min-height: 280px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}
.work-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.work-card-large {
    min-height: 360px;
}
.work-card-large .work-preview {
    height: 60%;
}
.work-preview {
    background: #f5f5f5;
    border-radius: 12px;
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    flex-shrink: 0;
}
.work-tag {
    font-size: 12px;
    font-weight: 500;
    color: #4f46e5;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}
.work-name {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.3px;
    color: #1a1a1a;
    margin-bottom: 8px;
}
.work-card-large .work-name {
    font-size: 24px;
}
.work-desc {
    font-size: 14px;
    line-height: 1.5;
    color: #8a8a8a;
}
@media (max-width: 1024px) {
    .works-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 640px) {
    .works-grid {
        grid-template-columns: 1fr;
    }
    .work-card {
        min-height: 240px;
    }
    .work-card-large {
        min-height: 280px;
    }
}

/* === About === */
.about-grid {
    display: grid;
    grid-template-columns: 40% 60%;
    gap: 48px;
    align-items: start;
}
.about-photo {
    background: #f5f5f5;
    border-radius: 24px;
    aspect-ratio: 3 / 4;
    display: flex;
    align-items: center;
    justify-content: center;
}
.photo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}
.about-title {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: -1px;
    color: #1a1a1a;
    line-height: 1.1;
    margin-bottom: 24px;
}
.about-text {
    font-size: 16px;
    line-height: 1.8;
    color: #4a4a4a;
    max-width: 480px;
    margin-bottom: 32px;
}
.about-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}
.skill-tag {
    font-size: 14px;
    font-weight: 500;
    background: #f0f0f0;
    color: #4a4a4a;
    padding: 8px 16px;
    border-radius: 24px;
    transition: background 0.2s, color 0.2s;
    cursor: default;
}
.skill-tag:hover {
    background: #eef2ff;
    color: #4f46e5;
}
.about-stats {
    display: flex;
    gap: 24px;
}
.stat-item {
    flex: 1;
    text-align: center;
}
.stat-number {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.2;
}
.stat-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #8a8a8a;
    margin-top: 4px;
}
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .about-photo {
        max-width: 320px;
        aspect-ratio: 3 / 4;
    }
    .about-title { font-size: 40px; }
}
@media (max-width: 640px) {
    .about-photo { max-width: 100%; }
    .about-title { font-size: 32px; }
    .about-stats { gap: 16px; }
    .stat-number { font-size: 28px; }
}

/* === Services === */
.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.service-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 36px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    border: 1px solid transparent;
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    border-color: rgba(79, 70, 229, 0.2);
}
.service-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #eef2ff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}
.service-name {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.4px;
    color: #1a1a1a;
    margin-bottom: 12px;
}
.service-desc {
    font-size: 15px;
    line-height: 1.7;
    color: #4a4a4a;
    margin-bottom: 20px;
}
.service-link {
    font-size: 15px;
    font-weight: 600;
    color: #4f46e5;
    transition: color 0.2s;
}
.service-link:hover {
    color: #4338ca;
}
@media (max-width: 640px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* === Testimonials === */
.testimonials-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
}
.testimonials-scroll::-webkit-scrollbar {
    display: none;
}
.testimonial-card {
    flex: 0 0 calc(33.333% - 14px);
    min-width: 360px;
    background: #ffffff;
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    scroll-snap-align: start;
    transition: box-shadow 0.2s;
}
.testimonial-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.stars {
    display: flex;
    gap: 2px;
    margin-bottom: 20px;
}
.testimonial-text {
    font-size: 16px;
    line-height: 1.7;
    color: #4a4a4a;
    font-style: italic;
    border-left: 2px solid #4f46e5;
    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: #f0f0f0;
    flex-shrink: 0;
}
.author-name {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
}
.author-role {
    font-size: 13px;
    color: #8a8a8a;
}
@media (max-width: 640px) {
    .testimonial-card {
        flex: 0 0 100%;
        min-width: 0;
    }
}

/* === Timeline / Experience === */
.timeline {
    position: relative;
    padding-left: 32px;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(79, 70, 229, 0.2);
}
.timeline-item {
    position: relative;
    margin-bottom: 40px;
    padding-left: 0;
}
.timeline-item:last-child {
    margin-bottom: 0;
}
.timeline-dot {
    position: absolute;
    left: -36px;
    top: 4px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4f46e5;
    border: 2px solid #ffffff;
    transition: transform 0.2s;
}
.timeline-item:hover .timeline-dot {
    transform: scale(1.3);
}
.timeline-date {
    font-size: 13px;
    font-weight: 500;
    color: #4f46e5;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 8px;
}
.timeline-title {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 12px;
}
.timeline-desc {
    font-size: 15px;
    line-height: 1.7;
    color: #4a4a4a;
    transition: color 0.2s;
}
.timeline-item:hover .timeline-desc {
    color: #1a1a1a;
}
@media (max-width: 640px) {
    .timeline {
        padding-left: 0;
    }
    .timeline::before {
        display: none;
    }
    .timeline-dot {
        display: none;
    }
    .timeline-item {
        padding-bottom: 40px;
        margin-bottom: 0;
        border-bottom: 1px solid #e5e5e5;
    }
    .timeline-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
}

/* === Contact === */
.contact-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 64px 48px;
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.contact-title {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: -1px;
    color: #1a1a1a;
    margin-bottom: 16px;
}
.contact-subtitle {
    font-size: 18px;
    color: #8a8a8a;
    margin-bottom: 40px;
}
.contact-email {
    display: block;
    font-size: 20px;
    font-weight: 500;
    color: #4f46e5;
    margin-bottom: 32px;
    transition: text-decoration 0.15s;
}
.contact-email:hover {
    text-decoration: underline;
}
.contact-socials {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
}
.social-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4a4a4a;
    transition: background 0.2s, color 0.2s;
}
.social-btn:hover {
    background: #4f46e5;
    color: #ffffff;
}
@media (max-width: 640px) {
    .contact-card {
        padding: 40px 24px;
    }
    .contact-title {
        font-size: 32px;
    }
}

/* === Footer === */
.footer {
    background: #ffffff;
    border-top: 1px solid #e5e5e5;
    padding: 48px 0;
}
.footer-content {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 24px;
}
.footer-logo {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
}
.footer-links {
    display: flex;
    gap: 20px;
    justify-content: center;
}
.footer-links a {
    font-size: 14px;
    color: #4a4a4a;
    transition: color 0.15s;
}
.footer-links a:hover {
    color: #1a1a1a;
}
.footer-info {
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: flex-end;
    font-size: 13px;
    color: #8a8a8a;
}
.footer-social {
    color: #8a8a8a;
    transition: color 0.15s;
    display: flex;
}
.footer-social:hover {
    color: #4f46e5;
}
@media (max-width: 640px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-links {
        justify-content: center;
    }
    .footer-info {
        justify-content: center;
    }
}