:root {
    --bg-dark: #060608;
    --bg-accent: #0b0b0f;
    --neon-blue: #00f3ff;
    --neon-cyan: #00d4ff;
    --neon-text: #e0f2ff;
    --text-dim: #808090;
    --glow: rgba(0, 243, 255, 0.4);
}

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

body {
    background-color: var(--bg-dark);
    color: var(--neon-text);
    font-family: 'Rajdhani', sans-serif;
    overflow-x: hidden;
    overflow-y: auto;
    /* Ensure vertical scroll is always enabled */
    inline-size: 100%;
}

#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

h1,
h2,
h3,
h4,
.logo {
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 2px;
}

/* HUD Navigation */
.hud-nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 20px;
    /* Reduced padding for mobile room */
    background: linear-gradient(to bottom, rgba(6, 6, 8, 0.98), transparent);
    border-bottom: 1px solid rgba(0, 243, 255, 0.1);
    backdrop-filter: blur(10px);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-size: 1.2rem;
    color: var(--neon-blue);
    text-shadow: 0 0 10px var(--glow);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 15px;
    /* Reduced gap for mobile density */
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    padding: 10px 15px;
    /* Added horizontal padding to prevent cut-off at edge */
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    /* Kinetic scrolling for iOS */
    mask-image: linear-gradient(to right, transparent, black 30px, black calc(100% - 30px), transparent);
    user-select: none;
    touch-action: pan-x;
    /* Explicitly allow only horizontal touch */
}

.nav-links::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar Chrome/Safari */
}

.nav-links li {
    flex-shrink: 0;
}

.nav-btn {
    text-decoration: none;
    color: var(--text-dim);
    font-size: 0.9rem;
    font-weight: 700;
    padding: 10px 20px;
    position: relative;
    overflow: hidden;
    transition: 0.3s;
    border: 1px solid rgba(0, 243, 255, 0.2);
    clip-path: polygon(10% 0, 100% 0, 90% 100%, 0% 100%);
}

.nav-btn:hover,
.nav-btn.active {
    color: var(--neon-blue);
    background: rgba(0, 243, 255, 0.1);
    border-color: var(--neon-blue);
    box-shadow: 0 0 15px var(--glow);
}

/* Sections */
section {
    min-height: 100vh;
    padding: 100px 10%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--neon-blue);
    position: relative;
    padding-left: 20px;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: var(--neon-blue);
    box-shadow: 0 0 10px var(--glow);
}

/* Hero */
.hero-section {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    /* Move to right */
    position: relative;
    padding-left: 40px;
    /* Add spacer */
}

.hero-content {
    flex: 1;
}

.glitch {
    font-size: 6rem;
    margin-bottom: 10px;
    text-shadow: 4px 4px var(--neon-blue);
}

.tagline {
    font-size: 1.8rem;
    color: var(--text-dim);
    margin-bottom: 30px;
}

.origin-story {
    max-width: 600px;
    font-size: 1.1rem;
    color: var(--text-dim);
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.robot-hero-img {
    width: 100%;
    max-width: 600px;
    filter: drop-shadow(0 0 30px var(--glow));
    animation: float 6s ease-in-out infinite;
}

/* Hero Crew Display */
.hero-crew-display {
    margin-top: 40px;
    border-left: 2px solid var(--neon-blue);
    padding-left: 20px;
    background: linear-gradient(to right, rgba(0, 243, 255, 0.05), transparent);
}

.crew-header {
    font-size: 1.2rem;
    color: var(--neon-cyan);
    margin-bottom: 15px;
    letter-spacing: 3px;
}

.crew-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.operative {
    display: flex;
    align-items: baseline;
    gap: 15px;
}

.op-name {
    color: var(--neon-blue);
    font-weight: 700;
    font-size: 1.1rem;
    min-width: 60px;
}

.op-role {
    color: var(--text-dim);
    font-size: 0.95rem;
    font-family: 'Rajdhani', sans-serif;
}

/* Tech Images */
.tech-img-container {
    width: 100%;
    height: 250px;
    /* Increased height */
    overflow: hidden;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(0, 243, 255, 0.1);
    background: rgba(0, 0, 0, 0.3);
    /* Darker background for contained images */
    display: flex;
    align-items: center;
    justify-content: center;
}

.tech-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Prevents cropping */
    transition: transform 0.5s ease;
}

