/* Luxury / High-End Tech Theme (Apple/Starlink inspired) */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&display=swap');

:root {
    --bg-color: #000000;
    --surface-color: #0d0d0d;
    --surface-hover: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #a1a1a6;
    --border-color: rgba(255, 255, 255, 0.25);
    
    /* Brand Accent - Restored Original Leaf Green */
    --accent-color: #6fcf97; 
    --highlight-green: #6fcf97;

    --nav-height: 70px;
    --transition-speed: 0.3s;
    --container-width: 1400px; /* Wider for block layout */
    --border-radius: 0px; 
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    height: 100%;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Roboto', 'Inter', sans-serif; /* Priority on Roboto for stricter feel */
    line-height: 1.7; /* Enhanced readability */
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    border: 1px solid var(--border-color);
    min-height: 100%;
    position: relative;
    text-align: justify; /* Justify text globally for block look */
}

/* Add corner accents for the "Frame" look */
body::before, body::after {
    content: '';
    position: fixed;
    width: 20px;
    height: 20px;
    border: 2px solid var(--accent-color);
    z-index: 9999;
    pointer-events: none;
}

body::before {
    top: 90px; /* Moved down to frame content below nav */
    left: 20px;
    border-right: none;
    border-bottom: none;
}

body::after {
    bottom: 20px;
    right: 20px;
    border-left: none;
    border-top: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    font-weight: 600;
    letter-spacing: -0.02em; /* Tighter tracking for modern look */
    text-align: left; /* Headers usually stay left */
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-speed) ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Block Typography */
p {
    margin-bottom: 20px;
    text-align: justify;
    text-justify: inter-word;
}

/* =========================================
   Typography & Utils
   ========================================= */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
}

.text-center { text-align: center; }

h1 {
    font-size: 4rem;
    line-height: 1.1;
    font-weight: 600;
    text-transform: uppercase;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
}

p.lead {
    font-size: 1.5rem;
    color: var(--text-secondary);
    font-weight: 400;
}

/* =========================================
   Animations
   ========================================= */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   Navbar (Glassmorphism, thin lines)
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(0, 0, 0, 0.9); /* Darker for better contrast */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: #fff;
    font-size: 1.1rem;
}
.logo span {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    color: var(--accent-color); /* Brand color for logo text */
}

.logo img {
    height: 32px !important;
    filter: none; 
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links li a {
    font-size: 0.9rem;
    color: #e5e5e5;
    font-weight: 500;
    text-transform: uppercase; /* Block tech style */
    letter-spacing: 1px;
    padding: 10px 0;
    position: relative;
    opacity: 0.9;
    transition: color 0.3s;
}

.nav-links li a:hover, .nav-links li a.active {
    color: var(--accent-color); /* Brand color highlight */
    opacity: 1;
}

/* Apple-style hover underline (only active or hover) */
.nav-links li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 5px;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}
.nav-links li a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
}
.menu-toggle span {
    width: 24px;
    height: 2px;
    background-color: #fff;
}

/* Mobile Nav */
@media (max-width: 900px) {
    body::before, body::after {
        display: none; /* Hide frame accents on mobile */
    }

    .nav-links {
        position: fixed;
        top: var(--nav-height);
        right: -100%;
        width: 100%;
        height: 100vh;
        background: #000;
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 100px;
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        border-right: 1px solid var(--border-color);
    }
    .nav-links.show { right: 0; }
    .menu-toggle { display: flex; }
}

/* =========================================
   Hero Section (Immersive Sticky/Parallax)
   ========================================= */
.hero {
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed; /* Fixed behind content */
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: 1; /* Lower z-index so main content slides over */
}

/* Gradient overlay for text readability, but keeps it subtle */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.7) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
    opacity: 0; /* Handled by scroll animation now, or simpler animation */
    animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

.hero h1 {
    font-size: 5rem;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
}

.hero p {
    font-size: 1.75rem;
    color: #e5e5e5;
    margin-bottom: 40px;
    font-weight: 300;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-align: center; /* Hero P centered */
}

/* Minimal Button - Inverted High Contrast Block */
.hero-btn {
    display: inline-block;
    padding: 16px 40px;
    background: var(--accent-color);
    color: #000;
    border-radius: 0px; /* Sharp block */
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: transform 0.2s ease, background-color 0.2s, box-shadow 0.2s;
}
.hero-btn:hover {
    background-color: #fff;
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(111, 207, 151, 0.3);
}

