/* Global Styles */
:root {
    --primary-color: #00ffcc;
    --secondary-color: #9933ff;
    --accent-color-1: #ff3366;
    --accent-color-2: #ffcc00;
    --accent-color-3: #33ccff;
    --background-color: #000000;
    --text-color: #ffffff;
    --box-color: rgba(30, 30, 30, 0.8);
    --pixel-border-color: #333333;
}

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

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

canvas#dotCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-color-1);
}

/* Header and Navigation */
header {
    padding: 1.5rem 2rem;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border: 2px solid var(--primary-color);
    border-radius: 4px;
    text-shadow: 0 0 10px var(--primary-color);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.5rem 0;
    position: relative;
}

.nav-links a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover:after,
.nav-links a.active:after {
    width: 100%;
}

.nav-links a.active {
    color: var(--primary-color);
}

/* Main Content */
main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem; /* Reduced horizontal padding */
}

/* Home Page */
.center-container {
    text-align: center;
    max-width: 800px;
}

.top-tagline {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    font-weight: 400;
    font-family: 'Roboto', sans-serif;
    text-align: center;
    line-height: 1.4;
}

.top-tagline .highlight-red {
    color: var(--accent-color-1);
    font-weight: 700;
    text-shadow: 0 0 5px rgba(255, 51, 102, 0.5);
}

.pixel-box {
    display: inline-block;
    margin: 0 auto 2rem;
    padding: 2rem;
    background-color: var(--box-color);
    border: 4px solid var(--pixel-border-color);
    position: relative;
    box-shadow: 0 0 20px rgba(0, 255, 204, 0.2);
}

.pixel-box:before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border: 2px solid var(--primary-color);
    z-index: -1;
    animation: glow 2s infinite alternate;
}

@keyframes glow {
    0% {
        box-shadow: 0 0 10px var(--primary-color);
    }
    100% {
        box-shadow: 0 0 20px var(--primary-color), 0 0 40px var(--primary-color);
    }
}

.pixel-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: var(--text-color);
    text-shadow: 0 0 10px var(--primary-color);
}

.tagline {
    font-size: 1.5rem;
    margin-bottom: 3rem;
    line-height: 1.4;
    font-weight: 700;
    font-family: 'Orbitron', sans-serif;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    margin-bottom: 3rem;
}

.cta-btn {
    font-family: 'Orbitron', sans-serif;
    display: inline-block;
    padding: 0.8rem 2rem;
    border: 2px solid var(--primary-color);
    background-color: transparent;
    color: var(--primary-color);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cta-btn:hover {
    background-color: var(--primary-color);
    color: var(--background-color);
    box-shadow: 0 0 10px var(--primary-color);
}

/* Home Page Service Cards */
.service-cards {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 3rem;
    width: 100%;
    max-width: 1100px;
}

.service-card {
    padding: 1.5rem;
    background-color: rgba(17, 17, 17, 0.7);
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 15px rgba(0, 255, 204, 0.15);
    transition: all 0.3s;
    margin-bottom: 1.5rem;
}

/* Only hover effect on desktop */
@media (min-width: 769px) {
    .service-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 0 20px rgba(0, 255, 204, 0.3);
    }
}

.service-header {
    margin-bottom: 1.2rem;
    position: relative;
}

.expandable-header {
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
    border-bottom: none;
    margin-bottom: 0.5rem;
    box-shadow: inset 0 0 0 2px var(--primary-color);
}

.expandable-header:hover {
    box-shadow: inset 0 0 0 2px var(--accent-color-3);
}

.expandable-header.active {
    border-bottom: 1px solid rgba(0, 255, 204, 0.3);
    margin-bottom: 1rem;
}

.expandable-header:hover h3 {
    color: var(--accent-color-3);
}

/* Removed plus/minus signs */

.service-header h3 {
    font-family: 'Orbitron', sans-serif;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: text-shadow 0.3s ease;
}

/* Removed the glow-line */

.service-content {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
    overflow: hidden;
}

.service-content.active {
    display: block;
    opacity: 1;
}

.service-card p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 1.1rem;
}

.service-features {
    list-style-type: none;
    margin: 1.5rem 0 0;
    padding: 0;
    text-align: left;
}

.service-features li {
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 1.2rem;
    line-height: 1.5;
    font-size: 1.05rem;
    text-align: left;
}

.service-features li:before {
    content: '>';
    color: var(--primary-color);
    position: absolute;
    left: 0;
    top: 0;
    font-family: monospace;
}

.highlight {
    color: var(--primary-color);
    font-weight: 600;
}

.highlight-red {
    color: var(--accent-color-1);
    font-weight: 600;
}

/* Shoot Your Shot Section */
.collab-section {
    margin-top: 4rem;
}

