/* 
    manfred AI Premium Stylesheet
    Design System: Modern, Dark Mode, Glassmorphism, Futuristic
*/

:root {
    /* Colors */
    --bg-dark: #050505;
    --bg-darker: #000000;
    --text-main: #f0f0f0;
    --text-muted: #a0a0ab;

    /* Neon Accents */
    --primary: #00f0ff;
    /* Cyan */
    --primary-glow: rgba(0, 240, 255, 0.5);
    --secondary: #7000ff;
    /* Purple */
    --secondary-glow: rgba(112, 0, 255, 0.5);

    /* Gradients */
    --gradient-brand: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --gradient-subtle: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 100%);

    /* Layout/Spacing */
    --container-width: 1200px;
    --section-spacing: 80px;

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-backdrop: blur(16px);

    /* Typography */
    --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* =========================================================================
   Reset & Base Styles
   ========================================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-family);
    line-height: 1.6;
    overflow-x: hidden;
    /* Prevent horizontal scroll from glowing orbs */
    cursor: none;
    /* Hide default cursor */
}

a,
button,
input,
textarea,
select,
.tab-btn {
    cursor: none;
    /* Hide default cursor on interactive elements too */
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

ul {
    list-style: none;
}

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

/* =========================================================================
   Typography & Utilities
   ========================================================================= */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.text-glow {
    text-shadow: 0 0 20px var(--primary-glow);
}

.text-muted {
    color: var(--text-muted);
}

.text-primary {
    color: var(--primary);
}

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

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

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: var(--section-spacing) 0;
}

.bg-darker {
    background-color: var(--bg-darker);
}

.relative {
    position: relative;
}

.mt-4 {
    margin-top: 2rem;
}

/* =========================================================================
   Custom Magnetic Cursor
   ========================================================================= */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease, background-color 0.3s ease;
}

.custom-cursor-follower {
    position: fixed;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(0, 240, 255, 0.5);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease-out, width 0.3s ease, height 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}

/* Hover State for links and buttons */
.custom-cursor.hover {
    width: 0;
    height: 0;
    background: transparent;
}

.custom-cursor-follower.hover {
    width: 60px;
    height: 60px;
    background-color: rgba(112, 0, 255, 0.1);
    /* purple tint */
    border-color: var(--secondary);
    backdrop-filter: blur(2px);
}

/* =========================================================================
   Buttons & Badges
   ========================================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 100px;
    /* pill shape */
    cursor: pointer;
    font-size: 1rem;
    border: 1px solid transparent;
}

.btn.lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-primary {
    background: var(--gradient-brand);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.btn-primary.glow-hover:hover {
    box-shadow: 0 0 25px var(--primary-glow);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--glass-border);
}

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

.glass {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-backdrop);
    -webkit-backdrop-filter: var(--glass-backdrop);
    border: 1px solid var(--glass-border);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

.badge i {
    color: var(--primary);
}

/* =========================================================================
   Navigation
   ========================================================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition-smooth);
    padding: 1.5rem 0;
}

.navbar.scrolled {
    padding: 1rem 0;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.05em;
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.manfred-logo-svg {
    transform-origin: center;
    transition: transform 0.3s ease;
}

.logo:hover .manfred-logo-svg {
    transform: scale(1.05);
}

.logo-path {
    stroke-dasharray: 100;
    animation: dashLoop 4s ease-in-out infinite alternate;
}

@keyframes dashLoop {
    0% {
        stroke-dashoffset: 100;
    }

    100% {
        stroke-dashoffset: 0;
    }
}

.center-node {
    animation: pulseCenter 2s infinite alternate;
    transform-origin: 24px 28px;
}

@keyframes pulseCenter {
    0% {
        transform: scale(0.85);
    }

    100% {
        transform: scale(1.15);
    }
}

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

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    position: relative;
}

.nav-link:hover {
    color: #fff;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-brand);
    transition: width 0.3s ease;
}

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

.mobile-only {
    display: none !important;
}

.mobile-menu-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

/* =========================================================================
   Hero Section
   ========================================================================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

#neural-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* Glowing Orbs for futuristic background */
.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.6;
    animation: float 20s ease-in-out infinite alternate;
}

.orb-1 {
    top: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: var(--primary-glow);
}

.orb-2 {
    bottom: -20%;
    right: -10%;
    width: 800px;
    height: 800px;
    background: var(--secondary-glow);
    animation-delay: -5s;
}

.orb-3 {
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.1);
    animation-duration: 30s;
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: 50px 50px;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
}

/* =========================================================================
   Logo Carousel
   ========================================================================= */
.logo-carousel-section {
    width: 100%;
    padding: 3rem 0;
    background: var(--bg-color);
    overflow: hidden;
    position: relative;
    z-index: 10;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.carousel-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
}

.carousel-container::before,
.carousel-container::after {
    content: '';
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
}

.carousel-container::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-color), transparent);
}

.carousel-container::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-color), transparent);
}

.carousel-track {
    display: flex;
    align-items: center;
    width: calc(200px * 10);
    /* Width of single logo * total number of logos (including clones) */
    animation: scroll 30s linear infinite;
}

