/*
Theme Name: Repute Theme
Theme URI: https://repute.nl
Author: Repute CMD
Author URI: https://repute.nl
Description: A custom high-performance theme for Repute CMD, featuring an Antigravity-inspired aesthetic.
Version: 1.0.0
License: Proprietary
*/

:root {
    --bg-color: #050505;
    --surface-color: #0a0a0a;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --accent-primary: #8b5cf6;
    --accent-secondary: #3b82f6;
    --accent-glow: rgba(139, 92, 246, 0.5);
    --gradient-main: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    --font-main: 'Inter', sans-serif;
    --container-width: 1200px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.text-gradient {
    background: var(--gradient-main);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--gradient-main);
    color: white;
    box-shadow: 0 4px 15px var(--accent-glow);
    border: none;
}

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

.btn-outline {
    background: transparent;
    border-color: var(--accent-secondary);
    color: white;
}

.btn-outline:hover {
    background: rgba(59, 130, 246, 0.1);
}

/* Header Styles */
.site-header {
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-navigation a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.main-navigation a:hover,
.main-navigation a.active {
    color: var(--text-primary);
}

/* Front Page Styles */
.section {
    padding: 100px 0;
}

.about-section {
    padding-bottom: 20px;
    /* Reduced space below About */
}

.products-section {
    padding-top: 100px;
    /* Minimal space above Our Ventures */
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('assets/images/hero-bg.webp') no-repeat center center/cover;
    z-index: -2;
    opacity: 0.4;
    transition: transform 0.1s ease-out;
}

.hero-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle 800px at var(--x, 50%) var(--y, 50%), rgba(139, 92, 246, 0.15), transparent 80%);
    z-index: -1;
    pointer-events: none;
    mix-blend-mode: screen;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 25px;
    font-weight: 800;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
}

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

.about-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 20px;
    transition: transform 0.3s ease;
}

.about-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(139, 92, 246, 0.3);
}

.about-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.about-card p {
    color: var(--text-secondary);
}

.product-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 100px;
}

.product-card.reverse {
    direction: rtl;
}

.product-card.reverse .product-content {
    direction: ltr;
}

