:root {
    --pink: #FF39B0;
    --blue: #00F0FF;
    --bg: #111320;
    --font: 'Orbitron', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font);
    background: var(--bg) url('assets/img/background-stars-bright.png') repeat fixed center;
    background-size: auto;
    image-rendering: pixelated; /* For modern browsers */
    image-rendering: -webkit-optimize-contrast; /* For Chrome/Safari */
    image-rendering: crisp-edges; /* For Firefox */
    -ms-interpolation-mode: nearest-neighbor; /* For older IE */
    position: relative;
    color: white;
}

/* Add a subtle overlay to ensure text readability */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(17, 19, 32, 0.65); /* Adjusted for optimal readability with brighter background */
    z-index: -10; /* Ensure it's behind all content */
    pointer-events: none;
}

header {
    background: #1c1e2c;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    justify-content: space-between;
}

.logo-nav img {
    height: 48px;
}

.main-nav {
    display: flex;
    align-items: center;
}

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

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

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.nav-links a:hover {
    color: var(--blue);
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.5);
}

.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    position: relative;
    z-index: 10;
}

.hamburger {
    display: block;
    position: relative;
    width: 24px;
    height: 2px;
    background-color: var(--blue);
    transition: transform 0.3s ease-in-out, background-color 0.3s ease;
    box-shadow: 0 0 8px rgba(0, 240, 255, 0.5);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 24px;
    height: 2px;
    background-color: var(--blue);
    transition: transform 0.3s ease-in-out;
    box-shadow: 0 0 8px rgba(0, 240, 255, 0.5);
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    bottom: -8px;
}

.nav-toggle[aria-expanded="true"] .hamburger {
    transform: rotate(45deg);
    background-color: var(--pink);
}

.nav-toggle[aria-expanded="true"] .hamburger::before {
    transform: rotate(90deg) translate(8px, 0);
    background-color: var(--pink);
    box-shadow: 0 0 8px rgba(255, 57, 176, 0.5);
}

.nav-toggle[aria-expanded="true"] .hamburger::after {
    transform: rotate(90deg) translate(-8px, 0);
    background-color: var(--pink);
    box-shadow: 0 0 8px rgba(255, 57, 176, 0.5);
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }
    
    .main-nav {
        position: absolute;
        top: 0;
        right: 0;
        width: 100%;
        max-width: 300px;
        height: 100vh;
        background: rgba(28, 30, 44, 0.98);
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        z-index: 9;
        padding-top: 70px;
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.5);
    }
    
    .main-nav.open {
        transform: translateX(0);
    }
    
    .nav-links {
        flex-direction: column;
        align-items: center;
        padding: 1rem;
    }
    
    .nav-links li {
        margin: 1rem 0;
    }
    
    .nav-links a {
        font-size: 1.2rem;
        padding: 0.5rem 1rem;
        display: block;
    }
}

.hero {
    text-align: center;
    min-height: 65vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 3rem 2rem;
    background: linear-gradient(to bottom, rgba(17, 19, 32, 0.9), rgba(17, 19, 32, 0.7));
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(0, 240, 255, 0.1) 0%, transparent 70%);
    z-index: -2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero h1 {
    color: var(--blue);
    font-size: clamp(2rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
    text-shadow: 0 0 15px rgba(0, 240, 255, 0.5);
    animation: glow 3s infinite alternate;
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    margin-bottom: 2rem;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-spark-container {
    margin: 0.5rem 0 1.5rem 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-spark-img {
    max-width: clamp(120px, 30vw, 350px);
    height: auto;
    display: block;
    aspect-ratio: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 15px rgba(255, 57, 176, 0.4)) brightness(1.2) contrast(1.1);
    animation: pulse 8s ease-in-out infinite;
    opacity: 0.9;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    -ms-interpolation-mode: nearest-neighbor;
    transform: translateZ(0);
    will-change: transform, opacity;
}

.launch-btn {
    background: linear-gradient(to right, var(--pink), var(--blue));
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: var(--font);
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
}

.launch-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 57, 176, 0.4);
}

.hero-visual {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
}

.horizon-line {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--pink), var(--blue), transparent);
    box-shadow: 0 0 20px 5px rgba(0, 240, 255, 0.5);
}

.stars {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(1px 1px at 25% 15%, white, transparent),
        radial-gradient(1px 1px at 50% 40%, white, transparent),
        radial-gradient(1px 1px at 75% 20%, white, transparent),
        radial-gradient(2px 2px at 20% 60%, white, transparent),
        radial-gradient(2px 2px at 35% 70%, white, transparent),
        radial-gradient(2px 2px at 65% 65%, white, transparent),
        radial-gradient(1px 1px at 85% 50%, white, transparent);
    background-size: 120% 120%;
    animation: drift 30s linear infinite;
}

@keyframes glow {
    from {
        text-shadow: 0 0 5px rgba(0, 240, 255, 0.5);
    }
    to {
        text-shadow: 0 0 20px rgba(0, 240, 255, 0.8);
    }
}

@keyframes drift {
    from {
        background-position: 0% 0%;
    }
    to {
        background-position: 100% 100%;
    }
}

