/* --- 1. RESET & VARIABLES --- */
:root {
    --primary-color: #000000; 
    --secondary-color: #0a0a0a; 
    --accent-color: #ffffff;  
    --text-light: #ffffff;    
    --text-gray: #a3a3a3;     
    --border-color: rgba(255, 255, 255, 0.15); 
    --padding-standard: 2rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
    /* CRITICAL: Prevents sticky nav from covering section titles */
    scroll-padding-top: 100px; 
}

body {
    background-color: var(--primary-color);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--padding-standard);
}

/* --- 2. NAVIGATION --- */
.navbar {
    padding: 1rem 0;
    display: flex;
    justify-content: center;
    background-color: var(--primary-color);
    border-bottom: 1px solid var(--border-color);
    position: sticky; 
    top: 0;
    z-index: 1000;
}

.navbar .container {
    width: 100%;
    display: flex;
    /* Pushes Logo to Left, Links to Right */
    justify-content: space-between; 
    align-items: center;
}

/* Logo Styling */
.logo-container {
    display: block;
}

.logo-link {
    display: block;
    cursor: pointer;
    text-decoration: none;
    border: none;
}

.logo-image {
    height: 140px; 
    width: auto;
    display: block;
}

/* Nav Links Styling */
.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--text-gray);
}

/* --- 3. HAMBURGER MENU (MOBILE) --- */
.hamburger {
    display: none; 
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: var(--accent-color);
}

/* --- 4. HERO SECTION --- */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 0;
}

.hero-content {
    max-width: 800px;
}