.tech-card:hover .tech-img {
    transform: scale(1.1);
}

.tech-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    text-align: center;
}


/* Timeline */
.journey-section {
    background: url('glowing_nodes.png') no-repeat center center;
    background-size: cover;
    position: relative;
}

.journey-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(6, 6, 8, 0.85);
    /* Overlay to ensure text readability */
    z-index: 1;
}

.section-title,
.timeline {
    position: relative;
    z-index: 2;
}

.timeline {
    border-left: 1px solid rgba(0, 243, 255, 0.3);
    margin-left: 20px;
    padding-left: 40px;
}

.milestone {
    margin-bottom: 40px;
    position: relative;
}

.milestone::before {
    content: '';
    position: absolute;
    left: -46px;
    top: 5px;
    width: 10px;
    height: 10px;
    background: var(--neon-blue);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--glow);
}

.milestone h4 {
    color: var(--neon-blue);
    margin-bottom: 10px;
}

/* Grid Styles */
.tech-grid,
.crew-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.tech-card,
.crew-member {
    background: var(--bg-accent);
    padding: 30px;
    border: 1px solid rgba(0, 243, 255, 0.1);
    transition: 0.3s;
    position: relative;
}

.tech-card:hover,
.crew-member:hover {
    border-color: var(--neon-blue);
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.tech-card h4,
.crew-member span {
    color: var(--neon-blue);
    display: block;
    margin-bottom: 10px;
    font-size: 1.2rem;
}


/* Page specific styles */
.content-page {
    padding-top: 120px;
    padding-bottom: 80px;
}

.page-title {
    font-size: 3.5rem;
    color: var(--neon-blue);
    text-align: center;
    margin-bottom: 80px;
    text-shadow: 0 0 20px var(--glow);
    letter-spacing: 5px;
}

.text-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Competitions */
.comp-entry {
    background: rgba(21, 21, 24, 0.6);
    border-left: 2px solid var(--neon-blue);
    padding: 60px;
    margin-bottom: 80px;
    /* increased spacing */
    border-radius: 0 20px 20px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.comp-entry h2 {
    color: var(--neon-text);
    margin-bottom: 30px;
    font-size: 2.5rem;
    border-bottom: 1px solid rgba(0, 243, 255, 0.1);
    padding-bottom: 15px;
}

.comp-entry h3 {
    color: var(--neon-cyan);
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.comp-details p,
.comp-details ul {
    color: var(--text-dim);
    margin-bottom: 20px;
    font-size: 1.15rem;
    line-height: 1.8;
}

.comp-details ul {
    padding-left: 25px;
    list-style-type: none;
}

.comp-details ul li {
    margin-bottom: 10px;
}

.comp-details ul li::before {
    content: ">>";
    color: var(--neon-blue);
    margin-right: 15px;
    font-weight: bold;
}

/* Resources */
.resource-section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    color: var(--neon-text);
    margin-top: 80px;
    margin-bottom: 40px;
    border-left: 5px solid var(--neon-cyan);
    padding-left: 20px;
}

.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 50px;
    /* increased gap */
}

.resource-card {
    background: rgba(21, 21, 24, 0.6);
    border: 1px solid rgba(0, 243, 255, 0.1);
    padding: 40px;
    border-radius: 5px;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.resource-card.wide-card {
    grid-column: 1 / -1;
}

.resource-card:hover {
    transform: translateY(-8px);
    border-color: var(--neon-blue);
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.15);
}

.resource-card h3 {
    color: var(--neon-blue);
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(0, 243, 255, 0.2);
    padding-bottom: 15px;
    font-size: 1.4rem;
    /* Fixed typo from 140rem */
    position: relative;
}

.resource-card h3::before {
    content: '[';
    margin-right: 10px;
    color: var(--text-dim);
}

.resource-card h3::after {
    content: ']';
    margin-left: 10px;
    color: var(--text-dim);
}

.rule-list {
    list-style: none;
}

/* CRT Scanline Effect */
body::after {
    content: " ";
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    z-index: 9999;
    background-size: 100% 2px, 3px 100%;
    pointer-events: none;
}

/* Scroll Animation Classes */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Tech Hover Effects */
.tech-card,
.resource-card,
.comp-entry,
.record-card,
.goal-card {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.tech-card:hover,
.resource-card:hover,
.comp-entry:hover,
.record-card:hover,
.goal-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 0 25px rgba(0, 243, 255, 0.2);
    border-color: var(--neon-blue);
}

.highlight {
    margin-top: 20px;
    padding: 15px;
    background: rgba(0, 243, 255, 0.05);
    border-left: 3px solid var(--neon-cyan);
    color: var(--neon-text);
    font-style: italic;
    position: relative;
    overflow: hidden;
}

/* Scanning highlight effect */
.highlight::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 243, 255, 0.1), transparent);
    animation: scan 3s infinite;
}

