/* Scandinavian Color Palette */
:root {
    --scandi-blue-50: #e8f4f8;
    --scandi-blue-100: #d1e9f2;
    --scandi-blue-200: #a8d4e5;
    --scandi-blue-300: #7fc0d8;
    --scandi-blue-400: #56abcb;
    --scandi-blue-500: #2d96be;
    --scandi-blue-600: #247ba9;
    --scandi-blue-700: #1b6394;
    --scandi-blue-800: #124b7f;
    --scandi-blue-900: #09336a;

    --scandi-teal-50: #e8f5e9;
    --scandi-teal-100: #c8e6c9;
    --scandi-teal-200: #a5d6a7;
    --scandi-teal-300: #81c784;
    --scandi-teal-400: #66bb6a;
    --scandi-teal-500: #4caf50;
    --scandi-teal-600: #43a047;
    --scandi-teal-700: #388e3c;
    --scandi-teal-800: #2e7d32;
    --scandi-teal-900: #1b5e20;

    --scandi-green-50: #e8f5e9;
    --scandi-green-100: #c8e6c9;
    --scandi-green-200: #a5d6a7;
    --scandi-green-300: #81c784;
    --scandi-green-400: #66bb6a;
    --scandi-green-500: #4caf50;
    --scandi-green-600: #43a047;
    --scandi-green-700: #388e3c;
    --scandi-green-800: #2e7d32;
    --scandi-green-900: #1b5e20;

    --scandi-gray-50: #f8f9fa;
    --scandi-gray-100: #e9ecef;
    --scandi-gray-200: #dee2e6;
    --scandi-gray-300: #ced4da;
    --scandi-gray-400: #adb5bd;
    --scandi-gray-500: #6c757d;
    --scandi-gray-600: #495057;
    --scandi-gray-700: #343a40;
    --scandi-gray-800: #212529;
    --scandi-gray-900: #0d0d0d;

    --scandi-accent-coral: #e07a5f;
    --scandi-accent-teal: #81b29a;
    --scandi-accent-sand: #f2cc8f;
    --scandi-accent-navy: #3d405b;
}

/* Tailwind Custom Colors */
@layer base {
    .text-scandi-blue-600 {
        color: var(--scandi-blue-600);
    }
    .bg-scandi-blue-600 {
        background-color: var(--scandi-blue-600);
    }
    .from-scandi-blue-500 {
        --tw-gradient-from: var(--scandi-blue-500);
    }
    .to-scandi-teal-500 {
        --tw-gradient-to: var(--scandi-teal-500);
    }
    .from-scandi-blue-50 {
        --tw-gradient-from: var(--scandi-blue-50);
    }
    .to-scandi-teal-50 {
        --tw-gradient-to: var(--scandi-teal-50);
    }
}

/* Font Family */
.font-heading {
    font-family: 'Playfair Display', serif;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-6px);
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.animate-spring-in {
    animation: springIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.animate-slide-up-fade {
    animation: slideUpFade 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-in-out;
}

.animate-slide-up {
    animation: slideUp 0.6s ease-out;
}

.animate-slide-down {
    animation: slideDown 0.6s ease-out;
}

.animate-scale-in {
    animation: scaleIn 0.5s ease-out;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* Font Family */
.font-heading {
    font-family: 'Playfair Display', serif;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-6px);
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-in-out;
}

.animate-slide-up {
    animation: slideUp 0.6s ease-out;
}

.animate-slide-down {
    animation: slideDown 0.6s ease-out;
}

.animate-scale-in {
    animation: scaleIn 0.5s ease-out;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* Utility Classes */
.glass-effect {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Enhanced Glassmorphism Effects */
.glass-premium {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.05) 100%
    );
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow:
        0 8px 32px 0 rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
}

.glass-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    background: linear-gradient(
        to right,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transform: rotate(30deg);
    transition: all 0.6s ease;
    pointer-events: none;
}

.glass-premium:hover::before {
    left: 100%;
}

.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 -1px 0 rgba(255, 255, 255, 0.05);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow:
        0 6px 32px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(255, 255, 255, 0.08);
    transform: translateY(-2px) scale(1.005);
}

