:root {
    --bg-primary: #140204;
    --bg-secondary: #3b070b;
    --text-primary: #f8f9ff;
    --text-secondary: #ffd1d7;
    --accent-main: #ff243f;
    --accent-alt: #ff7a1a;
    --card-bg: rgba(46, 8, 14, 0.72);
    --line-color: rgba(255, 255, 255, 0.14);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background:
        radial-gradient(circle at 15% 20%, #7a111d 0%, transparent 36%),
        radial-gradient(circle at 85% 0%, #9e2e08 0%, transparent 30%),
        linear-gradient(155deg, var(--bg-primary), var(--bg-secondary));
    min-height: 100vh;
}

a {
    color: inherit;
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: top 0.35s ease;
    background: rgba(35, 4, 9, 0.76);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line-color);
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.95rem 1.1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.03em;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.3rem;
    font-size: 0.92rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    transition: color 0.25s ease;
}

.nav-links a:hover {
    color: #ffffff;
}

.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6.7rem 1.1rem 3rem;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    width: 26rem;
    height: 26rem;
    border-radius: 50%;
    filter: blur(45px);
    opacity: 0.35;
}

.hero-glow-left {
    left: -9rem;
    top: 8rem;
    background: #ff2742;
}

.hero-glow-right {
    right: -6rem;
    bottom: 4rem;
    background: #ff6a1f;
}

.hero-content {
    width: min(1120px, 100%);
    position: relative;
    z-index: 2;
}

.hero-layout {
    display: grid;
    grid-template-columns: 1fr minmax(240px, 360px);
    gap: 2rem;
    align-items: center;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.11em;
    color: #ffb2bb;
    font-size: 0.76rem;
}

.hero-copy h1 {
    font-size: clamp(2.2rem, 4.6vw, 4rem);
    line-height: 1.05;
    margin-bottom: 1rem;
}

.hero-copy p {
    max-width: 52ch;
    color: var(--text-secondary);
}

.typing-text + .typing-text {
    margin-top: 0.25rem;
}

.hero-actions {
    margin-top: 1.7rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.78rem 1.15rem;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background: linear-gradient(110deg, var(--accent-main), #ff6a1f);
    box-shadow: 0 0 26px rgba(255, 36, 63, 0.45);
}

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

.cta-outline {
    background: transparent;
    border: 1px solid #ff8d9b;
    box-shadow: none;
}

.hero-photo-card {
    background: var(--card-bg);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.8rem;
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.38);
    transform: perspective(800px) rotateY(-6deg) rotateX(4deg);
}

.hero-photo {
    display: block;
    width: 100%;
    border-radius: 18px;
    object-fit: cover;
    aspect-ratio: 3 / 4;
}

.about,
.contact,
.general-section,
.resume-section,
.projects-section {
    max-width: 1120px;
    margin: 0 auto;
    padding: 2.5rem 1.1rem;
}

.about-content,
.contact-content {
    max-width: 850px;
    margin: 0 auto;
}

.about h1,
.contact h2,
.page-hero h1 {
    margin-bottom: 0.85rem;
    text-align: center;
    font-size: clamp(1.65rem, 3vw, 2.35rem);
}

.about-text h3 {
    text-align: center;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-links a {
    width: 3.2rem;
    height: 3.2rem;
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 1.3rem;
    color: #ffffff;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid var(--line-color);
}

.social-links a:hover {
    background: rgba(255, 255, 255, 0.18);
}

.page-main {
    max-width: 1120px;
    margin: 0 auto;
    padding-top: 4.6rem;
}

.page-hero {
    text-align: center;
    padding: 3rem 1.1rem 1rem;
}

.page-hero p,
.project-notes p {
    color: var(--text-secondary);
}

.project-3d-section {
    perspective: 1200px;
}

.project-orbit {
    min-height: 420px;
    border-radius: 24px;
    border: 1px solid var(--line-color);
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 36, 63, 0.28), transparent 40%),
        radial-gradient(circle at 80% 40%, rgba(255, 122, 26, 0.22), transparent 45%),
        rgba(30, 7, 11, 0.9);
    position: relative;
    overflow: hidden;
}

