
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;800&family=Space+Grotesk:wght@400;600;700&display=swap');

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


:root {
    --bg-dark: #0d100b;
    --bg-medium: #17201a;
    --bg-card: #141a12;
    --accent: #5a8c4a;
    --accent-hover: #6da05a;
    --text: #e4ead8;
    --text-dim: #879977;
    --cyan: #6b9b8a;
    --purple: #8a8a60;
    --border: #202818;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --shadow-sm: 0 4px 12px rgba(0,0,0,0.25);
    --shadow-md: 0 10px 30px rgba(0,0,0,0.35);
    --shadow-lg: 0 20px 40px rgba(0,0,0,0.4);
}

body {
    font-family: 'Open Sans', sans-serif;
    background: var(--bg-dark);
    color: var(--text);
    font-size: 15pt;
    font-weight: 400;
    letter-spacing: 0.075em;
    line-height: 1.65em;
    overflow-x: hidden;
}

body.is-preload * {
    animation: none !important;
    transition: none !important;
}

a {
    color: inherit;
    text-decoration: none;
    border-bottom: dotted 1px;
    transition: border-bottom-color 0.2s ease;
}

a:hover {
    border-bottom-color: transparent;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text);
    font-weight: 800;
    letter-spacing: 0.225em;
    line-height: 1em;
    margin: 0 0 1em 0;
    text-transform: uppercase;
}

h2 {
    font-size: 1.75em;
    line-height: 1.4;
    color: var(--accent);
}

h3 {
    font-size: 1.15em;
    line-height: 1.75em;
}

p {
    margin: 0 0 2em 0;
}

#page-wrapper {
    opacity: 1;
    padding-top: 3em;
    background: var(--bg-dark);
    position: relative;
}

#page-wrapper:before {
    display: none;
}

#header {
    background: var(--bg-medium);
    height: 3em;
    left: 0;
    line-height: 3em;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 10000;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    backdrop-filter: saturate(120%) blur(8px);
}

#header h1 {
    height: inherit;
    left: 1.25em;
    line-height: inherit;
    position: absolute;
    top: 0;
    transition: opacity 0.2s ease;
}

#header h1 a {
    border: 0;
    display: block;
    height: inherit;
    line-height: inherit;
    font-size: 0.9em;
}

#header.alt {
    background: transparent;
    box-shadow: none;
}

#header.alt h1 {
    opacity: 0;
    pointer-events: none;
}

#header nav {
    height: inherit;
    line-height: inherit;
    position: absolute;
    right: 1.25em;
    top: 0;
}

#header nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

#header nav ul li {
    display: inline-block;
    padding: 0;
}

#header nav ul li a {
    border: 0;
    color: var(--text);
    display: block;
    font-size: 0.8em;
    letter-spacing: 0.225em;
    padding: 0 1.5em;
    text-transform: uppercase;
    transition: color 0.2s ease;
    position: relative;
}

#header nav ul li a:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 1.5em;
    right: 1.5em;
    height: 2px;
    background: var(--accent);
    width: 0;
    transition: width 0.3s;
}

#header nav ul li a:hover {
    color: var(--accent);
}

#header nav ul li a:hover:after {
    width: calc(100% - 3em);
}

#banner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    cursor: default;
    height: 100vh;
    min-height: 35em;
    overflow: hidden;
    position: relative;
    text-align: center;
    background-image: url("../../images/header.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#banner h2 {
    transform: scale(1);
    transition: transform 0.5s ease, opacity 0.5s ease;
    display: inline-block;
    font-size: 1.75em;
    opacity: 1;
    padding: 0.35em 1em;
    position: relative;
    z-index: 1;
}

#banner h2:before, #banner h2:after {
    transition: width 0.85s ease;
    transition-delay: 0.25s;
    background: var(--text);
    content: '';
    display: block;
    height: 2px;
    position: absolute;
    width: 100%;
}

#banner h2:before {
    top: 0;
    left: 0;
}

#banner h2:after {
    bottom: 0;
    right: 0;
}

#banner p {
    letter-spacing: 0.225em;
    text-transform: uppercase;
    font-size: 0.9em;
    opacity: 0.9;
}