@keyframes scan {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

.rule-list li {
    margin-bottom: 15px;
    color: var(--text-dim);
    line-height: 1.6;
}

.rule-list strong {
    color: var(--neon-cyan);
}


/* Timeline Dates */
.milestone-date {
    display: block;
    color: var(--neon-cyan);
    font-size: 0.9rem;
    margin-bottom: 5px;
    font-weight: bold;
    letter-spacing: 1px;
}

.milestone:hover::before {
    background: var(--neon-cyan);
    box-shadow: 0 0 15px var(--neon-cyan);
    transform: scale(1.3);
    transition: 0.3s;
}

.coming-soon .milestone-content {
    opacity: 0.7;
    border-left: 2px dashed var(--text-dim);
    padding-left: 10px;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 243, 255, 0.2);
    cursor: pointer;
}

/* Timeline Highlights */
.major-event .milestone-content {
    border-left: 3px solid #ffcc00;
    background: linear-gradient(90deg, rgba(255, 204, 0, 0.05), transparent);
    padding: 15px;
    border-radius: 0 10px 10px 0;
}

.major-event h4 {
    color: #ffcc00;
}

.major-event .milestone-date {
    color: #ffee80;
}

.upcoming-objective .milestone-content {
    border-left: 3px solid #ff0055;
    background: linear-gradient(90deg, rgba(255, 0, 85, 0.05), transparent);
    padding: 15px;
    border-radius: 0 10px 10px 0;
}

.upcoming-objective h4 {
    color: #ff0055;
}

.upcoming-objective .milestone-date {
    color: #ff80aa;
}

.gallery-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.1);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(6, 6, 8, 0.9);
    color: var(--neon-blue);
    padding: 15px;
    text-align: center;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}


.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

.wide-gallery-item {
    grid-column: 1 / -1;
    aspect-ratio: 16/9;
}

.gallery-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
}

/* Code */
.code-block-container {
    background: #0d0d12;
    padding: 20px;
    border-radius: 5px;
    border: 1px solid rgba(0, 243, 255, 0.1);
    margin-bottom: 40px;
    font-family: 'Fira Code', monospace;
    overflow-x: auto;
}

.code-block-container h3 {
    color: var(--text-dim);
    margin-bottom: 15px;
    font-size: 1rem;
}

pre {
    color: #a5b3ce;
    font-size: 0.9rem;
}

/* Records */
.records-grid {
    display: grid;
    /* Force 5 columns on larger screens as requested */
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin-bottom: 60px;
}

.record-card {
    background: rgba(21, 21, 24, 0.8);
    padding: 20px;
    text-align: center;
    border: 1px solid rgba(0, 243, 255, 0.1);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 150px;
}

