* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

#content,
.sidebar {
    min-width: 0;
}

img {
    max-width: 100%;
    height: auto;
}

:root {
    --bg: #f5f5f5;
    --card: #fff;
    --text: #1f1f1f;
    --muted: #666;
    --primary: #0d47a1;
    --accent: #c62828;
    --brand-grad: linear-gradient(135deg, var(--primary), var(--accent));
    --radius: 10px;
    --shadow-sm: 0 2px 6px rgba(0, 0, 0, .1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, .12);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Quicksand", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

.site-header {
    background: var(--brand-grad);
    color: #fff;
    padding: 20px 40px;
}

.header-top {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    letter-spacing: .3px;
}

.nav-toggle {
    display: none;
    background: #ffffff22;
    color: #fff;
    border: 1px solid #ffffff55;
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
}

#primary-nav {}

.nav-list {
    list-style: none;
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    padding: 6px 4px;
    transition: color .25s;
}

.nav-link:hover {
    color: #f0c040;
}

.hero {
    text-align: center;
    margin-top: 32px;
    padding-bottom: 24px;
}

.hero img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 4px solid #fff;
    object-fit: cover;
    object-position: top center;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, .4), 0 0 15px rgba(13, 71, 161, .6);
}

.hero h1 {
    margin: 20px 0 8px;
    font-size: 28px;
    font-weight: 700;
}

.hero p {
    max-width: 560px;
    margin: 0 auto;
    font-size: 16px;
    color: #eef;
}

main {
    width: 100%;
    max-width: 1200px;
    margin: 40px auto 80px;
    padding: 20px;
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

#content {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar {
    flex: 0 0 320px;
    background: #fafafa;
    padding: 20px;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 24px;
    height: fit-content;
}

.card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.card h2 {
    font-size: 24px;
    margin-bottom: 12px;
}

#content h3 {
    font-size: 20px;
    margin: 18px 0 10px;
}

#content p {
    font-size: 16px;
    line-height: 1.8;
}

.service-list {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 10px;
}

.service-item {
    background: #f7f7f7;
    border-radius: 10px;
    padding: 16px;
    box-shadow: var(--shadow-sm);
    flex: 1 1 220px;
    transition: transform .2s, box-shadow .2s;
}

.service-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, .15);
}

.service-item h4 {
    color: var(--primary);
    margin-bottom: 6px;
}

.btn-details {
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    font-weight: 700;
    transition: background .2s, border-color .2s;
}

.btn-details:hover {
    background: #f9f9f9;
    border-color: #ccc;
}

.contact-form {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 520px;
}

.contact-form label {
    font-weight: 600;
}

.contact-form input,
.contact-form textarea {
    padding: 12px;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    font-family: "Quicksand", sans-serif;
    font-size: 15px;
    transition: border-color .2s, box-shadow .2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(13, 71, 161, .15);
    outline: none;
}

.contact-form button {
    padding: 12px;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    background: var(--brand-grad);
    transition: filter .2s, transform .05s;
}

.contact-form button:hover {
    filter: brightness(1.05);
}

.contact-form button:active {
    transform: translateY(1px);
}

.contact-info {
    margin-top: 10px;
}

.sidebar h2 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--primary);
}

.sidebar ul {
    list-style: none;
    padding-left: 0;
    margin: 0 0 14px;
}

.sidebar ul li {
    margin-bottom: 8px;
    color: var(--muted);
}

.sidebar a {
    color: var(--accent);
    text-decoration: none;
}

.sidebar a:hover {
    color: var(--primary);
}

.sidebar blockquote {
    font-style: italic;
    padding-left: 12px;
    border-left: 4px solid #ddd;
    color: #444;
    margin: 12px 0 16px;
}

.profile-media {
    margin-bottom: 16px;
    text-align: center;
}

.profile-media img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.profile-media figcaption {
    font-size: 14px;
    color: #444;
    margin-top: 8px;
}

.site-footer {
    max-width: 1200px;
    margin: -40px auto 40px;
    text-align: center;
    color: #888;
    font-size: 14px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.social-links svg {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: block;
}


.social-links {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding-left: 0;
    margin-top: 12px;
}

.social-links li {
    margin: 0;
}

.social-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid #e5e5e5;
    border-radius: 999px;
    background: #fff;
    color: var(--text);
    font-weight: 700;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: transform .05s ease, box-shadow .2s ease, border-color .2s ease, color .2s ease, background .2s ease;
}

