:root {
    --primary: #006D77;
    --secondary: #f6a207;
    --light: #FFFFFF;
    --dark:#1e025c;
    --gray: #6c757d;
    --light-gray: #f8f9fa;
}

/* Base Styles with Full Background and Overlay */
body {
  font-family: 'Poppins', sans-serif;
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  z-index: 0;
}

/* Background Image Layer */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url('assets/images/gold.jpeg') center center / cover no-repeat;
  z-index: -2;
}

/* Black Overlay Layer */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.3); /* Adjust opacity here (0.3–0.7 recommended) */
  z-index: -1;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 500;
    line-height: 1.2;
}

.btn {
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--secondary);
    border-color: var(--secondary);
}

.btn-primary:hover {
    background-color: #e69500;
    border-color: #e69500;
    transform: translateY(-2px);
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    color: white;
}

/* Header & Navigation */
.navbar {
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand img {
    height: 60px;
}

.nav-link {
    font-weight: 500;
    color: #1e025c;
    padding: 0.5rem 1rem;
}

.nav-link:hover {
    color: var(--secondary);
}


/* Section Styling */
.section {
    padding: 5rem 0;
}

.section-title {
    position: relative;
    margin-bottom: 3rem;
    color: var(--primary);
}

.section-title:after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--secondary);
}

.bg-light {
    background-color: var(--light-gray) !important;
}

/* Card Styling */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

/* Testimonials */
.testimonial-card {
    border-left: 3px solid var(--secondary);
}

.rating {
    color: var(--secondary);
}

/* Footer */
.footer {
    background-color: var(--dark);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    display: block;
    margin-bottom: 0.5rem;
}

.footer-links a:hover {
    color: var(--secondary);
    padding-left: 5px;
}

.social-icons a {
    color: white;
    font-size: 1.2rem;
    margin-right: 1rem;
}

.social-icons a:hover {
    color: var(--secondary);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 1s ease forwards;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .hero-section {
        padding: 4rem 0;
    }
    
    .section {
        padding: 4rem 0;
    }
}

@media (max-width: 768px) {
    .navbar-collapse {
        padding-top: 1rem;
    }
    
    .hero-section {
        text-align: center;
        padding: 3rem 0;
    }
    
    .hero-content {
        margin-bottom: 2rem;
    }
}

@media (max-width: 576px) {
    .section {
        padding: 3rem 0;
    }
    
    .card-img-top {
        height: 150px;
    }
}

/* Loading Spinner Styles */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.spinner-container {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.spinner-wheel {
    position: absolute;
    width: 100px;
    height: 100px;
    border: 8px solid;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.spinner-logo {
    width: 60px;
    height: auto;
    animation: pulse 2s infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Hide content initially */
body.loading #main-content {
    opacity: 0;
}

body.loaded #loading-spinner {
    opacity: 0;
    pointer-events: none;
}

body.loaded #main-content {
    opacity: 1;
    transition: opacity 0.5s ease;
}

/* Foundation Header Styles */
.foundation-header {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.foundation-name {
    font-family: 'Poppins', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.header-contact span {
    font-size: 0.9rem;
}

.header-social a {
    display: inline-block;
    width: 28px;
    height: 28px;
    line-height: 28px;
    text-align: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.header-social a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Navigation adjustments */
.navbar {
    top: 0;
    z-index: 1020;
}

@media (max-width: 992px) {
    .foundation-name {
        font-size: 1.1rem;
        text-align: center;
        margin-bottom: 10px !important;
    }
    
    .header-actions {
        justify-content: center !important;
        flex-wrap: wrap;
    }
    
    .header-contact {
        margin-bottom: 8px;
        text-align: center;
        width: 100%;
    }
    
    .header-contact span {
        display: inline-block;
        margin: 0 8px;
    }
    
    .header-social {
        margin: 0 10px 8px 0;
    }
}

@media (max-width: 768px) {
    .foundation-header {
        padding: 8px 0;
    }
    
    .foundation-name {
        font-size: 1rem;
    }
    
    .header-contact span {
        font-size: 0.8rem;
    }
    
    .navbar-brand img {
        height: 40px;
    }
}

/* Preloader Styles */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #fff; /* or #111 for dark theme */
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease;
}

.spinner {
  width: 60px;
  height: 60px;
  border: 6px solid #FFA500;
  border-top: 6px solid #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url('assets/images/gold.jpeg') center center / cover no-repeat;
  z-index: -2;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.1); /* black overlay with 60% opacity */
  z-index: -1;
}


