/* =====================================================
   BIFA MINIMAL DESIGN - STYLE OVERRIDES
   Ispirato a template Nemo/Tailwind minimal
   ===================================================== */

/* Import Inter font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* Global font override - Inter for entire site */
body,
input,
textarea,
button,
select {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif !important;
}

/* =====================================================
   TOP NAVIGATION BAR
   ===================================================== */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e5e7eb;
    z-index: 1000;
    padding: 1rem 2rem;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #000000;
    letter-spacing: -0.02em;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-contact {
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.2s ease;
}

.nav-contact:hover {
    color: #4F46E5;
}

/* Nav Link (for Blog) */
.nav-link {
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: #4F46E5;
}

/* Language Dropdown */
.language-dropdown {
    position: relative;
}

.lang-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    color: #1a1a1a;
    transition: all 0.2s ease;
}

.lang-dropdown-btn:hover {
    border-color: #d1d5db;
    background: #f9fafb;
}

.dropdown-arrow {
    font-size: 0.625rem;
    transition: transform 0.2s ease;
}

.lang-dropdown-btn.active .dropdown-arrow {
    transform: rotate(180deg);
}

.lang-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 150px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
}

.lang-dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    color: #1a1a1a;
    transition: background 0.2s ease;
}

.lang-option:hover {
    background: #f9fafb;
}

.lang-option.active {
    background: #f3f4f6;
    color: #4F46E5;
}

/* Hide old language selector */
.language-selector {
    display: none !important;
}

/* Adjust body for fixed nav */
body {
    padding-top: 70px;
}

@media (max-width: 768px) {
    .top-nav {
        padding: 0.75rem 1.5rem;
    }
    
    .nav-logo {
        font-size: 1.25rem;
    }
    
    .nav-right {
        gap: 1rem;
    }
    
    .nav-contact {
        font-size: 0.875rem;
    }
}

/* Hero Section - Reduce height */
.hero {
    min-height: 60vh !important;
    padding: 4rem 2rem !important;
    position: relative;
    overflow: hidden;
}

/* Neural Network Background */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(79, 70, 229, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(6, 182, 212, 0.08) 0%, transparent 50%);
    z-index: 0;
    pointer-events: none;
}

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

.hero-content {
    max-width: 1000px !important;
    position: relative;
    z-index: 1;
}