#banner .more {
    transition: transform 0.75s ease, opacity 0.75s ease;
    transition-delay: 1.5s;
    transform: translateY(0);
    border: none;
    bottom: 0;
    color: rgba(228, 234, 216, 0.4);
    font-size: 0.7em;
    height: 8.5em;
    left: 50%;
    letter-spacing: 0.225em;
    margin-left: -8.5em;
    opacity: 0.5;
    padding-left: 0.225em;
    position: absolute;
    text-align: center;
    text-transform: uppercase;
    width: 16em;
    z-index: 1;
}

#banner .more:hover {
    color: rgba(228, 234, 216, 0.8);
    opacity: 0.9;
}

#banner .more:after {
    content: '▼';
    bottom: 4em;
    display: block;
    height: 1.5em;
    left: 50%;
    margin: 0 0 0 -0.75em;
    position: absolute;
    width: 1.5em;
    font-size: 1.2em;
    animation: bounce 2s infinite;
    opacity: 0.5;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

#banner:after {
    pointer-events: none;
    transition: opacity 3s ease-in-out;
    transition-delay: 1.25s;
    content: '';
    background: var(--bg-dark);
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
}

body.is-preload #banner h2 {
    transform: scale(0.95);
    opacity: 0;
}

body.is-preload #banner h2:before,
body.is-preload #banner h2:after {
    width: 0;
}

body.is-preload #banner .more {
    transform: translateY(8.5em);
    opacity: 0;
}

body.is-preload #banner:after {
    opacity: 1;
}

.button {
    appearance: none;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out, transform 0.2s ease, box-shadow 0.2s ease;
    background-color: transparent;
    border-radius: var(--radius-sm);
    border: 0;
    box-shadow: inset 0 0 0 2px var(--text);
    color: var(--text);
    cursor: pointer;
    display: inline-block;
    font-size: 0.8em;
    font-weight: 600;
    height: 3.125em;
    letter-spacing: 0.225em;
    line-height: 3.125em;
    padding: 0 2.75em;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
}

.button:hover {
    background-color: rgba(90, 140, 74, 0.15);
    transform: translateY(-2px);
}

.button.primary {
    background-color: transparent;
    box-shadow: inset 0 0 0 1px var(--accent) !important;
    color: rgba(228, 234, 216, 0.75) !important;
    font-size: 0.75em;
    height: 2.5em;
    line-height: 2.5em;
    padding: 0 1.75em;
    letter-spacing: 0.15em;
}

.button.primary:hover {
    background-color: rgba(90, 140, 74, 0.15) !important;
    box-shadow: inset 0 0 0 1px var(--accent) !important;
    color: rgba(228, 234, 216, 0.95) !important;
}

.wrapper {
    padding: 5.5em 0 4em 0;
    position: relative;
}

.wrapper > .inner {
    width: 60em;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.wrapper.style1 {
    background-color: var(--bg-dark);
}

.wrapper.style2 {
    background-color: #0b0e09;
}

.wrapper.style3 {
    background-color: var(--bg-dark);
}

.wrapper.style4 {
    background-color: #0b0e09;
}

#one {
    position: relative;
    overflow: hidden;
}

#one:before {
    display: none;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
    margin-top: 3rem;
}

.about-text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text);
    letter-spacing: 0.05em;
}

.about-text p {
    margin-bottom: 1.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.stat-card {
    padding: 2rem;
    background: rgba(21, 21, 21, 0.5);
    border: 1px solid var(--border);
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.stat-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
    background: rgba(21, 21, 21, 0.8);
}

.stat-number {
    font-size: 2.5em;
    font-weight: 800;
    color: var(--accent);
    display: block;
    line-height: 1;
}

.stat-label {
    font-size: 0.8em;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    opacity: 0.8;
    margin-top: 0.5em;
}

#two {
    background: #0b0e09;
    padding: 6rem 0;
}

.projects-layout {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 2rem;
    align-items: start;
    margin-top: 2rem;
}

.projects-filter {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    position: sticky;
    top: 5rem;
    margin-left: -1rem;
}

.projects-wrapper {
    position: relative;
    padding: 0 60px; 
    width: 100%;
    overflow: visible;
    min-width: 0; 
}

