/* wwwroot/css/site.css */

/* --- Global Styles & Variables --- */
:root {
    --bg-primary: #0a0a0c; /* Deep Charcoal/Black */
    --bg-secondary: #1a1a1e; /* Slightly lighter charcoal */
    --text-primary: #e0e0e0; /* High-contrast light gray */
    --text-secondary: #a0a0a0; /* Muted gray for secondary text */
    /* Colors derived directly from the provided logo */
    --logo-green: #A2CC33; /* Bright Yellow-Green */
    --logo-green-hover: #BFE060; /* Slightly lighter for hover states */
    --logo-blue: #23497A; /* Deep Blue */

    --border-color: #2a2a30; /* Subtle border */
    --font-heading: 'Poppins', sans-serif; /* Modern, clean font */
    --font-body: 'Inter', sans-serif; /* Readable body font */
    --transition-speed: 0.3s ease-out;
    --spacing-unit: 1rem;
}

/* Base reset and typography */
html {
    scroll-behavior: smooth;
    font-size: 16px; /* Base for rem units */
}

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background-color: var(--bg-primary);
    margin: 0;
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll from animations */
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    margin-top: 0;
    margin-bottom: var(--spacing-unit);
    line-height: 1.2;
}

h1 {
    font-size: 4.5rem;
    font-weight: 700;
}
/* Adjusted for general use */
h2 {
    font-size: 3rem;
    font-weight: 600;
}

h3 {
    font-size: 2rem;
    font-weight: 500;
}

p {
    margin-bottom: var(--spacing-unit);
}

a {
    color: var(--logo-green); /* Link color matches logo green */
    text-decoration: none;
    transition: color var(--transition-speed);
}

    a:hover {
        color: var(--logo-green-hover); /* Lighter green on hover */
        text-decoration: underline;
    }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 calc(var(--spacing-unit) * 2);
}

/* --- Navigation Bar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 12, 0.9); /* Semi-transparent background */
    backdrop-filter: blur(10px); /* Glassmorphism effect */
    z-index: 1000;
    padding: calc(var(--spacing-unit) * 1.5) 0;
    border-bottom: 1px solid var(--border-color);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    display: flex; /* Makes the anchor a flex container */
    align-items: center; /* Vertically centers items within the flex container */
    gap: 0.5rem; /* Adds space between the logo and the text, and between text spans */

    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}
    /* Styling for 'STAR' part of the logo text */
    .navbar-brand .logo-star {
        color: var(--logo-green);
    }
    /* Styling for 'SYSTEMS' part of the logo text */
    .navbar-brand .logo-systems {
        color: var(--logo-blue); /* Deep blue for 'SYSTEMS' */
    }


.navbar-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: calc(var(--spacing-unit) * 2);
}

.nav-item a {
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
}

    .nav-item a:hover {
        color: var(--logo-green-hover); /* Lighter green on hover */
        text-decoration: none;
    }

    .nav-item a::after {
        content: '';
        position: absolute;
        left: 0;
        bottom: -5px;
        width: 0;
        height: 2px;
        background-color: var(--logo-green); /* Underline matches logo green */
        transition: width var(--transition-speed);
    }

    .nav-item a:hover::after {
        width: 100%;
    }

/* --- Sections --- */
section {
    padding: calc(var(--spacing-unit) * 8) 0; /* Ample vertical spacing */
    position: relative;
    overflow: hidden; /* For AOS animations */
}

    section:nth-of-type(even) {
        background-color: var(--bg-secondary); /* Alternating background */
    }

/* Hero Section */
.hero {
    height: 85vh; /* Or your desired height */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    /* UPDATED: Changed rgba(0, 0, 0, 0.8) to rgba(0, 0, 0, 0.9) */
    background: linear-gradient(135deg, var(--bg-primary) 0%, rgba(0, 0, 0, 0.3) 100%), url('/img/stars-bg.jpg') no-repeat center center / cover; /* Ensure this background image exists */
    position: relative;
    overflow: hidden;
}

    .hero::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: none;
        opacity: 0;
    }