/* Hero accent color for "For All" */
.hero-accent {
    background: linear-gradient(135deg, #06B6D4 0%, #4F46E5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* CTA Button - Gradient Blue (unified style) */
.cta-button,
.description-cta,
button[type="submit"],
#contact-form button[type="submit"] {
    display: inline-block;
    padding: 18px 48px;
    background: linear-gradient(135deg, #06B6D4 0%, #4F46E5 100%);
    color: white !important;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
    text-shadow: none;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.cta-button:hover,
.description-cta:hover,
button[type="submit"]:hover,
#contact-form button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
    background: linear-gradient(135deg, #0891b2 0%, #4338ca 100%);
}

/* Remove variant animations - all buttons use gradient */
.cta-button.variant-b {
    background: linear-gradient(135deg, #06B6D4 0%, #4F46E5 100%);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
    animation: fadeInUp 0.8s ease-out 0.4s both;
    border: none;
}

.cta-button.variant-b:hover {
    background: linear-gradient(135deg, #0891b2 0%, #4338ca 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
}

/* Typewriter - Minimal */
.typewriter-container {
    display: none !important;
}

.typewriter {
    font-size: 1.25rem;
    font-weight: 400;
    color: #6b7280;
    text-shadow: none;
}

.cursor {
    background-color: #000000;
    width: 2px;
}

/* Hero paragraph */
.hero p {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    opacity: 1;
    color: #6b7280;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* Sections - Minimal */
section {
    padding: 2.5rem 2rem;
}

section:nth-child(even) {
    background: #f9fafb;
}

section h2 {
    text-align: center;
    font-size: 3rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

section .section-subtitle {
    text-align: center;
    font-size: 1.25rem;
    color: #6b7280;
    margin-bottom: 4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Cards - Minimal */
.feature-card,
.service-card,
.blog-post-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.2s ease;
    box-shadow: none;
}

.feature-card:hover,
.service-card:hover,
.blog-post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: #d1d5db;
}

/* Service cards specific - Minimal style like template */
.services-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* =====================================================
   DESCRIPTION SECTION - Two-column layout
   ===================================================== */
.description-section {
    padding: 3rem 2rem;
    background: #ffffff;
}

.description-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.description-content {
    padding-right: 2rem;
}

.description-eyebrow {
    font-size: 0.875rem;
    font-weight: 600;
    color: #4F46E5;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.description-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #000000;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    text-align: left;
}

.description-text {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #6b7280;
    margin-bottom: 2rem;
}

.description-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.geometric-shape {
    width: 100%;
    max-width: 500px;
    height: auto;
    filter: drop-shadow(0 4px 20px rgba(79, 70, 229, 0.15));
    animation: floatShape 6s ease-in-out infinite;
}

@keyframes floatShape {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .description-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .description-content {
        padding-right: 0;
        text-align: center;
    }
    
    .description-title {
        font-size: 2.5rem;
    }
    
    .description-visual {
        order: -1;
    }
}

@media (max-width: 768px) {
    .description-section {
        padding: 2rem 1.5rem;
    }
    
    .description-title {
        font-size: 2rem;
    }
    
    .description-text {
        font-size: 1rem;
    }
    
    .geometric-shape {
        max-width: 350px;
    }
}

/* =====================================================
   WHAT WE DO SECTION - 3 Column Cards
   ===================================================== */
.what-we-do-section {
    padding: 3rem 2rem;
    background: #ffffff !important;
    border-top: 1px solid #e5e7eb;
}

.what-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.what-card {
    background: transparent;
    border: none;
    padding: 2.5rem 1.5rem;
    transition: all 0.2s ease;
}

.what-card:hover {
    transform: translateY(-2px);
}

.what-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.what-card p {
    font-size: 1rem;
    line-height: 1.7;
    color: #6b7280;
}

.what-card-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    min-height: 200px;
    background: #f3f4f6;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    opacity: 0.5;
}

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

@media (max-width: 768px) {
    .what-we-do-section {
        padding: 2rem 1.5rem;
    }
    
    .what-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .what-card {
        padding: 2rem;
    }
}

.service-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 2.5rem;
    transition: all 0.2s ease;
    box-shadow: none;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
    border-color: #d1d5db;
}

.service-card h3 {
    color: #000000;
    font-weight: 600;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.service-card p {
    color: #6b7280;
    line-height: 1.7;
    font-size: 1rem;
}

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

@media (max-width: 768px) {
    .services-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 2rem;
    }
}

/* Blog cards */
.blog-post-card {
    cursor: pointer;
}

.blog-post-card h3 {
    color: #000000;
    font-weight: 600;
    font-size: 1.5rem;
}

.blog-post-excerpt {
    color: #6b7280;
}

.blog-post-tag {
    background: #f3f4f6;
    color: #6b7280;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 500;
    border: none;
}

/* Featured badge */
.featured-badge {
    background: #f3f4f6;
    color: #1a1a1a;
    border: 1px solid #e5e7eb;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation - Minimal */
nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e5e7eb;
}

nav a {
    color: #6b7280;
    font-weight: 500;
    transition: color 0.2s ease;
}

nav a:hover {
    color: #000000;
}

/* Footer - Minimal */
footer {
    background: #f9fafb;
    color: #6b7280;
    border-top: 1px solid #e5e7eb;
}

footer a {
    color: #6b7280;
    transition: color 0.2s ease;
}

footer a:hover {
    color: #000000;
}

/* Remove gradient backgrounds from everything */
.gradient-overlay,
.animated-gradient {
    display: none;
}

/* Animations - Keep minimal */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 3rem !important;
    }
    
    section h2 {
        font-size: 2rem;
    }
    
    .hero-content p,
    .typewriter,
    .hero p {
        font-size: 1.125rem;
    }
    
    section {
        padding: 2rem 1.5rem;
    }
    
    .cta-button {
        padding: 14px 28px;
        font-size: 0.9375rem;
    }
}

/* =====================================================
   CONTACT SECTION - MINIMAL SIMPLE TEXT
   ===================================================== */
#contact {
    padding: 4rem 2rem;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    text-align: center;
}

#contact h2.simple-contact-text {
    font-size: 3.5rem;
    font-weight: 700;
    color: #000000;
    line-height: 1.1;
    margin-bottom: 3rem;
    letter-spacing: -0.02em;
}

#contact h2.simple-contact-text::after {
    display: none;
}

#contact .contact-subtitle {
    display: none;
}

/* Contact Form - Minimal Style */
#contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    border: none;
}

#contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    text-align: left;
    color: #000000;
    font-size: 0.875rem;
}

#contact-form input,
#contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 1.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
    font-size: 1rem;
    transition: all 0.2s ease;
    color: #000000;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

#contact-form input:focus,
#contact-form textarea:focus {
    outline: none;
    border-color: #4F46E5;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
    transform: none;
}

#contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

#contact-form button {
    background: linear-gradient(135deg, #06B6D4 0%, #4F46E5 100%);
    color: white;
    padding: 12px 32px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: none;
    text-shadow: none;
}

#contact-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

/* =====================================================
   LEGAL PAGES - TABLES
   ===================================================== */
.legal-page .legal-table,
.legal-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-family: 'Inter', sans-serif !important;
}

.legal-page .legal-table thead,
.legal-content table thead {
    background: linear-gradient(135deg, #06B6D4 0%, #4F46E5 100%);
}

.legal-page .legal-table th,
.legal-content table th {
    color: white !important;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.95rem;
}

.legal-page .legal-table td,
.legal-content table td {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
    color: #374151;
}

.legal-page .legal-table tbody tr:hover,
.legal-content table tbody tr:hover {
    background-color: #f9fafb;
}

/* Legal page content */
.legal-page,
.legal-content {
    font-family: 'Inter', sans-serif !important;
}

.legal-content h2 {
    font-family: 'Inter', sans-serif !important;
    color: #000;
    font-weight: 700;
}

.legal-content h3 {
    font-family: 'Inter', sans-serif !important;
    color: #374151;
    font-weight: 600;
}

.legal-content p,
.legal-content li {
    font-family: 'Inter', sans-serif !important;
    color: #4b5563;
    line-height: 1.7;
}

