/* General Styles */
body {
    font-family: 'Orbitron', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: #0a0a1a; /* Dark blue-black */
    color: #e0e0e0; /* Light grey */
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

h1, h2, h3 {
    color: #00ffff; /* Cyan */
    text-shadow: 0 0 5px #00ffff, 0 0 10px #00ffff;
}

/* Header and Navigation */
header {
    background-color: rgba(10, 10, 26, 0.8); /* Semi-transparent dark blue */
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 4px rgba(0, 255, 255, 0.2);
    padding: 1rem 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 255, 255, 0.3);
}

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

.logo a {
    font-size: 1.8rem;
    font-weight: bold;
    color: #00ffff;
}

.logo-img {
    height: 50px;
    width: auto;
    vertical-align: middle;
}

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

.nav-links li {
    padding: 0 1rem;
}

.nav-links a {
    font-weight: 500;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.nav-links a:hover {
    color: #ffffff;
    text-shadow: 0 0 8px #00ffff;
}

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: #00ffff;
    margin: 5px;
    transition: all 0.3s ease;
}

/* Hero Section */
#hero {
    background: #0a0a1a; /* Fallback color */
    color: #fff;
    text-align: center;
    padding: 120px 20px;
    position: relative;
    overflow: hidden;
}

#particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(10, 10, 26, 0.4), rgba(28, 28, 51, 0.5));
    z-index: 1; /* Ensure gradient is above canvas but below content */
}

.hero-content {
    position: relative;
    z-index: 2; /* Ensure content is above canvas and gradient */
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: #fff;
    text-shadow: 0 0 15px #00ffff, 0 0 25px #00ffff;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: #e0e0e0;
}

.cta-button {
    background-color: transparent;
    color: #00ffff;
    padding: 15px 30px;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid #00ffff;
    cursor: pointer;
    text-shadow: 0 0 5px #00ffff;
}

.cta-button:hover {
    background-color: #00ffff;
    color: #0a0a1a;
    box-shadow: 0 0 20px #00ffff;
}

/* Services Section */
#services {
    padding: 60px 5%;
    text-align: center;
}

#services h2 {
    font-size: 2.8rem;
    margin-bottom: 50px;
}

.service-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.service-card {
    background: rgba(28, 28, 51, 0.7); /* Dark, semi-transparent card */
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    width: 280px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 255, 255, 0.3);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.5);
}

.service-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 15px;
    filter: grayscale(50%) contrast(120%);
}

.service-card h3 {
    font-size: 1.6rem;
    margin-bottom: 10px;
}

.service-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card-link:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.5);
}

/* Service Page Specifics */
.service-page-hero {
    background: linear-gradient(45deg, rgba(10, 10, 26, 0.8), rgba(28, 28, 51, 0.9));
    text-align: center;
    padding: 80px 20px;
    border-bottom: 1px solid rgba(0, 255, 255, 0.3);
}

.service-page-hero h1 {
    font-size: 3rem;
    color: #fff;
    margin-bottom: 1rem;
}

.service-page-hero p {
    font-size: 1.2rem;
    color: #e0e0e0;
}

.service-page-content {
    padding: 60px 15%;
}

.service-page-content h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    border-bottom: 2px solid rgba(0, 255, 255, 0.3);
    padding-bottom: 10px;
}

.service-page-content h3 {
    font-size: 1.8rem;
    color: #00ffff;
    margin-top: 40px;
    margin-bottom: 15px;
}

.service-page-content p {
    font-size: 1.1rem;
    color: #ccc;
    margin-bottom: 20px;
}

.case-study {
    background: rgba(28, 28, 51, 0.5);
    border-left: 4px solid #00ffff;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 0 4px 4px 0;
}

.case-study h4 {
    font-size: 1.4rem;
    margin: 0 0 10px 0;
    color: #fff;
}

.case-study p {
    margin: 0;
    font-size: 1rem;
    color: #ccc;
}

/* About Section */
#about {
    background-color: #0f0f24;
    padding: 60px 15%;
    text-align: center;
    border-top: 1px solid rgba(0, 255, 255, 0.3);
    border-bottom: 1px solid rgba(0, 255, 255, 0.3);
}

#about h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
}

/* Contact Section */
#contact {
    padding: 60px 5%;
    text-align: center;
}

#contact h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
}

#contact form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#contact input, #contact textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 5px;
    font-family: inherit;
    background-color: rgba(28, 28, 51, 0.7);
    color: #e0e0e0;
}

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

/* Footer */
footer {
    background-color: #0a0a1a;
    color: #aaa;
    text-align: center;
    padding: 20px 5%;
    border-top: 1px solid rgba(0, 255, 255, 0.3);
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .nav-links {
        position: absolute;
        right: 0px;
        height: 92vh;
        top: 8vh;
        background-color: rgba(10, 10, 26, 0.95);
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 50%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
        margin: 0;
        padding: 0;
    }

    .nav-links li {
        opacity: 0;
        padding: 2rem 0;
    }

    .burger {
        display: block;
    }

    .nav-active {
        transform: translateX(0%);
    }

    @keyframes navLinkFade {
        from {
            opacity: 0;
            transform: translateX(50px);
        }
        to {
            opacity: 1;
            transform: translateX(0px);
        }
    }

    .toggle .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    .toggle .line2 {
        opacity: 0;
    }
    .toggle .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }
}
