/* 1. Define the Bold Font (Best for Headings) */
@font-face {
    font-family: 'Greenwich';
    src: url('./assets/fonts/Greenwich-Bold.otf') format('opentype');
    font-weight: 700; /* Use 700 for Bold */
    font-style: normal;
    font-display: swap; /* Ensures text is visible while font loads */
}

/* 2. Define the Medium/Regular Font (If you have it) */
@font-face {
    font-family: 'Greenwich';
    src: url('./assets/fonts/Greenwich-Medium.otf') format('opentype');
    font-weight: 500; /* Adjust based on the file weight */
    font-style: normal;
    font-display: swap;
}

/* --- 1. VARIABLES & RESET --- */
:root {
    --nova-primary: #00ff00;
    --nova-secondary: #003000;
    --nova-secondary-light: #004d00;
    --nova-black: #000000;
    --nova-white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-800: #1f2937;
    
    --font-heading: 'Greenwich', sans-serif;
    --font-body: 'Poppins', sans-serif;
    
    --transition: all 0.3s ease;
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* Typography Defaults */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

body {
    font-family: var(--font-body);
    color: var(--gray-800);
    background-color: var(--nova-white);
    line-height: 1.6;
}

/* Utilities */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.sharp-edge {
    border-radius: 0 !important;
}

.hidden {
    display: none !important;
}

.section-padding {
    padding: 5rem 0;
}

.bg-gray {
    background-color: var(--gray-50);
}

.bg-white {
    background-color: var(--nova-white);
}


.section-title {
    font-size: 1.875rem;
    color: var(--nova-secondary);
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .section-title { font-size: 2.25rem; }
}

.separator {
    height: 0.25rem;
    width: 5rem;
    background-color: var(--nova-primary);
    align-self: center;
}

/* --- 2. NAVIGATION --- */
.main-nav {
    background-color: var(--nova-black);
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 255, 0, 0.3);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.nav-logo img {
    height: 2.5rem;
    width: auto;
}

.desktop-menu {
    display: none;
    align-items: center;
    gap: 2rem;
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.05em;
}

.desktop-menu a {
    text-decoration: none;
    color: white;
    transition: var(--transition);
}

.desktop-menu a:hover {
    color: var(--nova-primary);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
    transition: var(--transition);
    border-radius: 0;
    cursor: pointer;
    font-size: 0.85rem;
    text-align: center;
}

.btn-primary-nav {
    background-color: var(--nova-primary);
    color: var(--nova-black);
    padding: 0.5rem 1.5rem;
    font-size: 0.75rem;
}

.btn-primary-nav:hover {
    background-color: white;
}

.mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    color: var(--nova-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Mobile Menu */
.mobile-menu {
    background-color: var(--nova-secondary);
    border-top: 1px solid rgba(0, 255, 0, 0.2);
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
}

.mobile-menu-content a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.mobile-menu-content a:hover,
.mobile-menu-content a.highlight {
    color: var(--nova-primary);
}

@media (min-width: 768px) {
    .desktop-menu { display: flex; }
    .mobile-menu-btn { display: none; }
}

/* --- 3. HERO SECTION --- */
.hero-section {
    position: relative;
    height: 100vh;
    max-height: 800px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--nova-secondary);
    overflow: hidden;
}

.hero-bg-image, .hero-overlay, .tech-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-bg-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
}

.hero-overlay {
    background: linear-gradient(to right, rgba(0, 48, 0, 0.95), rgba(0, 48, 0, 0.7));
    z-index: 10;
}

