:root {
    --navy-950: #050f24;
    --navy-900: #07162e;
    --navy-800: #0b1d3a;
    --navy-700: #142b52;
    --navy-600: #1e3a66;
    --white: #f8fbff;
    --white-soft: #eef2f7;
    --accent: #f0c574;
    --accent-strong: #f5a72a;
    --teal: #5ee0d2;
    --shadow: 0 30px 60px rgba(7, 22, 46, 0.22);
    --glass: rgba(255, 255, 255, 0.08);
    --border: rgba(255, 255, 255, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Space Grotesk", "Segoe UI", sans-serif;
    color: var(--white);
    background: radial-gradient(circle at top left, #15335f 0%, #0b1d3a 38%, #050f24 100%);
    min-height: 100vh;
}

p {
    margin: 0 0 1rem;
    line-height: 1.7;
}

p:last-child {
    margin-bottom: 0;
}

img {
    max-width: 100%;
}

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

.page {
    position: relative;
    overflow-x: hidden;
}

.hero {
    position: relative;
    padding: 2.5rem clamp(1.5rem, 4vw, 4.5rem) 4rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.parallax {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.parallax-layer {
    position: absolute;
    transform: translate3d(0, 0, 0);
    transition: transform 0.2s ease-out;
}

.orb {
    background: radial-gradient(circle, rgba(240, 197, 116, 0.65), rgba(11, 29, 58, 0));
    border-radius: 50%;
    filter: blur(2px);
}

.orb-large {
    width: 420px;
    height: 420px;
    top: -120px;
    right: -80px;
}

.orb-small {
    width: 220px;
    height: 220px;
    bottom: 10%;
    left: -80px;
}

.ring {
    width: 320px;
    height: 320px;
    border: 1px solid rgba(240, 197, 116, 0.3);
    border-radius: 50%;
    top: 15%;
    left: 25%;
}

.glow {
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(94, 224, 210, 0.3), rgba(7, 22, 46, 0));
    top: 45%;
    right: -160px;
}

.grid {
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 120px 120px;
    opacity: 0.25;
    top: 0;
    left: 0;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 1rem;
    z-index: 2;
    padding: 0.85rem 1.5rem;
    background: rgba(7, 22, 46, 0.7);
    backdrop-filter: blur(16px);
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: white;
    display: grid;
    place-items: center;
    font-family: "Playfair Display", serif;
    font-size: 0.7rem;
}

.brand-text {
    letter-spacing: 0.02em;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    font-size: 0.95rem;
}

.nav-links a {
    color: rgba(248, 251, 255, 0.78);
}

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

.hero-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text {
    max-width: 620px;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.4em;
    font-size: 0.75rem;
    color: rgba(248, 251, 255, 0.7);
    margin-bottom: 1rem;
}

.hero h1 {
    font-family: "Playfair Display", serif;
    font-size: clamp(2.8rem, 5vw, 4.5rem);
    margin: 0 0 1.2rem;
}

.lead {
    font-size: 1.1rem;
    line-height: 1.75;
    color: rgba(248, 251, 255, 0.82);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 1.8rem;
    border-radius: 999px;
    font-weight: 600;
    border: 1px solid transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    font-family: inherit;
    text-align: center;
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: #132341;
}

.btn-ghost {
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--white);
    background: transparent;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
}

.tech-badge {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.06);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    box-shadow: 0 16px 30px rgba(7, 22, 46, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.tech-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 34px rgba(7, 22, 46, 0.3);
}

.tech-badge svg,
.tech-badge img {
    width: 28px;
    height: 28px;
    display: block;
}

.tech-badge img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.tech-badge svg {
    fill: currentColor;
}

.tech-badge img {
    filter: grayscale(1) brightness(1.25);
    transition: filter 0.2s ease;
}

.tech-badge:hover img {
    filter: none;
}

.tech-badge[data-tech="php"]:hover {
    background-color: white;
    color: #777bb4;
    border-color: rgba(119, 123, 180, 0.7);
}

.tech-badge[data-tech="javascript"]:hover {
    background-color: white;
    color: #f7df1e;
    border-color: rgba(247, 223, 30, 0.7);
}

.tech-badge[data-tech="mysql"]:hover {
    background-color: white;
    color: #4479a1;
    border-color: rgba(68, 121, 161, 0.7);
}

.tech-badge[data-tech="java"]:hover {
    background-color: white;
    color: #83a1d0;
    border-color: rgba(83, 130, 161, 0.7);
}

.hero-card {
    background: rgba(7, 22, 46, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: var(--shadow);
    display: grid;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.hero-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(130deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0));
    opacity: 0.4;
    z-index: 0;
}

.avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: grid;
    place-items: center;
    font-family: "Playfair Display", serif;
    font-size: 1.8rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 1;
}

.hero-card-body {
    position: relative;
    z-index: 1;
}

.hero-card h2 {
    margin: 0 0 0.6rem;
    font-size: 1.5rem;
}

.hero-card p {
    margin: 0;
    color: rgba(248, 251, 255, 0.78);
    line-height: 1.6;
}

.hero-stats {
    display: grid;
    gap: 1.2rem;
    margin-top: 1.5rem;
}

.stat-number {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0;
}

.stat-label {
    margin: 0.2rem 0 0;
    color: rgba(248, 251, 255, 0.7);
    font-size: 0.9rem;
}

.scroll-indicator {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: rgba(248, 251, 255, 0.6);
    margin-top: auto;
    z-index: 1;
}

.scroll-indicator .line {
    width: 36px;
    height: 1px;
    background: rgba(248, 251, 255, 0.6);
}

.section {
    padding: 5rem clamp(1.5rem, 5vw, 6rem);
    position: relative;
}

.section-light {
    background: var(--white);
    color: var(--navy-900);
}

.section-light .eyebrow {
    color: rgba(7, 22, 46, 0.6);
}

.section-dark {
    background: var(--navy-900);
    color: var(--white);
}

.section-dark::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(94, 224, 210, 0.15), rgba(7, 22, 46, 0));
    opacity: 0.6;
    pointer-events: none;
}

