:root {
    --primary-700: hsl(240, 73%, 10%);
    --neutral-300: hsl(0, 0%, 83%);
    --neutral-400: hsl(0, 0%, 100%);
    --accent-300: hsl(39, 100%, 40%);
    --accent-400: hsl(39, 100%, 50%);

    --background: var(--primary-700);

    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    color: var(--neutral-400);
}

::selection {
    color: var(--neutral-400);
    background-color: var(--accent-300);
}

html {
    height: 100%;
}

body {
    background-color: var(--background);
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}

h1 {
    text-align: center;
    font-size: 6rem;
    line-height: 1;
    font-family: 'Roboto Condensed', sans-serif;
    letter-spacing: 0.26em;
    text-transform: uppercase;
}

h1 > * {
    display: block;
}

h1.name {
    font-weight: bold;
    font-size: 9.4vh;
    padding-top: 20vh;
    font-weight: bold;
    position: absolute;
    width: 100%;
}



h1.name > :last-child {
    font-size: 0.75em;
    font-weight: 300;
}


.desig {
    font-size: 2.2vh;
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.35em;
    color: var(--accent-400);
    position: absolute;
    width: 100%;
    text-align: center;
    top: 42vh;
    pointer-events: none;
}

main {
    line-height: 1.8;
    letter-spacing: 0.05em;
    padding-inline: max(calc((100% - 50rem) / 2), 1rem);
    margin-top: 5rem;
}

p {
    color: var(--neutral-300);
}

a {
    color: inherit;
}

a:focus-visible {
    outline: 1px solid var(--accent-400);
}

.centered {
    text-align: center;
}

#sky {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
}

.star-grid {    
    stroke: white;
    stroke-width: 3px;
    fill: none;
    opacity: 0.04;
}

.ignore-pointer {
    pointer-events: none;
}

.const-group-bb:focus {
    outline: none;
}

.const-group-bb:focus-visible {
    outline: 1px solid var(--accent-400);
}

.const-star {
    fill: #ffebd8;
}

.const-let {
    font-family: 'Tangerine', cursive;
    font-weight: bold;
    dominant-baseline: middle;
    text-anchor: middle;
}

.const-label {
    text-transform: uppercase;
    opacity: 0.2;
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 300;
    font-size: 2.3vh;
    letter-spacing: 0.25em;
    fill: white;
    dominant-baseline: middle;
    text-anchor: middle;
}

.const-sub {
    opacity: 0.65;
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 300;
    font-size: 3.45vh;
    font-style: italic;
    letter-spacing: 0.075em;
    dominant-baseline: middle;
    text-anchor: middle;
}

.const-line {
    stroke: rgba(255, 255, 255, 0.2);
}

.home-btn {
    display: block;
    position: fixed;
    top: 5rem;
    left: 3rem;
    transform: scale(0.7) rotate(-5deg);
    transition: transform 0.15s ease-in-out, outline 0s linear 0s;
    text-decoration: none;
}

.home-btn::after {
    content: attr(title);
    color: var(--accent-400);
    opacity: 0;
    transition: opacity 0s linear 0s;
}

.home-btn:hover, .home-btn:focus-visible {
    transform: scale(1);
    transition: transform 0.15s ease-in-out, outline 0s linear 0.15s;
}

.home-btn:focus-visible {
    outline: 1px solid var(--accent-400);
}

.home-btn:focus-visible::after {
    opacity: 1;
    transition: opacity 0s linear 0.15s;
}

.home-btn > * {
    height: 10vh;
    width: auto;
    transform: rotate(-25deg);
}

.spaced {
    padding-top: 1em;
}

.const-page {
    min-height: 100vh;

    /* prevent collapsing margins */
    padding: 0.05px;
}

.parallax-slider {
    opacity: 0.1;
    mix-blend-mode: screen;
}

main.planets-wrapper {
    margin-top: 5rem;
    padding-inline: calc((100% - 40rem) / 2);

    --orbit-buffer: 18rem;
    margin-bottom: var(--orbit-buffer);
}

