/* Chawang Portfolio — Main CSS */

/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
    background: #060D1A;
    color: #E8EDF5;
    font-family: 'DM Sans', sans-serif;
    min-height: 100%;
}

/* ── Layout ── */
.chawang-section-wrap { padding: 100px clamp(20px, 8vw, 120px); }
.chawang-section-dark  { background: #07101C; }
.chawang-container     { max-width: 1100px; margin: 0 auto; }
.chawang-container-sm  { max-width: 900px; margin: 0 auto; }
.chawang-container-xs  { max-width: 680px; margin: 0 auto; text-align: center; }

/* ── Nav ── */
#chawang-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    transition: background 0.35s, backdrop-filter 0.35s, border-bottom 0.35s;
}
#chawang-nav.scrolled {
    background: rgba(6,13,26,0.97);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(30,58,95,0.6);
}
.nav-inner {
    padding: 0 clamp(20px, 5vw, 80px);
    display: flex; align-items: center; justify-content: space-between;
    height: 66px;
}
.nav-logo {
    font-family: 'Playfair Display', serif; font-weight: 900; font-size: 1.4rem;
    color: #fff; cursor: pointer; letter-spacing: -0.02em;
}
.nav-logo span { color: #2563EB; }
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-link {
    font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em;
    text-transform: uppercase; color: #64748B; cursor: pointer;
    transition: color 0.2s;
}
.nav-link:hover { color: #fff; }
.nav-mobile-menu {
    display: none; padding: 8px 24px 20px;
    border-top: 1px solid #1E3A5F;
}
.nav-mobile-link {
    display: block; font-size: 0.9rem; font-weight: 600;
    letter-spacing: 0.08em; text-transform: uppercase;
    color: #94A3B8; padding: 13px 0; cursor: pointer;
    border-bottom: 1px solid #0D1B2E; transition: color 0.2s;
}
.nav-mobile-link:hover { color: #fff; }
.hamburger {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 8px;
}
.hamburger span {
    display: block; width: 22px; height: 2px;
    background: #94A3B8; border-radius: 2px; transition: all 0.3s;
}
.hamburger.open span:nth-child(1) { background: #2563EB; transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { background: #2563EB; transform: rotate(-45deg) translate(5px, -5px); }

/* ── Buttons ── */
.btn-primary {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    background: #2563EB; color: #fff;
    font-family: 'DM Sans', sans-serif; font-weight: 700;
    font-size: 0.85rem; letter-spacing: 0.06em;
    padding: 13px 28px; border-radius: 6px; border: none;
    cursor: pointer; transition: all 0.25s; text-decoration: none;
}
.btn-primary:hover { background: #1D4ED8; transform: translateY(-2px); box-shadow: 0 10px 32px rgba(37,99,235,0.45); }
.btn-outline {
    display: inline-flex; align-items: center; justify-content: center;
    background: transparent; color: #60A5FA;
    font-family: 'DM Sans', sans-serif; font-weight: 700;
    font-size: 0.85rem; letter-spacing: 0.06em;
    padding: 12px 26px; border-radius: 6px; border: 1.5px solid #2563EB;
    cursor: pointer; transition: all 0.25s; text-decoration: none;
}
.btn-outline:hover { background: #2563EB; color: #fff; transform: translateY(-2px); }
.btn-full { width: 100%; }

/* ── Section Label ── */
.section-label {
    display: flex; align-items: center; gap: 10px;
    font-size: 0.72rem; font-weight: 700; letter-spacing: 0.22em;
    text-transform: uppercase; color: #2563EB; margin-bottom: 14px;
}
.section-label-bar { width: 22px; height: 1.5px; background: #2563EB; display: inline-block; }
.section-label-center { justify-content: center; }

/* ── Section Headings ── */
.section-heading {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; color: #fff;
}
.text-blue { color: #2563EB; }

/* ── Hero ── */
#hero {
    min-height: 100vh; display: flex; align-items: center;
    padding: 110px clamp(20px, 8vw, 120px) 80px;
    position: relative; overflow: hidden;
}
.hero-bg-glow-1 {
    position: absolute; top: 15%; right: 8%; width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(37,99,235,0.1) 0%, transparent 65%);
    border-radius: 50%; pointer-events: none;
}
.hero-bg-glow-2 {
    position: absolute; bottom: 5%; left: 2%; width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(99,102,241,0.07) 0%, transparent 65%);
    border-radius: 50%; pointer-events: none;
}
.hero-bg-grid {
    position: absolute; inset: 0;
    background-image: linear-gradient(rgba(37,99,235,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(37,99,235,0.03) 1px, transparent 1px);
    background-size: 64px 64px; pointer-events: none;
}
.hero-inner {
    max-width: 1100px; width: 100%; margin: 0 auto;
    display: flex; align-items: center; gap: 60px; flex-wrap: wrap;
}
.hero-content { flex: 1 1 480px; }
.hero-available {
    font-size: 0.72rem; font-weight: 700; letter-spacing: 0.22em;
    text-transform: uppercase; color: #2563EB; margin-bottom: 22px;
    display: flex; align-items: center; gap: 12px;
}
.hero-available-bar { width: 36px; height: 1.5px; background: #2563EB; }
.hero-available-dot {
    width: 9px; height: 9px; border-radius: 50%; background: #22C55E;
    animation: pulse-dot 2s ease infinite;
}
.hero-name-white {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.6rem, 6vw, 5rem); font-weight: 900;
    line-height: 1.06; letter-spacing: -0.03em; color: #fff; margin-bottom: 0;
}
.hero-name-blue {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.6rem, 6vw, 5rem); font-weight: 900;
    line-height: 1.06; letter-spacing: -0.03em; color: #2563EB; margin-bottom: 24px;
}
.hero-desc {
    font-size: clamp(0.95rem, 1.8vw, 1.1rem); font-weight: 300;
    color: #94A3B8; line-height: 1.75; margin-bottom: 36px; max-width: 480px;
}
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 56px; }
.hero-stats {
    display: flex; gap: 44px; flex-wrap: wrap;
    padding-top: 32px; border-top: 1px solid #0D1B2E;
}
.hero-stat-number {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 900; color: #fff; line-height: 1;
}
.hero-stat-number .suffix { color: #2563EB; }
.hero-stat-label {
    font-size: 0.72rem; font-weight: 600; color: #475569;
    letter-spacing: 0.1em; text-transform: uppercase; margin-top: 6px;
}

/* Profile Photo */
.hero-photo-wrap {
    flex: 0 0 auto; display: flex; justify-content: center;
    animation: float 5s ease-in-out infinite;
}
.hero-photo-inner {
    background: linear-gradient(135deg, #0D1B2E 0%, #1E3A5F 100%);
    border: 2px solid #1E3A5F;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; position: relative;
}
.hero-photo-inner img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo-placeholder { text-align: center; padding: 20px; }
.hero-photo-placeholder-icon { font-size: 3.5rem; margin-bottom: 8px; }
.hero-photo-placeholder-text {
    font-size: 0.7rem; font-weight: 600; color: #2563EB;
    letter-spacing: 0.1em; text-transform: uppercase;
}
.hero-photo-corner {
    position: absolute; top: 0; right: 0; width: 40px; height: 40px;
    background: linear-gradient(135deg, transparent 50%, rgba(37,99,235,0.3) 50%);
}

/* ── About ── */
#about { padding: 100px clamp(20px, 8vw, 120px); border-top: 1px solid #0A1628; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px 80px; align-items: center; }
.about-bio { font-size: 0.95rem; font-weight: 300; color: #94A3B8; line-height: 1.85; margin-bottom: 16px; }
.about-cards-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.about-card {
    background: #0A1628; border: 1px solid #1E3A5F; border-radius: 10px;
    padding: 22px 18px; cursor: default; transition: all 0.3s;
}
.about-card:hover { border-color: #2563EB; transform: translateY(-4px); }
.about-card-icon { font-size: 1.5rem; margin-bottom: 10px; }
.about-card-label {
    font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em;
    text-transform: uppercase; color: #475569; margin-bottom: 4px;
}
.about-card-value { font-size: 0.92rem; font-weight: 600; color: #E8EDF5; transition: color 0.2s; }
.about-card:hover .about-card-value { color: #60A5FA; }

/* ── Services ── */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.service-card {
    background: #0A1628; border: 1px solid #1E3A5F; border-radius: 10px;
    padding: 32px 28px; cursor: default; transition: all 0.3s;
}
.service-card:hover { border-color: #2563EB; transform: translateY(-5px); }
.service-icon { font-size: 2rem; margin-bottom: 18px; }
.service-title {
    font-family: 'Playfair Display', serif; font-size: 1.1rem;
    font-weight: 700; color: #fff; margin-bottom: 12px; line-height: 1.3;
}
.service-desc { font-size: 0.86rem; font-weight: 300; color: #64748B; line-height: 1.75; }

/* ── Projects ── */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.project-card {
    background: #0A1628; border: 1px solid #1E3A5F; border-radius: 10px;
    overflow: hidden; cursor: default; transition: all 0.3s; display: flex; flex-direction: column;
}
.project-card-bar { height: 5px; }
.project-card-body { padding: 26px 26px 30px; flex: 1; display: flex; flex-direction: column; }
.project-tag {
    display: inline-block; font-size: 0.68rem; font-weight: 700;
    letter-spacing: 0.12em; text-transform: uppercase; padding: 4px 10px; border-radius: 3px;
}
.project-title {
    font-family: 'Playfair Display', serif; font-size: 1.25rem;
    font-weight: 700; color: #fff; margin: 14px 0 12px; line-height: 1.25;
}
.project-desc { font-size: 0.85rem; font-weight: 300; color: #64748B; line-height: 1.75; margin-bottom: 18px; flex: 1; }
.project-tech { display: flex; flex-wrap: wrap; gap: 6px; }
.tech-chip {
    display: inline-block; font-size: 0.7rem; font-weight: 600;
    padding: 5px 11px; border-radius: 4px; background: #091422;
    border: 1px solid #1E3A5F; color: #60A5FA; cursor: default;
    transition: all 0.2s; letter-spacing: 0.04em;
}
.tech-chip:hover {
    background: #1E3A5F; border-color: #2563EB; color: #fff;
    box-shadow: 0 0 12px rgba(37,99,235,0.4); transform: translateY(-2px);
}

/* ── Skills ── */
.skills-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 56px; }
.skill-item { cursor: default; }
.skill-header { display: flex; justify-content: space-between; margin-bottom: 8px; }
.skill-name { font-size: 0.88rem; font-weight: 600; color: #CBD5E1; transition: color 0.2s; }
.skill-item:hover .skill-name { color: #60A5FA; }
.skill-pct { font-size: 0.78rem; font-weight: 700; color: #2563EB; }
.skill-track { height: 6px; background: #1E3A5F; border-radius: 4px; overflow: hidden; }
.skill-fill {
    height: 100%; border-radius: 4px; width: 0%;
    background: linear-gradient(90deg, #1D4ED8, #60A5FA);
    transition: width 1.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s;
}
.skill-item:hover .skill-fill { box-shadow: 0 0 12px rgba(96,165,250,0.6); }

/* ── Digital Products ── */
.products-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.products-intro { font-size: 0.95rem; font-weight: 300; color: #64748B; max-width: 480px; margin: 10px auto 0; }
.product-card {
    background: #0A1628; border: 1px solid #1E3A5F; border-radius: 14px;
    overflow: hidden; cursor: default; transition: all 0.3s;
    display: flex; flex-direction: column;
}
.product-card:hover { border-color: #2563EB; transform: translateY(-6px); }
.product-img {
    height: 160px; display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden;
    background: linear-gradient(135deg, #0D1B2E 0%, #1E3A5F 100%);
}
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.product-emoji { font-size: 3.5rem; }
.product-badge {
    position: absolute; top: 12px; right: 12px;
    background: rgba(34,197,94,0.15); border: 1px solid rgba(34,197,94,0.4);
    border-radius: 20px; padding: 4px 10px;
    font-size: 0.65rem; font-weight: 700; color: #22C55E;
    letter-spacing: 0.06em; text-transform: uppercase;
}
.product-body { padding: 22px 24px 24px; flex: 1; display: flex; flex-direction: column; }
.product-name {
    font-family: 'Playfair Display', serif; font-size: 1.2rem;
    font-weight: 700; color: #fff; margin-bottom: 8px; line-height: 1.3;
}
.product-caption { font-size: 0.83rem; font-weight: 300; color: #64748B; line-height: 1.7; margin-bottom: 20px; flex: 1; }
.product-price { margin-bottom: 18px; display: flex; align-items: baseline; gap: 6px; }
.product-price-amount {
    font-family: 'Playfair Display', serif; font-size: 2rem;
    font-weight: 900; color: #2563EB;
}
.product-price-label { font-size: 0.75rem; font-weight: 700; color: #475569; letter-spacing: 0.08em; }
.product-buy-btn {
    width: 100%; background: #2563EB; color: #fff;
    font-family: 'DM Sans', sans-serif; font-weight: 700; font-size: 0.88rem;
    letter-spacing: 0.04em; padding: 13px 20px; border-radius: 8px; border: none;
    cursor: pointer; transition: all 0.25s;
    display: flex; align-items: center; justify-content: center; gap: 8px;
}
.product-buy-btn:hover { background: #1D4ED8; box-shadow: 0 8px 28px rgba(37,99,235,0.5); transform: scale(1.02); }

/* ── Contact ── */
.contact-card {
    background: #0A1628; border: 1px solid #1E3A5F; border-radius: 14px;
    padding: 40px clamp(20px, 5vw, 48px); text-align: left;
}
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.contact-field { margin-bottom: 14px; }
.contact-label {
    display: block; font-size: 0.7rem; font-weight: 700;
    letter-spacing: 0.1em; text-transform: uppercase; color: #475569; margin-bottom: 7px;
}
.contact-input {
    width: 100%; background: #091422; border: 1px solid #1E3A5F; border-radius: 6px;
    color: #E8EDF5; font-family: 'DM Sans', sans-serif; font-size: 0.9rem;
    padding: 13px 15px; outline: none; transition: border-color 0.2s, box-shadow 0.2s;
}
.contact-input:focus { border-color: #2563EB; box-shadow: 0 0 0 3px rgba(37,99,235,0.15); }
.contact-input::placeholder { color: #334155; }
.contact-hint {
    font-size: 0.72rem; color: #334155; text-align: center; margin-top: 14px;
}

/* ── Footer ── */
#chawang-footer {
    border-top: 1px solid #0A1628;
    padding: 28px clamp(20px, 8vw, 120px);
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
}
.footer-logo { font-family: 'Playfair Display', serif; font-weight: 900; font-size: 1.2rem; color: #fff; }
.footer-logo span { color: #2563EB; }
.footer-copy { font-size: 0.78rem; color: #334155; }
.footer-socials { display: flex; gap: 24px; }
.footer-social-link {
    font-size: 0.78rem; font-weight: 600; color: #475569;
    text-decoration: none; transition: color 0.2s;
}
.footer-social-link:hover { color: #60A5FA; }

/* ── Animations ── */
.fade-in { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-12px)} }
@keyframes pulse-dot {
    0%,100%{box-shadow:0 0 0 0 rgba(34,197,94,0.5)}
    50%{box-shadow:0 0 0 6px rgba(34,197,94,0)}
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .skills-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hamburger { display: flex; }
    .nav-mobile-menu.open { display: block; }
    .hero-photo-wrap { display: flex; justify-content: center; margin-top: 32px; }
    .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .hero-btns { flex-direction: column; }
    .about-cards-grid { grid-template-columns: 1fr; }
    .hero-stats { gap: 24px; }
}