.tagline {
    color: var(--accent-color);
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 0.8rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: block;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero p {
    color: var(--text-gray);
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
}

/* --- 5. BUTTONS --- */
.cta-group {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.btn-primary, .btn-secondary, .btn-nav {
    padding: 0.8rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #d4d4d4;
    transform: translateY(-2px);
}

.btn-secondary {
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
}

.btn-secondary:hover {
    background-color: rgba(255,255,255,0.1);
}

/* --- 6. FOUNDER SECTION (ABOUT) --- */
.about {
    padding: 6rem 0;
    background-color: var(--primary-color);
    border-bottom: 1px solid var(--border-color);
    scroll-margin-top: 80px; 
}

.about-grid {
    display: flex;
    flex-direction: row;
    gap: 4rem;
    /* Sets the context for the absolute image */
    position: relative; 
}

/* Left Side: Image Container */
.about-image {
    flex: 1;
    width: 50%;
    /* Allows inner image to fill this box */
    position: relative; 
}

/* The Image: Forced to match text height */
.founder-photo {
    position: absolute; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; 
    object-fit: cover; 
    border-radius: 8px;
    border: 1px solid var(--border-color);
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.founder-photo:hover {
    filter: grayscale(0%);
}

/* Right Side: Text Container */
.about-content {
    flex: 1;
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center; 
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.about-content p {
    color: var(--text-gray);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.founder-signoff {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.founder-signoff h4 {
    font-size: 1.2rem;
    color: var(--text-light);
}

.founder-signoff span {
    font-size: 0.9rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- 7. STORY SECTION (WHY NXT) --- */
.story {
    padding: 8rem 0; 
    background-color: var(--secondary-color); 
    border-bottom: 1px solid var(--border-color);
    text-align: center; 
}

.story-wrapper {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center; 
}

.story .tagline {
    margin-bottom: 1rem;
    display: inline-block;
}

.story h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--text-light);
}

.story-text {
    max-width: 700px;
    margin: 0 auto;
}

.story-text p {
    color: #a3a3a3; 
    font-size: 1.15rem;
    font-weight: 300; 
    margin-bottom: 2rem;
    line-height: 1.8;
    transition: color 0.3s ease; 
}

.story-wrapper:hover .story-text p {
    color: #d4d4d4; 
}

.story-closing {
    color: var(--text-light) !important; 
    font-weight: 500 !important; 
    font-size: 1.3rem !important;
    margin-top: 2rem;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
}

/* --- 8. SERVICES SECTION --- */
.services {
    padding: 6rem 0;
    background-color: var(--primary-color);
    scroll-margin-top: 80px; 
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

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

.service-card {
    background-color: var(--secondary-color);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color);
}

.icon-box {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    font-family: monospace;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-gray);
    font-size: 1rem;
    line-height: 1.6;
}

/* --- 9. CONTACT SECTION --- */
.contact {
    padding: 6rem 0;
    background-color: var(--primary-color);
    border-top: 1px solid var(--border-color);
    scroll-margin-top: 80px; 
}

.contact-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background-color: var(--secondary-color);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: left;
}

label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-light);
}

input, textarea {
    background-color: var(--primary-color);
    border: 1px solid var(--border-color);
    padding: 1rem;
    border-radius: 6px;
    color: var(--text-light);
    font-size: 1rem;
    width: 100%;
    transition: border-color 0.3s ease;
    resize: none;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.btn-block {
    width: 100%;
    font-size: 1.1rem;
    cursor: pointer;
    border: none;
}

footer {
    padding: 2rem 0;
    text-align: center;
    background-color: var(--primary-color);
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: var(--text-gray);
}

/* --- 10. MEDIA QUERIES (MOBILE) --- */
@media (max-width: 900px) {
    /* Logo scaling */
    .logo-image { height: 90px; }

    /* Hero Text */
    .hero h1 { font-size: 2.5rem; }
    
    /* Founder Section: Stacks vertically on phone */
    .about-grid {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    /* Reset Widths */
    .about-image, .about-content {
        width: 100%; 
    }

    /* Reset Image Behavior for Mobile (No absolute positioning) */
    .about-image {
        height: 400px; /* Fixed height for image area */
    }
    
    .founder-photo {
        position: relative;
        height: 100%;
        width: 100%;
        margin-bottom: 2rem; 
    }
    
    .founder-signoff {
        border-top: none;
    }

    /* Story Section adjustments */
    .story h2 { font-size: 2rem; }
    .story-text p { font-size: 1rem; }

    /* --- MOBILE MENU STYLES --- */
    .hamburger {
        display: block;
        z-index: 2000; 
    }

    .nav-links {
        position: fixed;
        left: -100%; 
        top: 0;
        gap: 2rem;
        flex-direction: column;
        background-color: var(--primary-color);
        width: 100%;
        height: 100vh;
        text-align: center;
        transition: 0.3s ease-in-out; 
        padding-top: 8rem; 
        z-index: 1500;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links a {
        font-size: 1.5rem; 
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0; 
    }
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}
/* --- 11. SOCIALS UPDATE (Paste at bottom) --- */

/* Founder LinkedIn Link */
.founder-title {
    display: block; /* Forces title to own line */
    margin-bottom: 0.8rem;
}

.founder-social {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.founder-social:hover {
    color: #0077b5; /* Official LinkedIn Blue */
}

/* Footer Socials */
.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-socials {
    display: flex;
    gap: 2rem;
}

.footer-socials a {
    color: var(--text-gray);
    transition: all 0.3s ease;
    display: flex; /* Fixes any alignment issues with SVG */
}

/* Specific Hover Colors for Company Socials */
.footer-socials a:hover {
    transform: translateY(-3px); /* Little pop up effect */
    color: var(--text-light); /* Turns white on hover */
}

.copyright {
    font-size: 0.85rem;
    opacity: 0.7;
}

/* --- 12. NEW PAGES (Blueprint, Insights, Work) --- */

/* Page Wrapper for the new files */
.page-header {
    padding: 8rem 0 4rem 0; /* Extra top padding to clear the fixed navbar */
    text-align: center;
    background-color: var(--primary-color);
}

/* -- BLUEPRINT STYLES -- */
.blueprint-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
    padding-bottom: 4rem;
}

.blueprint-step {
    padding: 2.5rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.step-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--secondary-color);
    text-shadow: -1px -1px 0 #333, 1px -1px 0 #333;
    line-height: 1;
}

.step-content h3 {
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.step-duration {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--accent-color);
    background: rgba(255,255,255,0.1);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

/* -- INSIGHTS STYLES -- */
.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding-bottom: 4rem;
}

.insight-card {
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.insight-card:hover {
    background-color: var(--secondary-color);
}

.insight-date {
    font-size: 0.8rem;
    color: var(--accent-color);
    text-transform: uppercase;
    display: block;
    margin-bottom: 1rem;
}

.read-more {
    display: inline-block;
    margin-top: 1rem;
    color: var(--text-gray);
    text-decoration: none;
    border-bottom: 1px solid var(--border-color);
}

/* -- WORK STYLES -- */
.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding-bottom: 4rem;
}

.work-card {
    background-color: var(--secondary-color);
    padding: 2.5rem;
    border-radius: 4px;
    border-left: 3px solid var(--accent-color);
}

.work-category {
    font-size: 0.8rem;
    color: var(--text-gray);
    text-transform: uppercase;
    margin-bottom: 1rem;
}

/* Mobile Fix */
@media (max-width: 900px) {
    .blueprint-step { flex-direction: column; text-align: center; align-items: center; }
}

/* --- 13. INSIGHTS: FULL WIDTH 2-COLUMN (1200px) --- */

/* -- THE FEED -- */
.insights-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two columns side-by-side */
    gap: 3rem; /* Generous spacing for a clean look */
    
    /* FULL WIDTH: We let it fill the standard 1200px container */
    width: 100%; 
    padding-bottom: 4rem;
}

.insight-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: transparent;
    overflow: hidden; 
    transition: transform 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
}

.insight-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

/* IMAGE STYLING (Taller to match wide width) */
.card-image {
    width: 100%;
    height: 320px; /* Increased height so wide images look good */
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    background-color: #1a1a1a;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    
    /* SMOOTH ANIMATION SETTINGS */
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94); 
    
    /* HARDWARE ACCELERATION (The Anti-Stutter Fix) */
    backface-visibility: hidden;       
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);          
    will-change: transform;            
}