.carousel-track:hover {
    animation-play-state: paused;
}

.carousel-logo {
    width: 200px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 2rem;
}

.grayscale-logo {
    max-width: 120px;
    height: auto;
    max-height: 40px;
    filter: grayscale(100%) opacity(0.5);
    transition: var(--transition-smooth);
}

.carousel-logo:hover .grayscale-logo {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.05);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-200px * 5));
    }

    /* Scroll halfway (the clones) */
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(50px, 50px) scale(1.1);
    }
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 900px;
    z-index: 1;
}

.hero-title {
    font-size: clamp(3rem, 6vw, 5.5rem);
    margin-bottom: 1.5rem;
}

.hero-title .gradient-text {
    display: inline-block;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    color: var(--text-muted);
    max-width: 700px;
    margin-bottom: 3rem;
    font-weight: 300;
}

/* Typewriter Cursor */
.cursor-blink {
    font-weight: 300;
    color: var(--primary);
    animation: blink 1s step-end infinite;
    margin-left: 2px;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    margin-bottom: 4rem;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding: 1.5rem 3rem;
    border-radius: 20px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.5rem;
}

.stat-divider {
    width: 1px;
    height: 50px;
    background: var(--glass-border);
}

/* =========================================================================
   Platform / Features Section
   ========================================================================= */
.section-header {
    max-width: 700px;
    margin: 0 auto 5rem;
}

.section-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    margin-bottom: 1.5rem;
}

.section-description {
    font-size: 1.2rem;
    color: var(--text-muted);
}

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

/* Center the last card if an uneven number */
.agent-card:nth-child(7) {
    grid-column: 1 / -1;
    justify-self: center;
    max-width: 400px;
    text-align: center;
}

.agent-card {
    padding: 2.5rem 2rem;
    border-radius: 24px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.agent-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Subtle inner glow on hover */
.agent-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(0, 240, 255, 0.1), transparent 50%);
    opacity: 0;
    transition: var(--transition-smooth);
}

.agent-card:hover::before {
    opacity: 1;
}

.agent-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    display: inline-block;
}

.agent-card:nth-child(even) .agent-icon {
    color: var(--secondary);
}

.agent-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.agent-desc {
    color: var(--text-muted);
    font-size: 1rem;
}

/* =========================================================================
   Impact Section
   ========================================================================= */
.impact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.feature-list {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.feature-list li {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.feature-list i {
    font-size: 2rem;
    margin-top: -0.2rem;
}

.feature-list div strong {
    display: block;
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
    color: #fff;
}

.feature-list div span {
    color: var(--text-muted);
}

.impact-visual .orb-4 {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    background: var(--primary-glow);
}

.glass-card {
    padding: 3rem;
    border-radius: 32px;
    position: relative;
    z-index: 2;
    text-align: center;
}

.stat-chart {
    position: relative;
    width: 250px;
    height: 250px;
    margin: 0 auto 2rem;
}

.circular-chart {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    max-height: 250px;
}

.circle-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.05);
    stroke-width: 2;
}

.circle {
    fill: none;
    stroke: url(#chart-gradient);
    /* Requires SVG defs, we fallback to CSS below if missing */
    stroke-width: 3;
    stroke-linecap: round;
    animation: progress 2s ease-out forwards;
}

/* Fallback stroke if gradient definition is missing */
.stat-chart path.circle {
    stroke: var(--primary);
}

@keyframes progress {
    0% {
        stroke-dasharray: 0, 100;
    }
}

.chart-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.chart-content h3 {
    font-size: 4rem;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.chart-content span {
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.875rem;
}

/* =========================================================================
   Leadership Section
   ========================================================================= */
.leadership-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-radius: 32px;
    overflow: hidden;
    position: relative;
}

.leadership-content {
    padding: 5rem 4rem;
    z-index: 2;
}

.leadership-image {
    background: var(--bg-darker);
    position: relative;
    min-height: 400px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Abstract Network Animation */
.globe-network {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.node {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--primary);
    animation: pulse 2s infinite alternate;
}

.n1 {
    top: 30%;
    left: 20%;
}

.n2 {
    top: 50%;
    left: 50%;
    background: var(--secondary);
    box-shadow: 0 0 15px var(--secondary);
    animation-delay: 0.5s;
}

.n3 {
    top: 80%;
    left: 40%;
    animation-delay: 1s;
}

.n4 {
    top: 40%;
    left: 80%;
    background: var(--secondary);
    box-shadow: 0 0 15px var(--secondary);
    animation-delay: 1.5s;
}

.n5 {
    top: 70%;
    left: 70%;
    animation-delay: 0.2s;
}

.connections {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }

    100% {
        transform: scale(1.5);
        opacity: 1;
    }
}

/* =========================================================================
   Footer
   ========================================================================= */
.footer {
    padding: 3rem 0;
    border-top: 1px solid var(--glass-border);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* =========================================================================
   Animations (Intersection Observer Classes)
   ========================================================================= */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.stagger-1 {
    transition-delay: 0.1s;
}

.stagger-2 {
    transition-delay: 0.2s;
}

.stagger-3 {
    transition-delay: 0.3s;
}

.stagger-4 {
    transition-delay: 0.4s;
}

/* =========================================================================
   Responsive Design
   ========================================================================= */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 4rem;
    }

    .hero-stats {
        flex-wrap: wrap;
    }

    .stat-divider {
        display: none;
    }

    .impact-grid,
    .leadership-wrapper {
        grid-template-columns: 1fr;
    }

    .leadership-content {
        padding: 3rem 2rem;
    }
}

