
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

:root {
    --bg-space: #090A10;
    --text-main: #E6E1DC;
    --heading: #B9A9C9;
    --link: #C9BBD7;
    --nav-bg: #14141D;
    --accent: #A5B5AA;
    --muted: #9995A1;
    --card-bg: #171720;
    --card-border: #34313F;
}

/* Base */
html {
    scroll-behavior: smooth;
    background-color: var(--bg-space);
}

body,
button,
input,
textarea,
select {
    font-family: "Inter", sans-serif;
}

body {
    color: var(--text-main);
    background-color: transparent;
    font-size: 20px;
    line-height: 1.6;
}

button,
input,
textarea,
select {
    font-size: inherit;
}

h1,
h2,
h3 {
    color: var(--heading);
}

p,
li {
    color: var(--text-main);
}

a {
    color: var(--link);
    transition: color 0.2s ease;
}

a:hover,
a:focus-visible {
    color: var(--accent);
}

/* Animated star background */
#starfield {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* Page spacing to make it look cleaner */
header,
section > .eyebrow,
section > h2,
section > p:not(.project-type),
section > ul,
section > ol {
    margin-left: 30px;
    margin-right: 30px;
}

/* Heading glow :D */
#hero h1,
#about h2,
#interests h2,
#projects h2,
#photography h2,
#contact h2 {
    color: #8EBBFF !important;
    text-shadow: 0 0 8px rgba(156, 195, 255, 0.25) !important;
}

h1 {
    color: #8EBBFF;
    text-shadow: 0 0 10px rgba(142, 187, 255, 0.28);
}

/* Navigation panel */
nav {
    margin-left: 0;
    margin-right: 0;
}

nav a,
nav a:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 16px;
    margin: 4px;

    color: #8EBBFF;
    background: rgba(20, 20, 29, 0.65);
    border: 2px solid rgba(142, 187, 255, 0.25);

    text-decoration: none;
    text-shadow: 0 0 8px rgba(142, 187, 255, 0.2);

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

nav a:hover,
nav a:focus-visible {
    color: #C4B5FD !important;
    text-shadow: 0 0 10px rgba(142, 187, 255, 0.45);
}

/* Projects grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
    margin-left: 22px;
    margin-right: 22px;
}

/* Project cards */
.project-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
    margin: 12px;
    padding: 24px;

    background: linear-gradient(
        145deg,
        rgba(20, 31, 53, 0.96),
        rgba(10, 16, 31, 0.96)
    );

    border: 1px solid #293B59;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.16);

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.project-card:hover {
    transform: translateY(-4px);
    border-color: #668FC8;
    box-shadow: 0 12px 28px rgba(51, 105, 180, 0.14);
}

.project-card h3 {
    margin: 0;
    color: var(--heading);
    font-size: 1.2rem;
    line-height: 1.4;
}

.project-card p:not(.status) {
    margin: 0;
    color: var(--text-main);
    line-height: 1.7;
}

/* Project type labels */
.project-card .status.project-type {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 8px;
    margin: 0;

    font-family: "Courier New", monospace;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
}

.project-card .status.unsuccessful.project-type {
    color: #F4A6A6;
}

/* Project status stars */
.project-success .status-dot::before {
    content: "✦";
    color: #A7F3D0;
    text-shadow:
        0 0 4px rgba(167, 243, 208, 0.45),
        0 0 9px rgba(167, 243, 208, 0.2);
}

.project-unsuccessful .status-dot::before {
    content: "✦";
    color: #F4A6A6;
    text-shadow:
        0 0 4px rgba(244, 166, 166, 0.4),
        0 0 9px rgba(244, 166, 166, 0.18);
}

/* Photography section */
#photography {
    padding-left: 32px;
    padding-right: 32px;
    box-sizing: border-box;
}

#photography > .eyebrow,
#photography > h2,
#photography > p {
    margin-left: 0;
    margin-right: 0;
}

/* Photography collage */
.photography-grid {
    columns: 2;
    column-gap: 20px;
}

.photo-frame {
    break-inside: avoid;
    margin: 0 0 20px;
    padding: 8px;

    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.photo-frame:hover {
    transform: translateY(-5px);
    border-color: var(--heading);
    box-shadow: 0 10px 24px rgba(72, 145, 255, 0.18);
}

.photo-frame img {
    display: block;
    width: 100%;
    height: auto;
}

.photo-frame figcaption {
    margin-top: 12px;
    color: var(--heading);
    font-size: 13px;
    font-weight: 600;
    font-style: italic;
    letter-spacing: 0.5px;
    text-align: center;
}

/* Photography caption glow */
figcaption {
    color: #8EBBFF;
    text-shadow: 0 0 6px rgba(142, 187, 255, 0.22);
}

/* Contact links */
#contact a {
    color: var(--link);
    text-decoration: none;
}

#contact a:hover,
#contact a:focus-visible {
    color: var(--accent);
}

/* Footer */

footer {
    background: transparent;
    text-align: left;
    padding: 25px;
    margin-top: 50px;
    border: none;
    box-shadow: none;
    color:#293B59
}


/* Responsive layouts */
@media (max-width: 700px) {
    .photography-grid {
        columns: 2;
        column-gap: 12px;
    }

    .photo-frame {
        margin-bottom: 12px;
        padding: 5px;
    }
}

@media (max-width: 650px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .project-card {
        padding: 20px;
    }
}

@media (max-width: 420px) {
    .photography-grid {
        columns: 1;
    }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .project-card,
    .photo-frame {
        transition: none;
    }

    .project-card:hover,
    .photo-frame:hover {
        transform: none;
    }
}

.motto {
    color: #8EBBFF;
    font-weight: 700;
    text-shadow: 0 0 8px rgba(142, 187, 255, 0.4);
}