.highlight-record {
    border-color: var(--neon-blue);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.1);
}

.record-value {
    font-size: 3rem;
    font-family: 'Orbitron', sans-serif;
    color: var(--neon-blue);
    margin-bottom: 10px;
    text-shadow: 0 0 15px var(--glow);
    line-height: 1;
}

.record-label {
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
}

.awards-section {
    margin-top: 60px;
}

.section-subtitle {
    color: var(--neon-cyan);
    font-size: 2rem;
    margin-bottom: 40px;
    text-align: center;
}

.award-list {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.award-item {
    background: linear-gradient(135deg, rgba(21, 21, 24, 0.9), rgba(6, 6, 8, 0.95));
    border: 1px solid var(--neon-blue);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    min-width: 300px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.award-icon {
    font-size: 3rem;
}

.award-details h3 {
    color: var(--neon-text);
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.award-details p {
    color: var(--text-dim);
    font-size: 0.9rem;
}

/* Page specific styles */
.content-page {
    padding-top: 120px;
    padding-bottom: 80px;
}

.page-title {
    color: var(--neon-blue);
    text-align: center;
    margin-bottom: 50px;
    text-shadow: 0 0 20px var(--glow);
}

.text-section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Competitions */
.comp-entry {
    background: rgba(21, 21, 24, 0.8);
    border-left: 3px solid var(--neon-blue);
    padding: 40px;
    margin-bottom: 40px;
    border-radius: 0 10px 10px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.comp-entry h2 {
    color: var(--neon-text);
    margin-bottom: 20px;
    font-size: 2rem;
}

.comp-entry h3 {
    color: var(--neon-cyan);
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.comp-details p,
.comp-details ul {
    color: var(--text-dim);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.comp-details ul {
    padding-left: 20px;
    list-style-type: none;
}

.comp-details ul li::before {
    content: ">>";
    color: var(--neon-blue);
    margin-right: 10px;
}

/* Resources */
.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.resource-card {
    background: rgba(21, 21, 24, 0.8);
    border: 1px solid rgba(0, 243, 255, 0.2);
    padding: 30px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.resource-card:hover {
    transform: translateY(-5px);
    border-color: var(--neon-blue);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.1);
}

.resource-card h3 {
    color: var(--neon-blue);
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(0, 243, 255, 0.2);
    padding-bottom: 10px;
}

.rule-list {
    list-style: none;
}

.rule-list li {
    margin-bottom: 15px;
    color: var(--text-dim);
}

.rule-list strong {
    color: var(--neon-cyan);
}

.highlight {
    margin-top: 20px;
    padding: 15px;
    background: rgba(0, 243, 255, 0.05);
    border-left: 3px solid var(--neon-cyan);
    color: var(--neon-text);
    font-style: italic;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.lightbox-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 1200px;
    max-height: 80vh;
    object-fit: contain;
    border: 2px solid var(--neon-blue);
    box-shadow: 0 0 30px var(--glow);
    animation: zoomIn 0.3s ease;
}

#lightbox-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: var(--neon-text);
    padding: 20px 0;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: var(--neon-text);
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: var(--neon-blue);
    text-decoration: none;
    cursor: pointer;
}

@keyframes zoomIn {
    from {
        transform: scale(0)
    }

    to {
        transform: scale(1)
    }
}

/* Mobile responsive lightbox */
@media screen and (max-width: 768px) {
    .lightbox-content {
        width: 100%;
    }
}

/* Gallery Quick Nav */
.gallery-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
    flex-wrap: wrap;
    position: sticky;
    top: 85px;
    /* Sits below the main HUD nav */
    z-index: 900;
    background: rgba(6, 6, 8, 0.8);
    backdrop-filter: blur(10px);
    padding: 15px;
    border-bottom: 1px solid rgba(0, 243, 255, 0.1);
    border-radius: 0 0 15px 15px;
}

.jump-btn {
    text-decoration: none;
    color: var(--neon-blue);
    border: 1px solid var(--neon-blue);
    padding: 10px 25px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 2px;
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: rgba(0, 243, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.jump-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 243, 255, 0.2), transparent);
    transition: 0.5s;
}

.jump-btn:hover {
    background: rgba(0, 243, 255, 0.1);
    box-shadow: 0 0 15px var(--glow);
    transform: translateY(-3px);
}

.jump-btn:hover::before {
    left: 100%;
}

.gallery-section-header {
    font-size: 2rem;
    color: var(--neon-cyan);
    margin-top: 80px;
    /* Increased spacing */
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 243, 255, 0.2);
    font-family: 'Orbitron', sans-serif;
    scroll-margin-top: 120px;
    /* Space for fixed nav when jumping */
}

/* Improvements / Goals */
.improvements-section {
    margin-bottom: 80px;
}

.goals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.goal-card {
    padding: 25px;
    border-radius: 10px;
    border: 1px solid;
    transition: 0.3s;
}

.goal-card h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.goal-card p {
    font-size: 0.9rem;
    color: #a5b3ce;
}

.goal-status {
    font-size: 0.7rem;
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 15px;
    display: inline-block;
}

/* Accomplished Goals (Darker/Dimmed) */
.goal-card.accomplished {
    background: rgba(10, 10, 15, 0.6);
    border-color: rgba(0, 243, 255, 0.1);
    opacity: 0.7;
}

.goal-card.accomplished h3 {
    color: #4a6fa5;
    /* Dimmed blue */
}

.goal-card.accomplished .goal-status {
    color: #00ff88;
}

.goal-card.accomplished:hover {
    opacity: 1;
    border-color: var(--neon-blue);
    background: rgba(10, 10, 15, 0.9);
}

/* Ongoing Goals (Brighter) */
.goal-card.ongoing {
    background: rgba(21, 21, 24, 0.9);
    border-color: var(--neon-blue);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.1);
}

.goal-card.ongoing h3 {
    color: var(--neon-text);
}

.goal-card.ongoing .goal-status {
    color: var(--neon-cyan);
}

.goal-card.ongoing:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.3);
}

