/* Global Styles */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #1a1a2e;
    color: #e0e0e0;
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

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

a {
    text-decoration: none;
    color: #00ffff; /* Cyan accent */
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Header & Navigation */
header {
    background-color: rgba(26, 26, 46, 0.85); /* Slightly transparent dark blue */
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

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

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #00ffff;
    text-shadow: 0 0 5px #00ffff, 0 0 10px #00ffff;
}

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

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    color: #e0e0e0;
    font-weight: 500;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

nav ul li a:hover,
nav ul li a.active {
    color: #00ffff;
    text-shadow: 0 0 5px #00ffff;
}

/* Hero Section */
#hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 2rem;
    background: linear-gradient(rgba(26, 26, 46, 0.7), rgba(26, 26, 46, 0.9)), url('https://source.unsplash.com/random/1920x1080?abstract,technology,futuristic') no-repeat center center/cover;
    position: relative;
    overflow: hidden; /* For pseudo-elements */
}

/* Add a subtle particle effect or animation later if desired */
#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: radial-gradient(circle, rgba(0,255,255,0.05) 0%, rgba(0,255,255,0) 70%); */
    /* animation: pulse 5s infinite ease-in-out; */
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.7; }
    100% { transform: scale(1); opacity: 0.5; }
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.7), 0 0 20px rgba(0, 255, 255, 0.5);
    animation: fadeInDown 1s ease-out;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #c0c0c0;
    animation: fadeInUp 1s ease-out 0.5s;
    animation-fill-mode: backwards; /* Start invisible before animation */
}

.cta-button {
    background: #00ffff;
    color: #1a1a2e;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    text-transform: uppercase;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 10px #00ffff, 0 0 20px #00ffff;
    animation: fadeInUp 1s ease-out 1s;
    animation-fill-mode: backwards;
}

.cta-button:hover {
    background-color: #00e0e0;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 0 15px #00ffff, 0 0 30px #00ffff, 0 0 45px #00ffff;
}

/* General Section Styling */
section {
    padding: 5rem 2rem;
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

section h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #00ffff;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.5);
    position: relative;
    display: inline-block;
}

section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: #00ffff;
    margin: 0.5rem auto 0;
    border-radius: 2px;
}

/* Features Section */
#features {
    background-color: #1f1f38; /* Slightly lighter dark blue */
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-item {
    background: rgba(40, 40, 70, 0.5);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(5px);
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 255, 255, 0.3);
}

.feature-item img {
    width: 80px; /* Placeholder images might be large, constrain them */
    height: 80px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: #00ffff;
    padding: 5px; /* If images are icons, this creates a border */
}

.feature-item h3 {
    font-size: 1.5rem;
    color: #00ffff;
    margin-bottom: 0.5rem;
}

.feature-item p {
    font-size: 1rem;
    color: #b0b0b0;
}

/* About Section */
#about {
    background: linear-gradient(rgba(26, 26, 46, 0.8), rgba(26, 26, 46, 0.95)), url('https://source.unsplash.com/random/1920x1080?space,nebula') no-repeat center center/cover;
}

#about p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    color: #d0d0d0;
}

/* Contact Section */
#contact {
    background-color: #1f1f38;
}

#contact form {
    max-width: 600px;
    margin: 2rem auto 0;
    display: grid;
    gap: 1rem;
}

#contact input,
#contact textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: 5px;
    border: 1px solid #00ffff;
    background-color: rgba(26, 26, 46, 0.7);
    color: #e0e0e0;
    font-size: 1rem;
}

#contact input::placeholder,
#contact textarea::placeholder {
    color: #888;
}

#contact textarea {
    min-height: 120px;
    resize: vertical;
}

#contact button {
    background: #00ffff;
    color: #1a1a2e;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 8px #00ffff;
    justify-self: center; /* Center button in grid */
    width: fit-content;
}

#contact button:hover {
    background-color: #00e0e0;
    transform: scale(1.05);
    box-shadow: 0 0 12px #00ffff, 0 0 20px #00ffff;
}

/* Footer */
footer {
    background-color: #101020;
    padding: 2rem;
    text-align: center;
    font-size: 0.9rem;
    color: #888;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scrollbar Styling (Optional, Webkit/Blink based browsers) */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a2e;
}

::-webkit-scrollbar-thumb {
    background: #00ffff;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #00cccc;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .hero-content p {
        font-size: 1.2rem;
    }
    nav ul {
        flex-direction: column;
        position: absolute;
        top: 70px; /* Adjust based on header height */
        left: 0;
        width: 100%;
        background-color: rgba(26, 26, 46, 0.95);
        backdrop-filter: blur(5px);
        display: none; /* Toggle with JS */
        padding: 1rem 0;
    }
    nav ul.active {
        display: flex;
    }
    nav ul li {
        margin: 0.5rem 0;
        text-align: center;
    }
    .logo {
        font-size: 1.5rem;
    }
    /* Consider adding a menu toggle button here */
}
