/*
 * CORGE Website Color Palette: Blue + Gray
 *
 * Primary Blue (Accent/CTA): #007aff
 * Darker Primary Blue (Hover): #0056b3
 * Deep Blue (Headings/Logo/Footer): #1a2b48
 * Dark Gray (Body Text): #333333
 * Medium Gray (Borders/UI Elements): #ced4da
 * Light Gray (Backgrounds): #f4f7f9
 * Light Blue-Gray (Placeholders): #e9ecef
 *
 * Success Message Green: #155724 (text), #d4edda (background)
 * Error Message Red: #721c24 (text), #f8d7da (background)
 */

:root {
    --color-primary: #007aff;
    --color-primary-dark: #0056b3;

    /* Deep + heading blue unified to the same color */
    --color-deep-blue: #253b6f;
    --color-heading: #253b6f;

    --color-text: #333333;
    --color-bg: #f4f7f9;
    --color-border: #ced4da;
    --color-soft-bg: #e9ecef;

    --color-success-text: #155724;
    --color-success-bg: #d4edda;
    --color-error-text: #721c24;
    --color-error-bg: #f8d7da;

    --color-white: #ffffff;
    --color-border-light: #e0e4ea;
    --color-muted-text: #555555;

    --radius: 14px;
}

/* ========================= */
/* General Styles            */
/* ========================= */

body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--color-bg);
    color: var(--color-text); /* Explicitly set dark gray for body text */
    line-height: 1.6;
    overflow-x: hidden;  /* prevents side-scroll if something slightly overflows */
}

h1,
h2 {
    font-weight: 700;
    color: var(--color-heading);
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--color-heading);
    text-decoration: none;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

/* ========================= */
/* Header & Navigation       */
/* ========================= */

.headline-logo {
    display: flex;
    margin: 0;
    height: 50px;
}

header {
    background-color: var(--color-white);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    padding: 1rem 5%;
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--color-heading);
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    font-weight: 600;
    letter-spacing: -0.2px;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

nav ul li a:hover {
    background-color: rgba(0, 122, 255, 0.08);
}

/* Highlight active nav item (used on About page) */
nav ul li a.active {
    color: var(--color-primary);
}

/* ========================= */
/* Hero Section              */
/* ========================= */

.hero {
    display: flex;
    align-items: center;
    padding: 4rem 5%;
    background: linear-gradient(
        180deg,
        #f7f9fc 0%,
        #ffffff 100%
    );
    gap: 2rem;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.hero-image,
.secondary-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-photo {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: var(--radius);
    display: block;
}

/* ========================= */
/* Main Page Slogan Strip    */
/* ========================= */

.main-slogan-strip {
    background-color: var(--color-heading);
    padding: 3.5rem 5%;
    text-align: left;
}

.main-slogan-content {
    max-width: 900px;
    margin: 0 auto;
}

.main-slogan-strip h1 {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    color: var(--color-white);
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    text-align: center;
}

.main-slogan-strip p {
    font-size: 1.1rem;
    margin: 0;
    font-family: 'Montserrat', sans-serif;
}

/* ========================= */
/* Technology Section        */
/* ========================= */

.technology {
    padding: 4rem 5%;
    background-color: var(--color-white);
    text-align: center;
}

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

.technology-text {
    max-width: 700px;
    margin: 0 auto 2rem;
    font-size: 1.1rem;
    color: var(--color-muted-text);
}

/* ========================= */
/* Features Section          */
/* ========================= */

.features {
    padding: 5rem;
    padding-bottom: 5rem;
    text-align: center;
    background-color: var(--color-white);
}

.features h2 {
    font-size: 2.5rem;
    letter-spacing: -0.5px;
    margin-bottom: 2.5rem;
}

.feature-grid { 
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.feature {
    background-color: var(--color-white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow:
    0 4px 8px rgba(0,0,0,0.06),
    0 12px 24px rgba(0,0,0,0.04);
    text-align: center;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-small-img {
    width: 150px;
    height: 150px;
    margin-bottom: 1.25rem;
    object-fit: contain;
    opacity: 1;
    border-radius: var(--radius);
    padding: 8px;
    background: #f7f9fc;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}

.feature:hover {
    transform: translateY(-4px);
    box-shadow:
        0 8px 16px rgba(0,0,0,0.06),
        0 16px 28px rgba(0,0,0,0.04);
    transition: all 0.25s ease;
}
/* ========================= */
/* Importance Section        */
/* ========================= */

.importance {
    padding: 2.5rem 2rem;
    background-color: var(--color-white);
    text-align: center;
}

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

.importance p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

.importance-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.importance-list li {
    margin-bottom: 0.75rem;
}

/* ========================= */
/* Team / About Section      */
/* ========================= */

.team {
    padding: 2.5rem 2rem;
    background-color: var(--color-white);
    border-bottom: 1px solid var(--color-border-light);
}

.team-container {
    display: flex;
    align-items: center;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.team-text {
    flex: 1;
}

.team-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--color-deep-blue);
}

.team-text p {
    font-size: 1.1rem;
    line-height: 1.6;
}

.team-photo {
    flex: 1;
    display: flex;
    justify-content: center;
}

.team-photo img {
    height: 100%;
    max-height: 450px;
    border-radius: var(--radius);
    object-fit: cover;
    align-items: center;
}

/* About page – variant to add extra space above */
.about-team {
    padding-top: 3rem;
}

/* ========================= */
/* About Slogan Strip    */
/* ========================= */

.about-slogan-strip {
    background-color: var(--color-heading);
    padding: 3.5rem 5%;
    text-align: left;
}

.about-slogan-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-slogan-strip h1 {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    color: var(--color-white);
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    text-align: center;
}

.about-slogan-strip p {
    font-size: 1.1rem;
    margin: 0;
    font-family: 'Montserrat', sans-serif;
}

/* ========================= */
/* Notify / Launch Section   */
/* ========================= */

.purchase {  /* ID on page is #notify; keeping class for layout */
    padding: 4rem 5%;
    background-color: var(--color-white);
    text-align: center;
}

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

.notify-form {
    max-width: 600px;
    margin: 2rem auto 0;
    display: flex;
    gap: 0.5rem;
}

#email-input {
    flex-grow: 1;
    padding: 1rem;
    font-size: 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
}

#notify-button {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 1rem 2.25rem;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    transform: translateY(0);
}

#notify-button:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
}

#form-message {
    margin-top: 1rem;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius);
    font-weight: 500;
    display: none; /* Hidden by default */
}