/* Countdown Timer - LARGE & RIGHT ALIGNED */
.state-countdown {
    margin: 40px 0 40px auto;
    padding: 37px;
    /* Increased by 7px */
    background: rgba(0, 243, 255, 0.05);
    border: 1px solid var(--neon-blue);
    border-radius: 5px;
    width: 638px;
    /* Increased by 14px (7px each side) */
    min-width: 624px;
    display: block;
    box-sizing: border-box;
    flex-shrink: 0;
}

.state-countdown h3 {
    color: var(--neon-cyan);
    font-size: 1.5rem;
    letter-spacing: 5px;
    margin-bottom: 25px;
    text-align: center;
    text-transform: uppercase;
}

#countdown-timer {
    display: flex;
    gap: 50px;
    justify-content: center;
}

.time-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 120px;
    /* Fixed width to prevent shifting */
}

.time-block span:first-child {
    font-family: 'Orbitron', sans-serif;
    font-size: 4rem;
    /* Reduced from 6rem to prevent overflow */
    color: var(--neon-text);
    text-shadow: 0 0 30px var(--neon-blue);
    line-height: 1;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    /* Ensure digits have same width */
}

.time-block .label {
    font-size: 1.1rem;
    color: var(--text-dim);
    margin-top: 15px;
    letter-spacing: 3px;
}

@media screen and (max-width: 900px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
        padding-top: 140px;
    }

    .state-countdown {
        margin: 40px auto;
        width: 100%;
        min-width: auto;
        padding: 15px;
    }

    .time-block span:first-child {
        font-size: 3rem;
    }

    .time-block {
        min-width: 70px;
    }

    #countdown-timer {
        gap: 15px;
    }

    section {
        padding: 80px 5%;
        /* More room on mobile */
    }
}

@media screen and (max-width: 768px) {
    .nav-links {
        width: 80%;
    }
}