.tagline-accent {
    font-size: 1.5rem;
    color: var(--accent-color-1);
    margin-bottom: 1.2rem;
    font-weight: 600;
    font-family: 'Orbitron', sans-serif;
}

/* About Page */
.about-container {
    max-width: 1100px; /* Increased to match services and contact */
    background-color: var(--box-color);
    padding: 3rem;
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 255, 204, 0.2);
}

.about-container h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.mission-statement {
    line-height: 1.6;
}

.mission-statement h2 {
    font-family: 'Orbitron', sans-serif;
    margin: 1.5rem 0;
    color: var(--accent-color-1);
}

.space-manifesto {
    margin: 2rem -1.5rem; /* Increased negative margin to make it wider */
    padding: 2rem;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 4px;
    border-left: 3px solid var(--primary-color);
    box-shadow: 0 0 15px rgba(0, 255, 204, 0.15);
    width: calc(100% + 3rem); /* Match to negative margin */
}

.manifesto-section {
    margin-bottom: 1.8rem;
}

.manifesto-section:last-child {
    margin-bottom: 0;
}

.space-manifesto h3 {
    font-family: 'Orbitron', sans-serif;
    color: var(--accent-color-1); /* Red color */
    font-weight: 700;
    margin-bottom: 0.6rem;
    font-size: 1.3rem;
}

.space-manifesto p {
    font-size: 1.1rem;
    line-height: 1.7;
}

.spacer {
    height: 1.5rem;
    display: block;
}

.space-manifesto em {
    color: var(--primary-color);
    font-style: normal;
    font-weight: bold;
}

@media (max-width: 768px) {
    .space-manifesto {
        padding: 1.5rem;
        margin: 1.5rem -1.5rem; /* Keep the wider width on mobile */
        width: calc(100% + 3rem); /* Make sure width matches the negative margin */
    }
    
    .about-container {
        padding: 2rem 1.5rem;
    }
    
    .space-manifesto h3 {
        font-size: 1.2rem;
    }
}

.mission-statement ul {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.mission-statement li {
    margin-bottom: 1rem;
}

.highlight {
    color: var(--primary-color);
    font-weight: 700;
}

.quote {
    margin: 2rem 0;
    padding: 1.5rem;
    border-left: 4px solid var(--accent-color-2);
    background-color: rgba(0, 0, 0, 0.3);
}

.quote blockquote {
    font-style: italic;
    font-size: 1.2rem;
}

/* Contact Page */
.contact-container {
    max-width: 1100px; /* Increased from 900px to match services */
    width: 100%;
    background-color: var(--box-color);
    padding: 3rem;
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 255, 204, 0.2);
}

.contact-container h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.contact-intro {
    margin-bottom: 2rem;
    font-size: 1.2rem;
    max-width: 800px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr; /* Adjusted to give form more space */
    gap: 3rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background-color: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--primary-color);
    color: var(--text-color);
    font-family: 'Roboto', sans-serif;
    resize: vertical;
    font-size: 1.05rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    box-shadow: 0 0 5px var(--primary-color);
}

.info-item {
    margin-bottom: 2rem;
}

.info-item h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--accent-color-3);
}

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

.social-link {
    padding: 0.5rem 1rem;
    border: 1px solid var(--primary-color);
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: var(--primary-color);
    color: var(--background-color);
}

.reveal-btn {
    font-family: 'Orbitron', sans-serif;
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.reveal-btn:hover {
    background-color: var(--primary-color);
    color: var(--background-color);
    box-shadow: 0 0 8px var(--primary-color);
}

/* Services Page */
.services-container {
    max-width: 1100px; /* Increased from 900px */
    background-color: var(--box-color);
    padding: 3rem;
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 255, 204, 0.2);
}

.services-container h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.services-intro {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.service-headline {
    font-family: 'Orbitron', sans-serif;
    color: var(--accent-color-1); /* Red color */
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    margin-top: 1rem;
}

.service-manifesto {
    margin: 0 -1.5rem 2.5rem -1.5rem; /* Negative margin to make it wider */
    padding: 2rem;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 4px;
    border-left: 3px solid var(--primary-color);
    box-shadow: 0 0 15px rgba(0, 255, 204, 0.15);
    width: calc(100% + 3rem); /* Match to negative margin */
}

.service-manifesto p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.7;
}

.service-manifesto p:last-child {
    margin-bottom: 0;
}

.service-manifesto p.call-to-action {
    font-weight: 700;
    color: var(--primary-color);
}

.use-cases-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    margin: 2rem 0;
    color: var(--accent-color-3);
    border-bottom: 1px solid var(--accent-color-3);
    padding-bottom: 0.5rem;
}

.use-case {
    margin-bottom: 3rem;
}

.use-case h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--accent-color-2);
}