.glass-border-glow {
    position: relative;
    background: rgba(255, 255, 255, 0);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.glass-border-glow::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(
        45deg,
        rgba(59, 130, 246, 0.5),
        rgba(147, 51, 234, 0.5),
        rgba(20, 184, 166, 0.5),
        rgba(59, 130, 246, 0.5)
    );
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
    background-size: 300% 300%;
    animation: gradientShift 3s ease infinite;
}

.glass-border-glow:hover::before {
    opacity: 1;
}

.glass-border-glow::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: inherit;
    z-index: -1;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-icon {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.15) 0%,
        rgba(255, 255, 255, 0.05) 100%
    );
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(255, 255, 255, 0.1);
}

/* Enhanced Hover Effects */
.hover-lift {
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow:
        0 12px 32px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.hover-glow {
    transition: all 0.6s ease;
    position: relative;
}

.hover-glow:hover {
    box-shadow:
        0 0 20px rgba(59, 130, 246, 0.25),
        0 0 40px rgba(147, 51, 234, 0.12),
        0 6px 24px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.2);
}

.hover-shimmer {
    position: relative;
    overflow: hidden;
}

.hover-shimmer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transition: left 0.8s ease;
}

.hover-shimmer:hover::before {
    left: 100%;
}

/* Premium Depth Effects */
.depth-1 {
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.15),
        0 4px 16px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.depth-2 {
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.2),
        0 8px 32px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(255, 255, 255, 0.05);
}

.depth-3 {
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.25),
        0 16px 48px rgba(0, 0, 0, 0.2),
        inset 0 2px 0 rgba(255, 255, 255, 0.25),
        inset 0 -2px 0 rgba(255, 255, 255, 0.1);
}

.depth-4 {
    box-shadow:
        0 12px 32px rgba(0, 0, 0, 0.3),
        0 24px 64px rgba(0, 0, 0, 0.25),
        inset 0 2px 0 rgba(255, 255, 255, 0.3),
        inset 0 -2px 0 rgba(255, 255, 255, 0.15);
}

/* Inner Glow Effects */
.inner-glow {
    box-shadow:
        inset 0 0 20px rgba(255, 255, 255, 0.1),
        0 4px 16px rgba(0, 0, 0, 0.2);
}

.inner-glow-blue {
    box-shadow:
        inset 0 0 30px rgba(59, 130, 246, 0.2),
        0 4px 16px rgba(0, 0, 0, 0.2);
}

.inner-glow-purple {
    box-shadow:
        inset 0 0 30px rgba(147, 51, 234, 0.2),
        0 4px 16px rgba(0, 0, 0, 0.2);
}

/* Gradient Borders */
.border-gradient {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.border-gradient::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(
        135deg,
        rgba(59, 130, 246, 0.6),
        rgba(147, 51, 234, 0.6),
        rgba(20, 184, 166, 0.6)
    );
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.gradient-text {
    background: linear-gradient(135deg, var(--scandi-blue-600), var(--scandi-teal-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.section-container {
    max-width: 1640px !important;
    margin: 0 auto;
    padding: 5rem 1.5rem;
}

.section-title {
    font-family: var(--font-family-primary);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    color: var(--color-text-primary);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-secondary);
    margin-bottom: 3rem;
    max-width: 42rem;
    font-weight: 500;
    line-height: 1.6;
}

/* Button Styles */
.btn-primary {
    background: linear-gradient(135deg, #1e40af 0%, #1b6394 100%);
    color: white;
    padding: 1rem 2rem;
    border-radius: 9999px;
    font-weight: 700;
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1b6394 0%, #124b7f 100%);
    box-shadow: 0 10px 25px rgba(30, 64, 175, 0.4);
    transform: scale(1.05);
}

.btn-secondary {
    background-color: white;
    color: var(--scandi-blue-600);
    padding: 1rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    border: 2px solid var(--scandi-blue-600);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: var(--scandi-blue-50);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transform: scale(1.05);
}



/* Scroll Animation Classes */
.fade-in {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .section-container {
        padding: 3rem 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .btn-primary, .btn-secondary {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
}