.hero-content {
    z-index: 10;
    max-width: 900px;
    /* Adding some internal padding to hero-content itself can sometimes help
       balance spacing, but adjusting element margins is more direct here. */
}

/* Styling for "Welcome to" text */
.hero-welcome-text {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 600;
    color: var(--text-primary);
    /* Reduced margin below "Welcome to" to pull content up */
    margin-bottom: calc(var(--spacing-unit) * 0.5); /* Changed from 1rem to 0.5rem */
    line-height: 1.2;
}

/* Styling for the SVG logo icon */
.hero-logo-icon {
    max-width: 250px;
    height: auto;
    /* Reduced vertical margins around the logo */
    margin: calc(var(--spacing-unit) * 1) auto; /* Changed from 1.5rem auto to 1rem auto */
    filter: none;
    display: block;
}

/* Styling for the tagline (below the SVG) */
.hero-tagline {
    font-size: 1.6rem;
    color: var(--text-secondary);
    /* Reduced margin top to pull tagline closer to logo */
    margin-top: calc(var(--spacing-unit) * 0.5); /* Changed from 1rem to 0.5rem */
    /* Reduced margin bottom to pull button up */
    margin-bottom: calc(var(--spacing-unit) * 2); /* Changed from 3rem to 2rem */
}


.btn-primary {
    display: inline-block;
    background-color: var(--logo-green);
    color: var(--bg-primary);
    padding: calc(var(--spacing-unit) * 1.2) calc(var(--spacing-unit) * 3);
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color var(--transition-speed), transform var(--transition-speed);
    box-shadow: none;
}

    .btn-primary:hover {
        background-color: var(--logo-green-hover);
        transform: translateY(-3px);
        box-shadow: none;
        text-decoration: none;
    }

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: calc(var(--spacing-unit) * 3);
    margin-top: calc(var(--spacing-unit) * 4);
}

.service-item {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    padding: calc(var(--spacing-unit) * 3);
    border-radius: 10px;
    text-align: center;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

    .service-item:hover {
        transform: translateY(-10px);
        /* Box shadow uses logo green */
        box-shadow: 0 15px 30px rgba(162, 204, 51, 0.15); /* Kept a subtle shadow here for hover effect */
    }

    .service-item i { /* For Font Awesome icons */
        font-size: 3rem;
        color: var(--logo-green); /* Icons use logo green */
        margin-bottom: var(--spacing-unit);
        display: block;
    }

    .service-item h3 {
        font-size: 1.8rem;
        margin-bottom: var(--spacing-unit);
    }

    .service-item p {
        color: var(--text-secondary);
        font-size: 1.1rem;
    }

/* About Section */
#about {
    /* Apply the exact same background as the hero section */
    background: linear-gradient(135deg, var(--bg-primary) 0%, rgba(0, 0, 0, 0.3) 100%), url('/img/stars-bg.jpg') no-repeat center center / cover;
    /* Ensure padding is consistent with other sections */
    padding: calc(var(--spacing-unit) * 8) 0;
    position: relative;
    overflow: hidden; /* For AOS animations */
    /* You might want to remove 'section:nth-of-type(even)' if this specific override conflicts,
       but usually direct ID styling takes precedence. */
}
/* Ensure about-content text is readable on this darker background if needed, but text-primary should be fine */
.about-content {
    display: flex;
    flex-direction: column;
    gap: calc(var(--spacing-unit) * 2);
    align-items: center;
}

    .about-content p {
        max-width: 800px;
        text-align: center;
        font-size: 1.2rem;
        color: var(--text-secondary); /* Text color remains as set for readability */
    }

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: calc(var(--spacing-unit) * 4);
    margin-top: calc(var(--spacing-unit) * 4);
}

.contact-form {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    padding: calc(var(--spacing-unit) * 3);
    border-radius: 10px;
    text-align: center; /* To center inline-block elements like the button */
}