.filter-btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.85em;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-dim);
    cursor: pointer;
    transition: all 0.3s;
    text-align: left;
    border-radius: var(--radius-sm);
    letter-spacing: 0.1em;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text);
}

.filter-btn.active {
    background: rgba(90, 140, 74, 0.15);
    border-color: var(--accent);
    color: var(--accent);
}

.horizontal-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    overflow-y: visible;
    scroll-behavior: smooth;
    padding: 20px 0;
    width: 100%;
    min-width: 0; 
    scrollbar-width: none; 
    -ms-overflow-style: none;
}

.horizontal-scroll::-webkit-scrollbar {
    display: none;
}

.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(255, 255, 255, 0.3);
    font-size: 30px;
    cursor: pointer;
    z-index: 20;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.scroll-btn:hover {
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.scroll-btn-left {
    left: 10px;
}

.scroll-btn-right {
    right: 10px;
    z-index: 20;
}

.scroll-progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 2px;
    margin-top: 20px;
    overflow: hidden;
}

.scroll-progress-fill {
    height: 100%;
    background: var(--accent);
    width: 0%;
    transition: width 0.1s ease-out;
    border-radius: 2px;
}

@media (max-width: 980px) {
    .projects-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .projects-filter {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .projects-wrapper {
        padding: 0 50px;
    }
    
    .scroll-btn {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
    
    .research-card {
        min-width: 280px;
        max-width: 280px;
    }
    .scroll-progress-bar {
        margin-top: 15px;
    }
}

.research-card {
    min-width: 400px;
    max-width: 400px;
    flex-shrink: 0;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    scroll-snap-align: start;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.research-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
}

.research-image {
    width: 100%;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.research-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    object-position: center;
    border-radius: 0;
    display: block;
}
.research-card:nth-child(1) .research-image { background: linear-gradient(135deg, #2a4228 0%, #3d6b4f 100%); }
.research-card:nth-child(2) .research-image { background: linear-gradient(135deg, #3d5e3a 0%, #5a7c50 100%); }
.research-card:nth-child(3) .research-image { background: linear-gradient(135deg, #2a4a40 0%, #4a7a6a 100%); }

.research-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.research-content h2 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.research-content p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text-dim);
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

.research-content .button {
    margin-top: auto;
}

.timeline {
    position: relative;
    max-width: 1200px;
    margin: 4rem auto;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom,
        var(--accent) 0%,
        var(--cyan) 50%,
        var(--purple) 100%);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item:nth-child(odd) .timeline-card {
    margin-left: auto;
    margin-right: 0;
    padding-left: 3rem;
}

.timeline-item:nth-child(even) .timeline-card {
    margin-right: auto;
    margin-left: 0;
    padding-right: 3rem;
}

.timeline-marker {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background: var(--bg-dark);
    border: 3px solid var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: all 0.3s ease;
}

.timeline-marker::before {
    content: '';
    width: 12px;
    height: 12px;
    background: currentColor;
    border-radius: 50%;
    opacity: 0.6;
}

.timeline-item[data-category="education"] .timeline-marker {
    border-color: var(--cyan);
    color: var(--cyan);
    border-radius: 50%;
}

.timeline-item[data-category="work"] .timeline-marker {
    border-color: var(--accent);
    color: var(--accent);
    border-radius: 4px;
}

.timeline-item[data-category="work"] .timeline-marker::before {
    border-radius: 2px;
    width: 14px;
    height: 14px;
}

.timeline-item[data-category="award"] .timeline-marker {
    border-color: #c8a45a;
    color: #c8a45a;
    border-radius: 0;
    transform: translateX(-50%) rotate(45deg);
}

.timeline-item[data-category="award"] .timeline-marker::before {
    border-radius: 0;
    width: 10px;
    height: 10px;
    transform: rotate(-45deg);
}

.timeline-item:hover .timeline-marker {
    transform: translateX(-50%) scale(1.2);
    box-shadow: 0 0 20px currentColor;
}

.timeline-item[data-category="award"]:hover .timeline-marker {
    transform: translateX(-50%) rotate(45deg) scale(1.2);
}

.timeline-card {
    width: 48%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 2rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.timeline-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.timeline-card::before {
    content: '';
    position: absolute;
    top: 25px;
    width: 20px;
    height: 2px;
    background: var(--accent);
}

.timeline-item:nth-child(odd) .timeline-card::before {
    left: -20px;
}

.timeline-item:nth-child(even) .timeline-card::before {
    right: -20px;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.timeline-header h3 {
    font-size: 1.1rem;
    margin: 0;
    color: var(--accent);
}

.timeline-date {
    font-size: 0.85rem;
    color: var(--cyan);
    white-space: nowrap;
    font-weight: 600;
}

.timeline-preview {
    color: var(--text-dim);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.timeline-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.4s ease;
    opacity: 0;
}

.timeline-card.expanded .timeline-details {
    max-height: 500px;
    opacity: 1;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.timeline-details p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
    line-height: 1.6;
}

.timeline-details ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.timeline-details li {
    margin: 0.5rem 0;
    font-size: 0.85rem;
    color: var(--text-dim);
}

.timeline-card::after {
    content: '▼';
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    font-size: 0.8rem;
    color: var(--accent);
    transition: transform 0.3s ease;
}

.timeline-card.expanded::after {
    transform: rotate(180deg);
}

/* Mobile responsive */
@media screen and (max-width: 980px) {
    .timeline::before {
        left: 25px;
    }
    
    .timeline-marker {
        left: 25px;
    }
    
    .timeline-card {
        width: calc(100% - 80px);
        margin-left: 80px !important;
        margin-right: 0 !important;
        padding-left: 2rem !important;
        padding-right: 2rem !important;
    }
    
    .timeline-card::before {
        left: -20px !important;
        right: auto !important;
    }
}

@media screen and (max-width: 736px) {
    .timeline-header {
        flex-direction: column;
    }
    
    .timeline-date {
        font-size: 0.75rem;
    }
}

#tech-stack {
    background: var(--bg-dark);
    position: relative;
    overflow: hidden;
}

.tech-categories {
    display: grid;
    grid-template-columns: 2fr 3fr 1fr;
    gap: 1rem;
    margin-top: 3rem;
}

@media screen and (max-width: 980px) {
    .tech-categories {
        grid-template-columns: 1fr;
    }
}
.tech-grid-two-column {
    display: grid;
    grid-template-columns: repeat(2, 2fr);
    gap: 1.5rem;
}

@media screen and (max-width: 736px) {
    .tech-grid-two-column {
        grid-template-columns: 1fr;
    }
}

.tech-category {
    background: rgba(21, 21, 21, 0.5);
    border: 1px solid var(--border);
    padding: 2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.tech-category:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.tech-category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border);
}

.tech-icon {
    font-size: 2rem;
}

.tech-category-header h3 {
    font-size: 1.2rem;
    margin: 0;
    color: var(--accent);
}

.tech-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.tech-item {
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.6s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.tech-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--accent), var(--cyan));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tech-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
                rgba(90, 140, 74, 0.08),
                transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.tech-item:hover::before {
    opacity: 1;
}

.tech-item:hover::after {
    opacity: 1;
}

.tech-item.visible {
    opacity: 1;
    transform: translateX(0);
}
 
.tech-item:hover {
    border-color: var(--accent);
    transform: translateX(8px) translateY(-2px);
    box-shadow: 0 8px 24px rgba(90, 140, 74, 0.2);
}

.tech-item .tech-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(90, 140, 74, 0.1);
    border-radius: 8px;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.tech-category-header .tech-icon svg {
    width: 1.5em;
    height: 1.5em;
    display: block;
}

.tech-logo {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.15));
}

.tech-name {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text);
    letter-spacing: 0.03em;
}

@media screen and (max-width: 980px) {
    .tech-categories {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media screen and (max-width: 736px) {
    .tech-category {
        padding: 1.5rem;
    }
    
    .tech-category-header h3 {
        font-size: 1rem;
    }
    
    .tech-icon {
        font-size: 1.5rem;
    }
}

#cta {
    background: #0b0e09;
}

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

.contact-card {
    padding: 2rem;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    transition: all 0.3s;
    text-align: center;
}

.contact-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
}

.contact-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.contact-label {
    font-size: 0.75rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 0.5rem;
}

.contact-value {
    font-size: 0.9rem;
}

.contact-value a {
    color: var(--accent);
    border: none;
    transition: opacity 0.3s;
}

.contact-value a:hover {
    opacity: 0.7;
}

.contact-icon svg {
    display: block;
    margin: 0 auto;
}

.contact-card:hover .contact-icon svg {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

.contact-card:nth-child(1) .contact-icon { color: var(--accent); }
.contact-card:nth-child(2) .contact-icon { color: var(--cyan); }
.contact-card:nth-child(3) .contact-icon { color: var(--text-dim); }
.contact-card:nth-child(4) .contact-icon { color: var(--purple); }


#footer {
    padding: 6em 0 4em 0;
    background-color: #0a0d08;
    text-align: center;
}

#footer .icons {
    font-size: 1.25em;
    list-style: none;
    padding: 0;
    margin-bottom: 2em;
}

#footer .icons li {
    display: inline-block;
    padding: 0 1em 0 0;
}

#footer .icons a {
    color: rgba(228, 234, 216, 0.45);
    border: 0;
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-block;
}