/* =========================================
   Main & Section Layouts
   ========================================= */
main {
    position: relative;
    z-index: 10; /* Higher than hero */
    margin-top: 100vh; /* Content starts below the viewport, revealing hero */
    background-color: var(--bg-color); /* Opaque background to cover hero when scrolling */
    padding-top: 100px;
    min-height: 100vh; /* Ensure there is enough content to scroll */
    border-top: 1px solid var(--border-color);
}

footer {
    position: relative;
    z-index: 10;
    background-color: var(--bg-color);
}

/* Two Column "Block" Section for content */
.section-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    margin-bottom: 80px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 60px;
}

.section-block h2 {
    font-size: 3.5rem;
    line-height: 1;
    margin-bottom: 20px;
    color: #fff;
    border-left: 5px solid var(--accent-color);
    padding-left: 20px;
}

.section-block p {
    font-size: 1.1rem;
    color: #ccc;
    line-height: 2;
}

section {
    padding: 100px 0;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 60px;
    text-align: center;
    border: none !important;
}

/* =========================================
   Cards (Bento Grid / Block Style)
   ========================================= */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px; /* Space between blocks */
}

/* Clean, dark blocks with thin borders or no borders but distinct background */
.card {
    background-color: transparent;
    border: 1px solid var(--border-color);
    border-radius: 0px; 
    padding: 40px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    overflow: hidden;
}

/* Header line for cards */
.card h3 {
    font-size: 1.8rem;
    margin-bottom: 16px;
    font-weight: 600;
    color: #fff;
}

.card h3::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: var(--accent-color);
    margin-top: 15px;
    margin-bottom: 5px;
}

.card p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Images inside cards */
.card img {
    border-radius: 0px; /* Sharp corners */
    margin-bottom: 24px;
    filter: grayscale(100%);
    transition: filter 0.4s;
    border-bottom: 1px solid #333;
}
.card:hover img {
    filter: grayscale(0%);
}

.card:hover {
    transform: translateY(-5px);
    background-color: var(--surface-hover);
    border-color: var(--accent-color);
}

/* Services Links specifically */
a.card {
    text-decoration: none;
    color: inherit;
}

/* =========================================
   Footer
   ========================================= */
footer {
    background-color: var(--bg-color);
    padding: 60px 0;
    text-align: center;
    color: #666;
    font-size: 0.85rem;
    border-top: 1px solid var(--border-color);
}
footer p {
    margin-bottom: 10px;
}


/* Responsive */
@media (max-width: 768px) {
    .container { padding: 0 20px; }
    .hero h1 { font-size: 3rem; }
    .hero p { font-size: 1.25rem; }
    h2, .section-title { font-size: 2rem; }
    .section-block { grid-template-columns: 1fr; gap: 30px; }
}

/* =========================================
   Service Zig-Zag Layout
   ========================================= */
.service-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0; /* No gap for tight block look, or small gap */
    border-bottom: 1px solid var(--border-color);
    min-height: 500px;
    scroll-margin-top: 25vh; /* Center content Middle-Screen on jump */
}

.service-row:last-child {
    border-bottom: none;
}

.service-image-col {
    position: relative;
    overflow: hidden;
    min-height: 400px;
}

.service-image-col img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.5s ease, transform 0.5s ease;
}

.service-row:hover .service-image-col img {
    filter: grayscale(0%);
    transform: scale(1.03);
}

.service-text-col {
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: var(--bg-color);
}

.service-text-col h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    border-left: 4px solid var(--accent-color);
    padding-left: 20px;
    line-height: 1.2;
}

.service-text-col p {
    font-size: 1.05rem;
    color: #ccc;
    margin-bottom: 20px;
    line-height: 1.8;
}

.service-bullets {
    list-style: none;
    margin-top: 20px;
    padding-left: 20px;
}

.service-bullets li {
    margin-bottom: 15px;
    position: relative;
    padding-left: 20px;
    color: #fff;
    font-weight: 500;
}

.service-bullets li::before {
    content: '\25A0'; /* Square bullet */
    position: absolute;
    left: 0;
    top: 2px;
    font-size: 10px;
    color: var(--accent-color);
}

/* Reverse layout for alternate rows */
.service-row.reverse .service-image-col {
    order: 2;
}
.service-row.reverse .service-text-col {
    order: 1;
}