.section-header {
    max-width: 760px;
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 1;
}

.section-header h2 {
    font-family: "Playfair Display", serif;
    font-size: clamp(2rem, 3vw, 3rem);
    margin: 0.6rem 0 0;
}

.about-grid,
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.project-card {
    border-radius: 22px;
    border: 1px solid rgba(7, 22, 46, 0.08);
    background: var(--white);
    box-shadow: 0 26px 50px rgba(7, 22, 46, 0.1);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 30px 60px rgba(7, 22, 46, 0.18);
}

.project-shot {
    background: linear-gradient(130deg, #0b1d3a, #1e3a66);
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.project-shot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.project-body {
    padding: 1.8rem;
    display: grid;
    gap: 0.75rem;
}

.project-body h3 {
    margin: 0;
    font-size: 1.2rem;
}

.project-body p {
    margin: 0;
    color: rgba(7, 22, 46, 0.7);
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.project-tags span {
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(7, 22, 46, 0.15);
    font-size: 0.8rem;
    color: rgba(7, 22, 46, 0.7);
}

.project-url {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--navy-700);
}

.about-card {
    padding: 2rem;
    border-radius: 20px;
    background: rgba(7, 22, 46, 0.05);
    border: 1px solid rgba(7, 22, 46, 0.08);
    box-shadow: 0 20px 40px rgba(7, 22, 46, 0.08);
}

.about-card h3 {
    margin-top: 0;
}

.about-card ul {
    padding-left: 1.2rem;
    margin: 1rem 0 0;
}

.about-card li {
    margin-bottom: 0.6rem;
}

.skills-grid,
.value-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

.skill-card,
.value-card {
    padding: 1.8rem;
    border-radius: 18px;
    background: var(--glass);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
}

.skill-card h3,
.value-card h3 {
    margin-top: 0;
}

.skill-card p,
.value-card p {
    color: rgba(248, 251, 255, 0.78);
    line-height: 1.6;
}

.timeline {
    display: grid;
    gap: 1.5rem;
}

.timeline-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.5rem;
    align-items: start;
}

.timeline-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent);
    margin-top: 0.4rem;
    box-shadow: 0 0 0 6px rgba(240, 197, 116, 0.2);
}

.timeline-content {
    background: rgba(7, 22, 46, 0.05);
    border-radius: 18px;
    padding: 1.6rem;
    border: 1px solid rgba(7, 22, 46, 0.08);
}

.timeline-content h3 {
    margin-top: 0;
}

.timeline-period {
    font-weight: 600;
    margin-bottom: 0.6rem;
    color: rgba(7, 22, 46, 0.7);
}

.contact-card {
    padding: 2rem;
    border-radius: 22px;
    background: rgba(7, 22, 46, 0.05);
    border: 1px solid rgba(7, 22, 46, 0.08);
    box-shadow: 0 24px 48px rgba(7, 22, 46, 0.1);
}

.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1.5rem 0;
}

.contact-note {
    font-size: 0.9rem;
    color: rgba(7, 22, 46, 0.6);
}

.contact-form {
    display: grid;
    gap: 1rem;
    padding: 2rem;
    border-radius: 22px;
    background: var(--white);
    border: 1px solid rgba(7, 22, 46, 0.08);
    box-shadow: 0 24px 48px rgba(7, 22, 46, 0.08);
}

.contact-form label {
    display: grid;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--navy-900);
}

.contact-form input,
.contact-form textarea {
    padding: 0.75rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(7, 22, 46, 0.15);
    font-family: inherit;
    font-size: 1rem;
}

.contact-form button {
    justify-self: start;
}

.footer {
    padding: 2.5rem;
    text-align: center;
    background: var(--navy-950);
    color: rgba(248, 251, 255, 0.6);
}

[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 900px) {
    .nav {
        flex-direction: column;
        gap: 0.75rem;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .hero {
        padding-top: 1.5rem;
    }
}

@media (max-width: 700px) {
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-card {
        padding: 1.6rem;
    }

    .scroll-indicator {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }

    [data-animate] {
        opacity: 1;
        transform: none;
    }
}