.use-case-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding-left: 1.5rem;
}

.problem, .solution {
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(0, 0, 0, 0.3);
}

.solution ul {
    margin-bottom: 1rem;
    list-style: none;
    padding-left: 0.5rem;
}

.solution ul li {
    margin-bottom: 0.5rem;
    position: relative;
    line-height: 1.4;
    padding-left: 1.2rem;
}

.solution ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 6px;
    height: 6px;
    background-color: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 4px var(--primary-color);
}

.problem {
    border-left: 3px solid var(--accent-color-1);
}

.solution {
    border-left: 3px solid var(--primary-color);
}

.problem h4, .solution h4 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
}

.problem h4 {
    color: var(--accent-color-1);
}

.solution h4 {
    color: var(--primary-color);
}

.cta-section {
    margin-top: 3rem;
    text-align: center;
    padding: 2rem;
    background-color: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--primary-color);
}

.cta-section h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.cta-section p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

/* Footer */
footer {
    padding: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
    margin-top: auto;
}

/* Desktop-only elements */
.desktop-only {
    display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
    .desktop-only {
        display: none;
    }
    .top-tagline {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .pixel-text {
        font-size: 2.5rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-links li {
        margin-left: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .about-container,
    .contact-container,
    .services-container {
        padding: 2rem 1.5rem;
        max-width: 98%; /* Increased from 95% to use more screen width */
        width: 98%;
        margin: 0 auto;
    }
    
    /* Home page service cards on tablet */
    .service-cards {
        gap: 2rem;
        max-width: 90%;
        margin: 2rem auto;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .use-case-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding-left: 0.5rem;
    }
    
    .service-manifesto {
        margin: 0 -1.5rem 2rem -1.5rem;
        padding: 1.5rem;
        width: calc(100% + 3rem);
    }
    
    .form-group textarea {
        min-height: 150px;
    }
    
    main {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .top-tagline {
        font-size: 1.2rem;
    }
    
    .pixel-text {
        font-size: 2rem;
    }
    
    .tagline {
        font-size: 1.2rem;
    }
    
    nav {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .nav-links {
        width: 100%;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.75rem;
    }
    
    .nav-links li {
        margin: 0;
        flex-basis: 45%;
    }
    
    .nav-links a {
        display: block;
        text-align: center;
        padding: 0.75rem 0.5rem;
        border: 1px solid rgba(0, 255, 204, 0.3);
        border-radius: 4px;
        background-color: rgba(0, 0, 0, 0.3);
        font-size: 0.9rem;
        transition: all 0.3s ease;
    }
    
    .nav-links a:hover,
    .nav-links a.active {
        background-color: rgba(0, 255, 204, 0.2);
        transform: translateY(-2px);
        box-shadow: 0 2px 8px rgba(0, 255, 204, 0.3);
    }
    
    .nav-links a:after {
        display: none;
    }
    
    /* Make all containers consistent on small mobile */
    .about-container,
    .contact-container,
    .services-container {
        max-width: 100%;
        width: 100%;
        padding: 1.5rem;
        border-width: 1px;
    }
    
    /* Home page service cards on mobile */
    .service-cards {
        gap: 1.5rem;
        max-width: 100%;
        margin: 1.5rem 0;
    }
    
    .service-card {
        padding: 1rem 0.8rem;
    }
    
    .service-header h3 {
        font-size: 1.1rem;
        margin-bottom: 0.2rem;
        text-align: center;
        transition: color 0.3s ease;
    }
    
    .expandable-header {
        padding: 0.5rem 0;
        margin-bottom: 0;
        display: block;
        width: 100%;
        text-align: center;
    }
    
    .expandable-header.active h3 {
        color: var(--accent-color-3);
    }
    
    .service-card p {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 1rem;
    }
    
    .service-features li {
        font-size: 0.9rem;
        line-height: 1.4;
        margin-bottom: 0.5rem;
    }
    
    .tagline-accent {
        font-size: 1.3rem;
    }
    
    .problem, .solution {
        padding: 1rem;
    }
    
    /* Make Problem/Solution boxes full width on mobile - matching space-manifesto */
    .problem, .solution {
        margin: 0 -1rem 1rem -1rem;
        width: calc(100% + 2rem);
    }
    
    /* Space-saving on small screens */
    .space-manifesto,
    .service-manifesto {
        margin: 0 -1rem 1.5rem -1rem;
        padding: 1.2rem;
        width: calc(100% + 2rem);
    }
}

@media (max-width: 360px) {
    .nav-links li {
        flex-basis: 100%;
    }
    
    .nav-links a {
        padding: 0.6rem 0.4rem;
    }
    
    .logo {
        font-size: 1.7rem;
        padding: 0.4rem 0.8rem;
    }
}