.social-links a:hover {
    box-shadow: var(--shadow-md);
    border-color: #d6d6d6;
}

.social-links a:active {
    transform: translateY(1px);
}

.social-links a:focus-visible {
    outline: 3px solid rgba(13, 71, 161, .25);
    outline-offset: 3px;
}

.btn-soc.ig:hover {
    color: #E1306C;
    border-color: #E1306C33;
    background: #E1306C0d;
}

.btn-soc.fb:hover {
    color: #1877F2;
    border-color: #1877F233;
    background: #1877F20d;
}

.btn-soc.li:hover {
    color: #0A66C2;
    border-color: #0A66C233;
    background: #0A66C20d;
}

.btn-soc.gh:hover {
    color: #24292E;
    border-color: #24292E33;
    background: #24292E0d;
}

.btn-soc.yt:hover {
    color: #FF0000;
    border-color: #FF000033;
    background: #FF00000d;
}

.btn-soc.wa:hover {
    color: #25D366;
    border-color: #25D36633;
    background: #25D3660d;
}

.filter-controls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 10px 0 14px;
}

.chip {
    border: 1px solid #e5e5e5;
    background: #fff;
    padding: 8px 12px;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 700;
    transition: background .2s, border-color .2s, color .2s;
}

.chip.active,
.chip:hover {
    background: #f7f9ff;
    border-color: #d6e0ff;
    color: var(--primary);
}

.project-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.proj-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.proj-card h4 {
    font-size: 18px;
}

.proj-card .muted {
    color: var(--muted);
    font-size: 14px;
}

.proj-card .btn-sm {
    align-self: flex-start;
    margin-top: 6px;
    padding: 8px 12px;
    border-radius: 8px;
    background: var(--brand-grad);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
}

.timeline {
    list-style: none;
    padding-left: 0;
    position: relative;
    margin-top: 10px;
}

.timeline li {
    display: flex;
    gap: 12px;
    position: relative;
    padding-left: 8px;
}

.timeline li+li {
    margin-top: 14px;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #eaeaea;
}

.tl-point {
    width: 14px;
    height: 14px;
    background: var(--primary);
    border-radius: 50%;
    position: relative;
    left: -1px;
    margin-top: 4px;
    flex: 0 0 14px;
}

.tl-content h4 {
    margin-bottom: 2px;
}

.muted {
    color: var(--muted);
}

.cert-list {
    padding-left: 18px;
    margin-top: 6px;
}

.cert-list li+li {
    margin-top: 6px;
}

#faq details {
    background: #fff;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    padding: 12px 14px;
    margin-bottom: 10px;
}

#faq summary {
    cursor: pointer;
    font-weight: 700;
}

#faq p {
    margin-top: 6px;
}

.site-header .header-top,
.site-header .hero {
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: 16px;
}

.logo {
    font-size: clamp(18px, 1.2vw + 12px, 28px);
}

.nav-link {
    font-size: clamp(14px, 0.6vw + 10px, 16px);
}

.hero h1 {
    font-size: clamp(22px, 1.2vw + 18px, 36px);
}

.hero p {
    font-size: clamp(14px, 0.5vw + 12px, 16px);
}

.nav-toggle {
    font-size: 16px;
    line-height: 1;
    padding: 10px 14px;
    border-radius: 14px;
}

.header-top {
    flex-wrap: wrap;
}

.nav-toggle {
    margin-left: auto;
}

html,
body {
    overflow-x: hidden;
}

@media (max-width: 1024px) {
    .nav-toggle {
        display: inline-block;
        order: 3;
        margin-top: 8px;
    }

    #primary-nav {
        display: none;
        order: 4;
        width: 100%;
    }

    #primary-nav.open {
        display: block;
    }

    .nav-list {
        flex-direction: column;
        gap: 12px;
        margin-top: 10px;
    }
}

@media (max-width: 992px) {
    main {
        flex-direction: column;
    }

    .sidebar {
        position: static;
        flex-basis: auto;
    }
}

@media (max-width: 720px) {
    .site-header {
        padding: 16px 20px;
    }

    .hero h1 {
        font-size: 24px;
    }

    .nav-toggle {
        display: inline-block;
    }
}

@media (max-width: 520px) {
    .project-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero img {
        width: 120px;
        height: 120px;
    }

    .hero h1 {
        font-size: clamp(20px, 3.5vw + 8px, 26px);
    }

    .social-links {
        grid-template-columns: 1fr;
    }
}