.product-content h3 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.product-tag {
    color: var(--accent-primary);
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.product-content p {
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.link-arrow {
    color: var(--text-primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.product-image-container {
    width: 100%;
    height: 300px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

/* Specific adjustment for AI Face image to remove black bars */
.ai-face-image {
    object-position: center !important;
    transform: scale(1.5);
}

.product-card:hover .ai-face-image {
    transform: scale(1.6);
}

.product-image-placeholder {
    width: 100%;
    height: 400px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.team-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    position: relative;
    z-index: 2;
}

.team-member {
    text-align: center;
    max-width: 350px;
    position: relative;
    z-index: 2;
}

.member-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: #222;
    margin: 0 auto 25px;
    border: 2px solid var(--accent-primary);
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
}

.human-avatar {
    border-color: #ffffff;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.4);
    animation: pulse-human 4s infinite ease-in-out;
}

.member-role {
    color: var(--accent-secondary);
    font-weight: 600;
    margin-bottom: 15px;
}

.member-bio {
    color: var(--text-secondary);
    font-style: italic;
}

/* Connection Lines */
.connection-line {
    position: absolute;
    top: 75px;
    /* Center of avatar */
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    width: 30%;
    z-index: 1;
}

.line-left {
    left: 18%;
}

.line-right {
    right: 18%;
}

/* Avatar Cropping */
.cropped-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.5) translateY(-10%);
    /* Zoom and shift up to crop bottom text */
}

/* Human (Boss) Styles */
.human-card {
    transition: all 0.3s ease;
    z-index: 10;
    /* Ensure boss is on top when hovering */
}

.human-card:hover {
    transform: scale(1.1);
}

/* AI Agent Styles */
.agent-card {
    transform: scale(0.95);
    opacity: 0.9;
    transition: all 0.3s ease;
}

.agent-card:hover {
    transform: scale(1);
    opacity: 1;
}

.agent-avatar {
    border-width: 3px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

/* Agent #1 (Logic) */
.agent-1-card .member-role {
    color: #ffffff;
}

.agent-1-avatar {
    border-color: #ffffff;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
    animation: pulse-white 4s infinite ease-in-out;
}

/* Agent #2 (Creativity) */
.agent-2-card .member-role {
    color: #ffffff;
}

.agent-2-avatar {
    border-color: #ffffff;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
    animation: pulse-white 4s infinite ease-in-out;
}

@keyframes pulse-white {
    0% {
        box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
    }

    50% {
        box-shadow: 0 0 25px rgba(255, 255, 255, 0.6);
    }

    100% {
        box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
    }
}

@keyframes pulse-human {
    0% {
        box-shadow: 0 0 30px rgba(255, 255, 255, 0.4);
    }

    50% {
        box-shadow: 0 0 50px rgba(255, 255, 255, 0.8);
    }

    100% {
        box-shadow: 0 0 30px rgba(255, 255, 255, 0.4);
    }
}

.contact-wrapper {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(59, 130, 246, 0.1));
    padding: 80px;
    border-radius: 30px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-wrapper h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.contact-wrapper p {
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-size: 1.2rem;
}

/* Footer Styles */
.site-footer {
    background: var(--surface-color);
    padding: 60px 0 30px;
    margin-top: 80px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 80px;
    margin-bottom: 40px;
}

.footer-branding h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    background: var(--gradient-main);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-branding p {
    color: var(--text-secondary);
    max-width: 300px;
}

.footer-links h4,
.footer-legal h4 {
    color: var(--text-primary);
    margin-bottom: 20px;
}

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

.footer-links li,
.footer-legal li {
    margin-bottom: 10px;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Breadcrumb Styles */
.breadcrumb {
    padding-bottom: 40px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--text-secondary);
}

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

.breadcrumb .separator {
    margin: 0 10px;
    color: rgba(255, 255, 255, 0.2);
}

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

/* Timeline Styles */
.timeline-section {
    padding: 0 0 100px;
    position: relative;
    overflow: hidden;
}

.timeline-header {
    text-align: center;
    margin-bottom: 80px;
}

.timeline-header h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.timeline-header p {
    color: var(--text-secondary);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    margin-top: -90px;
    /* Adjusted overlap */
    z-index: 10;
}

/* The central line */
.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background: rgba(255, 255, 255, 0.1);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
    margin-bottom: 40px;
}

/* Left side */
.left {
    left: 0;
}

/* Right side */
.right {
    left: 50%;
}

/* The circles on the timeline */
.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: var(--bg-color);
    border: 2px solid var(--accent-primary);
    top: 25px;
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 0 10px var(--accent-glow);
}

/* Fix the circle for containers on the right side */
.right::after {
    left: -10px;
}

.content {
    padding: 30px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.content:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(139, 92, 246, 0.3);
}

.content h2 {
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.content h3 {
    font-size: 1rem;
    color: var(--accent-secondary);
    margin-bottom: 15px;
    font-weight: 600;
}

.content .date {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
    display: block;
    font-family: monospace;
}

.content p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Media queries - Responsive timeline on screens less than 600px wide */
@media screen and (max-width: 768px) {

    /* Place the timelime to the left */
    .timeline::after {
        left: 31px;
    }

    /* Full-width containers */
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    /* Make sure all circles are at the same spot */
    .left::after,
    .right::after {
        left: 21px;
    }

    /* Make all right containers behave like the left ones */
    .right {
        left: 0%;
    }
}

/* Contact Page Styles */
.contact-page {
    padding-top: 0;
    /* Remove padding-top as header handles spacing */
    padding-bottom: 100px;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
}

.contact-header,
.timeline-header {
    text-align: center;
    padding: 140px 0 140px;
    /* Reduced height by ~30% */
    margin-bottom: 0;
    /* Fades: Left/Right, Bottom, then Image */
    background-image:
        linear-gradient(to bottom, rgba(5, 5, 5, 0) 0%, var(--bg-color) 100%),
        linear-gradient(to right, var(--bg-color) 0%, rgba(5, 5, 5, 0) 20%, rgba(5, 5, 5, 0) 80%, var(--bg-color) 100%),
        url('assets/images/contact-bg.webp');
    background-size: cover;
    background-position: center;
    position: relative;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.contact-header h1,
.timeline-header h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: #ffffff;
    /* Make text white */
    background: none;
    -webkit-text-fill-color: initial;
}

.contact-header p,
.timeline-header p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
}

.contact-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    margin-top: -100px;
    /* Overlap effect */
    position: relative;
    z-index: 10;
    padding: 0 20px;
    /* Ensure padding on mobile */
}