@supports (overflow-clip-margin: padding-box) {
    main.planets-wrapper {        
        overflow: clip;
        overflow-clip-margin: padding-box var(--orbit-buffer); 
    }
}

.planet-container {
    font-variant: small-caps;
    font-size: 2rem;
    letter-spacing: 0.1em;
    height: 11rem;
    position: relative;
    pointer-events: none;
}

.planet-container:nth-child(odd)::before {
    content: '';
    width: 200vw;
    z-index: -1;
    border: none;
    border-top: 2px dashed white;
    opacity: 0.2;
    display: block;
    position: absolute;
    top: 10rem;
    left: 10rem;
    transform: translateX(-50%) rotate(-30deg);
}

.planet-container:nth-child(even) .planet-link {
    margin-left: auto;
}

.planet-link {
    pointer-events: all;
    width: 20rem;
    height: 20rem;
    display: block;
    border-radius: 100vh;
    position: relative;
    box-shadow: 0px 0px 15.4px 0px rgba(255, 255, 255, 0.10);
    transition: transform 0.15s ease-in-out;

}

.planet-link::after {
    content: '';
    position: absolute;
    inset: 0;
    background-color: #000;
    display: block;
    border-radius: 100vh;
    box-shadow: -14px -24px 21.2px -19px rgba(255, 255, 255, 0.90) inset;
    mix-blend-mode: screen;
    transition: box-shadow 0.15s ease-in-out;
}

.planet-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: #EBEBEB;
    outline: 1px solid black;
    display: block;
    border-radius: 100vh;
    mix-blend-mode: multiply;
    box-shadow: 28px 50px 20px -10px rgba(0, 0, 0, 0.90) inset, 80px 150px 20px -75px rgba(0, 0, 0, 0.50) inset;
    transition: box-shadow 0.15s ease-in-out;
}

.planet-link:hover, .planet-link:focus-visible {
    transform: scale(0.98);
}

.planet-link:focus-visible {
    outline: 1px solid var(--accent-400);
}

.planet-link:hover::after, .planet-link:focus-visible::after {
    box-shadow: -19px -29px 21.2px -19px rgba(255, 255, 255, 0.90) inset;
}

.planet-link:hover::before, .planet-link:focus-visible::before {
    box-shadow: 10px 20px 20px -6px rgba(0, 0, 0, 0.90) inset, 50px 90px 20px -35px rgba(0, 0, 0, 0.50) inset;
}

.planet-container:nth-child(odd) .planet-link:hover + .planet-link-label, 
.planet-container:nth-child(odd) .planet-link:focus-visible + .planet-link-label {
    transform: translate(-10rem, 2rem);
}

.planet-container:nth-child(even) .planet-link:hover + .planet-link-label,
.planet-container:nth-child(even) .planet-link:focus-visible + .planet-link-label {
    transform: translate(10rem, 3rem);
}

.planet-link > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 100vh;
    display: block;
}


.planet-link-label {
    position: absolute;
    width: 30%;
    line-height: 1;
    text-align: center;
    transition: transform 0.15s ease-in-out;
}

.planet-container:nth-child(odd) .planet-link-label {
    top: 100%;
    left: 0;
    transform: translate(-5rem, 2rem);
}

.planet-container:nth-child(even) .planet-link-label {
    top: 0;
    right: 0;
    transform: translate(5rem, 3rem);
}

.const-lets {
    position: relative;
    fill: red;
}

.ext-link-svg {
    position: absolute;
    fill: yellow;
    top: 0;
    left: 0;
}

.parallax {
    position: relative;
    z-index: 0;
    display: grid;
    grid-template-areas: "stack";
}

.parallax > * {
    grid-area: stack;
}

.parallax-bg {
    z-index: -1;
    min-height: 100vh;
    width: 100%;
    height: 100%;
    object-position: top;
    object-fit: cover;
    animation: parallax linear;
    animation-timeline: scroll();
    mix-blend-mode: screen;
    opacity: 0.1;
}

@supports (animation-timeline: scroll()) {
    .parallax-bg {        
        height: calc(100% - 1000px);
    }
}

@keyframes parallax {
    to {
        transform: translateY(1000px);
    }
}


