/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

/* Header and Navigation */
header {
    background-color: #1a1a2e;
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    transition: opacity 0.3s;
}

.logo:hover {
    opacity: 0.8;
}

.logo-image {
    height: 50px;
    width: auto;
}

.logo h1 {
    font-size: 1.8rem;
    color: #00d9ff;
    margin: 0;
}

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

.nav-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #00d9ff;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #0a0a15 0%, #16213e 100%);
    color: white;
    padding: 6rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Starfield Background */
.starfield {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.starfield::before,
.starfield::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 2px;
    background: transparent;
    border-radius: 50%;
    top: 50%;
    left: 50%;
}

/* Create multiple stars using box-shadow - spread across full viewport */
.starfield::before {
    box-shadow:
        -500px 100px 0 0 white,
        -350px 50px 0 0 white,
        -200px 150px 0 0 white,
        -100px 80px 0 0 white,
        100px 100px 0 0 white,
        250px 50px 0 0 white,
        400px 150px 0 0 white,
        600px 80px 0 0 white,
        -400px 250px 0 0 white,
        -250px 200px 0 0 white,
        150px 250px 0 0 white,
        800px 200px 0 0 white,
        350px 300px 0 0 white,
        -150px 100px 0 0 white,
        200px -100px 0 0 white,
        700px -50px 0 0 white,
        450px 180px 0 0 white,
        -300px 180px 0 0 white,
        -450px -50px 0 0 white,
        550px -80px 0 0 white,
        300px 200px 0 0 white,
        -200px -100px 0 0 white,
        120px 220px 0 0 white,
        -350px 150px 0 0 white,
        420px 120px 0 0 white,
        -100px 300px 0 0 white,
        180px -150px 0 0 white,
        -400px -150px 0 0 white,
        500px 250px 0 0 white,
        -250px -50px 0 0 white;
    animation: twinkle 4s infinite;
}

.starfield::after {
    box-shadow:
        -480px 120px 0 0 rgba(255,255,255,0.7),
        -320px 180px 0 0 rgba(255,255,255,0.7),
        -150px 220px 0 0 rgba(255,255,255,0.7),
        150px 120px 0 0 rgba(255,255,255,0.7),
        320px 180px 0 0 rgba(255,255,255,0.7),
        500px 220px 0 0 rgba(255,255,255,0.7),
        680px 140px 0 0 rgba(255,255,255,0.7),
        -380px 280px 0 0 rgba(255,255,255,0.7),
        220px 280px 0 0 rgba(255,255,255,0.7),
        -200px 160px 0 0 rgba(255,255,255,0.7),
        410px 260px 0 0 rgba(255,255,255,0.7),
        -450px 80px 0 0 rgba(255,255,255,0.7),
        260px -120px 0 0 rgba(255,255,255,0.7),
        -300px -80px 0 0 rgba(255,255,255,0.7),
        520px -50px 0 0 rgba(255,255,255,0.7),
        -150px 260px 0 0 rgba(255,255,255,0.7),
        620px 240px 0 0 rgba(255,255,255,0.7),
        -420px 200px 0 0 rgba(255,255,255,0.7),
        340px -100px 0 0 rgba(255,255,255,0.7),
        -250px 300px 0 0 rgba(255,255,255,0.7);
    animation: twinkle 5s infinite;
}

@keyframes twinkle {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 1;
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-image {
    max-width: 200px;
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 217, 255, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex-shrink: 0;
}

.hero-image:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 50px rgba(0, 217, 255, 0.4);
}

.hero-text {
    flex: 1;
    text-align: left;
}

.hero-text h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #00d9ff;
}

.hero-text p {
    font-size: 1.3rem;
    color: #e0e0e0;
}

/* Features Section */
.features {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #1a1a2e;
}

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

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.feature-card h3 {
    color: #00d9ff;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.feature-card p {
    color: #666;
}

/* About Section */
.about {
    background: white;
    max-width: 1200px;
    margin: 4rem auto;
    padding: 3rem 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.about h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #1a1a2e;
}

.about p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.8;
}

/* Contact Section */
.contact {
    max-width: 800px;
    margin: 4rem auto;
    padding: 3rem 2rem;
    text-align: center;
}

.contact h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #1a1a2e;
}

.contact p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 2rem auto;
    text-align: left;
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #1a1a2e;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #00d9ff;
}

.g-recaptcha {
    margin: 1.5rem 0;
    display: flex;
    justify-content: center;
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    background-color: #00d9ff;
    color: #1a1a2e;
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-submit:hover {
    background-color: #00b8d4;
}

.btn-submit:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.contact-message {
    max-width: 600px;
    margin: 1rem auto;
    padding: 1rem;
    border-radius: 4px;
    display: none;
}

.contact-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.contact-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* Footer */
footer {
    background-color: #1a1a2e;
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 1rem;
    }

    .logo-image {
        height: 40px;
    }

    .logo h1 {
        font-size: 1.5rem;
    }

    .nav-links {
        gap: 1.5rem;
    }

    .hero-content {
        flex-direction: column;
        gap: 1.5rem;
    }

    .hero-image {
        max-width: 150px;
    }

    .hero-text {
        text-align: center;
    }

    .hero-text h2 {
        font-size: 2rem;
    }

    .hero-text p {
        font-size: 1.1rem;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }
}
