/* --- Basic Setup --- */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #1a1a1a; 
    color: #eeeeee; 
    line-height: 1.6;
    
    position: relative;
    overflow-x: hidden; 
    
    display: flex;
    flex-direction: column;
    min-height: 100vh; 
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2; 
}

/* --- Header & Logo --- */
header {
    /* MODIFICATION: Reduced bottom padding */
    padding: 40px 0 10px 0; 
    text-align: center;
    flex-shrink: 0;
}

.logo {
    color: #ffffff;
    text-decoration: none;
}

.logo img {
    max-height: 60px; 
    width: auto;
    vertical-align: middle; 
}

/* --- Main Content Sections --- */
main {
    /* MODIFICATION: Reduced padding */
    padding-bottom: 30px;
    flex-grow: 1; 
    display: flex;
    flex-direction: column;
    justify-content: center;
}

section {
    /* MODIFICATION: Reduced padding */
    padding: 30px 0; 
    text-align: center;
    /* MODIFICATION: Added white separator line */
    border-top: 1px solid #ffffff; 
}

/* --- Generic Heading Styles --- */
h1, h2 {
    color: #ffffff;
}

/* --- Presentation Text Section --- */
#presentation {
    font-size: 1.1rem;
    max-width: 720px;
    margin: 0 auto;
    /* MODIFICATION: Removed top border from first section */
    border-top: none; 
    /* MODIFICATION: Reduced top padding */
    padding-top: 10px;
}

#presentation h1 {
    font-size: 2.5rem; 
    margin-bottom: 20px;
    line-height: 1.3; 
}

/* --- MODIFICATION: Generalized h2 styling --- */
h2 {
    font-size: 2rem; 
    margin-bottom: 40px;
}

/* --- "Who are we?" Section --- */
#about {
    /* MODIFICATION: Reduced padding to be consistent */
    padding: 30px 0; 
}

/* Removed the #about h2 rule */

/* --- Office Section --- */
#office img {
    max-width: 100%;
    width: 50%;
    height: auto;
    display: block;
    margin: 20px auto;
    border: 1px solid silver;
}


/* --- Products Section --- */

.product-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap; 
    gap: 30px; 
}

.product-card {
    background-color: rgba(0, 0, 0, 0.6); 
    border: 1px solid silver; 
    padding: 30px;
    border-radius: 8px;
    max-width: 400px;
    width: 100%; 
    text-align: left;
    animation: circular-glow 4s linear infinite; 
}

@keyframes circular-glow {
    0% {
        box-shadow: 
            -3px -3px 5px rgba(255, 255, 255, 0.4), 
            0 0 5px rgba(255, 255, 255, 0.1);
    }
    25% {
        box-shadow: 
            3px -3px 5px rgba(255, 255, 255, 0.4), 
            0 0 5px rgba(255, 255, 255, 0.1);
    }
    50% {
        box-shadow: 
            3px 3px 5px rgba(255, 255, 255, 0.4), 
            0 0 5px rgba(255, 255, 255, 0.1);
    }
    75% {
        box-shadow: 
            -3px 3px 5px rgba(255, 255, 255, 0.4), 
            0 0 5px rgba(255, 255, 255, 0.1);
    }
    100% {
        box-shadow: 
            -3px -3px 5px rgba(255, 255, 255, 0.4), 
            0 0 5px rgba(255, 255, 255, 0.1);
    }
}


.product-card .icon {
    font-size: 2.5rem; 
    color: #ffffff; 
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px; 
    width: 60px; 
    margin: 0 auto 20px auto; 
}

.product-card .icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-card h3 {
    font-size: 1.5rem;
    color: #ffffff; 
    margin: 0 0 10px 0;
}

.product-card p {
    font-size: 1rem;
    color: #eeeeee; 
    margin: 0;
    margin-bottom: 25px; 
}

