/* ============================================
   Reliable Partner — Main Stylesheet
   ============================================ */

/* Disable text selection */
* {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Heading font */
h1, h2, h3 {
    font-family: 'Raleway', sans-serif;
    font-weight: 300 !important;
}

/* h1: 3rem / 3.75rem / 4.5rem → 3.35rem / 4.15rem / 5rem */
h1 {
    font-size: 3.35rem !important;
    line-height: 1.1 !important;
}
@media (min-width: 640px) {
    h1 { font-size: 4.15rem !important; }
}
@media (min-width: 1024px) {
    h1 { font-size: 5rem !important; }
}

/* h2: 1.875rem / 2.25rem / 3rem → 2.1rem / 2.5rem / 3.35rem */
h2:not(.slogan) {
    font-size: 2.1rem !important;
    line-height: 1.2 !important;
}
@media (min-width: 640px) {
    h2:not(.slogan) { font-size: 2.5rem !important; }
}
@media (min-width: 1024px) {
    h2:not(.slogan) { font-size: 3.35rem !important; }
}

/* h3: 1.25rem → 1.4rem */
h3 {
    font-size: 1.4rem !important;
    line-height: 1.3 !important;
}

@keyframes gradient-shift-1 {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
@keyframes gradient-shift-2 {
    0% { background-position: 0% 0%; }
    33% { background-position: 100% 50%; }
    66% { background-position: 50% 100%; }
    100% { background-position: 0% 0%; }
}
@keyframes gradient-shift-3 {
    0% { background-position: 100% 100%; }
    25% { background-position: 0% 50%; }
    50% { background-position: 50% 0%; }
    75% { background-position: 100% 50%; }
    100% { background-position: 100% 100%; }
}

/* Dot grid background */
.dot-grid {
    background-image: radial-gradient(circle, rgba(148,163,184,0.08) 1px, transparent 1px);
    background-size: 32px 32px;
}

/* Noise texture */
.noise-overlay::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}

/* Glass morphism card */
.glass-card {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(148, 163, 184, 0.1);
}
.glass-card:hover {
    background: rgba(0, 0, 0, 0.65);
    border-color: rgba(148, 163, 184, 0.15);
}

/* CTA button animations */
.cta-btn-1 {
    background-size: 200% 200%;
    animation: gradient-shift-1 3s ease-in-out infinite;
}
.cta-btn-2 {
    background-size: 200% 200%;
    animation: gradient-shift-2 4.5s ease infinite;
}
.cta-btn-3 {
    background-size: 200% 200%;
    animation: gradient-shift-3 3.8s linear infinite;
}

/* Hero text glow */
.hero-glow {
    text-shadow: 0 0 60px rgba(59,130,246,0.3), 0 0 120px rgba(99,102,241,0.1);
}
.page-ai .hero-glow {
    text-shadow: 0 0 60px rgba(147,51,234,0.3), 0 0 120px rgba(99,102,241,0.1);
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Nav underline animation */
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, #3b82f6, #6366f1);
    transition: width 0.3s ease;
}
.nav-link:hover::after {
    width: 100%;
}
.nav-link-active::after {
    width: 100%;
}

/* Language switcher active */
.lang-active {
    background: linear-gradient(to right, #2563eb, #4f46e5);
    color: white;
    border-radius: 0.375rem;
}

/* Language dropdown */
.lang-dropdown summary::-webkit-details-marker,
.lang-dropdown summary::marker {
    display: none;
}
.lang-dropdown summary {
    list-style: none;
}
.lang-dropdown[open] .lang-chevron {
    transform: rotate(180deg);
}

/* Hero image — blue glow, float animation */
.hero-image {
    filter: drop-shadow(0 0 40px rgba(59,130,246,0.15))
            drop-shadow(0 0 80px rgba(99,102,241,0.08));
    opacity: 0.88;
    animation: hero-float 6s ease-in-out infinite;
    transition: opacity 0.6s ease, filter 0.6s ease;
}

@keyframes hero-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-12px); }
}

/* AI page — purple glow */
.page-ai .hero-image {
    filter: drop-shadow(0 0 40px rgba(147,51,234,0.18))
            drop-shadow(0 0 80px rgba(99,102,241,0.08));
}

/* Desktop hover */
@media (hover: hover) {
    .hero-image:hover { opacity: 1; }
}

/* Mobile sizing cap */
@media (max-width: 1023px) {
    .hero-image { max-width: 320px; margin: 0 auto; }
}

/* LQIP: blurred placeholder before real image loads */
img.lqip { filter: blur(20px); transform: scale(1.05); }
img.lqip[data-src] { transition: filter 0.5s ease, transform 0.5s ease; }

/* CTA section rat image — positioned inside glass-card, partially clipped */
.cta-image {
    filter: drop-shadow(0 0 30px rgba(59,130,246,0.12));
    opacity: 0.45;
    animation: hero-float 7s ease-in-out infinite;
}

