/* Cutly Custom Styles - Bootstrap Theme */

/* ===========================
   CSS Variables & Brand Colors
   =========================== */
:root {
    --cutly-primary: #548488;
    --cutly-primary-light: #6B9EA0;
    --cutly-primary-dark: #3D6366;
    --cutly-accent: #FFB800;

    /* Override Bootstrap primary */
    --bs-primary: #548488;
    --bs-primary-rgb: 84, 132, 136;
    --bs-warning: #FFB800;
    --bs-warning-rgb: 255, 184, 0;
}

/* ===========================
   Typography
   =========================== */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* ===========================
   Animations
   =========================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

/* ===========================
   Navigation Styles
   =========================== */
.glass-nav {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.navbar-brand img {
    height: 60px;
    transition: transform 0.3s ease;
}

.navbar-brand img:hover {
    transform: scale(1.05);
}

.navbar-brand span {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--cutly-primary);
    display: none;
    /* Hidden by default, can be shown if needed */
}

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

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

.nav-link.active {
    color: #111827 !important;
    font-weight: 600;
    border-bottom: 2px solid var(--cutly-primary);
    padding-bottom: 0.25rem;
}

/* Dropdown Styles */
.dropdown-menu {
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border: none;
    margin-top: 0.5rem !important;
}

.dropdown-item {
    padding: 0.5rem 1rem;
    transition: background-color 0.2s;
}

.dropdown-item:hover {
    background-color: #f3f4f6;
    color: var(--cutly-primary);
}

/* ===========================
   Buttons
   =========================== */
.btn-primary {
    background-color: var(--cutly-primary);
    border-color: var(--cutly-primary);
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--cutly-primary-dark);
    border-color: var(--cutly-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(84, 132, 136, 0.3);
}

.btn-outline-primary {
    color: var(--cutly-primary);
    border-color: var(--cutly-primary);
    border-width: 2px;
    font-weight: 600;
}

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

/* ===========================
   Cards
   =========================== */
.card {
    border: none;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
}

.card-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.card-icon.primary {
    background-color: rgba(84, 132, 136, 0.1);
    color: var(--cutly-primary);
}

.card-icon.accent {
    background-color: rgba(255, 184, 0, 0.1);
    color: var(--cutly-accent);
}

/* ===========================
   Gradient Backgrounds
   =========================== */
.bg-gradient-primary {
    background: linear-gradient(135deg, rgba(84, 132, 136, 0.1) 0%, rgba(255, 255, 255, 1) 50%, rgba(255, 184, 0, 0.05) 100%);
}

.bg-gradient-primary-soft {
    background: linear-gradient(135deg, rgba(84, 132, 136, 0.1) 0%, rgba(255, 255, 255, 1) 100%);
}

.bg-gradient-gray {
    background: linear-gradient(135deg, #f9fafb 0%, rgba(84, 132, 136, 0.05) 100%);
}

.bg-primary-custom {
    background-color: var(--cutly-primary) !important;
}

/* ===========================
   Hero Section
   =========================== */
.hero-image-container {
    position: relative;
}

.hero-image-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--cutly-primary), var(--cutly-accent));
    border-radius: 1.5rem;
    transform: rotate(6deg);
    opacity: 0.2;
}

.hero-image {
    position: relative;
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

/* ===========================
   Footer
   =========================== */
footer {
    background-color: #111827;
    color: #d1d5db;
}

footer h4 {
    color: #ffffff;
    font-weight: 600;
}

footer a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.2s;
}

footer a:hover {
    color: #ffffff;
}

footer img {
    height: 60px;
}

/* ===========================
   Utility Classes
   =========================== */
.text-primary-custom {
    color: var(--cutly-primary) !important;
}

.text-accent {
    color: var(--cutly-accent) !important;
}

.border-primary-custom {
    border-color: var(--cutly-primary) !important;
}

/* Spacing utilities to match Tailwind equivalents */
.py-20 {
    padding-top: 5rem !important;
    padding-bottom: 5rem !important;
}

/* Text sizes */
.text-5xl {
    font-size: 3rem;
    line-height: 1.2;
}

.text-6xl {
    font-size: 3.75rem;
    line-height: 1.1;
}

@media (min-width: 768px) {
    .text-5xl {
        font-size: 3rem;
    }

    .text-6xl {
        font-size: 4.5rem;
    }
}