@media (max-width: 900px) {
    .service-row {
        grid-template-columns: 1fr;
    }
    .service-row.reverse .service-image-col {
        order: -1; /* Image always top on mobile */
    }
    .service-row.reverse .service-text-col {
        order: 1;
    }
    .service-text-col {
        padding: 40px 20px;
    }
    .service-image-col {
        min-height: 300px;
    }
}

/* --- ABOUT PAGE: Centered & Stats --- */
.about-intro-block {
    text-align: center;
    max-width: 800px;
    margin: 4rem auto;
    padding: 0 1rem;
}

/* New Responsive Layout for Mission/Values */
.mission-values-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding: 2rem 0;
    margin-top: 0;
    border-bottom: none;
}

@media (max-width: 900px) {
    .mission-values-row {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.about-intro-block h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--accent-color);
    display: inline-block;
    padding-bottom: 0.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 4rem 0;
    text-align: center;
    border-top: 1px solid #333;
    border-bottom: 1px solid #333;
    padding: 3rem 0;
}

.stat-item h3 {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: #ccc;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

/* --- TEAMS PAGE: Grid of Cards --- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.team-card {
    border: 1px solid #333;
    padding: 2rem;
    transition: all 0.3s ease;
    background: rgba(255,255,255,0.02);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 200px;
}

.team-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-5px);
}

.team-role {
    color: var(--accent-color);
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.team-name {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.team-desc {
    font-size: 0.9rem;
    color: #aaa;
    line-height: 1.5;
}

/* --- CAREERS PAGE: Table/List Layout --- */
.job-board {
    display: flex;
    flex-direction: column;
    gap: 1px; /* Gap for border effect */
    background: #333; /* Gap color becomes the border */
    border: 1px solid #333;
    margin-top: 3rem;
}

.job-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-color);
    padding: 2.5rem;
    transition: background 0.2s ease;
}

.job-row:hover {
    background: #0a0a0a;
}

.job-info h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    color: #fff;
}

.job-meta {
    color: #888;
    font-size: 0.9rem;
    display: flex;
    gap: 2rem;
}

.job-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-apply {
    background: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    padding: 1rem 2.5rem;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-apply:hover {
    background: var(--accent-color);
    color: #000;
}

@media (max-width: 768px) {
    .job-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
    
    .btn-apply {
        width: 100%;
        text-align: center;
    }
}

/* --- CONTACT PAGE --- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #fff;
    border-left: 3px solid var(--accent-color);
    padding-left: 1rem;
}

.contact-details {
    margin-top: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.contact-icon {
    min-width: 40px;
    height: 40px;
    background: rgba(111, 207, 151, 0.1);
    color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    font-size: 1.2rem;
    border: 1px solid var(--accent-color);
}

.contact-text h4 {
    color: #fff;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.contact-text p, .contact-text a {
    color: #aaa;
    font-size: 1rem;
    line-height: 1.6;
}

.contact-form-container {
    background: rgba(255,255,255,0.02);
    padding: 3rem;
    border: 1px solid #333;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    color: #ccc;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.form-control {
    width: 100%;
    padding: 1rem;
    background: #000;
    border: 1px solid #333;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-color);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.btn-submit {
    background: var(--accent-color);
    color: #000;
    border: none;
    padding: 1rem 3rem;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    width: 100%;
}

.btn-submit:hover {
    background: #fff;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-form-container {
        padding: 2rem;
    }
}

/* --- Scroll Indicator (Two Upward Lights) --- */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    z-index: 20;
    pointer-events: none; /* Let clicks pass through */
}

.scroll-lines {
    display: flex;
    gap: 12px;
    height: 60px;
}

.scroll-line {
    width: 2px;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

/* The moving light */
.scroll-line::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, transparent, var(--accent-color), transparent);
    animation: lightUp 2s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

.scroll-line:nth-child(2)::after {
    animation-delay: 0.3s; /* Slight staggered effect */
}

@keyframes lightUp {
    0% { top: 100%; opacity: 0; }
    20% { opacity: 1; }
    100% { top: -100%; opacity: 0; }
}

.scroll-text {
    font-size: 0.75rem;
    color: var(--accent-color);
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 500;
    opacity: 0.8;
    text-shadow: 0 0 10px rgba(111, 207, 151, 0.3);
}
