/* Main stylesheet for SecureAI - On-Premise AI Solutions */

:root {
    --primary: #212529;
    --secondary: #343a40;
    --accent: #ff9900;
    --light: #f8f9fa;
    --dark: #121212;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    --info: #17a2b8;
    --gray: #6c757d;
    --gray-light: #f8f9fa;
    --gray-dark: #343a40;

    /* --body-font: 'Helvetica Neue', Arial, sans-serif; */
    --body-font: 'Noto Sans', sans-serif;
    /* --body-font: "Barlow", sans-serif; */

    --heading-font: 'Helvetica Neue', Arial, sans-serif;
    /* --heading-font: "Barlow", sans-serif; */
    /* --heading-font: 'Noto Sans', sans-serif; */

    --transition-speed: 0.2s;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    line-height: 1.6;
    color: var(--dark);
    background-color: white;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 700;
}

h2 {
    font-size: 1.6rem;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--accent);
    transition: color var(--transition-speed);
}

a:hover {
    color: var(--primary);
}

img {
    max-width: 100%;
    height: auto;
}

ul {
    list-style-position: inside;
    margin-bottom: 1rem;
}

/* Layout */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col {
    flex: 1;
    padding: 0 15px;
}

/* Section styling */
section {
    padding: 2rem 0;
    margin: 2rem 0 2rem 0;
}

section h2 {
    text-align: center;
    margin-bottom: 1.5rem;
}

.section-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem auto;
}

/* Utility classes */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-left {
    text-align: left;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

/* CTA Section */
.cta {
    background-color: #f8f9fa;
    color: var(--dark);
    text-align: center;
    padding: 4rem 0;
}

.cta h2 {
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.cta p {
    max-width: 800px;
    margin: 0 auto 2rem;
}

/* Technical Section */
.technical {
    background-color: #f8f9fa;
}

.applications {
    background-color: #f8f9fa;
}

.deployment {
    background-color: white;
}

.pt-1 { padding-top: 0.5rem; }
.pt-2 { padding-top: 1rem; }
.pt-3 { padding-top: 1.5rem; }
.pt-4 { padding-top: 2rem; }
.pt-5 { padding-top: 3rem; }

.pb-1 { padding-bottom: 0.5rem; }
.pb-2 { padding-bottom: 1rem; }
.pb-3 { padding-bottom: 1.5rem; }
.pb-4 { padding-bottom: 2rem; }
.pb-5 { padding-bottom: 3rem; }

.btn {
    display: inline-block;
    background-color: var(--accent);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: background-color var(--transition-speed), transform var(--transition-speed);
}

.btn-cta-hero {
    color: black;
}

.btn-cta-small2 {
    display: inline-block;
    color: var(--accent);
    /* color: var(--primary); */
    text-decoration: underline;
    font-weight: bold;
    border: none;
    cursor: pointer;
}

.btn-cta-small {
    display: inline-block;
    background-color: var(--accent);
    /* background-color: var(--primary); */
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    /* font-weight: bold; */
    border: none;
    cursor: pointer;
    transition: background-color var(--transition-speed), transform var(--transition-speed);
}

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

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

.btn-primary:hover {
    background-color: #002855;
}

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

.btn-secondary:hover {
    background-color: #0055aa;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
}

.btn-outline:hover {
    background-color: var(--accent);
    color: white;
}

/* Header and Navigation */
header {
    position: fixed; /* Keep header visible at all times */
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(33, 37, 41, 0.6); /* Semi-transparent background */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px); /* Safari support */
    color: white;
    padding: 1rem 0;
    transition: padding 0.8s, backdrop-filter 0.8s, background-color 0.8s;
    font-family: var(--heading-font);
    font-size: 1.3rem;
}

header.scrolled {

    padding: 0.25rem 0; /* Reduce vertical padding */
    /* background: rgba(33, 37, 41, 0.8); Slightly more opaque when shrunk */
    background: rgba(225, 225, 225, 0.6); /* Slightly more opaque when shrunk */
}
header.scrolled .nav-links a {
    color: var(--primary);
}

header.scrolled .logo {
    color: var(--primary);
    font-size: 1.3rem;
    font-weight: 900;
}

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

.logo {
    font-size: 1.2rem;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
}
.logo:hover {
    color: white;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-weight: 500;
    transition: opacity var(--transition-speed);
    position: relative;
}

.nav-links a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: white;
    transition: width var(--transition-speed);
}

