/* Modulus Power Website - CSS - V1.1 */
/* Author: Hunter Whitchurch, 2026*/

/* MPS font stuff */
@font-face {
    font-family: 'AcuminVariableConcept';
    src: url('fonts/AcuminVariableConcept.otf') format('opentype');
    font-weight: 100 900; /* Supports the full range of weights */
    font-style: normal;
}


/* common stuff */
:root {
    --bg-dark: #0a0a0a;
    --teal-brand: #53b2a8;
    --alt-teal: #1e6968;
    --text-white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.85);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    overflow-x: hidden;
}

/* navbar */
.navbar-container {
    position: fixed;
    top: 24px;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 1000;
    animation: fadeInDown 0.8s ease forwards;
}

.pill-nav {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 10px 32px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    gap: 60px; 
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* mobile navbar stuff */
input.menu-toggle {
    display: none !important;
    position: absolute;
    opacity: 0;
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #000; 
    border-radius: 5px;
    transition: 0.3s;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}


@media (max-width: 768px) {
    .pill-nav {
        width: 90%; 
        justify-content: space-between;
        padding: 10px 20px;
        border-radius: 50px;
    }

    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 85px; 
        left: 50%;
        transform: translateX(-50%) translateY(-20px);
        width: 90%;
        background: var(--glass-bg);
        flex-direction: column;
        gap: 0;
        border-radius: 25px;
        padding: 10px 0;
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s ease;
        box-shadow: 0 15px 30px rgba(0,0,0,0.3);
        border: 1px solid rgba(255,255,255,0.2);
    }

    .nav-links li { width: 100%; text-align: center; }
    .nav-links a { display: block; padding: 15px 0; color: #000; }


    #menu-toggle:checked ~ .nav-links {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }

    #menu-toggle:checked ~ .hamburger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    #menu-toggle:checked ~ .hamburger span:nth-child(2) { opacity: 0; }
    #menu-toggle:checked ~ .hamburger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

.navbar-logo img {
    height: 28px; 
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: #1a1a1a;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--teal-brand);
}

/* Active Page Highlighting */
.nav-links a.active {
    color: var(--teal-brand);
    position: relative;
}

/* ----INDEX----- */

/* hero */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, #000000 35%, #1e6968 100%);
    display: flex;
    align-items: center;
    padding: 0 8%;
}

.hero-container {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    align-items: center;
    gap: 120px;
    width: 100%;
}

.hero-graphic img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(30, 105, 104, 0.2));
}

.hero-content h1 {
    font-size: clamp(3.5rem, 8vw, 6.5rem);
    font-weight: 900;
    line-height: 0.85;
    margin-bottom: 24px;
    letter-spacing: -2px;
}

.sub-headline {
    font-family: 'AcuminVariableConcept', sans-serif !important;
    
    font-stretch: 50%; 
    font-variation-settings: "wdth" 50; 

    font-size: 1.8rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
    color: var(--teal-brand);
}

.cta-area {
    margin-top: 50px;
    display: flex;
    align-items: center;
    gap: 30px;
}

.cta-area p {
    font-weight: 300;
    opacity: 0.8;
}

.btn-pill {
    background: var(--text-white);
    color: var(--bg-dark);
    padding: 16px 36px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-pill:hover {
    background: transparent;
    border-color: var(--text-white);
    color: var(--text-white);
    transform: translateY(-3px);
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.6, 0.2, 1) forwards;
}

.hero-graphic { animation-delay: 0.2s; }
.sub-headline  { animation-delay: 0.4s; }
.hero-content h1 { animation-delay: 0.6s; }
.cta-area      { animation-delay: 0.8s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 60px;
    }
    .cta-area {
        justify-content: center;
        flex-direction: column;
    }
    .hero {
        padding-top: 100px;
    }
}

/* ----ABOUT PAGE---- */