.tech-pattern {
    background-image: radial-gradient(#00ff00 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.05;
    z-index: 10;
}

.hero-content-wrapper {
    position: relative;
    z-index: 20;
    padding: 0 1.5rem;
}

.brand-heading {
    font-size: 2.25rem;
    color: white;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    font-weight: 800;
}

.brand-heading .text-clip {
    /* Simulate bg-clip-text */
    color: white; 
    /* Or use a gradient if desired, though white looks cleaner on green bg */
}

.brand-heading .text-primary {
    color: var(--nova-primary);
}

.hero-subtext {
    color: var(--gray-300);
    font-size: 1.125rem;
    max-width: 42rem;
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.btn-primary {
    background-color: var(--nova-primary);
    color: var(--nova-black);
}
.btn-primary:hover {
    background-color: white;
}

.btn-outline {
    border: 1px solid var(--nova-primary);
    color: var(--nova-primary);
}
.btn-outline:hover {
    background-color: var(--nova-primary);
    color: var(--nova-black);
}

@media (min-width: 640px) {
    .hero-buttons { flex-direction: row; }
}
@media (min-width: 768px) {
    .brand-heading { font-size: 3.75rem; }
}
@media (min-width: 1024px) {
    .brand-heading { font-size: 4.5rem; }
}

/* --- 4. ABOUT SECTION --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}

.section-header-left {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    width: fit-content;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--nova-secondary);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

@media (min-width: 768px) {
    .section-subtitle { font-size: 1.5rem; }
}

.text-body {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
}

.quote-box {
    border-left: 4px solid var(--nova-primary);
    padding-left: 1rem;
    font-style: italic;
    color: var(--gray-600);
    margin-bottom: 2rem;
}

.checklist {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--gray-500);
    flex-wrap: wrap;
}

.check-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.bulleting-img {
    width: 0.75rem;
    height: 0.75rem;
}

.about-image-wrapper {
    position: relative;
}

.border-accent {
    position: absolute;
    top: -1rem;
    right: -1rem;
    width: 100%;
    height: 100%;
    border: 2px solid var(--nova-primary);
    z-index: 0;
    display: none;
}

.about-image-wrapper img {
    position: relative;
    z-index: 10;
    width: 100%;
    height: auto;
    display: block;
}

@media (min-width: 768px) {
    .border-accent { display: block; }
}
@media (min-width: 1024px) {
    .about-grid { grid-template-columns: 1fr 1fr; }
}

/* --- 5. CAPABILITIES --- */
.our-capabilities{
    position: relative;
}
.deco-arrow {
    position: absolute;
    top: -2.5rem;
    right: -2.5rem;
    opacity: 0.1;
    pointer-events: none;
    z-index: 0;
}
@media (min-width: 768px) {
    .deco-arrow { 
        top: -0.5rem; 
        right: 2.5rem; 
    }
}

.section-header-center {
    text-align: center;
    max-width: 48rem;
    margin: 0 auto 4rem auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.header-desc {
    margin-top: 1.5rem;
    color: var(--gray-600);
}
.capabilities-grid-container{
    position: relative;
    z-index: 10;
}
.capabilities-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.card {
    background: white;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-0.5rem);
}

.card-border-primary {
    border-bottom: 4px solid var(--nova-primary);
}
.card-border-secondary {
    border-bottom: 4px solid var(--nova-secondary);
}

.card-icon {
    font-size: 2.25rem;
    color: var(--nova-secondary);
    margin-bottom: 1.5rem;
}

.card h3 {
    color: var(--nova-secondary);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    transition: var(--transition);
}

.card:hover h3 {
    color: var(--nova-primary);
}

.card p {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-bottom: 1.5rem;
}

.card ul {
    list-style: none;
}

.card ul li {
    display: flex;
    align-items: start;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-bottom: 0.5rem;
}

.card ul li span {
    color: var(--nova-primary);
}

@media (min-width: 768px) {
    .capabilities-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
    .capabilities-grid { grid-template-columns: 1fr 1fr 1fr; }
    /* Center the last card if odd number */
    .center-card { grid-column-start: 2; }
}

/* --- 6. WHY NOVA --- */
.why-grid {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .why-grid { flex-direction: row; }
    .why-content, .why-image { width: 50%; }
}

.logo-header {
    display: flex;
    align-items: start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.inline-logo {
    height: 3rem;
    width: auto;
    margin-top: 0.5rem;
}

.why-intro {
    font-size: 1.125rem;
    font-weight: 300;
    margin-bottom: 2rem;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature-item {
    display: flex;
}

.feature-icon {
    flex-shrink: 0;
    margin-top: 0.25rem;
    font-size: 1.25rem;
    color: var(--nova-primary);
}

.feature-text {
    margin-left: 1.5rem;
}

.feature-text h3 {
    font-size: 1.125rem;
    color: var(--nova-secondary);
    margin-bottom: 0.5rem;
}

.feature-text p {
    font-size: 0.875rem;
}

.img-box {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(4px);
}

.img-box img {
    width: 100%;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.img-caption {
    font-size: 0.75rem;
    color: var(--nova-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* --- 7. VALUES --- */
.values-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.value-card {
    text-align: center;
    padding: 1.5rem;
    transition: var(--transition);
    background: white;
}

.value-card:hover {
    background: var(--gray-50);
}

.value-icon {
    width: 4rem;
    height: 4rem;
    background-color: var(--nova-secondary);
    color: var(--nova-primary);
    margin: 0 auto 1.5rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: var(--transition);
}

.value-card:hover .value-icon {
    background-color: var(--nova-primary);
    color: var(--nova-black);
}

.value-card h3 {
    font-size: 1.25rem;
    color: var(--nova-secondary);
    margin-bottom: 1rem;
}

.value-card p {
    font-size: 0.875rem;
    color: var(--gray-600);
}

@media (min-width: 768px) {
    .values-grid { grid-template-columns: repeat(3, 1fr); }
}

/* --- 8. GALLERY --- */
.gallery-container {
    max-width: 64rem;
    margin: 0 auto;
    position: relative;
}

.main-display {
    position: relative;
    height: 500px;
    background-color: #111;
    overflow: hidden;
}

.gallery-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    pointer-events: none;
}

.gallery-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    padding: 2rem;
    color: white;
}

.slide-caption h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.slide-caption p {
    color: var(--gray-300);
    font-size: 0.875rem;
}

/* Arrows */
.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 3rem;
    height: 3rem;
    background-color: rgba(0, 255, 0, 0.9);
    color: var(--nova-black);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.main-display:hover .nav-arrow { opacity: 1; }

.nav-arrow.prev { left: 1rem; }
.nav-arrow.next { right: 1rem; }
.nav-arrow:hover { background-color: var(--nova-primary); }

.slide-counter {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Thumbnails */
.thumbnail-grid {
    margin-top: 1.5rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

@media (min-width: 768px) {
    .thumbnail-grid { grid-template-columns: repeat(6, 1fr); }
}

.thumbnail-btn {
    border: none;
    padding: 0;
    cursor: pointer;
    background: none;
}

.thumbnail-btn img {
    width: 100%;
    height: 5rem;
    object-fit: cover;
    opacity: 0.5;
    transition: var(--transition);
}

.thumbnail-btn:hover img,
.thumbnail-btn.active img {
    opacity: 1;
}

.thumbnail-btn.active img {
    border: 3px solid var(--nova-primary);
}

.autoplay-controls {
    margin-top: 1.5rem;
    text-align: center;
}

.play-btn {
    background: none;
    border: none;
    color: var(--nova-secondary);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}
.play-btn:hover { color: var(--nova-primary); }

/* --- 9. FOOTER --- */
.main-footer {
    background-color: var(--nova-secondary);
    color: white;
    padding-top: 5rem;
    padding-bottom: 2.5rem;
    border-top: 4px solid var(--nova-primary);
}

/* Form */
.contact-form-wrapper {
    max-width: 48rem;
    margin: 0 auto 4rem auto;
}

.text-white { color: white; }

.form-box {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}
@media (min-width: 768px) {
    .form-row { grid-template-columns: 1fr 1fr; }
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-300);
    margin-bottom: 0.5rem;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-family: inherit;
    outline: none;
    transition: var(--transition);
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--nova-primary);
}

.form-group.full-width { margin-bottom: 1.5rem; }
.form-group textarea { resize: none; }

.form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.required-note { font-size: 0.75rem; color: var(--gray-500); }

.btn-primary-footer {
    background-color: var(--nova-primary);
    color: var(--nova-black);
    border: none;
}
.btn-primary-footer:hover { background-color: white; }

/* Grid Columns */
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}
@media (min-width: 768px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr 1fr 1fr; }
}

.footer-col h4 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(0, 255, 0, 0.5);
    display: inline-block;
}

.brand-col .footer-logo img {
    height: 2.5rem;
    width: auto;
    margin-bottom: 1.5rem;
}

.brand-col p {
    font-size: 0.875rem;
    color: var(--gray-400);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.social-links a {
    display: inline-flex;
    width: 2.5rem;
    height: 2.5rem;
    background-color: rgba(255, 255, 255, 0.1);
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition);
}
.social-links a:hover {
    background-color: var(--nova-primary);
    color: var(--nova-black);
}

.footer-links {
    list-style: none;
}
.footer-links li { margin-bottom: 0.75rem; }
.footer-links a {
    color: var(--gray-400);
    text-decoration: none;
    font-size: 0.875rem;
    transition: var(--transition);
}
.footer-links a:hover { color: var(--nova-primary); }

.contact-details .contact-item {
    display: flex;
    align-items: start;
    margin-bottom: 1.5rem;
}
.contact-item svg {
    color: var(--nova-primary);
    margin-top: 0.25rem;
    margin-right: 1rem;
}
.contact-item .label {
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    color: var(--gray-300);
    margin-bomb-4ttom: 0;
}
.contact-item p:last-child {
    color: var(--gray-400);
    font-size: 0.875rem;
}

/* Map */
.map-container {
    width: 100%;
    height: 12rem;
    background-color: var(--gray-800);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.map-filter {
    filter: grayscale(100%) invert(90%) contrast(85%);
    transition: var(--transition);
}
.map-container:hover .map-filter { filter: none; }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--gray-500);
    text-align: center;
    gap: 1rem;
}

@media (min-width: 768px) {
    .footer-bottom { 
        flex-direction: row; 
        text-align: left;
    }
}

.mb-4{
    margin-bottom: 1rem;
}
.mb-6 {
    margin-bottom: 1.5rem;
}
.justify-center{
    justify-content: center;
}