#footer .icons a:hover {
    color: var(--text);
    transform: translateY(-3px);
}

#footer .copyright {
    color: rgba(228, 234, 216, 0.45);
    font-size: 0.8em;
    letter-spacing: 0.225em;
    list-style: none;
    padding: 0;
    text-transform: uppercase;
}

#footer .copyright li {
    border-left: solid 1px rgba(228, 234, 216, 0.2);
    display: inline-block;
    line-height: 1em;
    margin-left: 1em;
    padding-left: 1em;
}

#footer .copyright li:first-child {
    border-left: 0;
    margin-left: 0;
    padding-left: 0;
}

header.major {
    margin: 0 0 0.5em 0;
}

header.major h2 {
    border-bottom: solid 2px var(--accent);
    display: inline-block;
    padding-bottom: 1em;
    position: relative;
}

header.major h2:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.5s ease;
}

header.major:hover h2:after {
    width: 100%;
}

header.major p {
    color: var(--text);
}

.section-label {
    font-size: 1.75rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1rem;
    font-weight: 600;
    text-align: center;
    display: block;
}

.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(90, 140, 74, 0.4);
    border-radius: 50%;
    animation: float 15s infinite;
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% { opacity: 0.3; }
    90% { opacity: 0.3; }
    50% {
        transform: translateY(-100vh) translateX(50px);
    }
}