.about-page {
    background: linear-gradient(180deg, #0a0a0a 0%, #111 100%);
}

.content-wrapper {
    padding-top: 150px;
}

.panel {
    padding: 80px 10%;
    max-width: 1400px;
    margin: 0 auto;
}

.container {
    width: 100%;
}

.section-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: -1px;
    color: var(--teal-brand);
}

/* abous us panel */
.glass-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 50px;
    border-radius: 40px;
    line-height: 1.8;
    font-size: 1.2rem;
    color: #ccc;
}

/* staff panel */
.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.staff-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 30px;
    text-align: center;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.staff-card:hover {
    background: rgba(30, 105, 104, 0.15);
    border-color: var(--alt-teal);
    transform: translateY(-10px);
}

.staff-img {
    width: 120px;
    height: 120px;
    background: #222;
    border-radius: 50%;
    margin: 0 auto 20px;
    overflow: hidden;
    border: 3px solid var(--teal-brand);
}

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

.staff-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0;
}

.staff-name-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 5px;
}

.linkedin-icon {
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.linkedin-icon:hover {
    color: var(--teal-brand);
    transform: scale(1.1);
}

.job-title {
    display: block;
    color: var(--teal-brand);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.staff-card p {
    font-size: 0.95rem;
    color: #999;
    line-height: 1.5;
}

/* ----CONTACT PAGE---- */


.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 80px;
    align-items: start;
}

.info-group {
    margin-bottom: 40px;
}

.info-group h3, .email-item h3 {
    font-size: 1.2rem;
    color: var(--teal-brand);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-group p, .email-item a {
    color: #ccc;
    line-height: 1.6;
    text-decoration: none;
    font-size: 1.1rem;
}

.email-subsections {
    display: flex;
    flex-direction: column;
    gap: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
}

/* form */
.glass-form {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    padding: 40px;
    border-radius: 30px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    color: var(--teal-brand);
    font-weight: 700;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

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

.contact-form-container .btn-pill {
    width: 100%;
    cursor: pointer;
    border: none;
}


/* ---PRODUCTS PAGE--- */


.products-page {
    background: radial-gradient(circle at top right, #111 0%, #000 100%);
}

/* top panel - product selling points */

.tech-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 80px;
    align-items: center;
}

.tech-subtitle {
    font-size: 1.2rem;
    color: var(--alt-teal);
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 20px;
}

.tech-features {
    list-style: none;
    margin-top: 30px;
}

.tech-features li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-white);
    font-weight: 500;
}

.tech-features i {
    color: var(--teal-brand);
}

.tech-visual img {
    width: 100%;
    filter: drop-shadow(0 0 40px rgba(83, 178, 168, 0.3));
}

/* --- Custom Solutions Section --- */
.custom-header {
    text-align: left;
    max-width: 800px;
    margin: 0 0 60px 0;
}

.custom-intro {
    font-size: 1.2rem;
    color: #999;
    line-height: 1.6;
}

.action-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.action-card {
    text-decoration: none;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 40px;
    padding: 60px 40px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    position: relative;
    overflow: hidden;
}

/* Arrow sizing fix */
.action-link i {
    font-size: 0.85rem;
    transition: 0.3s;
}

.action-card i.fa-solid {
    font-size: 2.5rem;
    color: var(--teal-brand);
    margin-bottom: 25px;
}

.action-card h3 {
    font-size: 2rem;
    color: var(--text-white);
    margin-bottom: 15px;
}

.action-card p {
    color: #888;
    line-height: 1.5;
    margin-bottom: 30px;
}

.action-link {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--teal-brand);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
}

/* Hover Effects */
.action-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--teal-brand);
}

@media (max-width: 992px) {
    .tech-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .tech-features li {
        justify-content: center;
    }
}

/* --- Deployments Page Styles --- */

.deployments-page {
    background: #000;
}

.deployment-case-study {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 120px !important;
    margin-bottom: 120px;
}

