@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&display=swap');

/* General Styles */
body {
    background-color: #0a192f;
    color: #a8b2d1;
    font-family: 'Orbitron', sans-serif;
    margin: 0;
    padding: 0;
}

/* Header */
header {
    background-color: #0a192f;
    padding: 20px 40px; /* Adjusted padding */
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    transition: top 0.3s;
    box-sizing: border-box; /* Added for better padding calculation */
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #0d00ff;
    text-shadow: 0 0 10px #0d00ff, 0 0 20px #0d00ff, 0 0 30px #0d00ff;
}

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

.nav-links li {
    margin-left: 30px; /* Adjusted margin */
}

.nav-links a {
    color: #a8b2d1;
    text-decoration: none;
    font-size: 16px; /* Adjusted font size */
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #0d00ff;
}

.nav-toggle {
    display: none; /* Hidden by default */
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0;
}

.hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #0d00ff;
    position: relative;
    transition: background-color 0.3s;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    background-color: #0d00ff;
    left: 0;
    transition: transform 0.3s;
}

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

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

/* Hero Section */
.hero {
    text-align: center;
    padding: 150px 20px 100px; /* Adjusted padding */
    animation: fadeIn 2s ease-in-out;
}

.hero h1 {
    font-size: 60px; /* Adjusted font size */
    color: #0d00ff;
    margin-bottom: 20px;
    animation: slideInFromLeft 1s ease-in-out;
}

.hero p {
    font-size: 20px; /* Adjusted font size */
    color: #8892b0;
    animation: slideInFromRight 1s ease-in-out;
}

/* Services Section */
#services {
    padding: 80px 20px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.service-item {
    background-color: #112240;
    padding: 30px;
    border-radius: 5px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 20px #0d00ff;
}

.service-item h3 {
    font-size: 24px;
    color: #0d00ff;
    margin-bottom: 10px;
}

/* About Section */
#about {
    padding: 80px 20px;
}

/* Contact Section */
#contact {
    padding: 80px 20px;
}

form {
    display: flex;
    flex-direction: column;
    max-width: 500px;
    margin: 0 auto;
}

input,
textarea {
    background-color: #112240;
    color: #a8b2d1;
    border: 1px solid #0d00ff;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    transition: border-color 0.3s;
}

input:focus,
textarea:focus {
    border-color: #ffd700;
}

button {
    background-color: #0d00ff;
    color: #0a192f;
    padding: 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 18px;
    transition: background-color 0.3s, color 0.3s;
}

button:hover {
    background-color: #ffd700;
    color: #0a192f;
}

/* Footer */
footer {
    background-color: #0a192f;
    text-align: center;
    padding: 20px;
}

/* Keyframe Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInFromLeft {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

/* Media Queries for Mobile Responsiveness */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        background-color: #0a192f;
        width: 100%;
        text-align: center;
    }

    .nav-links.active {
        display: block;
    }

    .nav-links ul {
        flex-direction: column;
    }

    .nav-links li {
        margin: 20px 0;
    }

    .nav-toggle {
        display: block;
    }

    .nav-toggle.active .hamburger {
        background-color: transparent;
    }

    .nav-toggle.active .hamburger::before {
        transform: rotate(45deg);
        top: 0;
    }

    .nav-toggle.active .hamburger::after {
        transform: rotate(-45deg);
        bottom: 0;
    }

    .hero h1 {
        font-size: 40px;
    }

    .hero p {
        font-size: 18px;
    }

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