@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700&family=Playfair+Display:wght@400;500;600;700&family=Poppins:wght@300;400;500;600&family=Lora:wght@400;500&display=swap');

:root {
    --primary: #2b4b65;
    --secondary: #6b8ba5;
    --accent: #96b4cc;
    --light: #ffffff;
    --dark: #1d1c21;
    --secondary-rgb: 107, 139, 165;
}

body {
    background-color: var(--primary);
}

body:not(.loading) #loadingscreen {
    display: none;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
}

.hero-section h1 {
    font-family: 'Cinzel', serif;
}

.hero-section p {
    font-family: 'Lora', serif;
}

.navbar-brand {
    font-family: 'Cinzel', serif;
    font-weight: 700;
}

.hero-section {
    background: linear-gradient(rgba(43, 75, 101, 0.85), rgba(43, 75, 101, 0.85)), url('https://images.unsplash.com/photo-1589829545856-d10d557cf95f?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.scroll-top {
    opacity: 0.5;
    visibility: hidden;
    transition: all 0.3s ease;

}

.scroll-top.active {
    opacity: 1;
    visibility: visible;

}

/* Loading Screen Styles */
@keyframes scalePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes slideUpOut {
    from { transform: translateY(0); opacity: 1; }
    to { transform: translateY(-100%); opacity: 0; }
}

@keyframes slideUpIn {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes slideInUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes progress {
    0% { width: 0%; }
    100% { width: 100%; }
}

#loadingscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background-color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

#loadingscreen.slide-up-out {
    animation: slideUpOut 0.7s cubic-bezier(0, 0, 0.1, 1) forwards;
}

.loading-content {
    text-align: center;
}

.scale-pulse {
    animation: scalePulse 2s infinite;
}

.spin {
    animation: spin 2s linear infinite;
}

.legal-icon {
    position: relative;
}

.legal-icon::before {
    content: "";
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: scalePulse 3s infinite;
}

.progress-bar {
    animation: progress 3s ease-out forwards;
}

/* Shiny Button Effect */
.btn {
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    transition: transform 0.5s ease;
}

.btn:hover::before {
    transform: translateX(100%);
}

.btn:hover {
    transform: translateY(-3px);
}

.btn-filled {
    background-color: var(--secondary);
    color: var(--light);
}

.btn-filled:hover {
    background-color: var(--primary);
}

.btn-outlined {
    background-color: transparent;
    border: 1px solid var(--secondary);
    color: var(--secondary);
}

.btn-outlined:hover {
    background-color: rgba(var(--secondary-rgb), 0.1);
}

.btn-icon {
    background-color: var(--light);
    border: none;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon:hover {
    background-color: var(--accent);
}

/* Specific button styles */
.hero-section .btn-filled,
.hero-section .btn-outlined,
#about .btn-filled,
#contact .btn-filled,
#services .btn-outlined {
    font-family: 'Lora', serif;
    font-weight: 500;
}

.nav-link {
    position: relative;
}

.navbar {
    position: fixed;
    width: 100%;
    background-color: #96b;
    padding: 15px 0;
    color: white;
    text-align: center;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.nav-link:hover::after {
    width: 100%;
}

.service-card {
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.service-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.2);
}

.testimonial-card {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.testimonial-card.active {
    opacity: 1;
    transform: translateY(0);
}

.floating {
    animation: floating 6s ease-in-out infinite;
}

@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.btn-primary {
    background-color: var(--secondary);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--secondary);
    transition: all 0.5s ease;
}

.animate-stat {
    animation: countUp 1.5s ease-out forwards;
}

@keyframes countUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.contact-input {
    transition: all 0.3s ease;
    border-bottom: 1px solid #ddd;
}

.contact-input:focus {
    border-bottom-color: var(--secondary);
}

/* Custom Dropdown Styles */
.custom-select {
    border-bottom: 1px solid #ddd;
    border-radius: 0;
    font-family: 'Lora', serif;
    font-size: 1rem;
    color: #4a4a4a;
    background-color: transparent;
    padding-right: 2.5rem;
    transition: all 0.3s ease;
}

.custom-select:hover {
    border-bottom-color: var(--secondary);
    transform: translateY(-2px);
}

.custom-select:focus {
    border-bottom-color: var(--secondary);
    box-shadow: 0 2px 4px rgba(107, 139, 165, 0.2);
}

.custom-select option {
    background-color: var(--light);
    color: var(--dark);
    font-family: 'Lora', serif;
    padding: 0.5rem;
}

/* About Section Styles */
.about-image {
    transition: all 0.3s ease;
}

.about-image:hover {
    transform: translateY(-10px);
}

.about-grid-item {
    transition: all 0.3s ease;
}

.about-grid-item:hover {
    transform: translateY(-5px);
}

/* Timeline Styles */
.timeline-item {
    position: relative;
}

.timeline-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 8px;
    top: 24px;
    height: calc(100% - 24px);
    width: 2px;
    background-color: #6b8ba5;
}

.timeline-item .absolute {
    position: absolute;
    left: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #2b4b65;
    margin-top: 8px;
}

/* Barba.js Transition Styles */
[data-barba="container"] {
    position: relative;
    z-index: 1;
}

[data-barba="container"].slide-up-in {
    animation: slideUpIn 0.7s cubic-bezier(0, 0, 0.1, 1) forwards;
}

/* Animation for Sections and Elements */
.animate-section {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.7s cubic-bezier(0, 0, 0.1, 1);
}

.animate-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-element {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease-out;
}

.animate-element.visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-element.delay-1 { transition-delay: 0.2s; }
.animate-element.delay-2 { transition-delay: 0.4s; }
.animate-element.delay-3 { transition-delay: 0.6s; }


#awards-community {

    position: relative;
    overflow: hidden;
}

#awards-community .parallax-bg {
    height: 120%;
    top: -10%;
}

/* Mobile Menu Styles */
#mobile-menu-btn.open .menu-icon {
    display: none;
}
#mobile-menu-btn.open .close-icon {
    display: block;
}
#mobile-menu {
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    background-color: white; /* Match navbar theme */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); /* Match navbar shadow-md */
}
#mobile-menu.open {
    transform: translateX(0);
}

/* Content Overlay */
#content-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: black;
    opacity: 0;
    z-index: 40;
    transition: opacity 0.3s ease-in-out;
}
#content-overlay.open {
    display: block;
    opacity: 0.5;
}

#dark-mode-toggle-container-mobile-dock {
  z-index: 1000;
  pointer-events: auto;
}

/* Hide desktop toggle on small screens */
#dark-mode-toggle-container-desktop {
    display: block;
}

/* Hide mobile dock on larger screens */
.mobile-dock {
    display: none;
}

@media (max-width: 768px) {
    /* Hide desktop toggle on mobile */
    #dark-mode-toggle-container-desktop {
        display: none;
    }

    /* Show mobile dock on mobile */
    .mobile-dock {
        display: flex;
        z-index: 1000;
        pointer-events: auto;
    }
}

.font-cinzel {
    font-family: 'Cinzel', serif;
}
.font-lora {
    font-family: 'Lora', serif;
}
.bg-gradient-to-r {
    background-image: linear-gradient(to right, var(--tw-gradient-stops));
}
.from-[#2b4b65] {
    --tw-gradient-from: #2b4b65;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(43, 75, 101, 0));
}
.to-[#6b8ba5] {
    --tw-gradient-to: #6b8ba5;
}
