/* COLOR PALETTE */
:root {
    --color-primary: #1a1a1a;
    /* Deep Anthracite */
    --color-secondary: #111111;
    /* Even Darker */
    --color-card-bg: #222222;
    /* Dark Gray for cards */
    --color-accent: #1fe030;
    /* DARKER, RICHER CIRCUIT GREEN */
    --color-accent-hover: #48ff60;
    /* Lighter green on hover */
    --color-text: #ffffff;
    --color-text-secondary: #aaaaaa;
}

/* BASE STYLES & TYPOGRAPHY */
body {
    background-color: var(--color-primary);
    color: var(--color-text);
    font-family: "Inter", sans-serif;
    margin: 0;
    line-height: 1.6;
    scroll-behavior: smooth;
}

h1,
h2,
h3 {
    font-family: "Inter", sans-serif;
    color: var(--color-text);
    font-weight: 700;
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    /* 16px padding on mobile */
}

.section {
    /* ULTRON MODIFICATION: Reduced vertical padding from 5rem to 3.5rem to reduce space between sections */
    padding: 3.5rem 0;
    text-align: center;
}

.section-title {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 3rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* HEADER & NAV */
.header {
    background-color: rgba(26, 26, 26, 0.95);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.7);
    /* Backdrop blur effect approximation */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.nav-content {
    display: flex;
    flex-direction: column;
    /* Mobile default stack */
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    /* 12px gap */
}

.logo {
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--color-accent);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* CTA BUTTONS (Shared Style) */
.cta-button {
    background-color: var(--color-accent);
    color: var(--color-primary);
    font-family: "Inter", sans-serif;
    font-weight: 700;
    text-decoration: none;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    /* 8px rounded */
    transition: background-color 0.3s, transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    display: inline-block;
    text-align: center;
}

.cta-button:hover {
    background-color: var(--color-accent-hover);
    transform: scale(1.02);
    /* Updated shadow color to match new green accent (31, 224, 48) */
    box-shadow: 0 6px 15px rgba(31, 224, 48, 0.4);
}

.primary-cta {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
    border-radius: 0.75rem;
    /* Updated shadow color to match new green accent (31, 224, 48) */
    box-shadow: 0 8px 25px rgba(31, 224, 48, 0.3);
}

/* 1. HERO SECTION */
.hero-section {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
    /* Updated radial gradient color to match new green accent (31, 224, 48) */
    background-image: radial-gradient(
        circle at 50% 10%,
        rgba(31, 224, 48, 0.1),
        transparent 70%
    );
}

/* NEW: Hero Logo Styling */
.hero-logo-container {
    margin: 0 auto 1.5rem auto;
    /* Center and add margin below */
    max-width: 250px;
    /* Default mobile size */
}

.hero-logo-asset {
    width: 100%;
    height: auto;
    border-radius: 0.75rem;
    /* Match other rounded elements */
    /* Updated box-shadow color to match new green accent (31, 224, 48) */
    box-shadow: 0 0 40px rgba(31, 224, 48, 0.5);
    transition: transform 0.5s;
    object-fit: contain;
    /* Ensure the image fits without cropping */
}

/* END NEW: Hero Logo Styling */
.main-title {
    font-size: 3rem;
    margin: 0 0 0.5rem 0;
    color: var(--color-accent);
    letter-spacing: 0.2em;
}

.sub-title {
    font-size: 1.5rem;
    margin: 0 0 2rem 0;
    color: var(--color-text);
    font-weight: 700;
}

.hero-description {
    max-width: 700px;
    margin: 0 auto 3rem auto;
    color: var(--color-text-secondary);
    font-size: 1rem;
}

/* 2. AGILITY ADVANTAGE (Pillars) */
.pillars-grid {
    display: grid;
    gap: 2rem;
}

.pillar {
    background-color: var(--color-card-bg);
    padding: 1.5rem;
    border-top: 4px solid var(--color-accent);
    border-radius: 0.75rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    text-align: left;
}

.pillar h3 {
    color: var(--color-accent);
    font-size: 1.5rem;
    margin-top: 0;
}

/* 3. ENGINEERING DOMAINS (Tech Domains) */
.tech-domains {
    background-color: var(--color-secondary);
}

.domains-grid {
    display: grid;
    gap: 2rem;
}

.domain-card {
    background-color: var(--color-primary);
    padding: 1.5rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid #333;
    transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.domain-card:hover {
    border-color: var(--color-accent);
    transform: translateY(-4px);
    /* Updated shadow color to match new green accent (31, 224, 48) */
    box-shadow: 0 8px 20px rgba(31, 224, 48, 0.1);
}

.domain-card .icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.75rem;
}

.domain-card h3 {
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.domain-card p {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
}

/* 4. TRACK RECORD (Case Studies) */
.proof-grid {
    display: grid;
    gap: 2rem;
}

.proof-card {
    background-color: var(--color-card-bg);
    padding: 1.5rem;
    border-left: 4px solid var(--color-accent);
    border-radius: 0.75rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    text-align: left;
}

.proof-card h3 {
    color: var(--color-accent);
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.proof-card .result-text {
    color: #fff;
    font-weight: 600;
    margin: 1rem 0;
}

.secondary-link {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    display: inline-block;
    margin-top: 0.5rem;
}

.secondary-link:hover {
    text-decoration: underline;
}

/* 5. CONTACT & FINAL CTA */
.contact-section {
    background-color: var(--color-card-bg);
}

.contact-form {
    max-width: 600px;
    margin: 2rem auto 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    /* ULTRON MODIFICATION: Center button horizontally in the form */
    align-items: center;
}

.contact-form input,
.contact-form textarea {
    /* Fix: Add box-sizing to ensure padding/border don't affect 100% width calculation */
    box-sizing: border-box;
    /* Since the form items are now centered, they need to explicitly take up the full available width */
    width: 100%;
    padding: 1rem;
    border: 1px solid #444;
    background-color: #333;
    color: var(--color-text);
    border-radius: 0.5rem;
    font-family: "Inter", sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    /* Updated shadow color to match new green accent (31, 224, 48) */
    box-shadow: 0 0 0 2px rgba(31, 224, 48, 0.5);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--color-text-secondary);
}

/* Input Group for Budget Field with Prefix */
.input-group {
    display: flex;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    /* Fix: Add box-sizing to the container as well */
    /* Match the styling of other inputs, but applied to the container */
    border: 1px solid #444;
    background-color: #333;
    border-radius: 0.5rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.contact-form .input-group:focus-within {
    /* Apply focus style to the entire group */
    border-color: var(--color-accent);
    /* Updated shadow color to match new green accent (31, 224, 48) */
    box-shadow: 0 0 0 2px rgba(31, 224, 48, 0.5);
}

.input-prefix {
    padding: 1rem 0.5rem 1rem 1rem;
    /* Padding to match input height, 16px + 8px + 16px */
    color: var(--color-text-secondary);
    font-size: 1rem;
    font-weight: 700;
    pointer-events: none;
    /* Allows clicks to pass through to the input */
    height: 100%;
    /* Ensure it aligns nicely */
    display: flex;
    align-items: center;
}

.budget-input {
    flex-grow: 1;
    /* Take up remaining space */
    padding: 1rem 1rem 1rem 0.5rem;
    border: none !important;
    /* Remove individual input border */
    background-color: transparent !important;
    /* Make it transparent so the group background shows */
    border-radius: 0 0.5rem 0.5rem 0 !important;
    /* Only round right corners */
}

.note-on-engagement {
    margin-top: 2rem;
    color: var(--color-text-secondary);
    font-size: 0.875rem;
}

.note-on-engagement .highlight {
    color: var(--color-accent);
    font-weight: bold;
}

/* FOOTER */
.footer {
    background-color: var(--color-secondary);
    padding: 2rem 0;
    border-top: 1px solid #333;
}

.footer-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}

.footer p {
    margin: 0;
    color: var(--color-text-secondary);
    font-size: 0.875rem;
}

/* ====================================
           MEDIA QUERIES (Responsiveness)
           ==================================== */
/* Tablet and larger (equivalent to sm: in Tailwind) */
@media (min-width: 640px) {
    .nav-content {
        flex-direction: row;
        /* Horizontal for tablet/desktop */
    }

    /* NEW: Hero Logo sizing for tablet/desktop */
    .hero-logo-container {
        max-width: 350px;
        margin-bottom: 2rem;
    }

    /* END NEW */
    .main-title {
        font-size: 4rem;
    }

    .sub-title {
        font-size: 2rem;
    }

    .hero-section {
        padding: 8rem 0;
    }

    .section {
        /* ULTRON MODIFICATION: Reduced vertical padding from 6rem to 4rem to reduce space between sections */
        padding: 4rem 0;
    }

    /* Set to 2 columns for tablet (sm) and keep it for larger sizes (md/lg) */
    .domains-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        flex-direction: row;
    }
}

/* Desktop and larger (equivalent to md/lg: in Tailwind) */
@media (min-width: 768px) {
    .pillars-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* The 2-column layout for domains is now fixed at 640px and carries through to desktop sizes. */
    .main-title {
        font-size: 5rem;
    }

    .section-title {
        font-size: 2.5rem;
    }
}

.logo-img {
    width: 22px;
    margin-right: 3px;
}