.form-group {
    margin-bottom: calc(var(--spacing-unit) * 1.5);
}

    .form-group label {
        display: block;
        margin-bottom: calc(var(--spacing-unit) * 0.5);
        font-size: 1.1rem;
        font-weight: 500;
        color: var(--text-primary);
        text-align: left; /* Ensure labels are left-aligned even if parent is center */
    }

    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group textarea {
        width: 100%;
        padding: calc(var(--spacing-unit) * 1);
        background-color: var(--bg-secondary);
        border: 1px solid var(--border-color);
        border-radius: 5px;
        color: var(--text-primary);
        font-family: var(--font-body);
        font-size: 1rem;
        transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
        text-align: left; /* Ensure input text is left-aligned */
    }

        .form-group input:focus,
        .form-group textarea:focus {
            outline: none;
            border-color: var(--logo-green); /* Focus border uses logo green */
            box-shadow: 0 0 0 3px rgba(162, 204, 51, 0.2); /* Focus shadow uses logo green */
        }

    .form-group textarea {
        min-height: 120px;
        resize: vertical;
    }

/* --- UPDATED: btn-submit styling to match image and btn-primary style - Removed box-shadow for no glow --- */
.btn-submit {
    display: inline-block;
    background-color: var(--logo-green); /* Submit button uses logo green */
    color: var(--bg-primary);
    padding: calc(var(--spacing-unit) * 1.2) calc(var(--spacing-unit) * 3); /* Increased padding to match btn-primary */
    border-radius: 50px; /* Made pill-shaped */
    font-size: 1.2rem; /* Increased font size to match btn-primary */
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background-color var(--transition-speed), transform var(--transition-speed);
    /* REMOVED: Box shadow that creates a glow effect */
    box-shadow: none; /* Remove any shadow */
    letter-spacing: 1px; /* Added for consistency with btn-primary's visual impact */
}

    .btn-submit:hover {
        background-color: var(--logo-green-hover); /* Lighter green on hover */
        transform: translateY(-3px); /* Match hover animation of btn-primary */
        /* REMOVED: Box shadow that creates a glow effect on hover */
        box-shadow: none; /* Remove any shadow on hover */
    }
/* --- END UPDATED btn-submit --- */


.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: calc(var(--spacing-unit) * 2);
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
}

    .contact-info h3 {
        color: var(--logo-green); /* Heading uses logo green */
        margin-bottom: calc(var(--spacing-unit) * 1.5);
    }

    .contact-info p {
        margin-bottom: calc(var(--spacing-unit) * 1);
        display: flex;
        align-items: center;
        color: var(--text-secondary);
        font-size: 1.1rem;
    }

        .contact-info p i {
            font-size: 1.5rem;
            margin-right: calc(var(--spacing-unit) * 1);
            color: var(--logo-green); /* Icons use logo green */
        }

/* --- Footer --- */
.footer {
    background-color: var(--bg-secondary);
    color: var(--text-secondary);
    padding: calc(var(--spacing-unit) * 3) 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

    .footer p {
        margin-bottom: var(--spacing-unit);
        font-size: 0.9rem;
    }

.social-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: calc(var(--spacing-unit) * 1.5);
    margin-top: var(--spacing-unit);
}

    .social-links a {
        color: var(--text-secondary);
        font-size: 1.8rem;
        transition: color var(--transition-speed), transform var(--transition-speed);
    }

        .social-links a:hover {
            color: var(--logo-green-hover); /* Lighter green on hover */
            transform: translateY(-3px);
        }

/* AOS Customizations (Optional) */
/* Example: Add a slight scale effect on fade-up */
[data-aos="fade-up"] {
    transform: translateY(20px);
    opacity: 0;
    transition-property: transform, opacity;
}

    [data-aos="fade-up"].aos-animate {
        transform: translateY(0);
        opacity: 1;
    }