.insight-card:hover .card-image img {
    transform: scale(1.05);
}

/* TEXT CONTENT STYLING */
.card-content {
    padding: 2.5rem; /* Larger padding for wide cards */
    display: flex;
    flex-direction: column;
    flex-grow: 1; 
}

/* TAGS & META */
.card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.insight-tag {
    font-size: 0.75rem; 
    font-weight: 700;
    letter-spacing: 1px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--accent-color);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.2);
    text-transform: uppercase;
}

.insight-meta {
    font-size: 0.85rem;
    color: var(--text-gray);
    font-style: italic;
}

/* HEADLINES */
.insight-card h3 {
    font-size: 1.6rem; /* Good size for 1200px width */
    margin-bottom: 1rem;
    line-height: 1.3;
    color: var(--text-light);
}

.insight-card p {
    color: var(--text-gray);
    font-size: 1.05rem; 
    line-height: 1.6;
    margin-bottom: 2rem;
}

.read-more {
    margin-top: auto; 
    display: inline-block;
    color: var(--text-gray);
    text-decoration: none;
    border-bottom: 1px solid var(--border-color);
    width: fit-content;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: var(--accent-color);
    border-color: var(--accent-color);
}

/* -- FULL ARTICLE PAGE LAYOUT -- */
.article-header-section {
    padding: 8rem 0 3rem 0;
    background-color: var(--primary-color);
    border-bottom: 1px solid var(--border-color);
}

.article-container {
    max-width: 800px;
    margin: 0 auto;
}

.back-link {
    display: inline-block;
    color: var(--text-gray);
    text-decoration: none;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: var(--accent-color);
}

.article-meta-top {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    margin-bottom: 1.5rem;
}

.article-header-section h1 {
    font-size: 3rem;
    line-height: 1.1;
}

.article-body {
    padding: 4rem 2rem;
}

.article-body p {
    font-size: 1.2rem;
    color: #d4d4d4; 
    margin-bottom: 2rem;
    line-height: 1.8;
}

.article-body h3 {
    font-size: 1.8rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.intro-text {
    font-size: 1.5rem !important;
    font-weight: 300;
    color: var(--text-light) !important;
    border-left: 3px solid var(--accent-color);
    padding-left: 2rem;
    margin-bottom: 3rem !important;
}

.quote-box {
    margin: 4rem 0;
    padding: 3rem;
    background-color: var(--secondary-color);
    border: 1px solid var(--border-color);
    font-size: 1.8rem;
    font-weight: 600;
    text-align: center;
    border-radius: 8px;
    color: var(--accent-color);
    line-height: 1.4;
}

/* -- MOBILE ADJUSTMENTS -- */
@media (max-width: 900px) {
    .insights-grid {
        grid-template-columns: 1fr; /* Stack on phone */
    }
    .card-image {
        height: 220px;
    }
    .article-header-section h1 { font-size: 2rem; }
}
.article-feature-image {
    width: 100%;
    height: auto;
    max-height: 450px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 3rem;
    display: block;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* --- FOOTER SOCIALS & ICONS --- */
.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 2rem 0;
}

.footer-socials {
    display: flex;
    gap: 1.5rem; /* Space between icons */
}

.footer-socials a {
    color: var(--text-gray); /* Default color */
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-socials a:hover {
    color: var(--accent-color); /* Glow color on hover */
    transform: translateY(-3px); /* Subtle lift effect */
}

/* Ensure SVG fills correctly */
.footer-socials svg {
    width: 24px;
    height: 24px;
}

/* --- FORM STATUS MESSAGES --- */
#status-message {
    margin-bottom: 1rem; /* Space above button */
    padding: 10px;
    border-radius: 4px;
    display: none; /* Hidden by default */
    text-align: center;
    font-weight: bold;
}
#status-message.success {
    display: block;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
#status-message.error {
    display: block;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* --- 14. DROPDOWN (SELECT) STYLING --- */
.contact-form select {
  background-color: var(--primary-color);
  border: 1px solid var(--border-color);
  padding: 1rem;
  border-radius: 6px;
  color: var(--text-light);
  font-size: 1rem;
  width: 100%;
  transition: border-color 0.3s ease;
  cursor: pointer;

  /* Removes default browser styling */
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  /* Adds the custom white arrow icon */
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1em;
}

.contact-form select:focus {
  outline: none;
  border-color: var(--accent-color);
}

/* Ensures the dropdown options match your dark theme */
.contact-form option {
  background-color: var(--secondary-color);
  color: var(--text-light);
}