.project-node {
    position: absolute;
    text-decoration: none;
    transform-style: preserve-3d;
    transition: transform 0.18s ease-out;
    will-change: transform;
    border-radius: 18px;
}

.node-core {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    min-width: 180px;
    min-height: 108px;
    padding: 1rem 1.1rem;
    border-radius: 18px;
    background: linear-gradient(130deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.04));
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.35);
    transform: translateZ(24px);
}

.node-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.node-meta {
    color: #ffe1e5;
    font-size: 0.85rem;
}

.node-billbuddy {
    top: 18%;
    left: 14%;
    animation: floatNode 7s ease-in-out infinite;
}

.node-github {
    top: 55%;
    left: 32%;
    animation: floatNode 9s ease-in-out infinite reverse;
}

.node-profile {
    top: 30%;
    right: 14%;
    animation: floatNode 8s ease-in-out infinite;
}

.project-notes {
    padding-top: 1.15rem;
    text-align: center;
}

@keyframes floatNode {
    0%, 100% {
        transform: translateY(0) rotateZ(0deg);
    }
    50% {
        transform: translateY(-11px) rotateZ(1.3deg);
    }
}

.resume-page {
    max-width: 880px;
}

.resume-highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.8rem;
    margin-top: 0.2rem;
}

.resume-highlight {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    padding: 0.9rem;
}

.resume-highlight h3 {
    font-size: 0.98rem;
    margin-bottom: 0.35rem;
}

.resume-highlight p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.resume-header,
.resume-section,
.general-section {
    background: var(--card-bg);
    border: 1px solid var(--line-color);
    border-radius: 16px;
    margin-bottom: 1rem;
    padding: 1.35rem;
}

.resume-header {
    display: flex;
    align-items: center;
    gap: 1.3rem;
}

.resume-headshot {
    width: 110px;
    height: 110px;
    border-radius: 999px;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.35);
}

.resume-name,
.resume-section h2,
.general-section h2 {
    color: #ffffff;
}

.resume-contact-line,
.resume-meta,
.resume-detail,
.resume-bullets li,
.skills-label,
.skills-line,
.general-section p,
.general-section ul {
    color: var(--text-secondary);
}

.resume-section-title {
    color: #ff9aa7;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
}

.resume-bullets {
    list-style: none;
    padding-left: 0;
}

.resume-bullets li {
    padding-left: 1rem;
    position: relative;
    margin-bottom: 0.35rem;
}

.resume-bullets li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #ff5d74;
}

.general-section ul {
    padding-left: 1.1rem;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.9rem;
}

.photo-card {
    margin: 0;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(0);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.photo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}

.photo-card img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 220px;
    object-fit: cover;
}

.instagram-card {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 14px;
    padding: 0.85rem;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.instagram-card:hover {
    transform: translateY(-3px);
    border-color: #ff6074;
}

.instagram-card i {
    font-size: 1.6rem;
    color: #ff9cab;
}

.instagram-title {
    font-weight: 600;
    color: #fff;
}

.instagram-meta {
    color: var(--text-secondary);
    font-size: 0.88rem;
}

@media (max-width: 880px) {
    .hero-layout {
        grid-template-columns: 1fr;
    }

    .hero-photo-card {
        max-width: 360px;
        margin: 0 auto;
    }
}

@media (max-width: 720px) {
    .nav-content {
        flex-direction: column;
        gap: 0.65rem;
    }

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

    .project-orbit {
        min-height: 500px;
    }

    .node-billbuddy {
        top: 14%;
        left: 8%;
    }

    .node-github {
        top: 62%;
        left: 11%;
    }

    .node-profile {
        top: 36%;
        right: 8%;
    }

    .resume-header {
        flex-direction: column;
        text-align: center;
    }
}