.nav-links a:hover {
    color: white;
}

.nav-links a:hover:after {
    width: 100%;
}

/* Hamburger / mobile menu button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    /* Default: light icon with reduced opacity */
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color var(--transition-speed);
}

/* When the header shrinks on scroll ‑ use full-opacity dark icon */
header.scrolled .mobile-menu-btn {
    color: var(--primary);
    opacity: 1;
}

/* Hero section */
.hero {
    position: relative;
    height: 90vh;
    min-height: 600px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    color: white;
    margin: 0;
    padding: 0;
}

.hero:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;charset=utf8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"%3E%3Cpolygon fill="rgba(255,255,255,0.03)" points="0,100 100,0 100,100"%3E%3C/polygon%3E%3C/svg%3E');
    background-size: 100% 100%;
    background-position: center;
    z-index: 1;
}

.hero-content {
    position: relative;
    top: 4rem;
    z-index: 2;
    max-width: 580px;
}

.hero-content-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1;
}

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

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

.swiss-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    margin-bottom: 2rem;
}

/* Features */
.split-section {
    padding: 0 0;
    display: block;
}

.split-section h2 {
    text-align: left;
}

.h2-large h2 {
    font-size: 3rem;
}

.split-row {
    display: flex;
    align-items: center;
    margin: 0rem 0;
    padding: 1rem;
    gap: 2rem; /* vertical gap */
}

.split-row-spacer {
    margin: 6rem 0;
}

.split-row.reverse {
    flex-direction: row-reverse;
}

.split-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.split-image img {
    width: 100%;
    height: auto;
    border-radius: 0px;
    /* box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); */
}

.office-ai-features img {
    max-width: 200px;
}

.split-content {
    flex: 1;
    padding: 1rem;
}

.split-content h3 {
    margin-bottom: 1rem;
    color: #333;
}

.split-content p {
    color: #666;
    line-height: 1.6;
}

/* Solutions */
.solutions {
    background-color: #f8f9fa;
}

.solutions h2 {
    text-align: center;
    margin-bottom: 1.5rem;
}

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

.solution-card {
    background-color: white;
    border-radius: 0px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    height: 100%;
    transition: transform var(--transition-speed);
}

/* .solution-card:hover {
    transform: translateY(-5px);
} */