@media screen and (max-width: 980px) {
    .wrapper > .inner {
        width: 90%;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .research-card {
        min-width: 350px;
        max-width: 350px;
    }

    .mission-grid {
        grid-template-columns: 1fr;
    }

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

@media screen and (max-width: 736px) {
    body {
        font-size: 11pt;
    }
    
    #banner {
        padding: 7em 3em 5em 3em;
        height: auto;
        min-height: 0;
    }
    
    #banner h2 {
        font-size: 1.25em;
    }
    
    #banner .more {
        display: none;
    }
    
    #header nav ul li a {
        padding: 0 1em;
    }

    .stat-number {
        font-size: 2em;
    }

    .research-card {
        min-width: 300px;
        max-width: 300px;
    }

    .projects-wrapper {
        padding: 0 1rem;
    }
}

ul.actions {
    display: flex;
    cursor: default;
    list-style: none;
    margin-left: -1em;
    padding-left: 0;
}

ul.actions li {
    padding: 0 0 0 1em;
    vertical-align: middle;
}

ul.actions.special {
    justify-content: center;
    width: 100%;
    margin-left: 0;
}

ul.actions.special li:first-child {
    padding-left: 0;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}
#header nav a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 6px;
}
.button:focus-visible {
    box-shadow: 0 0 0 4px rgba(90,140,74,0.35);
}

section[id] {
    scroll-margin-top: 4.25em;
}

.research-card,
.timeline-card,
.tech-category,
.contact-card {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}
.timeline-card:hover,
.tech-category:hover,
.contact-card:hover,
.research-card:hover {
    box-shadow: var(--shadow-md);
}

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

/* Publications section */
.pub-venues {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6em;
    justify-content: center;
    margin-bottom: 2.5em;
}