@media (max-width: 768px) {
    .desktop-only {
        display: none;
    }

    .mobile-only {
        display: block !important;
    }

    .mobile-actions.mobile-only {
        display: flex !important;
    }

    .mobile-menu-btn {
        z-index: 1001;
        position: relative;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background: rgba(10, 10, 10, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 999;
        border-left: 1px solid var(--glass-border);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
        padding: 2rem;
    }

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

    .nav-links li {
        width: 100%;
        text-align: center;
        list-style: none;
    }

    .nav-links .nav-link {
        font-size: 1.5rem;
        display: block;
        padding: 1rem;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-ctas {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }

    .btn {
        width: 100%;
    }

    .stat-item {
        padding: 1rem;
    }

    .agent-card:nth-child(7) {
        grid-column: auto;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* =========================================================================
   Language Switcher
   ========================================================================= */
.lang-switcher {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: var(--glass-backdrop);
    -webkit-backdrop-filter: var(--glass-backdrop);
    padding: 0.5rem 1rem;
    border-radius: 100px;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    margin-right: 1.5rem;
}

.lang-switcher:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.lang-option {
    transition: color 0.3s ease;
}

.lang-option:hover {
    color: #fff;
}

.lang-option.active {
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary-glow);
}

.lang-divider {
    opacity: 0.3;
}

.mobile-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* =========================================================================
   Contact Form Section
   ========================================================================= */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-radius: 32px;
    overflow: hidden;
}

.contact-info {
    padding: 5rem 4rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 3rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.detail-item i {
    font-size: 2rem;
    color: var(--primary);
}

.detail-item strong {
    display: block;
    color: #fff;
}

.detail-item span {
    color: var(--text-muted);
}

.contact-form-container {
    padding: 5rem 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 1rem;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: var(--transition-smooth);
}

.tab-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.tab-btn.active {
    color: var(--primary);
    background: rgba(0, 240, 255, 0.1);
}

.manfred-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.form-group.row {
    flex-direction: row;
    gap: 1.5rem;
}

.input-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

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

input,
textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-smooth);
}

input[type="file"] {
    padding: 0.75rem 1rem;
    color: var(--text-muted);
}

input[type="file"]::file-selector-button {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    margin-right: 1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-family: var(--font-family);
    font-size: 0.9rem;
}

input[type="file"]::file-selector-button:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary);
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    /* slightly lighter on focus */
}

input::placeholder,
textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

textarea {
    resize: vertical;
}

.w-100 {
    width: 100%;
}

.hidden {
    display: none !important;
}

.form-success {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 12px;
    color: #00ff88;
    margin-top: 1rem;
}

/* =========================================================================
   Legal Pages & Footer Links
   ========================================================================= */
.legal-content h3 {
    color: var(--text-main);
    margin-top: 2rem;
}

.legal-content p {
    color: var(--text-muted);
}

.footer-links {
    margin: 1.5rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

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

/* =========================================================================
   Testimonials Section
   ========================================================================= */
.testimonials {
    background: var(--bg-color);
    position: relative;
    border-bottom: 1px solid var(--glass-border);
    min-height: 400px;
    z-index: 50;
    margin-top: 100px;
    clear: both;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-card {
    padding: 2.5rem;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.quote-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.testimonial-text {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: var(--text-main);
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--glass-border);
}

.testimonial-author h4 {
    margin-bottom: 0.2rem;
    font-size: 1rem;
}

.testimonial-author span {
    font-size: 0.85rem;
}

/* =========================================================================
   FAQ Section - Accordion
   ========================================================================= */
.faq-accordion {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 1.5rem 2rem;
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-smooth);
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.05);
}

.faq-question i {
    transition: transform 0.3s ease;
    color: var(--primary);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-answer p {
    padding: 0 2rem 1.5rem 2rem;
    color: var(--text-muted);
    margin: 0;
}

/* =========================================================================
   Cookie Banner
   ========================================================================= */
.cookie-banner {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    max-width: 400px;
    padding: 1.5rem;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.5s ease;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--glass-border);
}

.cookie-banner.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.cookie-content h4 {
    margin-bottom: 0.5rem;
}

.cookie-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.cookie-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-link {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: underline;
}

.cookie-link:hover {
    color: var(--primary);
}

@media (max-width: 1024px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .lang-switcher {
        margin-right: 0;
        padding: 0.4rem 0.8rem;
        background: transparent;
        border: none;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .contact-info,
    .contact-form-container {
        padding: 3rem 2rem;
    }

    .form-group.row {
        flex-direction: column;
    }
}