 /* Custom container classes similar to Bootstrap */
 .container {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    padding-right: 1rem;
    padding-left: 1rem;
}

@media (min-width: 576px) { .container { max-width: 540px; } }
@media (min-width: 768px) { .container { max-width: 720px; } }
@media (min-width: 992px) { .container { max-width: 960px; } }
@media (min-width: 1200px) { .container { max-width: 1140px; } }
@media (min-width: 1400px) { .container { max-width: 1320px; } }

.container-fluid {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    padding-right: 1rem;
    padding-left: 1rem;
}

/* Glass navbar styles */
.navbar-glass {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.navbar-glass.scrolled {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.dark .navbar-glass {
    background: rgba(15, 23, 42, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dark .navbar-glass.scrolled {
    background: rgba(15, 23, 42, 0.95);
}

/* Theme toggle switch */
.theme-toggle-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.theme-toggle-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
}

.theme-toggle-switch {
    position: relative;
    width: 60px;
    height: 30px;
    background-color: #1e3a8a;
    border-radius: 15px;
    transition: all 0.3s ease;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
}

.dark .theme-toggle-switch {
    background-color: #0f172a;
}

.theme-toggle-switch::before {
    content: '';
    position: absolute;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    background-color: white;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.theme-toggle-checkbox:checked + .theme-toggle-switch {
    background-color: #0f172a;
}

.dark .theme-toggle-checkbox:checked + .theme-toggle-switch {
    background-color: #1e3a8a;
}

.theme-toggle-checkbox:checked + .theme-toggle-switch::before {
    transform: translateX(30px);
}

.theme-toggle-checkbox {
    display: none;
}

.theme-toggle-icons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    justify-content: space-between;
    padding: 0 8px;
    pointer-events: none;
}

.theme-toggle-icons i {
    font-size: 0.9rem;
    z-index: 1;
}

.theme-toggle-icons .fa-sun {
    color: #f59e0b;
}

.theme-toggle-icons .fa-moon {
    color: #cbd5e1;
}

/* Contact button styles */
.contact-btn {
    background: white;
    color: #1e3a8a;
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden; /* Needed for new animation */
}

.contact-btn:hover {
    background: #dbeafe;
}

.dark .contact-btn {
    background: #1e293b;
    color: #e2e8f0;
    border: 1px solid #334155;
}

.dark .contact-btn:hover {
    background: #334155;
}

/* WhatsApp button styles */
.whatsapp-btn {
    background: #25D366;
    color: #ffffff;
    padding: 0.5rem 1.25rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.25);
    text-decoration: none;
}

.whatsapp-btn:hover {
    background: #20ba5a;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
    transform: translateY(-1px);
}

.whatsapp-btn i {
    font-size: 1.15rem;
}

.dark .whatsapp-btn {
    background: #25D366;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.2);
}

.dark .whatsapp-btn:hover {
    background: #20ba5a;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
}

/* NEW: Animated Contact Button Icon Styles */
.icon-container {
    position: relative;
    width: 1.2em;
    height: 1.2em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.icon-sliding {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0; /* All hidden by default */
    transform: translateY(100%); /* Start hidden at bottom */
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.icon-sliding.icon-active {
    opacity: 1; /* Active one is visible */
    transform: translateY(0);
}

.slide-in-anim {
    animation: slideInFromBottom 0.6s ease-out forwards;
}

.slide-out-anim {
    animation: slideDownAndOut 0.6s ease-out forwards;
}

@keyframes slideInFromBottom {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes slideDownAndOut {
    from { transform: translateY(0); opacity: 1; }
    to { transform: translateY(100%); opacity: 0; }
}


/* Hero content animations */
.hero-slide-in {
    animation: slideIn 0.8s ease-out forwards;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.hero-scale-in {
    animation: scaleIn 0.8s ease-out forwards;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* NEW: Mobile Menu (Off-Canvas) Styles */
#mobile-menu {
    position: fixed;
    top: 0;
    right: -320px; /* Start off-screen */
    width: 300px;
    height: 100%;
    background-color: #0f172a; /* Solid dark slate-900 background */
    z-index: 100;
    transition: right 0.3s ease-in-out;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.5);
    padding-top: 4rem; /* Space for close button */
    border-l: 1px solid rgba(255, 255, 255, 0.1);
}

#mobile-menu.open {
    right: 0; /* Slide in */
}

#mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(4px);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

#mobile-menu-overlay.open {
    opacity: 1;
    visibility: visible;
}

#mobile-menu-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    font-size: 1.5rem;
    color: #94a3b8; /* slate-400 */
    background: rgba(255, 255, 255, 0.1);
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.2s ease;
}

#mobile-menu-close:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.2);
}

#mobile-menu-content {
    display: flex;
    flex-direction: column;
    padding: 1rem 1.5rem;
}

#mobile-menu-content a {
    padding: 0.875rem 0;
    font-size: 1.05rem;
    font-weight: 500;
    color: #f1f5f9; /* solid crisp light text */
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: color 0.2s ease, padding-left 0.2s ease;
}

#mobile-menu-content a:hover {
    color: #60a5fa; /* blue-400 */
    padding-left: 0.5rem;
}

#mobile-menu-content a.contact-btn {
    margin-top: 1.25rem;
    text-align: center;
    border-bottom: none; 
    justify-content: center;
    background: #2563eb;
    color: #ffffff !important;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

#mobile-menu-content a.contact-btn:hover {
    background: #1d4ed8;
    color: #ffffff !important;
    padding-left: 0;
}

#mobile-menu-content a.whatsapp-btn {
    margin-top: 0.75rem;
    text-align: center;
    border-bottom: none;
    justify-content: center;
    color: #ffffff !important;
}