/* Responsive Design */
@media (max-width: 992px) {
    .hero-welcome-text {
        font-size: 2.8rem;
    }

    .hero-logo-icon {
        max-width: 200px;
    }

    .hero-tagline {
        font-size: 1.3rem;
    }

    .navbar-nav {
        gap: calc(var(--spacing-unit) * 1);
    }

    h1 {
        font-size: 3.5rem;
    }
    /* Adjusted base h1 for general use */
    h2 {
        font-size: 2.5rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    .btn-primary, .btn-submit {
        padding: var(--spacing-unit) calc(var(--spacing-unit) * 2);
        font-size: 1.1rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-info {
        text-align: center;
        align-items: center;
    }
}

@media (max-width: 768px) {
    .hero-welcome-text {
        font-size: 2.2rem;
    }

    .hero-logo-icon {
        max-width: 150px;
    }

    .hero-tagline {
        font-size: 1.1rem;
    }

    .navbar-brand {
        font-size: 1.5rem;
    }

    .navbar-nav {
        display: none; /* Can implement a hamburger menu here */
    }

    .navbar-container {
        justify-content: center;
    }

    .hero {
        min-height: 80vh;
    }

    section {
        padding: calc(var(--spacing-unit) * 5) 0;
    }

    .services-grid, .contact-grid {
        gap: calc(var(--spacing-unit) * 2);
    }

    .service-item, .contact-form, .contact-info {
        padding: calc(var(--spacing-unit) * 2);
    }

    .form-group label {
        font-size: 1rem;
    }

    .form-group input, .form-group textarea {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .hero-welcome-text {
        font-size: 1.8rem;
    }

    .hero-logo-icon {
        max-width: 100px;
    }

    .hero-tagline {
        font-size: 1rem;
    }

    .container {
        padding: 0 var(--spacing-unit);
    }

    h1 {
        font-size: 2.8rem;
    }
    /* Adjusted base h1 for general use */
    h2 {
        font-size: 2rem;
    }

    .btn-primary, .btn-submit {
        font-size: 1rem;
        padding: 0.8rem 1.5rem;
    }
}
/* Responsive adjustments for hero elements - Ensure these are also updated if you fine-tune primary values */
@media (max-width: 992px) {
    .hero {
        height: 80vh;
    }
    /* Adjust for smaller screens too */
    .hero-welcome-text {
        font-size: 2.8rem;
        margin-bottom: calc(var(--spacing-unit) * 0.5);
    }

    .hero-logo-icon {
        max-width: 200px;
        margin: calc(var(--spacing-unit) * 0.8) auto;
    }

    .hero-tagline {
        font-size: 1.3rem;
        margin-top: calc(var(--spacing-unit) * 0.5);
        margin-bottom: calc(var(--spacing-unit) * 1.5);
    }
}

@media (max-width: 768px) {
    .hero {
        height: 75vh;
    }
    /* Further adjustment for tablets */
    .hero-welcome-text {
        font-size: 2.2rem;
        margin-bottom: calc(var(--spacing-unit) * 0.5);
    }

    .hero-logo-icon {
        max-width: 150px;
        margin: calc(var(--spacing-unit) * 0.6) auto;
    }

    .hero-tagline {
        font-size: 1.1rem;
        margin-top: calc(var(--spacing-unit) * 0.5);
        margin-bottom: calc(var(--spacing-unit) * 1);
    }
}

@media (max-width: 480px) {
    .hero {
        height: 70vh;
    }
    /* Further adjustment for mobile */
    .hero-welcome-text {
        font-size: 1.8rem;
        margin-bottom: calc(var(--spacing-unit) * 0.25);
    }

    .hero-logo-icon {
        max-width: 100px;
        margin: calc(var(--spacing-unit) * 0.5) auto;
    }

    .hero-tagline {
        font-size: 1rem;
        margin-top: calc(var(--spacing-unit) * 0.25);
        margin-bottom: calc(var(--spacing-unit) * 0.5);
    }
}
