:root {
    --primary: #ff0000;
    --secondary: #000000;
    --accent: #ffffff;
    --glow: 0 0 10px rgba(255, 0, 0, 0.7), 0 0 20px rgba(255, 0, 0, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Orbitron', 'Arial', sans-serif;
}

body {
    background-color: var(--secondary);
    color: var(--accent);
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(255, 0, 0, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(255, 0, 0, 0.1) 0%, transparent 20%);
    background-attachment: fixed;
}

.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.star {
    position: absolute;
    background-color: white;
    border-radius: 50%;
    animation: twinkle var(--duration) infinite ease-in-out;
    opacity: 0;
}

@keyframes twinkle {
    0%, 100% { opacity: 0; transform: scale(0.5); }
    50% { opacity: var(--opacity); transform: scale(1); }
}

.particle {
    position: absolute;
    background-color: var(--primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
}

header {
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    overflow: hidden;
}

.logo {
    position: relative;
    font-size: 5rem;
    font-weight: 900;
    color: var(--accent);
    text-shadow: var(--glow);
    margin-bottom: 2rem;
    z-index: 1;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.tagline {
    font-size: 1.5rem;
    margin-bottom: 3rem;
    max-width: 800px;
    position: relative;
    z-index: 1;
    text-shadow: 0 0 5px var(--primary);
}

.rocket {
    position: absolute;
    width: 100px;
    height: 200px;
    background: linear-gradient(to bottom, var(--secondary) 0%, var(--primary) 100%);
    clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
    animation: launch 15s linear infinite;
    opacity: 0;
    z-index: 0;
}

@keyframes launch {
    0% { transform: translate(0, 100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translate(calc(50vw - 50px), -200px) rotate(10deg); opacity: 0; }
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    animation: bounce 2s infinite;
    cursor: pointer;
    z-index: 1;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-20px) translateX(-50%); }
    60% { transform: translateY(-10px) translateX(-50%); }
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--primary);
}

.nav-logo {
    height: 50px;
    filter: drop-shadow(0 0 5px var(--primary));
    transition: all 0.3s ease;
}

.nav-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 10px var(--primary));
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--accent);
    text-decoration: none;
    font-size: 1.2rem;
    position: relative;
    padding: 5px 0;
    transition: all 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary);
    text-shadow: var(--glow);
}

.nav-links a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}

section {
    min-height: 100vh;
    padding: 100px 20px;
    position: relative;
    overflow: hidden;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 50px;
    text-align: center;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
    text-shadow: var(--glow);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, transparent, var(--primary), transparent);
}

.about-content {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 50px;
    align-items: center;
}

.about-text {
    flex: 1;
    min-width: 300px;
    font-size: 1.2rem;
    line-height: 1.6;
}

.about-image {
    flex: 1;
    min-width: 300px;
    height: 400px;
    background: linear-gradient(45deg, var(--secondary), var(--primary));
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-image::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to bottom right,
        transparent 45%,
        var(--primary) 50%,
        transparent 55%
    );
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.about-image-inner {
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    background-color: var(--secondary);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    text-align: center;
    padding: 20px;
}

.team-members {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.team-member {
    width: 250px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    z-index: 1;
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 30px var(--primary);
    z-index: 2;
}

.member-image {
    height: 250px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-bottom: 2px solid var(--primary);
}

.member-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 0, 0, 0.3) 50%,
        rgba(255, 255, 255, 0.1) 100%
    );
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.member-info {
    padding: 20px;
    text-align: center;
}

.member-name {
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: var(--primary);
}

.member-role {
    font-size: 1rem;
    color: var(--accent);
    margin-bottom: 10px;
    font-weight: bold;
}

