/* ==========================================
   GiroTu Website - Custom Styles
   ========================================== */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* ==========================================
   CSS Variables - Color Scheme
   ========================================== */
:root {
    --primary-color: #9a3b27;
    --primary-dark: #4A1E35;
    --secondary-color: #D4AF37;
    --accent-color: #8B4367;
    --dark-bg: #1a1a1a;
    --light-bg: #f8f9fa;
    --text-dark: #2c3e50;
    --text-light: #ffffff;
    --text-gray: #6c757d;
    --border-color: #dee2e6;
    --gradient-1: linear-gradient(135deg, #6B2C4C 0%, #8B4367 100%);
    --gradient-2: linear-gradient(135deg, #4A1E35 0%, #6B2C4C 100%);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.2);
    --transition: all 0.3s ease;
}

/* ==========================================
   Base Styles
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--light-bg);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 2rem;
}

h4 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    font-size: 1.125rem;
    line-height: 1.8;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

/* ==========================================
   Navigation Bar - Static with Glassmorphism
   ========================================== */
.navbar-custom {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(20, 20, 30, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 50px;
    padding: 20px 40px;
    margin: 0;
    max-width: fit-content;
    width: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-light) !important;
    letter-spacing: 1px;
    transition: var(--transition);
}

.navbar-brand i {
    font-size: 8.8rem;
}

/* Walking man logo - sized to match text prominence */
.navbar-brand-icon {
    width: auto;
    height: 5rem;
    display: inline-block;
    vertical-align: middle;
}

.navbar-brand:hover {
    color: #9a3b27 !important;
    transform: scale(1.05);
}

/* Desktop: Control gap between logo and nav items */
.navbar-custom .container-fluid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    /* Controls space between logo and nav */
}

.navbar-custom .navbar-nav {
    margin-left: 0;
    gap: 0.5rem;
    /* Space between individual nav items */
}

/* Remove Bootstrap's ms-auto excessive spacing */
.navbar-custom .ms-auto {
    margin-left: 1.5rem !important;
}

.navbar-nav {
    align-items: center;
}

.nav-link {
    color: var(--text-light) !important;
    font-weight: 500;
    font-size: 1rem;
    margin: 0 5px;
    padding: 10px 20px !important;
    border-radius: 50px;
    transition: var(--transition);
    position: relative;
    text-align: center;
}

.nav-link:hover,
.nav-link.active {
    background-color: rgba(255, 255, 255, 0.95);
    color: var(--primary-dark) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 255, 255, 0.2);
}

.navbar-toggler {
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 8px 12px;
    border-radius: 8px;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
}

/* Mobile navbar */
@media (max-width: 991px) {

    /* Mobile responsive - NO gap needed, hamburger controls layout */
    .navbar-custom .container-fluid {
        gap: 0;
        /* No gap needed in mobile, hamburger controls layout */
        flex-wrap: wrap;
    }

    .navbar-custom {
        padding: 15px 25px;
        border-radius: 25px;
        top: 15px;
        width: 90%;
        max-width: 90%;
    }

    /* Mobile menu styling */
    .navbar-collapse {
        background: rgba(20, 20, 30, 0.95);
        border-radius: 20px;
        padding: 20px;
        margin-top: 15px;
        width: 100%;
        /* Full width for mobile menu */
    }

    .nav-link {
        margin: 5px 0;
        text-align: center;
        /* Center nav items in mobile */
    }

    /* Reset any custom spacing for mobile */
    .navbar-custom .navbar-nav {
        margin-left: 0;
        gap: 0.5rem;
        /* Maintain consistent gap between items */
    }

    .hero-content {
        padding-top: 100px;
    }
}

/* ==========================================
   Hero Section
   ========================================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-1);
    position: relative;
    overflow: hidden;
    padding-top: 0;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/hero-image1.jpg') center/cover;
    opacity: 0.7;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--text-light);
    padding: 2rem;
    padding-top: 120px;
}

.hero-content h1 {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease;
}

.hero-content .tagline {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 300;
    opacity: 0.95;
    animation: fadeInUp 1.2s ease;
}

.hero-content .cta-buttons {
    animation: fadeInUp 1.4s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    z-index: 1;
}

.scroll-indicator i {
    font-size: 2rem;
    color: var(--text-light);
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ==========================================
   Buttons
   ========================================== */
.btn-custom-primary {
    background: var(--secondary-color);
    color: var(--text-dark);
    border: none;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-custom-primary:hover {
    background: #c39d2e;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
    color: var(--text-dark);
}

.btn-custom-outline {
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--text-light);
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
}

.btn-custom-outline:hover {
    background: var(--text-light);
    color: var(--primary-color);
    transform: translateY(-3px);
}

.btn-learn-more {
    background: var(--primary-color);
    color: var(--text-light);
    border: none;
    padding: 10px 25px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 50px;
    transition: var(--transition);
}

.btn-learn-more:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: var(--text-light);
}

/* ==========================================
   Sections
   ========================================== */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-title .subtitle {
    color: var(--text-gray);
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
}

