/* Responsive Styles for MaKatine Website */

/* Base styles */
:root {
    --primary-color: #f88a87;
    --secondary-color: #622b86;
    --accent-color: #e54715;
    --blue-color: #06a6ea;
    --green-color: #106060;
    --tan-color: #999966;
    --dark-color: #333;
    --light-color: #fff;
    --text-color: #212529;
}

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Global responsive adjustments */
img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

/* Navbar adjustments */
.navbar-brand img {
    max-height: 60px;
    width: auto;
}

/* Card height reset for mobile */
.card {
    height: auto !important;
    /* min-height: 300px; */
    margin-bottom: 20px;
}

/* Map responsive */
.map-responsive {
    overflow: hidden;
    padding-bottom: 56.25%;
    position: relative;
    height: 0;
}

.map-responsive iframe {
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    position: absolute;
}

/* Mobile styles (up to 767px) */
@media (max-width: 767px) {
    .navbar .container-fluid {
        padding: 0 15px;
    }

    .col-3,
    .col-9 {
        width: 100%;
        flex: 0 0 100%;
        max-width: 100%;
    }

    .carousel-inner .carousel-item img {
        height: 300px;
        object-fit: cover;
    }

    h2 {
        font-size: 1.8rem;
    }

    h5 {
        font-size: 1rem;
    }

    .breadcrumb {
        font-size: 1rem !important;
    }

    .footer {
        text-align: center;
    }

    .footer .col {
        margin-bottom: 2rem;
    }

    /* Adjust top margins for banner sections */
    [style*="margin-top: 5.7rem"] {
        margin-top: 4.5rem !important;
    }

    /* Handle images in banners */
    [class*="col-3"] img {
        display: none; /* Hide side images on mobile */
    }

    /* Fix card columns on mobile */
    .card-columns .col {
        width: 100%;
        margin-bottom: 1rem;
    }

    /* Modern card styling */
    .card {
        margin-bottom: 1.5rem;
    }

    .position-absolute {
        display: none;
    }
}

/* Tablet styles (768px to 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .col-9 {
        width: 100%;
        flex: 0 0 100%;
        max-width: 100%;
    }

    .col-3 {
        display: none; /* Hide side images on tablets */
    }

    .carousel-inner .carousel-item img {
        height: 400px;
        object-fit: cover;
    }

    h2 {
        font-size: 2rem;
    }

    /* Card adjustments */
    .card-columns .col {
        width: 50%;
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Desktop styles (992px and up) */
@media (min-width: 992px) {
    .carousel-inner .carousel-item img {
        height: 100%;
        object-fit: cover;
    }

    /* Reset banner side images */
    [class*="col-3"] img {
        display: block;
    }
}

/* Extra styles for components */
/* Buttons */
.btn {
    white-space: normal; /* Allow button text to wrap */
}

/* Fix footer on mobile */
@media (max-width: 767px) {
    .footer .row.g-5 {
        display: block;
    }

    .footer .col {
        width: 100%;
        text-align: center;
        margin-bottom: 2rem;
    }

    .footer h4 {
        margin-top: 1.5rem;
    }
}

/* Contact page map responsiveness */
@media (max-width: 767px) {
    iframe {
        height: 300px !important;
    }
}

/* Modern card styling */
.z-index-1 {
    z-index: 1;
    position: relative;
}

.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.card {
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.rounded-pill {
    border-radius: 50rem !important;
}

.btn-outline-dark {
    transition: all 0.3s ease;
}

.btn-outline-dark:hover {
    background-color: #333;
    color: white;
}

/* Responsive adjustments for modern cards */
@media (max-width: 767px) {
    .card {
        margin-bottom: 1.5rem;
    }

    .position-absolute {
        display: none;
    }
}

/* Modern UI Components */

/* Service Cards */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

.service-badge {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Team Cards */
.team-card {
    transition: transform 0.3s ease;
}

.team-card:hover {
    transform: translateY(-10px);
}

.team-card .card-img-top {
    transition: transform 0.5s ease;
}

.team-card:hover .card-img-top {
    transform: scale(1.05);
}

/* Modern section styling */
.section-title {
    position: relative;
    margin-bottom: 2rem;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

.section-title.text-center::after {
    left: 50%;
    transform: translateX(-50%);
}

/* Circle decorations */
.circle-decoration {
    position: absolute;
    border-radius: 50%;
    z-index: -1;
    opacity: 0.1;
}

.circle-1 {
    top: -50px;
    right: 10%;
    width: 100px;
    height: 100px;
    background-color: var(--primary-color);
}

.circle-2 {
    bottom: -30px;
    left: 5%;
    width: 70px;
    height: 70px;
    background-color: var(--secondary-color);
}

/* Icon features */
.feature-icon-box {
    padding: 2rem;
    border-radius: 0.5rem;
    background-color: #f8f9fa;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-icon-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.icon-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

/* Button Styles */
.btn-rounded {
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
}

.btn-primary-custom {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.btn-primary-custom:hover {
    background-color: #e57976;
    border-color: #e57976;
}

/* Animated underlines */
.animated-underline {
    position: relative;
    display: inline-block;
}

.animated-underline::after {
    content: "";
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}

.animated-underline:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Card hover effects */
.hover-lift {
    transition: transform 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-10px);
}

/* Custom list styles */
.custom-list {
    list-style: none;
    padding-left: 0;
}

.custom-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.custom-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* Modern image styling */
.img-rounded-custom {
    border-radius: 20px;
    overflow: hidden;
}

.img-shadow {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Testimonial cards */
.testimonial-card {
    border-radius: 15px;
    overflow: hidden;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}
