/* =========================================================================
   VARIABLES & DESIGN TOKENS
   ========================================================================= */
:root {
    /* Color Palette (Deep dark theme with vibrant accents) */
    --color-bg-base: #0f172a;
    /* Slate 900 */
    --color-bg-surface: rgba(30, 41, 59, 0.7);
    /* Slate 800 with opacity */
    --color-text-main: #f8fafc;
    /* Slate 50 */
    --color-text-muted: #94a3b8;
    /* Slate 400 */

    /* Brand Accents (Extracted/Inspired by typical Teal/Amber names from the logo files) */
    --color-primary: #14b8a6;
    /* Teal 500 */
    --color-secondary: #f59e0b;
    /* Amber 500 */
    --color-accent: #8b5cf6;
    /* Violet 500 for gradient variety */

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.8s cubic-bezier(0.4, 0, 0.2, 1);

    /* Glassmorphism */
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* =========================================================================
   RESET & BASE STYLES
   ========================================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--color-bg-base);
    color: var(--color-text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

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

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* =========================================================================
   BACKGROUND BLOBS (Dynamic Ambient Background)
   ========================================================================= */
.background-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
    animation: float 20s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--color-primary) 0%, transparent 70%);
}

.blob-2 {
    bottom: -20%;
    right: -10%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--color-accent) 0%, transparent 70%);
    animation-delay: -10s;
}

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

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

/* =========================================================================
   TYPOGRAPHY & UTILITIES
   ========================================================================= */
h1,
h2,
h3,
h4 {
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    letter-spacing: -0.01em;
}

p {
    color: var(--color-text-muted);
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

.text-gradient {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-panel {
    background: var(--color-bg-surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--glass-shadow);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 9999px;
    cursor: pointer;
    transition: all var(--transition-normal);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary));
    color: white;
    box-shadow: 0 4px 14px rgba(20, 184, 166, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(20, 184, 166, 0.6);
    filter: brightness(1.1);
}

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

.navbar.scrolled {
    padding: 1rem 0;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: var(--glass-border);
}

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

.nav-brand img {
    height: 36px;
    width: auto;
    transition: transform var(--transition-fast);
}

.nav-brand:hover img {
    transform: scale(1.05);
}

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

.nav-links a {
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    padding-bottom: 0.25rem;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width var(--transition-normal);
    border-radius: 2px;
}

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

/* =========================================================================
   HERO SECTION
   ========================================================================= */
.hero {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Removed padding-top since there is no navbar */
}

.hero-content {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.hero-text {
    display: none;
    /* Removed from HTML, keeping class just in case */
}

/* Subtle glow behind text panel */
.hero-text::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.05) 0%, transparent 60%);
    pointer-events: none;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    background: rgba(20, 184, 166, 0.1);
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(20, 184, 166, 0.2);
}

.hero-image {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    /* Space between logo and contact button */
    width: 100%;
}

.floating-logo {
    width: 100%;
    max-width: 800px;
    /* Increased from 400px to make it much bigger */
    animation: levitate 6s ease-in-out infinite;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.5));
}

.contact-link {
    font-size: 1.25rem;
    padding: 1rem 3rem;
    animation: fade-in-up 1s ease-out 0.5s both;
}

@keyframes fade-in-up {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes levitate {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-30px);
    }

    100% {
        transform: translateY(0);
    }
}

/* =========================================================================
   SHOWCASE SECTION (Logos Grid)
   ========================================================================= */
.showcase {
    padding: 8rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 5rem;
}

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

.logo-card {
    background: rgba(30, 41, 59, 0.5);
    border: var(--glass-border);
    border-radius: 16px;
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    min-height: 250px;
    cursor: pointer;
}

/* Interactive Card Effects */
.logo-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--transition-fast);
    pointer-events: none;
    z-index: 1;
}

.logo-card:hover {
    transform: translateY(-5px);
    background: rgba(30, 41, 59, 0.8);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

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

.logo-card img {
    max-width: 100%;
    max-height: 120px;
    width: auto;
    object-fit: contain;
    z-index: 2;
    transition: transform var(--transition-normal);
}

.logo-card:hover img {
    transform: scale(1.05);
}

.logo-info {
    margin-top: 1.5rem;
    text-align: center;
    z-index: 2;
    opacity: 0;
    transform: translateY(10px);
    transition: all var(--transition-normal);
    position: absolute;
    bottom: 2rem;
}

.logo-card:hover .logo-info {
    opacity: 1;
    transform: translateY(0);
}

.logo-card:hover img {
    transform: scale(1.05) translateY(-10px);
}

.logo-name {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    font-weight: 600;
}

/* Checkerboard background for transparent/white logos to ensure visibility */
.logo-card[data-type="blanc"],
.logo-card[data-type="mono-blanc"] {
    background:
        linear-gradient(45deg, rgba(255, 255, 255, 0.02) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, 0.02) 75%),
        linear-gradient(45deg, rgba(255, 255, 255, 0.02) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, 0.02) 75%);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
    background-color: rgba(30, 41, 59, 0.5);
    /* Base color slightly lighter */
}

/* =========================================================================
   FOOTER
   ========================================================================= */
.footer {
    padding: 4rem 0 2rem;
    border-top: var(--glass-border);
    background: rgba(15, 23, 42, 0.9);
}

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

.footer-brand img {
    height: 30px;
    margin-bottom: 1rem;
    opacity: 0.8;
}

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

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

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

/* =========================================================================
   ANIMATIONS UTILITIES
   ========================================================================= */
[data-animate] {
    opacity: 0;
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

[data-animate="fade-up"] {
    transform: translateY(30px);
}

[data-animate="fade-in"] {
    transform: scale(0.95);
}

.animated {
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
}

/* =========================================================================
   RESPONSIVE DESIGN 
   ========================================================================= */
@media (max-width: 992px) {
    .floating-logo {
        max-width: 600px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* In a real app we'd add a hamburger menu */
    }

    .logo-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

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