@keyframes pulse {
    0% {
        opacity: 0.5;
        transform: scale(0.95);
    }
    50% {
        opacity: 0.9;
        transform: scale(1.05);
    }
    100% {
        opacity: 0.5;
        transform: scale(0.95);
    }
}

/* Make the hero section responsive */
@media (max-width: 768px) {
    .hero {
        min-height: 50vh;
        padding: 2.5rem 1.5rem;
    }
    
    .hero h1 {
        font-size: clamp(1.8rem, 6vw, 3rem);
        margin-bottom: 1rem;
    }
    
    .hero p {
        margin-bottom: 1.5rem;
        font-size: clamp(0.9rem, 1.8vw, 1.1rem);
    }
    
    .hero-spark-img {
        max-width: clamp(100px, 40vw, 250px);
        margin: 0;
        aspect-ratio: auto;
        object-fit: contain;
        filter: drop-shadow(0 0 15px rgba(255, 57, 176, 0.4)) brightness(1.2) contrast(1.1);
    }
    
    .launch-btn {
        padding: 0.6rem 1.2rem;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 40vh;
        padding: 2rem 1rem;
    }
    
    .hero h1 {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }
    
    .hero-spark-img {
        max-width: 140px;
        aspect-ratio: auto;
        object-fit: contain;
        filter: drop-shadow(0 0 15px rgba(255, 57, 176, 0.4)) brightness(1.2) contrast(1.1);
    }
}

.services {
    padding: 2rem;
    text-align: center;
}

.service-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.card {
    background: #1c1e2c;
    border: 1px solid var(--blue);
    padding: 1rem;
    max-width: 250px;
    flex: 1 1 250px;
    border-radius: 8px;
}

.card h3 {
    color: var(--blue);
}

.contact {
    padding: 2rem;
    text-align: center;
}

form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto;
}

input, textarea {
    padding: 0.75rem;
    border: 2px solid var(--blue);
    border-radius: 4px;
    font-size: 1rem;
}

button {
    background: linear-gradient(to right, var(--pink), var(--blue));
    color: white;
    padding: 0.75rem;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
}

/* Confirmation Message Styles */
.confirmation-message {
    max-width: 400px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.confirmation-content {
    background: rgba(28, 30, 44, 0.9);
    border: 2px solid var(--blue);
    border-radius: 8px;
    padding: 1.8rem;
    position: relative;
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.3);
    animation: glow 4s infinite alternate;
    overflow: hidden;
}

.confirmation-content::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--blue), transparent, var(--pink), transparent);
    background-size: 400% 400%;
    z-index: -1;
    filter: blur(10px);
    opacity: 0.7;
    animation: gradient-shift 15s ease infinite;
    border-radius: 10px;
}

.confirmation-content p {
    font-size: 1.3rem;
    margin-bottom: 1.8rem;
    color: var(--blue);
    font-weight: bold;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
    letter-spacing: 0.03em;
}

.send-another-btn {
    background: transparent;
    border: 2px solid var(--pink);
    color: var(--pink);
    transition: all 0.3s ease;
    padding: 0.75rem 1.5rem;
    font-weight: bold;
    border-radius: 4px;
    font-size: 1rem;
    letter-spacing: 0.05em;
    position: relative;
    overflow: hidden;
    z-index: 1;
    text-shadow: 0 0 5px rgba(255, 57, 176, 0.3);
}

.send-another-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, var(--pink), var(--blue));
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.send-another-btn:hover {
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 57, 176, 0.4);
    border-color: transparent;
}

.send-another-btn:hover::before {
    opacity: 1;
}

.send-another-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 57, 176, 0.5);
}

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@media (max-width: 768px) {
    .confirmation-content {
        padding: 1.5rem;
    }
    
    .confirmation-content p {
        font-size: 1.2rem;
        margin-bottom: 1.5rem;
    }
    
    .send-another-btn {
        padding: 0.6rem 1.2rem;
    }
}

@media (max-width: 480px) {
    .confirmation-content {
        padding: 1.2rem;
    }
    
    .confirmation-content p {
        font-size: 1.1rem;
        margin-bottom: 1.2rem;
    }
}

footer {
    text-align: center;
    padding: 1rem;
    background: #1c1e2c;
    font-size: 0.9rem;
}

/* Project Horizon Banner Section */
.hero-banner-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 1rem;
    max-width: 100%;
    overflow: hidden;
    flex-direction: column;
    background: var(--bg);
}

.hero-banner-section img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    image-rendering: pixelated;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    -ms-interpolation-mode: nearest-neighbor;
    display: block;
}

.horizon-caption {
    margin-top: 1rem;
    font-family: var(--font);
    color: var(--blue);
    font-size: clamp(1rem, 1.8vw, 1.5rem);
    font-weight: bold;
    text-align: center;
    letter-spacing: 0.05em;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
    padding: 0 1rem;
}

@media (max-width: 768px) {
    .hero-banner-section {
        padding: 1rem 0.5rem;
    }
    
    .hero-banner-section img {
        width: 100%;
        height: auto;
    }
    
    .horizon-caption {
        font-size: clamp(0.9rem, 4vw, 1.2rem);
    }
}

@media (max-width: 480px) {
    .hero-banner-section {
        padding: 0.5rem 0.25rem;
    }
    
    .horizon-caption {
        font-size: 1rem;
    }
}
