:root {
    --bg: #071019;
    --bg-soft: #0d1826;
    --surface: #0f1b29;
    --line: rgba(176, 199, 224, 0.14);
    --text: #f3f7fb;
    --muted: #9caec2;
    --accent: #4dc7ff;
    --accent-strong: #1596dd;
    --accent-soft: rgba(77, 199, 255, 0.12);
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
    --radius-lg: 28px;
    --radius-md: 20px;
    --container: min(1000px, calc(100% - 2rem));
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family: "Space Grotesk", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top center, rgba(77, 199, 255, 0.08), transparent 24%),
        linear-gradient(180deg, #050b12 0%, #071019 100%);
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}

.container {
    width: var(--container);
    margin: 0 auto;
}

.section {
    padding: 2.6rem 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(5, 11, 18, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar {
    min-height: 5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand-block {
    display: flex;
    align-items: center;
}

.brand-logo {
    height: 72px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-links a {
    color: var(--muted);
    transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text);
}

.menu-toggle {
    display: none;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 1.8rem;
    height: 2px;
    margin: 0.32rem 0;
    background: var(--text);
    border-radius: 999px;
}

.hero {
    padding-top: 2.6rem;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-photo {
    width: 190px;
    height: 190px;
    object-fit: cover;
    object-position: center top;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.28);
    margin-bottom: 1rem;
}

.eyebrow {
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.82rem;
}

.hero h1,
.section-heading h2,
.contact-box h2 {
    font-family: "Sora", sans-serif;
    line-height: 1.08;
}

.hero h1 {
    margin-top: 0.6rem;
    font-size: clamp(2.4rem, 6vw, 4rem);
}

.hero-text,
.section-text,
.info-card p {
    color: var(--muted);
    line-height: 1.8;
}

.hero-text {
    max-width: 760px;
    margin-top: 0.8rem;
    font-size: 1.05rem;
}

.section-shell,
.info-card,
.skills-panel,
.contact-box {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015));
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.section-shell {
    padding: 1.2rem;
}

.section-heading {
    max-width: 42rem;
    margin-bottom: 0.9rem;
}

.section-heading h2,
.contact-box h2 {
    margin-top: 0.9rem;
    font-size: clamp(2rem, 4vw, 3rem);
}

.section-text {
    max-width: 70ch;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
}

.info-card {
    padding: 1.25rem;
}

.project-shot {
    width: 100%;
    height: 210px;
    object-fit: contain;
    object-position: center;
    border-radius: 16px;
    margin-bottom: 0.85rem;
    overflow: hidden;
    filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.22));
}

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

.info-card h3 {
    margin-top: 0.7rem;
    font-family: "Sora", sans-serif;
    font-size: 1.2rem;
}

.info-card p {
    margin-top: 0.65rem;
}

.project-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 1rem;
}

.skills-panel {
    padding: 1.1rem;
}

.skill-item + .skill-item {
    margin-top: 1rem;
}

.skill-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.65rem;
}

.skill-label span {
    color: var(--text);
}

.skill-label b {
    color: var(--muted);
    font-weight: 500;
}

.skill-bar {
    height: 0.9rem;
    padding: 0.16rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.skill-bar i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--accent-strong), var(--accent));
}

.contact-box {
    padding: 1.3rem;
    text-align: center;
}

.contact-box p {
    margin: 0.75rem auto 0;
}

.contact-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
    margin-top: 1rem;
    text-align: left;
}

.contact-item {
    padding: 0.85rem 0.95rem;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.contact-label {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--accent);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.contact-item a,
.contact-item span:last-child {
    color: var(--text);
    line-height: 1.6;
}

.contact-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1rem;
}

.btn {
    min-width: 11rem;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 0.95rem 1.5rem;
    border-radius: 999px;
    border: 1px solid transparent;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn-project {
    min-width: auto;
    padding: 0.78rem 1.1rem;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    color: #04111c;
    background: linear-gradient(135deg, var(--accent), #8cdfff);
}

.btn-secondary {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
}

.site-footer {
    padding: 0.85rem 0 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.site-footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.7rem;
    align-items: start;
}

.footer-brand {
    padding-right: 0;
}

.footer-brand h3 {
    font-family: "Sora", sans-serif;
    font-size: 1.3rem;
}

.footer-brand p {
    margin-top: 0.35rem;
    color: var(--muted);
    line-height: 1.45;
    font-size: 0.92rem;
}

.footer-nav {
    display: none;
}

.footer-socials {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.55rem;
    overflow-x: auto;
    padding-top: 0.2rem;
}

.social-link {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 0.7rem;
    padding: 0.65rem 0.75rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.02));
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.social-link:hover {
    transform: translateY(-2px);
    border-color: rgba(77, 199, 255, 0.35);
    background: rgba(77, 199, 255, 0.07);
}

.social-icon {
    width: 2.3rem;
    height: 2.3rem;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(77, 199, 255, 0.1);
    color: var(--accent);
}

.social-icon svg {
    width: 1rem;
    height: 1rem;
    fill: currentColor;
}

.social-label {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.social-name {
    color: var(--text);
    font-weight: 600;
    font-size: 0.95rem;
}

.social-hint {
    color: var(--muted);
    font-size: 0.8rem;
}

.footer-bottom {
    margin-top: 0.8rem;
    padding-top: 0.65rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
    color: var(--muted);
    font-size: 0.88rem;
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-delay {
    transition-delay: 0.12s;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 960px) {
    .card-grid {
        grid-template-columns: 1fr;
    }

    .site-footer-grid {
        grid-template-columns: 1fr;
    }

    .nav-links {
        position: fixed;
        top: 5rem;
        left: 1rem;
        right: 1rem;
        display: grid;
        gap: 1rem;
        padding: 1.25rem;
        border-radius: 20px;
        border: 1px solid var(--line);
        background: rgba(6, 12, 20, 0.96);
        opacity: 0;
        transform: translateY(-10px);
        pointer-events: none;
        transition: opacity 0.2s ease, transform 0.2s ease;
    }

    .nav-links.open {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .menu-toggle {
        display: block;
    }
}

@media (max-width: 640px) {
    .section {
        padding: 2.3rem 0;
    }

    .hero-photo {
        width: 150px;
        height: 150px;
    }

    .contact-links {
        flex-direction: column;
    }

    .contact-details {
        grid-template-columns: 1fr;
    }

    .project-links {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .footer-socials {
        flex-wrap: wrap;
        overflow-x: visible;
    }

    .project-shot {
        height: 180px;
    }
}