.pub-venue-tag {
    background: rgba(90, 140, 74, 0.1);
    border: 1px solid rgba(90, 140, 74, 0.28);
    border-radius: 2em;
    color: var(--accent);
    font-size: 0.7em;
    letter-spacing: 0.1em;
    padding: 0.4em 1.1em;
    text-transform: uppercase;
}

.pub-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0 auto 1.5em;
    max-width: 820px;
    text-align: left;
}

.pub-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5em;
    border-bottom: 1px solid var(--border);
    padding: 1.2em 0;
}

.pub-item:first-child {
    border-top: 1px solid var(--border);
}

.pub-year {
    color: var(--accent);
    font-size: 0.75em;
    font-weight: 700;
    letter-spacing: 0.1em;
    min-width: 3em;
    padding-top: 0.2em;
    text-align: center;
}

.pub-details {
    flex: 1;
}

.pub-title {
    color: var(--text);
    font-size: 0.85em;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 0.3em;
}

.pub-meta {
    color: var(--text-dim);
    font-size: 0.75em;
    letter-spacing: 0.05em;
}

.pub-note {
    color: var(--text-dim);
    font-size: 0.7em;
    font-style: italic;
    margin: 0.5em auto 2em;
    max-width: 820px;
    text-align: left;
}

.pub-actions {
    display: flex;
    gap: 1em;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2em;
}

@media (max-width: 736px) {
    .pub-item {
        flex-direction: column;
        gap: 0.4em;
    }
    .pub-year {
        text-align: left;
    }
}

.tech-item:hover {
    box-shadow: 0 8px 24px rgba(90, 140, 74, 0.2);
}

.research-image img {
    border-radius: 0;
    display: block;
}

/* Footer Styles */
#footer {
    background: #0a0d08;
    color: rgba(228, 234, 216, 0.45);
    padding: 3em 0 2em 0;
    text-align: center;
}

#footer .icons {
    list-style: none;
    padding: 0;
    margin: 0 0 1em 0;
}

#footer .icons li {
    display: inline-block;
    margin: 0 1em;
}

#footer .icons a {
    color: rgba(228, 234, 216, 0.45);
    text-decoration: none;
    transition: color 0.2s ease;
}

#footer .icons a:hover {
    color: var(--text);
}

#footer .copyright {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.9em;
    line-height: 1.8em;
}

#footer .copyright li {
    display: inline-block;
    margin: 0;
    padding: 0 0.5em;
    border-left: solid 1px rgba(228, 234, 216, 0.15);
}

#footer .copyright li:first-child {
    border-left: 0;
}

/* Developer Credit Section */
.dev-credit {
    margin-top: 2.5em;
    padding-top: 2em;
    border-top: 1px solid rgba(228, 234, 216, 0.08);
}

.dev-credit-label {
    font-size: 0.75em;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(228, 234, 216, 0.25);
    margin-bottom: 0.8em;
}

.dev-credit-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5em;
    flex-wrap: wrap;
    margin-bottom: 1em;
}

.dev-team-name {
    font-size: 1.1em;
    font-weight: 600;
    color: rgba(228, 234, 216, 0.7);
    letter-spacing: 0.05em;
}

.dev-team-name .magnetars {
    background: linear-gradient(135deg, var(--accent) 0%, var(--cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.dev-separator {
    color: rgba(228, 234, 216, 0.15);
    font-size: 0.8em;
}

.dev-names {
    font-size: 0.95em;
    color: rgba(228, 234, 216, 0.5);
}

.dev-links {
    display: flex;
    gap: 1.5em;
    justify-content: center;
    margin-top: 1em;
    flex-wrap: wrap;
}

.dev-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    font-size: 0.85em;
    color: rgba(228, 234, 216, 0.45);
    text-decoration: none;
    transition: all 0.2s ease;
    padding: 0.4em 0.8em;
    border-radius: 4px;
    border: 1px solid rgba(228, 234, 216, 0.08);
}

.dev-link:hover {
    color: var(--accent);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.dev-link-icon {
    font-size: 1.1em;
}
.dev-link-icon:hover {
    color: var(--accent);
}

/* Responsive */
@media (max-width: 768px) {
    .dev-credit-content {
        flex-direction: column;
        gap: 0.8em;
    }

    .dev-separator {
        display: none;
    }

    .dev-links {
        flex-direction: column;
        gap: 0.8em;
    }
}