.section-dark {
    background: var(--dark-bg);
    color: var(--text-light);
}

.section-dark .section-title h2 {
    color: var(--text-light);
}

.section-gradient {
    background: var(--primary-color);
    color: var(--text-light);
}

.section-gradient .section-title h2 {
    color: var(--text-light);
}

/* ==========================================
   Cards
   ========================================== */
.card-custom {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    height: 100%;
    background: white;
}

.card-custom:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.card-custom img {
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

.card-custom:hover img {
    transform: scale(1.1);
}

.card-img-wrapper {
    overflow: hidden;
    border-radius: 20px 20px 0 0;
}

.card-custom .card-body {
    padding: 2rem;
}

.card-custom .card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.card-custom .card-text {
    color: var(--text-gray);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Feature Cards */
.feature-card {
    text-align: center;
    padding: 2rem;
    border-radius: 20px;
    background: white;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.feature-card h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-gray);
    font-size: 1rem;
}

/* ==========================================
   Carousel
   ========================================== */
.carousel-custom .carousel-item {
    height: 500px;
}

.carousel-custom .carousel-item img {
    height: 100%;
    object-fit: cover;
}

.carousel-custom .carousel-caption {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    bottom: 2rem;
    left: 10%;
    right: 10%;
}

.carousel-custom .carousel-caption h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* ==========================================
   Testimonials
   ========================================== */
.testimonial-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    height: 100%;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.testimonial-rating {
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.testimonial-text {
    font-style: italic;
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.testimonial-author {
    display: flex;
    align-items: center;
    margin-top: 1.5rem;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 1rem;
    object-fit: cover;
}

.testimonial-author-info h5 {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.testimonial-author-info p {
    margin: 0;
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* ==========================================
   CTA Section
   ========================================== */
.cta-section {
    padding: 100px 0;
    background: var(--gradient-2);
    color: var(--text-light);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1474440692490-2e83ae13ba29?q=80&w=2000') center/cover;
    opacity: 0.5;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.cta-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* ==========================================
   Footer
   ========================================== */
.footer {
    background: #1a1a1a;
    color: var(--text-light);
    padding: 60px 0 20px;
}

.footer h5 {
    color: #9a3b27;
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    min-height: 3.5rem;
    display: flex;
    align-items: center;
}

.footer ul {
    list-style: none;
    padding: 0;
}

.footer ul li {
    margin-bottom: 0.8rem;
}

.footer ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
    font-size: 1rem;
}

.footer ul li a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer .social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 10px;
    transition: var(--transition);
}

.footer .social-links a:hover {
    background: #6c757d;
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 3rem;
    padding-top: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

/* ==========================================
   Forms
   ========================================== */
.form-custom .form-control,
.form-custom .form-select {
    border-radius: 10px;
    padding: 12px 20px;
    border: 2px solid var(--border-color);
    font-size: 1rem;
    transition: var(--transition);
}

.form-custom .form-control:focus,
.form-custom .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(107, 44, 76, 0.25);
}

.form-custom textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.form-custom label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

/* ==========================================
   Animations
   ========================================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ==========================================
   Filters & Badges
   ========================================== */
.filter-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 10px 25px;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: var(--text-light);
}

.badge-custom {
    background: var(--secondary-color);
    color: var(--text-dark);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* ==========================================
   Team Section
   ========================================== */
.team-member {
    text-align: center;
    margin-bottom: 2rem;
}

.team-member img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 5px solid var(--secondary-color);
    transition: var(--transition);
}

.team-member:hover img {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.team-member h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.team-member p {
    color: var(--text-gray);
    font-size: 1rem;
}

/* ==========================================
   Timeline
   ========================================== */
.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary-color);
    transform: translateX(-50%);
}

.timeline-item {
    margin-bottom: 3rem;
    position: relative;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: auto;
    text-align: left;
}

.timeline-content {
    width: 45%;
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    position: relative;
}

.timeline-year {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: var(--text-light);
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 700;
}

/* ==========================================
   Contact Info
   ========================================== */
.contact-info {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    height: 100%;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.contact-info-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.contact-info-item h5 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.contact-info-item p {
    color: var(--text-gray);
    margin: 0;
}

/* ==========================================
   Map Container
   ========================================== */
.map-container {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    height: 400px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ==========================================
   Alert Messages
   ========================================== */
.alert-custom {
    border-radius: 15px;
    border: none;
    padding: 1.5rem;
    font-size: 1rem;
}

/* ==========================================
   Modal Customization
   ========================================== */
.modal-content {
    border-radius: 20px;
    border: none;
}

.modal-header {
    border-bottom: 2px solid var(--border-color);
    border-radius: 20px 20px 0 0;
    background: var(--gradient-1);
    color: var(--text-light);
}

.modal-header .btn-close {
    filter: invert(1);
}

.modal-body {
    padding: 2rem;
}

.modal-footer {
    border-top: 2px solid var(--border-color);
    border-radius: 0 0 20px 20px;
}

/* ==========================================
   Responsive Design
   ========================================== */
@media (max-width: 991px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-content .tagline {
        font-size: 1.2rem;
    }

    .section {
        padding: 60px 0;
    }

    .timeline::before {
        left: 30px;
    }

    .timeline-content {
        width: calc(100% - 80px);
        margin-left: 80px !important;
        text-align: left;
    }

    .timeline-year {
        left: 30px;
        transform: translateX(-50%);
    }

    .cta-content h2 {
        font-size: 2rem;
    }

    .cta-content p {
        font-size: 1.1rem;
    }
}

@media (max-width: 767px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content .tagline {
        font-size: 1rem;
    }

    .navbar-custom {
        top: 10px;
        width: 95%;
    }

    .hero-content {
        padding-top: 90px;
    }

    .btn-custom-primary,
    .btn-custom-outline {
        padding: 12px 30px;
        font-size: 1rem;
    }

    .section {
        padding: 40px 0;
    }

    .card-custom img {
        height: 200px;
    }

    .carousel-custom .carousel-item {
        height: 300px;
    }

    .carousel-custom .carousel-caption h3 {
        font-size: 1.5rem;
    }

    .timeline-content {
        width: calc(100% - 60px);
        margin-left: 60px !important;
    }
}

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

.text-secondary-custom {
    color: var(--secondary-color) !important;
}

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

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

.bg-gradient-custom {
    background: var(--gradient-1) !important;
}

.hover-lift {
    transition: var(--transition);
}

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

/* ==========================================
   Scrollbar Customization
   ========================================== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--light-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ==========================================
   WhatsApp Floating Button
   ========================================== */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25D366;
    color: #ffffff;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: pointer;
    animation: whatsapp-pulse 2s infinite;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
    transform: scale(1.1);
    color: #ffffff;
    animation: none;
}

.whatsapp-float i {
    font-size: 32px;
    color: #ffffff;
    z-index: 2;
    line-height: 1;
}

/* Tooltip that appears on hover */
.whatsapp-tooltip {
    position: absolute;
    right: 75px;
    background-color: #25D366;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 30px;
    white-space: nowrap;
    font-size: 15px;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
    opacity: 0;
    visibility: hidden;
    transform: translateX(15px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    pointer-events: none;
}

/* Show tooltip on hover */
.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Small arrow pointing to the button */
.whatsapp-tooltip::after {
    content: "";
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 6px 0 6px 6px;
    border-color: transparent transparent transparent #25D366;
}

/* Pulse animation to draw attention */
@keyframes whatsapp-pulse {
    0% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    50% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4), 0 0 0 10px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Tablet responsive */
@media (max-width: 991px) {
    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 30px;
        right: 30px;
        font-size: 28px;
    }

    .whatsapp-float i {
        font-size: 28px;
    }

    .whatsapp-tooltip {
        right: 70px;
        font-size: 14px;
        padding: 9px 18px;
    }
}

/* Mobile responsive */
@media (max-width: 767px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 25px;
    }

    .whatsapp-float i {
        font-size: 26px;
    }

    .whatsapp-tooltip {
        right: 65px;
        font-size: 13px;
        padding: 8px 15px;
    }
}

/* Ensure button doesn't overlap footer or other elements */
@media (max-width: 576px) {
    .whatsapp-float {
        bottom: 15px;
        right: 15px;
    }
}

/* ==========================================
   Instagram Icon in Navbar
   ========================================== */

/* Instagram icon - base styles */
.navbar-instagram {
    color: var(--text-light) !important;
    font-size: 20px;
    padding: 10px 20px;
    border-radius: 50px;
    transition: var(--transition);
    background: transparent;
    text-decoration: none;
}

.navbar-instagram:hover {
    background-color: rgba(255, 255, 255, 0.95) !important;
    color: var(--primary-dark) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 255, 255, 0.2);
}

.navbar-instagram i {
    color: inherit;
    line-height: 1;
}

/* Desktop - FIX spacing from brand */
@media (min-width: 992px) {
    .navbar-collapse {
        display: flex !important;
        flex-direction: row;
        align-items: center;
    }

    .navbar-instagram {
        order: -1;
        margin-left: 25px !important;
        /* DESKTOP FIX - space from brand */
        margin-right: auto;
    }

    .navbar-nav {
        margin-left: auto;
    }
}

/* Mobile - FIX Instagram at top of menu */
@media (max-width: 991px) {
    .navbar-collapse {
        background: rgba(20, 20, 30, 0.95);
        border-radius: 20px;
        padding: 20px;
        margin-top: 15px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* MOBILE FIX - Instagram centered at top */
    .navbar-instagram {
        position: static !important;
        display: inline-block !important;
        width: auto !important;
        margin: 0 auto 15px auto !important;
        padding: 10px 15px;
        text-align: center;
        order: -1;
    }

    .navbar-nav {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        order: 1;
    }

    .nav-link {
        margin: 5px auto;
        display: inline-block;
        width: auto;
        text-align: center;
    }
}

@media (max-width: 767px) {
    .navbar-instagram {
        font-size: 16px;
        right: 55px;
        padding: 6px 10px;
    }
}