.solution-img {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.solution-content {
    padding: 1.5rem;
}

.solution-content h3 {
    margin-bottom: 1rem;
    color: var(--primary);
}

.round-image {
    border-radius: 50%;
    width: 200px;
    margin-bottom: 2rem;
}

.industry-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.tag {
    display: inline-block;
    background-color: rgba(255, 153, 0, 0.2);
    color: var(--primary);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.solution-content .btn {
    margin-top: 1rem;
}

/* Security */
.security {
    background-color: white;
}

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

.security-item {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid var(--accent);
    transition: transform var(--transition-speed);
}

.security-item:hover {
    transform: translateY(-5px);
}

.security-item h3 {
    margin-bottom: 1rem;
    color: var(--primary);
}

/* Testimonials */
.testimonials {
    background-color: var(--primary);
    color: white;
    padding: 4rem 0;
}

.testimonials h2 {
    color: white;
}

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

.testimonial-card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 8px;
    transition: transform var(--transition-speed);
}

.testimonial-card img {
    max-width: 130px;
    height: 40px;
    object-fit: contain;
    margin-bottom: 2rem;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1.5rem;
    position: relative;
}

.testimonial-text:before, .testimonial-text:after {
    /* font-size: 1.5rem; */
    opacity: 0.5;
    font-weight: bold;
}

.testimonial-text:before {
    content: '"';
    position: absolute;
    left: -10px;
    top: -10px;
}

.testimonial-text:after {
    content: '"';
}

.testimonial-author {
    font-weight: normal;
}

/* Contact */
.contact {
    background-color: #f8f9fa;
}

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

.contact-form {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
}

.contact-form h3 {
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

input, textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color var(--transition-speed);
}

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

textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-info {
    padding: 1rem;
}

.contact-info h3 {
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

/* Footer */
footer {
    background-color: var(--dark);
    color: white;
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-column h3 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    color: white;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #aaa;
    text-decoration: none;
    transition: color var(--transition-speed);
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #aaa;
    font-size: 0.9rem;
}

/* Responsive design */
@media (max-width: 992px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .hero {
        min-height: 60vh;
    }
}

@media (max-width: 768px) {
    section {
        padding: 3rem 0;
    }

    .hero {
        text-align: center;
    }

    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    /* Hidden by default */
    .nav-links {
        display: none;
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;

        /* Position them just below the fixed header for a simple drop-down effect */
        position: absolute;
        top: 100%; /* below header */
        left: 0;
        width: 100%;
        padding: 1rem 0;
        background: rgba(33, 37, 41, 0.95);
        backdrop-filter: blur(4px);
    }

    /* Shown when toggled */
    .nav-links.active {
        display: flex;
    }

    /* When page is scrolled and header has shrunk, switch dropdown to light semi-transparent background */
    header.scrolled .nav-links,
    header.scrolled .nav-links.active {
        background: rgba(255, 255, 255, 0.8);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }

    .mobile-menu-btn {
        display: block;
    }

    .mobile-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: var(--primary);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transform: translateX(-100%);
        transition: transform var(--transition-speed);
        z-index: 1001;
    }

    .mobile-menu.active {
        transform: translateX(0);
    }

    .mobile-menu a {
        color: white;
        font-size: 1.5rem;
    }

    .close-menu {
        position: absolute;
        top: 2rem;
        right: 2rem;
        background: none;
        border: none;
        color: white;
        font-size: 1.5rem;
        cursor: pointer;
    }

    .split-row,
    .split-row.reverse {
        flex-direction: column;
        text-align: center;
    }

    .split-image {
        margin-bottom: 1.5rem;
    }

    .feature-card-box {
        padding: 1.2rem 0.5rem;
        margin: 1.5rem 0;
    }
}

@media (max-width: 576px) {
    .container {
        width: 95%;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.6rem;
    }

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

    .btn {
        padding: 0.7rem 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Mobile adjustments: two-line left-aligned typewriter headline */
    .typewriter-headline {
        /* Allow wrapping so the fixed and dynamic parts can split across lines */
        white-space: normal;
        /* Align text to the left on very small screens */
        /* text-align: left; */
        /* Reduce oversized font for better fit */
        font-size: 5rem !important;
        padding-bottom: 3rem !important;
    }

    /* Force the dynamic part onto its own line */
    .typewriter-headline #typewriter-target::before {
        content: "\A";   /* newline */
        white-space: pre; /* preserve the newline */
    }

    /* Higher specificity so it wins over the global !important */
    .hero .typewriter-headline {
        font-size: 5rem !important;
    }
}

#regional-map {
    width: 100vw !important;
    max-width: 100vw !important;
    overflow-x: hidden;
}

/* Four column grid layout for feature/mission cards */
.four-col-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.4rem;
}

@media (max-width: 1200px) {
    .four-col-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .four-col-grid {
        grid-template-columns: 1fr;
    }
}

.h3-bold-underline h3 {
    display: block;
    border-bottom: 0.8rem solid #000;
    padding-bottom: 0.4rem;
    margin-bottom: 1.2rem;
    text-transform: uppercase;
}

/* Typewriter headline */
.typewriter-headline {
    white-space: nowrap;
    font-size: 8rem !important;
    opacity: 0.6;
}

.cursor {
    display: inline-block;
    width: 3px;
    height: 1em;
    background: var(--accent);
    margin-left: 6px;
    transform: translateY(10px);
    animation: blink 0.7s steps(1) infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    50.01%, 100% { opacity: 0; }
}

#typewriter-target {
    color: var(--accent);
    /* text-decoration: underline 1px;
    text-underline-offset: 10px; */
}

/* Language switcher */
.lang-switcher {
    margin-left: 1rem;
}

.lang-switcher select {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
    cursor: pointer;
    font-size: 1rem;
    appearance: none; /* hide native arrow */
    padding-right: 1.2rem; /* space for custom caret */
    position: relative;
}

/* caret using pseudo */
.lang-switcher select::-ms-expand {
    display: none;
}

.lang-switcher select:focus {
    outline: none;
}

header.scrolled .lang-switcher select {
    color: var(--primary);
}

.lang-switcher option {
    color: #000; /* ensure readability in dropdown list */
}

@media (max-width: 768px) {
    .lang-switcher {
        margin-left: 0.5rem;
    }
}