/* ===================================
   Business Angels Wermland
   Unique Minimal Design
   =================================== */

/* Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Preloader */
#preloader {
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

/* Navigation */
#navbar {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all 0.4s ease;
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Mobile Menu */
#mobile-menu-btn.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#mobile-menu-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

#mobile-menu-btn.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 100%;
}

/* ===================================
   HERO STYLES
   =================================== */

/* Title Outline Text */
.title-outline {
    color: transparent;
    -webkit-text-stroke: 1.5px #1a1a1a;
    text-stroke: 1.5px #1a1a1a;
}

/* Orbital Animation */
.orbital-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.orbital-center {
    position: absolute;
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.orbital-ring {
    position: absolute;
    width: 240px;
    height: 240px;
    animation: orbit 25s linear infinite;
}

@media (min-width: 1024px) {
    .orbital-ring {
        width: 300px;
        height: 300px;
    }
}

.orbital-svg {
    position: absolute;
    width: 240px;
    height: 240px;
}

@media (min-width: 1024px) {
    .orbital-svg {
        width: 300px;
        height: 300px;
    }
}

.orbital-item {
    position: absolute;
    width: 70px;
    height: 70px;
    background: white;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    animation: counter-orbit 25s linear infinite;
}

.orbital-item-1 {
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
}

.orbital-item-2 {
    bottom: 15%;
    right: -20px;
}

.orbital-item-3 {
    bottom: 15%;
    left: -20px;
}

@keyframes orbit {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes counter-orbit {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(-360deg);
    }
}

.orbital-item-1 {
    animation: counter-orbit-1 25s linear infinite;
}

@keyframes counter-orbit-1 {
    from {
        transform: translateX(-50%) rotate(0deg);
    }
    to {
        transform: translateX(-50%) rotate(-360deg);
    }
}

/* Marquee */
.marquee {
    display: flex;
    overflow: hidden;
    user-select: none;
}

.marquee-content {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    animation: marquee 30s linear infinite;
}

@keyframes marquee {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-100%);
    }
}

/* ===================================
   OTHER SECTIONS
   =================================== */

/* Service Cards */
.service-card:hover h3,
.service-card:hover p {
    color: white;
}

/* Map Dots */
.map-dot {
    animation: map-pulse 2s ease-in-out infinite;
}

@keyframes map-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* ===================================
   UTILITIES
   =================================== */

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f7f7f7;
}

::-webkit-scrollbar-thumb {
    background: #c8c8c8;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a4a4a4;
}

/* Selection */
::selection {
    background: #3b82f6;
    color: white;
}

/* Form Styles */
input:focus,
textarea:focus,
select:focus {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15) !important;
}

input::placeholder,
textarea::placeholder {
    color: #a4a4a4;
}

/* Back to Top */
#back-to-top {
    transition: all 0.3s ease;
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

/* Focus Styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Notification */
.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 9999;
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.notification.show {
    transform: translateX(0);
}

/* Smooth Image Load */
img {
    opacity: 1;
    transition: opacity 0.3s ease;
}

img[data-src] {
    opacity: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem !important;
    }
    
    .title-outline {
        -webkit-text-stroke: 1px #1a1a1a;
        text-stroke: 1px #1a1a1a;
    }
}

/* Print */
@media print {
    .no-print {
        display: none !important;
    }
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .marquee-content {
        animation: none;
    }
    
    .orbital-ring,
    .orbital-item {
        animation: none;
    }
    
    .orb {
        animation: none;
    }
}

/* ===================================
   PAGE-SPECIFIC STYLES
   =================================== */

/* Hero Variants */
.hero-gradient-green {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
}

.hero-gradient-blue {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
}

/* Cards */
.card-hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Tags */
.tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #f7f7f7;
    border-radius: 9999px;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.tag:hover {
    background: #1a1a1a;
    color: white;
}

/* Process Steps */
.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: #1a1a1a;
    color: white;
    border-radius: 50%;
    font-weight: 600;
    flex-shrink: 0;
}

/* Checkmarks */
.check-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.check-icon {
    width: 24px;
    height: 24px;
    background: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Dividers */
.divider {
    width: 48px;
    height: 1px;
    background: #e3e3e3;
}

/* Stats */
.stat-number {
    font-family: 'Instrument Serif', serif;
    font-size: 3rem;
    line-height: 1;
}

/* Glass Effect */
.glass {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Dark Glass */
.glass-dark {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