/* Styling for About and Gallery pages */

/* Common Glassmorphic Panel */
.glass-panel {
    background: rgba(13, 13, 33, 0.65);
    backdrop-filter: blur(16px) saturate(120%);
    -webkit-backdrop-filter: blur(16px) saturate(120%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
    padding: 2.5rem;
    margin-bottom: 2.5rem;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.glass-panel:hover {
    border-color: rgba(255, 165, 0, 0.25);
}

/* Page Wrappers */
.resume-wrapper, .gallery-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding: 8rem 2rem 4rem 2rem;
    position: relative;
    z-index: 10;
}

/* Header Section */
.resume-header {
    text-align: center;
    border-bottom: 3px solid var(--accent-400);
}

.resume-name {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #ffcbd1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.resume-tagline {
    font-size: 1.4rem;
    color: var(--accent-400);
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.quick-contact {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.95rem;
    color: var(--neutral-300);
    margin-bottom: 1.5rem;
}

.quick-contact span {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.header-socials {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    border-bottom: 1px dashed var(--accent-400);
    padding-bottom: 2px;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.social-link:hover {
    color: var(--accent-400);
    border-bottom-style: solid;
}

/* Sections */
.section-title {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #ffffff;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--accent-400);
    padding-left: 1rem;
}

.summary-text {
    line-height: 1.8;
    color: var(--neutral-300);
    font-size: 1.05rem;
}

/* Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.metric-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.2s ease, background 0.2s ease;
}

.metric-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 165, 0, 0.15);
}

.metric-card h3 {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--accent-400);
    margin-bottom: 0.5rem;
}

.metric-card p {
    font-size: 0.95rem;
    color: var(--neutral-300);
    line-height: 1.4;
}

/* Skills Grid */
.skills-grid {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.skills-category h4 {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent-400);
    margin-bottom: 0.8rem;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.skill-badge {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.skill-badge:hover {
    background: var(--accent-400);
    color: var(--primary-700);
    transform: scale(1.05);
    font-weight: bold;
    border-color: var(--accent-400);
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 2rem;
    border-left: 2px dashed rgba(255, 255, 255, 0.15);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: calc(-2rem - 6px);
    top: 0.25rem;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent-400);
    box-shadow: 0 0 10px var(--accent-400);
    border: 2px solid var(--primary-700);
}

.timeline-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--neutral-300);
    margin-bottom: 0.5rem;
}

.timeline-date {
    font-weight: bold;
    color: var(--accent-400);
}

.timeline-company {
    font-style: italic;
}

.timeline-role {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
}

.timeline-details {
    list-style-type: square;
    margin-left: 1.2rem;
    color: var(--neutral-300);
    line-height: 1.7;
    font-size: 0.98rem;
}

.timeline-details li {
    margin-bottom: 0.5rem;
}

/* Education */
.education-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.8rem;
}

.education-item h4 {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.3rem;
}

.edu-meta {
    font-size: 0.95rem;
    color: var(--accent-400);
}

/* Connect & Form */
.connect-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.contact-info-panel h3, .contact-form h3 {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.contact-info-panel p {
    line-height: 1.6;
    color: var(--neutral-300);
    margin-bottom: 1.5rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.detail-item {
    font-size: 0.98rem;
}

.detail-item strong {
    color: var(--accent-400);
}

.detail-item a {
    text-decoration: none;
    color: #ffffff;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.4);
}

.detail-item a:hover {
    color: var(--accent-400);
    border-bottom-color: var(--accent-400);
}

.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.6rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: bold;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    outline: none;
}

.btn-primary {
    background: var(--accent-400);
    color: var(--primary-700);
}

.btn-primary:hover {
    background: #ffb733;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 165, 0, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-size: 0.9rem;
    color: var(--accent-400);
    text-transform: uppercase;
    font-weight: bold;
}

.form-group input, .form-group textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.8rem;
    color: #ffffff;
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--accent-400);
    background: rgba(255, 255, 255, 0.08);
    outline: none;
}

.btn-submit {
    background: linear-gradient(135deg, var(--accent-300) 0%, var(--accent-400) 100%);
    color: #ffffff;
    padding: 0.8rem;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 165, 0, 0.3);
}

