/* ============================================================
   KRAXELBANDE – Global Design System
   ============================================================ */

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

/* ---------- CSS Custom Properties ---------- */
:root {
    /* Brand Colors */
    --color-text: #33365f;
    --color-accent-1: #a4bd1e;
    --color-accent-2: #5988b9;
    --color-bg: #ffffff;
    --color-bg-soft: #f5f7fa;
    --color-bg-warm: #fafbf0;

    /* Derived Colors */
    --color-accent-1-light: #c8db5e;
    --color-accent-1-dark: #8ba219;
    --color-accent-2-light: #7da7cf;
    --color-accent-2-dark: #3e6a94;
    --color-text-light: #5c5f82;
    --color-text-muted: #8b8daa;
    --color-border: #e2e5ec;

    /* Typography */
    --font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --fs-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
    --fs-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
    --fs-base: clamp(1rem, 0.9rem + 0.45vw, 1.125rem);
    --fs-md: clamp(1.125rem, 1rem + 0.55vw, 1.35rem);
    --fs-lg: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
    --fs-xl: clamp(2rem, 1.5rem + 2vw, 3rem);
    --fs-2xl: clamp(2.5rem, 1.8rem + 3vw, 4rem);

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 0.75rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    --space-section: clamp(4rem, 3rem + 5vw, 8rem);

    /* Layout */
    --max-width: 1200px;
    --header-height: 100px;
    --header-height-scrolled: 80px;

    /* Border & Shadows */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;

    --shadow-sm: 0 2px 8px rgba(51, 54, 95, 0.06);
    --shadow-md: 0 4px 20px rgba(51, 54, 95, 0.08);
    --shadow-lg: 0 8px 40px rgba(51, 54, 95, 0.10);
    --shadow-xl: 0 12px 60px rgba(51, 54, 95, 0.12);
    --shadow-card: 0 6px 24px rgba(51, 54, 95, 0.07);

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
    --duration-fast: 200ms;
    --duration-normal: 400ms;
    --duration-slow: 600ms;
}

/* ---------- CSS Reset ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-family: var(--font-family);
    font-size: var(--fs-base);
    font-weight: 400;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-bg);
    overflow-x: hidden;
}

img,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

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

ul,
ol {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.2;
    font-weight: 700;
    color: var(--color-text);
}

/* ---------- Container ---------- */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin-inline: auto;
    padding-inline: var(--space-lg);
}

/* ---------- Section Base ---------- */
.section {
    padding-block: var(--space-section);
}

.section-title {
    font-size: var(--fs-xl);
    font-weight: 800;
    text-align: center;
    margin-bottom: var(--space-md);
}

.section-subtitle {
    font-size: var(--fs-md);
    font-weight: 400;
    text-align: center;
    color: var(--color-text-light);
    max-width: 600px;
    margin-inline: auto;
    margin-bottom: var(--space-3xl);
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: 0.85em 2em;
    font-family: var(--font-family);
    font-size: var(--fs-sm);
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: all var(--duration-normal) var(--ease-out);
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.15);
    border-radius: inherit;
    opacity: 0;
    transition: opacity var(--duration-fast) ease;
}

.btn:hover::after {
    opacity: 1;
}

.btn-primary {
    background: var(--color-accent-1);
    color: var(--color-text);
    box-shadow: 0 4px 16px rgba(164, 189, 30, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(164, 189, 30, 0.4);
}

.btn-secondary {
    background: var(--color-accent-2);
    color: #fff;
    box-shadow: 0 4px 16px rgba(89, 136, 185, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(89, 136, 185, 0.4);
}

/* ---------- Scroll Animation System ---------- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition:
        opacity var(--duration-slow) var(--ease-out),
        transform var(--duration-slow) var(--ease-out);
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays */
.animate-delay-1 {
    transition-delay: 100ms;
}

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

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

.animate-delay-4 {
    transition-delay: 400ms;
}

.animate-delay-5 {
    transition-delay: 500ms;
}

/* Scale-in variant */
.animate-scale {
    opacity: 0;
    transform: scale(0.85);
    transition:
        opacity var(--duration-slow) var(--ease-out),
        transform var(--duration-slow) var(--ease-bounce);
}

.animate-scale.is-visible {
    opacity: 1;
    transform: scale(1);
}

/* Slide-in variants */
.animate-slide-left {
    opacity: 0;
    transform: translateX(-40px);
    transition:
        opacity var(--duration-slow) var(--ease-out),
        transform var(--duration-slow) var(--ease-out);
}

.animate-slide-right {
    opacity: 0;
    transform: translateX(40px);
    transition:
        opacity var(--duration-slow) var(--ease-out),
        transform var(--duration-slow) var(--ease-out);
}

.animate-slide-left.is-visible,
.animate-slide-right.is-visible {
    opacity: 1;
    transform: translateX(0);
}

/* ---------- Keyframe Animations ---------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {

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

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

@keyframes floatSlow {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    33% {
        transform: translateY(-8px) rotate(2deg);
    }

    66% {
        transform: translateY(-4px) rotate(-1deg);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.05);
        opacity: 1;
    }
}

@keyframes wiggle {

    0%,
    100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(3deg);
    }

    75% {
        transform: rotate(-3deg);
    }
}

@keyframes slideInFromBottom {
    from {
        opacity: 0;
        transform: translateY(60px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- Accessibility ---------- */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .animate-on-scroll,
    .animate-scale,
    .animate-slide-left,
    .animate-slide-right {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ---------- Responsive helpers ---------- */
@media (max-width: 768px) {
    .container {
        padding-inline: var(--space-md);
    }
}