* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: system-ui, 'Segoe UI', 'Inter', sans-serif;
}

:root {
    --navy: #0f172a;
    --navy-mid: #1e293b;
    --blue: #3b82f6;
    --blue-dark: #2563eb;
    --grey-light: #f8fafc;
    --grey-mid: #e2e8f0;
    --grey-text: #64748b;
    --white: #ffffff;
    --radius: 16px;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
}

html { scroll-behavior: smooth; }

body {
    background: var(--white);
    color: var(--navy);
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* NAV */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--grey-mid);
    display: flex;
    align-items: center;
    padding: 0 40px;
    gap: 40px;
    z-index: 100;
}

.nav-brand {
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--navy);
    background: var(--navy);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    letter-spacing: -0.5px;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--grey-text);
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.2s ease;
}

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

.nav-cta {
    background: var(--navy);
    color: white;
    padding: 8px 20px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 700;
    transition: background 0.2s ease;
}

.nav-cta:hover { background: var(--blue); }

/* HERO */
.hero {
    min-height: 100vh;
    padding-top: 64px;
    display: flex;
    align-items: center;
    padding-left: 40px;
    padding-right: 40px;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

/* image card */
.img-card {
    display: flex;
    flex-direction: row;
    gap: 2rem;
}

.best {
    width: 160px;
    height: 160px;
    object-fit: cover;
    object-position: center top;
    border-radius: 50%;
    border: 2px solid var(--navy-mid);
    margin-bottom: 1rem;
    margin-top: 3rem;
    display: block;
}

.hero-content { flex: 1; }

.hero-tag {
    display: inline-block;
    background: #dcfce7;
    color: #166534;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 24px;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.15;
    color: var(--navy);
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-highlight {
    color: var(--blue);
}

.hero-sub {
    font-size: 1rem;
    color: var(--grey-text);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 480px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    margin-bottom: 48px;
}

.btn-primary {
    background: var(--navy);
    color: white;
    padding: 12px 28px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: background 0.2s ease;
    display: inline-block;
}

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

.btn-secondary {
    background: var(--grey-light);
    color: var(--navy);
    padding: 12px 28px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    border: 1px solid var(--grey-mid);
    transition: all 0.2s ease;
    display: inline-block;
}

.btn-secondary:hover {
    background: var(--grey-mid);
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.hero-stat span {
    display: block;
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--navy);
    line-height: 1;
    margin-bottom: 4px;
}

.hero-stat small {
    font-size: 0.78rem;
    color: var(--grey-text);
    font-weight: 600;
}

/* HERO CODE CARD */
.hero-visual { flex: 1; }

.hero-card {
    background: var(--navy);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0,0,0,0.15);
}

.hero-card-top {
    background: var(--navy-mid);
    padding: 14px 20px;
    display: flex;
    gap: 8px;
    align-items: center;
}

.hero-card-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.hero-card-dot.red { background: #ef4444; }
.hero-card-dot.yellow { background: #f59e0b; }
.hero-card-dot.green { background: #22c55e; }

.hero-card-code {
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-family: 'Courier New', monospace;
    font-size: 0.92rem;
    line-height: 1.8;
}

.c-grey { color: #475569; }
.c-blue { color: #93c5fd; }
.c-white { color: #f1f5f9; }
.c-green { color: #86efac; }
.c-yellow { color: #fde68a; }

/* ABOUT */
.about {
    padding: 100px 0;
    background: var(--grey-light);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
}

.section-tag {
    display: inline-block;
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 16px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.about-left h2 {
    font-size: 2rem;
    font-weight: 900;
    color: var(--navy);
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.about-left p {
    color: var(--grey-text);
    font-size: 0.95rem;
    line-height: 1.75;
    margin-bottom: 16px;
}

.about-left .btn-primary { margin-top: 8px; }

.skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.skill-card {
    background: white;
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease;
}

.skill-card:hover { transform: translateY(-3px); }

.skill-card span {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 10px;
}

.skill-card h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 6px;
}

.skill-card p {
    font-size: 0.8rem;
    color: var(--grey-text);
    line-height: 1.5;
}

/* PROJECTS */
.projects {
    padding: 100px 0;
    background: white;
}

.section-title {
    font-size: 2rem;
    font-weight: 900;
    color: var(--navy);
    letter-spacing: -0.5px;
    margin-bottom: 10px;
}

.section-sub {
    color: var(--grey-text);
    font-size: 0.95rem;
    margin-bottom: 48px;
}

.projects-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 24px;
}

.project-card {
    background: var(--grey-light);
    border-radius: 20px;
    padding: 32px;
    position: relative;
    border: 1px solid var(--grey-mid);
    transition: all 0.2s ease;
}

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

.project-card.featured {
    background: var(--navy);
    border-color: var(--navy);
}

.project-card.featured h3,
.project-card.featured p {
    color: white;
}

.project-card.featured p { color: rgba(255,255,255,0.7); }

.project-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--blue);
    color: white;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
}

.project-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.project-icon { font-size: 2.5rem; }

.project-link {
    color: var(--blue);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    transition: opacity 0.2s ease;
}

.project-link:hover { opacity: 0.7; }

.project-card.featured .project-link { color: #93c5fd; }

.project-card h3 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 12px;
}

.project-card p {
    font-size: 0.88rem;
    color: var(--grey-text);
    line-height: 1.7;
    margin-bottom: 20px;
}

.project-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.project-tags span {
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.7);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
}

.project-card:not(.featured) .project-tags span {
    background: white;
    color: var(--grey-text);
    border: 1px solid var(--grey-mid);
}

/* SERVICES */
.services {
    padding: 100px 0;
    background: var(--grey-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.service-card {
    background: white;
    border-radius: 20px;
    padding: 28px 22px;
    box-shadow: var(--shadow);
    position: relative;
    transition: transform 0.2s ease;
    border-top: 4px solid var(--grey-mid);
}

.service-card:hover { transform: translateY(-4px); }

.service-card.highlight { border-top-color: var(--blue); }

.service-badge {
    position: absolute;
    top: -12px;
    left: 20px;
    background: var(--blue);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 20px;
}

.service-icon {
    font-size: 2rem;
    margin-bottom: 16px;
    display: block;
}

.service-card h3 {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 10px;
    line-height: 1.3;
}

.service-card p {
    font-size: 0.82rem;
    color: var(--grey-text);
    line-height: 1.65;
    margin-bottom: 20px;
}

.service-price {
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--navy);
    padding-top: 14px;
    border-top: 1px solid var(--grey-mid);
}

/* CONTACT */
.contact {
    padding: 100px 0;
    background: white;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-left h2 {
    font-size: 2rem;
    font-weight: 900;
    color: var(--navy);
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.contact-left p {
    color: var(--grey-text);
    font-size: 0.95rem;
    line-height: 1.75;
    margin-bottom: 32px;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact-item span { font-size: 1.4rem; }

.contact-item h4 {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--grey-text);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 4px;
}

.contact-item a,
.contact-item p {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--navy);
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-item a:hover { color: var(--blue); }

.contact-card {
    background: var(--grey-light);
    border-radius: 20px;
    padding: 32px;
    border: 1px solid var(--grey-mid);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.contact-card h3 {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 4px;
}

.contact-card input,
.contact-card textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--grey-mid);
    border-radius: 10px;
    font-size: 0.92rem;
    font-family: inherit;
    outline: none;
    background: white;
    transition: border 0.2s ease;
}

.contact-card input:focus,
.contact-card textarea:focus {
    border-color: var(--blue);
}

.contact-card textarea {
    height: 120px;
    resize: none;
}

/* FOOTER */
.footer {
    background: var(--navy);
    padding: 48px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.footer-logo {
    background: white;
    color: var(--navy);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 0.85rem;
}

.footer-brand p {
    color: rgba(255,255,255,0.6);
    font-size: 0.82rem;
    line-height: 1.6;
}

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

.footer-links a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: color 0.2s ease;
}

.footer-links a:hover { color: white; }

.footer-copy {
    color: rgba(255,255,255,0.3);
    font-size: 0.78rem;
    width: 100%;
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.08);
}