/* public/css/custom.css */

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

:root {
    --primary-gradient: linear-gradient(120deg, #4586e2 0%, #007bff 100%);
    --primary-200: #72b4f5;
    --primary-500: #4586e2;
    --primary-700: #007bff;
    /* Blue to Purple */
    --surface-light: #ffffff;
    --surface-hover: #f8fafc;
    --text-main: #0f172a;
    --text-muted: #475569;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius-md: 12px;
    --radius-lg: 24px;
    --font-family-sans: 'Inter', sans-serif;
}

/* Global Polish & Typography */
body {
    font-family: var(--font-family-sans);
    font-size: 16px;
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-family-sans);
    font-weight: 700;
    color: var(--primary-700);
    letter-spacing: -0.02em;
}

h1 {
    font-size: 3rem;
    /* 48px */
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.25rem;
    /* 36px */
    line-height: 1.2;
    margin-bottom: 1.25rem;
}

h3 {
    font-size: 1.5rem;
    /* 24px */
    line-height: 1.3;
    margin-bottom: 1rem;
}

h4 {
    font-size: 1.25rem;
    /* 20px */
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

h5 {
    font-size: 1rem;
    /* 16px */
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

h6 {
    font-size: 0.875rem;
    /* 14px */
    line-height: 1.5;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

p {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

a {
    color: var(--primary-500);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

blockquote {
    border-left: 4px solid var(--primary-200);
    padding-left: 1rem;
    margin-left: 0;
    font-style: italic;
    color: var(--text-muted);
}

ul,
ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

li {
    margin-bottom: 0.5rem;
}

code,
pre {
    font-family: 'SF Mono', 'Fira Code', 'Fira Mono', 'Roboto Mono', monospace;
    background-color: #f8fafc;
    border-radius: 4px;
    padding: 0.2em 0.4em;
    font-size: 0.9em;
}

pre {
    padding: 1rem;
    overflow-x: auto;
}

/* Hero Section Enhancements */
.custom-hero-title {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    font-weight: 800;
    letter-spacing: -0.02em;
    padding-bottom: 0.1em;
    font-size: 4rem;
    /* Adjusted for impact */
}

/* Button Enhancements */
.custom-button {
    font-family: var(--font-family-sans);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50px !important;
    font-weight: 600;
    letter-spacing: 0.5px;
    /* Removed box-shadow and border from here */
}

.custom-button:hover {
    transform: translateY(-2px);
}

/* Primary Button */
.button-primary {
    background: var(--primary-gradient);
    color: var(--surface-light);
    box-shadow: var(--shadow-md);
    border: none;
}

.button-primary:hover {
    box-shadow: var(--shadow-lg);
}

/* Secondary Button */
.custom-button.is-secondary {
    background-color: transparent;
    border: 1px solid var(--primary-500);
    color: var(--primary-500);
    box-shadow: none;
}

.custom-button.is-secondary:hover {
    background-color: var(--primary-500);
    color: var(--surface-light);
    box-shadow: var(--shadow-md);
}

/* Specific button overrides if needed to ensure they look good */
.button-3 {
    border-radius: 50px;
}

/* Card Enhancements for Services/Plugins */
.custom-card {
    background: var(--surface-light);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(226, 232, 240, 0.8);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.custom-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(124, 58, 237, 0.1);
}

.custom-card .home_autom_image-wrapper {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

.custom-card img {
    transition: transform 0.5s ease;
    max-height: 360px;
    min-height: 300px;
    width: auto;
}

.custom-card:hover img {
    transform: scale(1.08);
}

.custom-card h3 {
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.custom-card p {
    font-size: 1rem;
    color: var(--text-muted);
}

/* Kicker Tag for Section Headers */
.kicker-tag {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background-color: #f3f4f6;
    color: var(--primary-700);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

/* Scroll Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

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

/* Stagger delays for lists */
.stagger-1 {
    transition-delay: 100ms;
}

.stagger-2 {
    transition-delay: 200ms;
}

.stagger-3 {
    transition-delay: 300ms;
}

/* Fix for card link text color */
.card-link-block {
    color: inherit;
    text-decoration: none;
}

/* Typography hierarchy for services page */
.heading-style-h4 {
    color: var(--primary-700);
    font-weight: 600;
    font-size: 1.25rem;
}

.section-title-spacing {
    margin-bottom: 4rem;
}

/* Titled Border */
.titled-border-container {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 2.5rem;
    position: relative;
    margin-top: 2rem;
}

.titled-border-title {
    position: absolute;
    top: -0.75rem;
    left: 1.5rem;
    background-color: #ffffff;
    padding: 0 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-700); /* Changed from var(--text-main) to var(--primary-700) */
}

/* Plugin Logo Styling */
.plugin-logo-wrapper {
    width: 90px;
    height: 90px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.plugin-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Plugin Card Layout */
.plugin-card-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.plugin-card-header h3 {
    margin: 0;
    font-size: 1.5rem;
}