/* Global Reset & Box Sizing */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Premium Light Mode Palette with n8n Glass Accents */
    --bg-color: #ffffff;
    --text-color: #040506;
    --text-light: #475569;
    --primary-color: #EA4B71; /* n8n Pink */
    --primary-hover: #D6395E;
    --secondary-color: #530092; /* n8n Purple */
    --accent-color: #FF6B4A;
    --border-color: #e2e8f0;
    --surface-color: #ffffff;
    --surface-hover: #f8fafc;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 8px;
    
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.5);
}

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

body {
    background-color: var(--surface-hover);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Subtle Dot Grid Background */
.pattern-bg {
    background-image: radial-gradient(#cbd5e1 1.5px, transparent 1.5px);
    background-size: 30px 30px;
}

/* Base styles / Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-color);
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 700;
}

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

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

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

.section-padding {
    padding: 7rem 0;
}

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

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 2.2rem;
    border-radius: 100px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 8px 20px -6px rgba(234, 75, 113, 0.5);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -8px rgba(234, 75, 113, 0.6);
}

.btn-secondary {
    background-color: white;
    border-color: var(--border-color);
    color: var(--text-color);
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}

.btn-secondary:hover {
    border-color: var(--text-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.05);
}

/* Glass Navbar */
.navbar {
    position: fixed;
    top: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 2.5rem);
    max-width: 1200px;
    z-index: 1000;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
    padding: 0 1.5rem;
}

.logo img {
    height: 38px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 2.25rem;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-color);
}

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

/* Centered Hero Section */
.hero {
    padding: 13rem 0 8rem;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 2rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

.hero-content h1 {
    font-size: clamp(3rem, 6vw, 4.5rem);
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    max-width: 650px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Partners Slider (Infinite Scroll) */
.partners-section {
    background-color: white;
    padding: 5rem 0;
    overflow: hidden;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.partners-content {
    max-width: 800px;
    margin: 0 auto 3.5rem auto;
    text-align: center;
}

.partners-pretitle {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.partners-content p {
    color: var(--text-light);
    font-size: 1.05rem;
}

.logo-slider-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 1rem 0;
}

.logo-slider-wrapper::before,
.logo-slider-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    width: 15vw;
    height: 100%;
    z-index: 2;
}

.logo-slider-wrapper::before {
    left: 0;
    background: linear-gradient(to right, white 0%, transparent 100%);
}

.logo-slider-wrapper::after {
    right: 0;
    background: linear-gradient(to left, white 0%, transparent 100%);
}

.logo-slider {
    display: flex;
    width: max-content;
    animation: slide 35s linear infinite;
}

.logo-slider:hover {
    animation-play-state: paused;
}

.logo-slide-track {
    display: flex;
    align-items: center;
    gap: 6rem;
    padding: 0 3rem;
}

.logo-item img {
    height: 44px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.5;
    transition: all 0.3s ease;
}

.logo-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

.logo-item.venotix img {
    height: 36px;
}

@keyframes slide {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } 
}

/* Services Grid */
.services-section {
    background-color: var(--surface-hover);
}

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

.service-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 3rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.08);
    border-color: rgba(83, 0, 146, 0.2);
}

.icon-box {
    width: 64px;
    height: 64px;
    background: var(--surface-hover);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.service-content h3 {
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

.service-content p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.service-list {
    list-style: none;
    margin-top: auto;
}

.service-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
    font-size: 0.95rem;
    color: var(--text-color);
}

.service-list li i {
    color: var(--primary-color);
    font-size: 0.85rem;
    margin-top: 5px;
}

/* Premium n8n Concept Section */
.n8n-premium-card {
    margin-top: 4rem;
    position: relative;
    border-radius: var(--radius-lg);
    background: white;
    border: 1px solid rgba(234, 75, 113, 0.2);
    padding: 1px; /* for gradient border effect */
    background-clip: padding-box;
    box-shadow: 0 20px 50px rgba(234, 75, 113, 0.05);
    overflow: hidden;
}

.n8n-glow {
    position: absolute;
    top: 50%;
    left: 20%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(234, 75, 113, 0.1) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    z-index: 0;
    pointer-events: none;
}

.n8n-card-content {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    border-radius: calc(var(--radius-lg) - 1px);
    padding: 4rem 5rem;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.n8n-logo-wrapper {
    width: 80px;
    height: 80px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
}

.n8n-title {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.n8n-desc {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    max-width: 700px;
}

.n8n-features {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.n8n-features span {
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color);
}

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

/* About Section */
.about-section {
    background-color: white;
}

.about-grid {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 6rem;
    align-items: center;
}

.about-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(83, 0, 146, 0.1);
    color: var(--secondary-color);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

.about-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.about-image img {
    width: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.5s ease;
}

.about-image:hover img {
    filter: grayscale(0%);
}

.about-title { font-size: 2.8rem; margin-bottom: 0.5rem; }
.about-subtitle { font-size: 1.25rem; font-weight: 500; margin-bottom: 2rem; color: var(--primary-color); }
.about-text { color: var(--text-light); font-size: 1.05rem; margin-bottom: 1rem; }

.about-stats {
    display: flex;
    gap: 4rem;
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--border-color);
}

.stat-item h4 {
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
    line-height: 1;
}

.stat-item span {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-light);
    letter-spacing: 0.05em;
}

/* Contact Section */

.contact-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.05);
}