.product-buttons {
    display: flex;
    justify-content: flex-start; 
    gap: 15px; 
    flex-wrap: wrap; 
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 700; 
    text-decoration: none;
    border-radius: 5px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn.btn-primary {
    background-color: #ffffff; 
    color: #1a1a1a; 
    border: 1px solid #ffffff;
}

.btn.btn-primary:hover {
    background-color: transparent;
    color: #ffffff;
}

.btn.btn-secondary {
    background-color: transparent;
    color: #eeeeee; 
    border: 1px solid #eeeeee; 
}

.btn.btn-secondary:hover {
    background-color: #eeeeee;
    color: #1a1a1a; 
}


/* --- Minimal Footer --- */
footer {
    text-align: center;
    padding: 0; 
    border-top: 1px solid #ffffff; 
    color: #eeeeee; 
    font-size: 0.9rem;
    flex-shrink: 0;
}

footer .container {
    padding-top: 0;
    padding-bottom: 0;
}

footer p {
    margin: 0; 
    line-height: 1.7; 
}

footer a {
    color: #ffffff; 
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}


/* --- Background Wrapper --- */
.background-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden; 
    z-index: 1; 
    pointer-events: none;
}

/* Background effects */
.stars-bg, .gradient-overlay, .aurora-bg, .shooting-star {
    position: absolute; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

/* Stars (Twinkle Animation) */
.stars1, .stars2, .stars3 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-repeat: repeat;
    opacity: 0;
}

.stars1 {
    background-image: radial-gradient(1px 1px at 20px 30px, #ffffff, transparent); 
    background-size: 100px 100px;
    animation: twinkle 12s linear infinite;
}

.stars2 {
    background-image: radial-gradient(1.5px 1.5px at 150px 70px, #ffffff, transparent); 
    background-size: 200px 200px;
    animation: twinkle 15s linear infinite;
    animation-delay: 2s; 
}

.stars3 {
    background-image: radial-gradient(2px 2px at 300px 120px, #ffffff, transparent); 
    background-size: 300px 300px;
    animation: twinkle 18s linear infinite;
    animation-delay: 4s; 
}

@keyframes twinkle {
    0% { opacity: 0.1; }
    50% { opacity: 0.95; } 
    100% { opacity: 0.1; }
}

/* Gradient Overlay */
.gradient-overlay {
    background: linear-gradient(to bottom, transparent 0%, #002446 100%); 
    opacity: 0.6;
    z-index: 0; 
}

/* --- Northern Lights (Aurora) --- RESTORED --- */
.aurora-bg {
    z-index: 0; 
    opacity: 0.4; 
    background: 
        radial-gradient(ellipse at 20% 70%, rgba(0, 255, 100, 0.3) 0%, transparent 50%),
        /* MODIFICATION: Fixed typo s0.3 to 0.3 */
        radial-gradient(ellipse at 80% 60%, rgba(100, 255, 0, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(0, 200, 255, 0.3) 0%, transparent 50%);
    background-repeat: no-repeat; 
    background-size: 150% 200%; 
    animation: aurora-movement 40s linear infinite alternate;
}


@keyframes aurora-movement {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 100% 100%;
    }
}

/* Shooting Star */
.shooting-star {
    position: absolute;
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 10px white, 0 0 20px white, 0 0 40px white;
    animation: shoot 5s linear infinite;
    opacity: 0; 
    z-index: 1; 
}

.shooting-star:nth-child(4) { 
    top: 10%;
    left: -10%;
    animation-delay: 1s;
    animation-duration: 12s; 
}
.shooting-star:nth-child(5) { 
    top: 30%;
    left: -30%;
    animation-delay: 5s;
    animation-duration: 14s; 
}
.shooting-star:nth-child(6) { 
    top: 50%;
    left: -5%;
    animation-delay: 10s;
    animation-duration: 10s; 
}

@keyframes shoot {
    0% {
        transform: translateX(0) translateY(0) rotate(45deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    100% {
        transform: translateX(120vw) translateY(120vh) rotate(45deg);
        opacity: 0;
    }
}