.member-bio {
    font-size: 0.9rem;
    color: #ccc;
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    justify-content: center;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.contact-item:hover {
    background: rgba(255, 0, 0, 0.1);
    border-left: 3px solid var(--primary);
    transform: translateX(10px);
}

.contact-icon {
    font-size: 1.5rem;
    margin-right: 15px;
    color: var(--primary);
}

.contact-text {
    font-size: 1.1rem;
}

.contact-text a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-text a:hover {
    color: var(--primary);
}

.contact-form {
    flex: 1;
    min-width: 300px;
}

.form-group {
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    color: var(--accent);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.submit-btn {
    background: linear-gradient(to right, var(--secondary), var(--primary));
    color: var(--accent);
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:hover {
    box-shadow: 0 0 20px var(--primary);
    transform: translateY(-3px);
}

.map-container {
    width: 100%;
    height: 300px;
    margin-top: 50px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.3);
    position: relative;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

footer {
    background-color: rgba(0, 0, 0, 0.7);
    padding: 30px 20px;
    text-align: center;
    border-top: 1px solid var(--primary);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.social-link {
    color: var(--accent);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    color: var(--primary);
    transform: translateY(-5px);
    text-shadow: var(--glow);
}

.copyright {
    font-size: 0.9rem;
    color: #777;
}

/* Animations */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Special effects */
.matrix-rain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    opacity: 0.1;
    pointer-events: none;
}

.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        transparent 50%,
        rgba(0, 0, 0, 0.2) 51%,
        transparent 52%,
        transparent 100%
    );
    background-size: 100% 5px;
    z-index: 1;
    pointer-events: none;
    animation: scanline 10s linear infinite;
}

@keyframes scanline {
    0% { background-position: 0 0; }
    100% { background-position: 0 100%; }
}

.glitch {
    position: relative;
}

.glitch::before, .glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

.glitch::before {
    color: #0ff;
    z-index: -1;
    animation: glitch-effect 3s infinite;
}

.glitch::after {
    color: #f0f;
    z-index: -2;
    animation: glitch-effect 2s infinite reverse;
}

@keyframes glitch-effect {
    0% { transform: translate(0); }
    20% { transform: translate(-3px, 3px); }
    40% { transform: translate(-3px, -3px); }
    60% { transform: translate(3px, 3px); }
    80% { transform: translate(3px, -3px); }
    100% { transform: translate(0); }
}

/* Responsive */
@media (max-width: 768px) {
    .logo {
        font-size: 3rem;
    }
    
    .tagline {
        font-size: 1.2rem;
    }
    
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: rgba(0, 0, 0, 0.9);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: left 0.3s ease;
    }

    .nav-links.active {
        left: 0;
    }
    
    .hamburger {
        display: block;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .nav-logo {
        height: 40px;
    }
}

/* Projects Section Styles */
#projects {
    background: radial-gradient(circle at center, rgba(255,0,0,0.05) 0%, transparent 50%);
}

.rocket-projects {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    padding: 0 20px;
}

.rocket-card {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.3);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 0, 0, 0.2);
}

.rocket-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 30px var(--primary);
}

.rocket-header {
    padding: 20px;
    background: linear-gradient(to right, rgba(255,0,0,0.2), transparent);
    border-bottom: 1px solid var(--primary);
}

.rocket-header h3 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 10px;
    text-shadow: var(--glow);
}

.rocket-stats {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.rocket-stats span {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    color: #ccc;
}

.rocket-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.rocket-image {
    height: auto; /* Remove fixed height */
    min-height: 200px; /* Minimum height for placeholder */
    background-size: contain; /* Show full image without cropping */
    background-position: center;
    background-repeat: no-repeat;
    aspect-ratio: 3/4; /* Optional: Set expected ratio (adjust as needed) */
    position: relative;
}

.rocket-summary {
    padding: 20px;
    border-bottom: 1px solid rgba(255,0,0,0.2);
}

.rocket-summary p {
    margin-bottom: 15px;
    line-height: 1.5;
}

.details-btn {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Orbitron', sans-serif;
}

.details-btn:hover {
    background: rgba(255,0,0,0.2);
    box-shadow: 0 0 10px var(--primary);
}

.rocket-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.rocket-card.expanded .rocket-details {
    max-height: 1000px;
}

.tech-specs {
    padding: 20px;
    background: rgba(0,0,0,0.3);
}

.tech-specs h4 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.tech-specs ul {
    list-style: none;
}

.tech-specs li {
    margin-bottom: 8px;
    display: flex;
}

.tech-specs li strong {
    width: 120px;
    display: inline-block;
    color: var(--accent);
}

.rocket-gallery {
    padding: 20px;
}

.rocket-gallery h4 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.gallery-item {
    height: 100px;
    background-size: cover;
    background-position: center;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,0,0,0.3);
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 0 10px var(--primary);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .rocket-projects {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
