/* CelerisPro - Custom styles on top of Bootstrap 5
   Creative design inspired by Bakken & Bæck
   Colors: Primary teal #0F766E, accents indigo
*/

:root {
    --primary: #0F766E;
    --primary-dark: #0D5F59;
    --accent: #6366F1;
    --text: #0f172a;
    --text-light: #64748b;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Creative typography */
.heading-font {
    font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
    font-weight: 600;
    letter-spacing: -0.03em;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    line-height: 1.05;
    font-weight: 700;
    letter-spacing: -0.04em;
}

/* Top thin bar + Navbar with blur effect */
.top-thin-bar {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    transition: all 0.3s ease;
}

.top-thin-bar:hover {
    background: #0f172a;
    backdrop-filter: none;
}

.navbar {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(12px);
    transition: all 0.3s ease;
}

.navbar:hover {
    background: #ffffff !important;
    backdrop-filter: none;
}

.nav-link {
    font-weight: 500;
    color: #334155 !important;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--primary) !important;
}

/* Hero - Full bleed creative carousel background */
.hero-section {
    min-height: 92vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-bg-carousel {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.7s ease;
}

.hero-bg-slide.active {
    opacity: 1;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.70) 0%, rgba(0,0,0,0.40) 40%, rgba(0,0,0,0.10) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
}

.hero-content h1 {
    color: white;
    font-size: clamp(3rem, 7vw, 4.25rem);
    line-height: 1.02;
    font-weight: 700;
    letter-spacing: -0.045em;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.hero-content .lead {
    color: rgba(255,255,255,0.9);
    font-size: 1.15rem;
    max-width: 42ch;
}

/* Carousel controls for hero (subtle) */
.hero-carousel-controls {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 0.5rem;
}

.hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.hero-dot.active {
    background: white;
    width: 24px;
    border-radius: 9999px;
}

/* Module cards - horizontal carousel */
.cards-carousel {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 1rem;
    scrollbar-width: none;
}

.cards-carousel::-webkit-scrollbar {
    display: none;
}

.card-item {
    flex: 0 0 320px;
    scroll-snap-align: start;
    border: 1px solid #e2e8f0;
    border-radius: 1.5rem;
    overflow: hidden;
    background: white;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.card-item:hover {
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.08), 0 8px 10px -6px rgb(0 0 0 / 0.08);
    transform: translateY(-4px);
}

.card-item.expanded {
    flex: 0 0 520px;
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.15);
    z-index: 10;
    position: relative;
}

.card-item .card-img-top {
    height: 180px;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.card-item:hover .card-img-top {
    transform: scale(1.04);
}

.card-item.expanded .card-img-top {
    height: 200px;
}

/* Reveal content on hover */
.reveal-content {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 1px solid #f1e7ff30;
}

.card-item:hover .reveal-content {
    max-height: 80px;
    opacity: 1;
}

/* Expanded content on click */
.expanded-content {
    display: none;
}

.card-item.expanded .expanded-content {
    display: block;
}

.card-item.expanded .reveal-content {
    display: none;
}

/* Buttons - creative style */
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-outline-light {
    border-radius: 9999px;
    font-weight: 600;
    padding: 0.75rem 2rem;
}

/* Trusted by marquee */
.marquee {
    overflow: hidden;
    white-space: nowrap;
}

.marquee-content {
    display: inline-flex;
    animation: marquee 35s linear infinite;
}

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* General creative tweaks */
.module-tag {
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
}

/* Footer */
footer {
    background-color: #f8fafc;
}

/* Form styles */
.form-control, .form-select {
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(15, 118, 110, 0.15);
}

/* Social auth buttons */
.btn-google {
    background: #fff;
    color: #333;
    border: 1px solid #dadce0;
}

.btn-google:hover {
    background: #f8f9fa;
}

.btn-microsoft {
    background: #2f2f2f;
    color: white;
}

.btn-microsoft:hover {
    background: #1f1f1f;
    color: white;
}

/* Pricing Cards - Elegant hover animation */
.pricing-card {
    transition: all 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, box-shadow;
}

.pricing-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.12), 0 10px 10px -5px rgb(0 0 0 / 0.04) !important;
}

/* Stronger premium animation for the highlighted Pro card */
.pricing-card.pro {
    position: relative;
}

.pricing-card.pro:hover {
    transform: translateY(-12px) scale(1.025);
    box-shadow: 0 30px 60px -15px rgb(0 0 0 / 0.18), 0 15px 15px -5px rgb(0 0 0 / 0.06) !important;
}