.deployment-title {
    font-size: 2.5rem;
    color: var(--text-white);
    margin-bottom: 40px;
    letter-spacing: -1px;
}

/* Header Grid: Info & Map */
.deployment-header-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 30px;
    margin-bottom: 60px;
}

.deployment-info-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 25px;
}

.info-item {
    display: flex;
    flex-direction: column;
}

.info-item .label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--teal-brand);
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.info-item .value {
    font-size: 1.1rem;
    color: #fff;
    font-weight: 500;
}

.map-container {
    height: 100%;
    min-height: 350px;
    border-radius: 30px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    filter: grayscale(1) invert(1) contrast(1.2); /* Makes the map dark/techy */
}

/* Description Sections */
.deployment-narrative {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px 80px;
    margin-bottom: 80px;
}

.narrative-section h3 {
    color: var(--teal-brand);
    font-size: 1.1rem;
    text-transform: uppercase;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.narrative-section p {
    color: #aaa;
    line-height: 1.7;
    font-size: 1.05rem;
}

/* Gallery */

/* --- Lightbox Modal --- */
.lightbox {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.lightbox-content {
    max-width: 85%;
    max-height: 75vh;
    border-radius: 15px;
    box-shadow: 0 0 50px rgba(83, 178, 168, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.lightbox-caption {
    margin-top: 20px;
    color: #fff;
    font-size: 1.1rem;
    text-align: center;
    max-width: 600px;
}

.close-btn {
    position: absolute;
    top: 40px;
    right: 40px;
    color: var(--teal-brand);
    font-size: 3rem;
    cursor: pointer;
    font-weight: bold;
}

.deployment-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    aspect-ratio: 16 / 10;
    border-radius: 20px;
    overflow: hidden;
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    transition: 0.5s;
}

.gallery-item:hover img {
    opacity: 1;
    transform: scale(1.05);
}

/* Mobile Adjustments */
@media (max-width: 992px) {
    .deployment-header-grid,
    .deployment-narrative {
        grid-template-columns: 1fr;
    }
    
    .map-container {
        height: 300px;
    }
}

/* COMMON FOOTER CSS */


.main-footer {
    background: #050505;
    padding: 80px 10% 40px;
    border-top: 1px solid rgba(30, 105, 104, 0.3);
    margin-top: 100px;
}

.main-footer-index {
    background: #050505;
    padding: 80px 10% 40px;
    border-top: 1px solid rgba(30, 105, 104, 0.3);
    margin-top: 0px;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 60px;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-brand p {
    color: #888;
    margin: 20px 0;
    line-height: 1.6;
    max-width: 300px;
}

.footer-logo {
    height: 25px;
    filter: brightness(0.9);
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    color: #555;
    font-size: 1.2rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--teal-brand);
}

.footer-links h4, .footer-newsletter h4 {
    color: var(--text-white);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 2px;
    margin-bottom: 25px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #888;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--text-white);
}

/* newsletter - need to get logic working :) */
.mini-form {
    display: flex;
    background: rgba(255,255,255,0.05);
    padding: 5px;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.1);
    margin-top: 15px;
}

.mini-form input {
    background: transparent;
    border: none;
    padding: 10px 20px;
    color: white;
    outline: none;
    flex: 1;
}

.mini-form button {
    background: var(--teal-brand);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s;
}

.mini-form button:hover {
    transform: scale(1.1);
}

/* Bottom Bar */
.footer-bottom {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.05);
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #444;
}

.legal-links a {
    color: #444;
    text-decoration: none;
    margin-left: 20px;
}

/* junk for mobile view */

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-brand p {
        margin: 20px auto;
    }
    .social-links {
        justify-content: center;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
    }
}

@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .section-title { font-size: 2rem; }
    .glass-card { padding: 30px; }
}

@media (max-width: 480px) {
    .staff-name-wrapper {
        gap: 8px;
    }
}