:root {
    --bg: #f7f8fb;
    --bg-alt: #ffffff;
    --text: #222222;
    --muted: #6b7280;
    --accent: #2563eb;
    --accent-soft: rgba(37, 99, 235, 0.08);
    --border: #e5e7eb;
    --radius: 10px;
    --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.08);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Noto Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

/* Layout */

.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 60px 0;
}

.section-title {
    font-size: 2.4rem;
    margin-bottom: 10px;
    text-align: center;
    max-width: none;
}

.section-subtitle {
    text-align: center;
    color: var(--muted);
    max-width: 760px;
    margin: 0 auto;
}

.section-heading {
    width: 100%;
    padding: 0 20px 24px;
    margin-bottom: 0;
}

.section-heading .section-title,
.section-heading .section-subtitle {
    max-width: 1120px;
    margin-left: auto;
    margin-right: auto;
}

.section-heading .section-title {
    margin-bottom: 10px;
}

.about-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 48px;
    align-items: center;
}

.about-text {
    display: grid;
    gap: 24px;
    background: var(--bg-alt);
    border-radius: var(--radius);
    padding: 32px;
    border: 1px solid var(--border);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.04);
}

/* Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(247, 248, 251, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.8);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 44px;
    width: auto;
    display: block;
}

.main-nav a {
    margin-left: 18px;
    text-decoration: none;
    color: var(--muted);
    font-size: 0.95rem;
    position: relative;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.2s ease;
}

.main-nav a:hover {
    color: var(--text);
}

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

/* Hero */

.hero {
    padding-top: 100px;
    padding-bottom: 60px;
}

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 40px;
    align-items: center;
}

.hero-text h1 {
    font-size: 2.6rem;
    line-height: 1.2;
    margin-bottom: 16px;
}

.hero-text p {
    color: var(--muted);
    max-width: 520px;
    margin-bottom: 24px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-side {
    display: flex;
    justify-content: center;
}

.hero-card {
    display: grid;
    width: 100%;
    place-items: center;
    text-align: center;
    background: var(--bg-alt);
    border-radius: 18px;
    padding: 24px 24px 20px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(229, 231, 235, 0.9);
}

.hero-card h2 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.hero-card p {
    color: var(--muted);
    margin-bottom: 12px;
}

.hero-card ul {
    padding-left: 18px;
    margin: 0;
    color: var(--text);
}

.hero-shot {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid rgba(37, 99, 235, 0.2);
    margin-bottom: 18px;
}

.hero-shot {
    width: 220px;
    height: 220px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid rgba(37, 99, 235, 0.2);
    margin-bottom: 18px;
}

.about-side {
    display: grid;
    gap: 24px;
}

.about-photo-card,
.photo-gallery {
    background: var(--bg-alt);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.04);
}

.about-photo-card img,
.photo-gallery img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.about-photo-card {
    min-height: 340px;
}

.photo-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
}

.photo-gallery img {
    aspect-ratio: 4 / 3;
}

/* Buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.1s ease;
}

.btn.primary {
    background: var(--accent);
    color: #ffffff;
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.35);
}

.btn.primary:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.btn.ghost {
    background: transparent;
    color: var(--text);
    border-color: var(--border);
}

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

/* Grid helpers */

.grid {
    display: grid;
    gap: 24px;
}

/* Services */

.services-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.service-card {
    background: var(--bg-alt);
    border-radius: var(--radius);
    padding: 20px 20px 18px;
    border: 1px solid var(--border);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.04);
}

.service-card h3 {
    margin-top: 0;
    margin-bottom: 8px;
}

/* Projects */

.projects-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.project-card {
    background: var(--bg-alt);
    border-radius: var(--radius);
    padding: 20px;
    border: 1px solid var(--border);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.04);
}

.project-card h3 {
    margin-top: 0;
    margin-bottom: 8px;
}

.project-card p {
    margin-bottom: 10px;
}

.tag {
    display: inline-block;
    font-size: 0.8rem;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
}

/* About */

.about-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 24px;
    align-items: stretch;
}

.about-side,
.about-text {
    display: grid;
}

.about-box {
    background: var(--bg-alt);
    border-radius: var(--radius);
    padding: 20px;
    border: 1px solid var(--border);
    display: grid;
    align-content: center;
    min-height: 340px;
}

.about-box h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.55rem;
    text-align: center;
    letter-spacing: 0.01em;
}

.about-box ul {
    padding-left: 0;
    margin: 0;
    list-style: none;
}

.about-box li {
    position: relative;
    padding-left: 40px;
    margin-bottom: 16px;
    line-height: 1.8;
    color: var(--text);
    display: flex;
    align-items: center;
}

.about-box li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    color: var(--muted);
}

.about-text {
    display: grid;
    gap: 24px;
    background: var(--bg-alt);
    border-radius: var(--radius);
    padding: 32px;
    border: 1px solid var(--border);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.04);
    min-height: 360px;
}

.about-secondary-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
    margin-top: 24px;
}

.about-secondary-row > * {
    display: grid;
    align-content: stretch;
}

.about-photo-card {
    min-height: 340px;
    display: grid;
    place-items: center;
}

.about-photo-card img,
.photo-gallery img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.about-secondary-photo {
    margin-top: 0;
}

@media (max-width: 900px) {
    .about-secondary-row {
        grid-template-columns: 1fr;
    }
}

/* Skills */

.skills-grid {
    display: grid;
    gap: 18px;
    max-width: 640px;
    margin: 0 auto;
}

.skill-item {
    background: var(--bg-alt);
    border-radius: var(--radius);
    padding: 14px 16px 12px;
    border: 1px solid var(--border);
}

.skill-label {
    font-size: 0.95rem;
}

.skill-bar {
    margin-top: 8px;
    height: 8px;
    border-radius: 999px;
    background: #e5e7eb;
    overflow: hidden;
}

.skill-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent), #4f46e5);
}

/* Contact */

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 32px;
    align-items: flex-start;
}

.contact-form {
    background: var(--bg-alt);
    border-radius: var(--radius);
    padding: 20px;
    border: 1px solid var(--border);
}

.form-row {
    margin-bottom: 14px;
}

.form-row label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.form-row input,
.form-row textarea {
    width: 100%;
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    font-family: inherit;
    font-size: 0.95rem;
}

.form-row input:focus,
.form-row textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.25);
}

.contact-info {
    padding: 10px 0;
}

/* Footer */

.site-footer {
    border-top: 1px solid var(--border);
    padding: 18px 0;
    background: #f3f4f6;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--muted);
}

/* Animations */

.animate-in {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.animate-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */

@media (max-width: 900px) {
    .hero-inner,
    .about-inner,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 100px;
    }

    .hero-side {
        justify-content: flex-start;
    }

    .main-nav {
        display: none;
    }

    .footer-inner {
        flex-direction: column;
        gap: 6px;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .hero-text h1 {
        font-size: 2rem;
    }

    .section {
        padding: 60px 0;
    }
}