/* ===========================
   Service Cards
   =========================== */
.service-card {
    background: white;
    padding: 2rem 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.service-card:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* ===========================
   Swiper Carousel Customization
   =========================== */
.services-carousel-wrapper {
    padding: 0 80px;
    margin-bottom: 40px;
}

.servicesSwiper {
    padding-bottom: 50px;
}

/* Custom Navigation Buttons */
.servicesSwiper .swiper-button-next,
.servicesSwiper .swiper-button-prev {
    width: 50px;
    height: 50px;
    background-color: white;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.servicesSwiper .swiper-button-next {
    right: -60px;
}

.servicesSwiper .swiper-button-prev {
    left: -60px;
}

.servicesSwiper .swiper-button-next:after,
.servicesSwiper .swiper-button-prev:after {
    font-size: 20px;
    font-weight: bold;
    color: var(--cutly-primary);
}

.servicesSwiper .swiper-button-next:hover,
.servicesSwiper .swiper-button-prev:hover {
    background-color: var(--cutly-primary);
    transform: scale(1.15);
    box-shadow: 0 6px 20px rgba(84, 132, 136, 0.4);
}

.servicesSwiper .swiper-button-next:hover:after,
.servicesSwiper .swiper-button-prev:hover:after {
    color: white;
}

/* Custom Pagination */
.servicesSwiper .swiper-pagination {
    bottom: 0;
}

.servicesSwiper .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background-color: #d1d5db;
    opacity: 1;
    transition: all 0.3s ease;
}

.servicesSwiper .swiper-pagination-bullet-active {
    width: 24px;
    border-radius: 5px;
    background-color: var(--cutly-primary);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .services-carousel-wrapper {
        padding: 0 60px;
    }

    .servicesSwiper .swiper-button-next {
        right: -50px;
    }

    .servicesSwiper .swiper-button-prev {
        left: -50px;
    }
}

@media (max-width: 768px) {
    .services-carousel-wrapper {
        padding: 0 50px;
    }

    .servicesSwiper .swiper-button-next,
    .servicesSwiper .swiper-button-prev {
        width: 40px;
        height: 40px;
    }

    .servicesSwiper .swiper-button-next {
        right: -45px;
    }

    .servicesSwiper .swiper-button-prev {
        left: -45px;
    }

    .servicesSwiper .swiper-button-next:after,
    .servicesSwiper .swiper-button-prev:after {
        font-size: 16px;
    }

    .service-card {
        height: 180px;
    }
}

@media (max-width: 576px) {
    .services-carousel-wrapper {
        padding: 0 40px;
    }

    .servicesSwiper .swiper-button-next,
    .servicesSwiper .swiper-button-prev {
        width: 36px;
        height: 36px;
    }

    .servicesSwiper .swiper-button-next {
        right: -38px;
    }

    .servicesSwiper .swiper-button-prev {
        left: -38px;
    }

    .servicesSwiper .swiper-button-next:after,
    .servicesSwiper .swiper-button-prev:after {
        font-size: 14px;
    }

    .service-card {
        height: 160px;
    }
}

/* ===========================
   Language Switcher for Header
   =========================== */
.language-switcher {
    display: inline-flex;
    background: rgba(84, 132, 136, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(84, 132, 136, 0.15);
    position: relative;
    margin-left: 1rem;
}

.language-option {
    position: relative;
    z-index: 2;
}

.language-option input[type="radio"] {
    display: none;
}

.language-option label {
    display: inline-block;
    padding: 6px 16px;
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(55, 65, 81, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
    position: relative;
    z-index: 2;
}

.language-option label:hover {
    color: rgba(55, 65, 81, 0.9);
    transform: scale(1.05);
}

/* Active State */
.language-option input[type="radio"]:checked+label {
    color: var(--cutly-primary);
    font-weight: 700;
}

/* Sliding Background */
.language-switcher::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc(50% - 4px);
    height: calc(100% - 8px);
    background: white;
    border-radius: 50px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

/* Move background when EN is selected */
.language-switcher:has(#lang-en:checked)::before {
    transform: translateX(100%);
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .language-switcher {
        margin-left: 0;
        margin-top: 0.5rem;
    }

    .language-option label {
        padding: 8px 20px;
        font-size: 0.9rem;
    }
}