/* Gallery Page Styling */
.gallery-header {
    text-align: center;
}

.gallery-title {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.8rem;
    background: linear-gradient(135deg, #ffffff 0%, #ffcbd1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gallery-subtitle {
    font-size: 1.1rem;
    color: var(--neutral-300);
    line-height: 1.5;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.project-card {
    margin-bottom: 0; /* Override margin from glass-panel */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.project-category {
    font-size: 0.85rem;
    font-weight: bold;
    color: var(--accent-400);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 0.6rem;
}

.project-name {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
}

.project-description {
    font-size: 0.95rem;
    color: var(--neutral-300);
    line-height: 1.6;
    margin-bottom: 1.2rem;
}

.project-highlights {
    list-style-type: circle;
    margin-left: 1.2rem;
    font-size: 0.9rem;
    color: var(--neutral-300);
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.project-highlights li {
    margin-bottom: 0.4rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
}

.tech-tag {
    background: rgba(255, 165, 0, 0.08);
    border: 1px solid rgba(255, 165, 0, 0.2);
    color: var(--accent-400);
    font-size: 0.8rem;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    font-weight: bold;
}

.gallery-footer {
    text-align: center;
}

/* Home Button styling overrides */
.home-btn {
    width: 2.8rem;
    height: 2.8rem;
    color: var(--neutral-400);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 100;
    position: fixed;
    top: 2rem;
    left: 2rem;
}

.home-btn:hover {
    color: var(--accent-400);
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-400);
    transform: scale(1.1) rotate(0deg); /* override parent rotate */
}

.home-btn svg {
    width: 1.5rem;
    height: 1.5rem;
}

/* Decorative background adjustments */
#sky.ignore-pointer {
    pointer-events: none !important;
    opacity: 0.6;
}

/* PRINT STYLESHEET */
@media print {
    body {
        background: #ffffff !important;
        color: #000000 !important;
        font-family: 'Roboto', sans-serif;
    }
    
    #sky, .home-btn, .action-buttons, .contact-form, .gallery-footer, footer {
        display: none !important;
    }
    
    .resume-wrapper {
        padding: 0 !important;
        max-width: 100% !important;
        margin: 0 !important;
    }
    
    .glass-panel {
        background: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin-bottom: 2rem !important;
    }
    
    .resume-name {
        background: none !important;
        -webkit-text-fill-color: initial !important;
        color: #000000 !important;
        font-size: 2.5rem !important;
    }
    
    .resume-tagline {
        color: #555555 !important;
        font-size: 1.2rem !important;
        border-bottom: 2px solid #000000;
        padding-bottom: 0.5rem;
    }
    
    .quick-contact {
        justify-content: flex-start !important;
        gap: 1rem !important;
    }

    .quick-contact span {
        background: none !important;
        border: none !important;
        color: #333333 !important;
        padding: 0 !important;
    }
    
    .section-title {
        color: #000000 !important;
        border-left: 4px solid #000000 !important;
        font-size: 1.5rem !important;
        margin-top: 1.5rem !important;
    }
    
    .summary-text, .timeline-details, .edu-meta {
        color: #222222 !important;
    }
    
    .metric-card {
        border: 1px solid #dddddd !important;
        background: none !important;
        padding: 1rem !important;
    }
    
    .metric-card h3 {
        color: #000000 !important;
    }
    
    .metric-card p {
        color: #444444 !important;
    }
    
    .skill-badge {
        background: none !important;
        border: 1px solid #777777 !important;
        color: #000000 !important;
        padding: 0.2rem 0.5rem !important;
    }
    
    .timeline {
        border-left: 2px solid #777777 !important;
    }
    
    .timeline-dot {
        background: #000000 !important;
        border-color: #ffffff !important;
        box-shadow: none !important;
    }
    
    .timeline-role {
        color: #000000 !important;
    }
    
    .timeline-date {
        color: #000000 !important;
    }
    
    .timeline-company {
        color: #333333 !important;
    }
    
    .timeline-item {
        page-break-inside: avoid;
    }
}