#form-message.success {
    background-color: var(--color-success-bg);
    color: var(--color-success-text);
    display: block;
}

#form-message.error {
    background-color: var(--color-error-bg);
    color: var(--color-error-text);
    display: block;
}

/* ========================= */
/* Footer                    */
/* ========================= */

.site-footer {
    background-color: var(--color-deep-blue);
    color: var(--color-white);
    padding: 2rem 5%;
    text-align: center;
    font-size: 0.9rem;
}

.footer-container {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-row {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-row-top {
    opacity: 0.9;
}

/* Links row */
.footer-row-bottom a {
    position: relative;
    color: var(--color-white);
    text-decoration: none;
    opacity: 0.85;
    transition:
        opacity 0.2s ease,
        text-decoration 0.2s ease,
        transform 0.15s ease;
}

/* Dot separators between links */
.footer-row-bottom a:not(:last-child)::after {
    content: "•";
    margin-left: 0.75rem;
    opacity: 0.6;
}

/* Hover animation */
.footer-row-bottom a:hover {
    opacity: 1;
    text-decoration: underline;
    transform: translateY(-1px);  /* tiny “lift” on hover */
}


/* ========================= */
/* Scroll Animation Section  */
/* ========================= */

.scroll-section {
    min-height: 400vh;
    position: relative;
    background: var(--color-white);
}

.sticky-container {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.component-container {
    position: relative;
    width: 600px;
    height: 600px;
}

.component {
    position: absolute;
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.component img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    pointer-events: none;
}

/* Component layers */
.outer-shell-lid {
    width: 250px;
    height: 150px;
    top: 50px;
    z-index: 6;
    border-radius: var(--radius) var(--radius) 0 0;
}

.outer-shell-container {
    width: 250px;
    height: 400px;
    top: 100px;
    z-index: 3;
    border-radius: 0 0 var(--radius) var(--radius);
}

.cooling-element {
    width: 200px;
    height: 200px;
    top: 180px;
    z-index: 4;
    opacity: 0;
}

.insert-1 {
    width: 200px;
    height: 200px;
    top: 310px;
    z-index: 4;
    opacity: 0;
}

.insert-2 {
    width: 200px;
    height: 200px;
    top: 460px;
    z-index: 5;
    opacity: 0;
}

/* Component Labels */
.component-label {
    position: absolute;
    background: var(--color-white);
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    font-size: 0.85rem;
    color: var(--color-heading);
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s;
    white-space: nowrap;
    z-index: 10;
}

.component-label.visible {
    opacity: 1;
}

/* ========================= */
/* Popups (label click)      */
/* ========================= */

.label-clickable {
    cursor: pointer;
    text-decoration: underline;
}

.info-popup {
    position: absolute;
    background: var(--color-white);
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    box-shadow:
    0 4px 8px rgba(0,0,0,0.06),
    0 12px 24px rgba(0,0,0,0.04);
    max-width: 220px;
    font-size: 0.85rem;
    color: var(--color-deep-blue);
    display: none;
    z-index: 9999;
}

.info-popup.visible {
    display: block;
}

.popup-close {
    position: absolute;
    top: 6px;
    right: 8px;
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    color: var(--color-deep-blue);
    opacity: 0.7;
}

.popup-close:hover {
    opacity: 1;
}

/* ========================= */
/* About Page Sections       */
/* ========================= */

.about-hero {
    background-color: var(--color-deep-blue);
    color: var(--color-white);
    padding: 3.5rem 5%;
}

.about-hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-hero h1 {
    font-size: 3.2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 0.75rem;
    color: var(--color-white);
}

.about-hero p {
    font-size: 1.1rem;
    margin: 0;
}

/* Mission section */
.mission {
    background: linear-gradient(
        180deg,
        #f7f9fc 0%,
        #ffffff 100%
    );
    padding: 3rem 5%;
    border-bottom: 1px solid var(--color-border-light);
}

.mission-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.mission h2 {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.mission p {
    font-size: 1.05rem;
    margin: 0;
}

/* Contact section */
.contact-section {
    padding: 4rem 5%;
    background-color: var(--color-white);
}

.contact-card {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--color-white);
    padding: 2rem 2.5rem;
    border-radius: var(--radius);
    box-shadow:
    0 4px 8px rgba(0,0,0,0.06),
    0 12px 24px rgba(0,0,0,0.04);
    text-align: left;
}

.contact-card h2 {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.contact-card p {
    margin-bottom: 1rem;
    font-size: 1rem;
}

.email-link {
    display: inline-block;
    font-weight: 600;
    text-decoration: none;
    color: var(--color-primary);
    word-break: break-all;
    margin-bottom: 1.5rem;
}

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

/* Social links */
.social-links {
    border-top: 1px solid var(--color-border-light);
    padding-top: 1.5rem;
    margin-top: 1rem;
}

.social-label {
    margin: 0 0 0.75rem 0;
    font-weight: 600;
    color: var(--color-heading);
}

.social-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.social-pill {
    display: inline-block;
    padding: 0.5rem 1.1rem;
    border-radius: 999px;
    border: 1px solid var(--color-border);
    font-size: 0.9rem;
    text-decoration: none;
    color: var(--color-heading);
    font-weight: 500;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.1s ease;
}

.social-pill:hover {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-1px);
}

/* ========================= */
/* Responsive Adjustments    */
/* ========================= */

/* Tablet-ish: header/nav layout */
@media (max-width: 900px) {
    header {
        padding: 0.75rem 1.5rem;
    }

    nav {
        flex-direction: column;
        align-items: flex-start;
    }

    nav ul {
        margin-top: 0.75rem;
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    nav ul li {
        margin-left: 0;
    }
}

/* Mobile layout */
@media (max-width: 768px) {
    /* Hero: stack text and image */
    .hero {
        flex-direction: column;
        align-items: flex-start;
        padding: 2.5rem 1.5rem;
        gap: 1.5rem;
    }

    .hero-text h1 {
        font-size: 2.2rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .hero-image {
        width: 100%;
        justify-content: center;
    }

    /* Slogan strip tweaks */
    .main-slogan-strip {
        padding: 2.5rem 1.5rem;
        background-color: var(--color-deep-blue);
    }

    .main-slogan-strip h1 {
        font-size: 1.9rem;
        color: var(--color-bg); /* slightly softer than pure white */
    }


    /* General section padding a bit tighter on mobile */
    .technology,
    .importance,
    .features,
    .team,
    .purchase {
        padding: 3rem 1.5rem;
    }

    /* Feature grid: single column */
    .feature-grid {
        grid-template-columns: 1fr;
    }

    /* About us section layout */
    .team-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .team-photo {
        justify-content: flex-start;
    }

    .team-photo img {
        max-width: 320px;
    }

    /* Notify form: stack input + button */
    .notify-form {
        flex-direction: column;
    }

    #notify-button {
        width: 100%;
    }

    /* Scroll animation: scale & shift on mobile */
/* === Mobile layout for animation (static exploded view) === */
    .scroll-section {
        min-height: auto;
        padding-bottom: 0;
    }

    .scroll-section .sticky-container {
        justify-content: center;
        align-items: flex-start;
        overflow: visible;
    }

    .component-container {
        position: relative;
        width: 320px;      /* matches your mobile layout design */
        margin: 0 auto;
        height: auto;      /* JS will set an exact height based on content */
        transform: none;
        transform-origin: top center;
    }



    /* Popups: larger & more readable on mobile */
    .info-popup {
        max-width: calc(100% - 32px); /* 16px margin on each side */
        font-size: 0.9rem;
    }

    /* About hero, mission & contact padding */
    .about-hero {
        padding: 2.5rem 1.5rem;
    }

    .about-hero h1 {
        font-size: 2rem;
    }

    .mission {
        padding: 2.5rem 1.5rem;
    }

    .contact-card {
        padding: 1.75rem 1.5rem;
    }

    .social-icons {
        flex-direction: row;
    }

    .footer-row {
        gap: 1rem;
    }
}