.contact-info {
    max-width: 600px;
}

.contact-info h2 { font-size: 2.5rem; margin-bottom: 1.5rem; }
.contact-info p { color: var(--text-light); font-size: 1.1rem; margin-bottom: 3rem; }

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--surface-hover);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.contact-link:hover {
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 10px 25px rgba(234, 75, 113, 0.08);
    transform: translateX(5px);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: rgba(234, 75, 113, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.contact-link span {
    display: block;
    font-size: 0.85rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.contact-link strong {
    font-size: 1.2rem;
    color: var(--text-color);
}

.contact-visual {
    font-size: 12rem;
    color: rgba(83, 0, 146, 0.05); /* very subtle icon backdrop */
    padding-right: 4rem;
}

/* Footer */
footer {
    background: #040506;
    color: #94a3b8;
    padding: 6rem 0 3rem;
    border-top-left-radius: 64px;
    border-top-right-radius: 64px;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-links h4 {
    color: white;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 0.75rem; }
.footer-links a:hover { color: white; }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid #1e293b;
    font-size: 0.85rem;
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
    .n8n-card-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        padding: 3rem;
    }
    .n8n-logo-wrapper {
        margin: 0 auto;
    }
    .n8n-features {
        justify-content: center;
    }
    .contact-card {
        flex-direction: column;
        text-align: center;
        padding: 3rem;
    }
    .contact-visual {
        display: none;
    }
    .contact-links {
        align-items: center;
    }
    .contact-link {
        width: 100%;
        justify-content: center;
        max-width: 400px;
    }
}

@media (max-width: 900px) {
    .about-grid, .footer-top {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    .about-image {
        max-width: 300px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .container { padding: 0 1rem; }
    .services-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    
    .section-padding { padding: 4rem 0; }
    .hero { padding: 13rem 0 4rem !important; }
    .hero-content h1 { font-size: clamp(2rem, 8vw, 2.5rem); line-height: 1.1; }
    .hero-content p { font-size: 1.05rem; }
    
    /* Global Subpage Fixes for Mobile (Overriding Inline Styles) */
    main.container, main.section-padding { padding-top: 180px !important; }
    main h1 { font-size: clamp(2rem, 8vw, 2.5rem) !important; margin-bottom: 1.5rem !important; }
    main section { padding: 2rem 1.25rem !important; }
    main article h2 { font-size: 1.4rem !important; }
    
    .n8n-card-content { padding: 2.5rem 1.25rem; gap: 1.5rem; }
    .n8n-title { font-size: 1.65rem; }
    
    .contact-card { padding: 2.5rem 1.25rem; }
    .contact-info h2 { font-size: 1.7rem; margin-bottom: 1rem; }
    .contact-info p { font-size: 1rem; margin-bottom: 2rem; }
    .contact-link { padding: 1.25rem; flex-direction: column; gap: 0.75rem; text-align: center; }
    .contact-link strong { font-size: 1.1rem; }
    
    .service-card { padding: 2rem 1.25rem; }
    
    .about-title { font-size: 2.2rem; }
    .about-stats { flex-direction: column; gap: 2rem; text-align: center; border-top: none; padding-top: 1rem; }
    
    .logo-slide-track { gap: 3rem; padding: 0 1.5rem; }
    
    footer { padding: 4rem 0 2rem; border-top-left-radius: 32px; border-top-right-radius: 32px; }
    .footer-top { gap: 2rem; margin-bottom: 2.5rem; }
    .footer-bottom { flex-direction: column; gap: 1.5rem; text-align: center; padding-top: 1.5rem; }
}
/* Nav Dropdown & Mobile Menu */
.nav-dropdown {
    position: relative;
    padding-bottom: 20px;
    margin-bottom: -20px;
    border-radius: 10px;
}

.nav-dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    min-width: 240px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    padding: 0.5rem 0;
    z-index: 1001;
}

.nav-dropdown:hover .nav-dropdown-content {
    display: block;
}

.nav-dropdown-content a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--text-color) !important;
    font-size: 0.95rem;
    white-space: nowrap;
    transition: all 0.2s;
    font-weight: 500 !important;
}

.nav-dropdown-content a:hover {
    background-color: var(--surface-hover);
    color: var(--primary-color) !important;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    color: var(--text-color);
    cursor: pointer;
    background: none;
    border: none;
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        border-radius: 20px;
        right: 0;
        transform: translateX(100%);
        width: 80%;
        max-width: 350px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        flex-direction: column;
        justify-content: center;
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        padding: 2rem;
        z-index: 999;
        display: flex;
        pointer-events: none;
        opacity: 0;
    }
    
    .nav-links.active {
        transform: translateX(0);
        pointer-events: all;
        opacity: 1;
    }
    
    .mobile-menu-btn {
        display: block;
        z-index: 1000;
        position: relative;
    }
    
    .nav-dropdown {
        width: 100%;
        padding-bottom: 0;
        margin-bottom: 0;
    }
    
    .nav-dropdown-content {
        position: static;
        display: block !important;
        box-shadow: none;
        border: none;
        background: transparent;
        transform: none;
        min-width: 100%;
        padding-left: 1rem;
        padding-top: 0.5rem;
    }
    
    .nav-links>a, .nav-dropdown>a {
        font-size: 1.25rem;
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
}