@media (max-width: 900px) {
    .contact-content-grid {
        grid-template-columns: 1fr;
    }
}

.contact-form,
.company-info {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 20px;
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    margin-bottom: 10px;
    color: var(--text-secondary);
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: rgba(255, 255, 255, 0.08);
}

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

.form-submit {
    text-align: center;
    margin-top: 30px;
}

.form-submit button {
    width: 100%;
    font-size: 1.1rem;
}

.success-message {
    display: none;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34d399;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    margin-top: 20px;
}

/* Company Info Styles */
.info-group {
    margin-bottom: 30px;
}

.info-group h3 {
    color: var(--text-primary);
    font-size: 1.2rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-group p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.6;
}

.map-container {
    margin-top: 40px;
    border-radius: 15px;
    overflow: hidden;
    height: 300px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
    filter: grayscale(100%) invert(90%);
}

/* Mobile Responsiveness */
/* Menu Toggle Button */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    /* Reduced from 30px */
    height: 18px;
    /* Reduced from 21px */
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.menu-toggle span {
    width: 100%;
    height: 2px;
    /* Reduced thickness slightly for smaller icon */
    background-color: var(--text-primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Hamburger Animation */
.menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
    /* Adjusted for new height */
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
    /* Adjusted for new height */
}

@media screen and (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 3rem;
        line-height: 1.1;
        margin-bottom: 25px;
        font-weight: 800;
    }

    /* Header Layout */
    /* Header Layout */
    .header-inner {
        flex-wrap: wrap;
        justify-content: flex-end;
        align-items: center;
        padding: 15px 0;
        /* Reduced padding */
        position: relative;
    }

    .site-branding {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        width: max-content;
        z-index: 1002;
        top: 5px;
        /* Moved up 10px from original 15px */
    }

    .menu-toggle {
        margin-right: 15px;
    }

    /* Hide Nav and Actions by default */
    .main-navigation,
    .header-actions {
        display: none;
        width: 100%;
        text-align: center;
    }

    /* Show when mobile-open */
    .header-inner.mobile-open .main-navigation,
    .header-inner.mobile-open .header-actions {
        display: block;
        animation: slideDown 0.3s ease forwards;
    }

    .header-inner.mobile-open .main-navigation {
        margin-top: 20px;
        /* Reduced margin */
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }

    .header-inner.mobile-open .header-actions {
        margin-top: 20px;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 0;
    }

    .main-navigation li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .main-navigation a {
        display: block;
        padding: 10px 0;
        /* Reduced padding */
    }

    .header-actions .btn {
        width: 100%;
        max-width: 300px;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

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

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .footer-branding p {
        margin: 0 auto;
    }

    .footer-links,
    .footer-legal {
        text-align: center;
    }

    /* Team Section Mobile */
    .team-grid {
        flex-direction: column;
        align-items: center;
        gap: 60px;
    }

    .connection-line {
        display: none;
    }
}