body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    padding-top: 75px; /* Adjust for fixed header height */
    overflow-x: hidden;
}

* {
    box-sizing: border-box;
}

:root {
    --primary-red: #dc3545;
    --primary-red-dark: #c82333;
    --secondary-cyan: #17a2b8;
    --secondary-cyan-dark: #138496;
    --dark-grey: #343a40;
    --light-grey: #f8f9fa;
    --text-color-dark: #212529;
    --text-color-light: #6c757d;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-color-dark);
    font-weight: 700;
}

/* Responsive Typography */
h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem); /* Desktop: 4.5rem, Tablet: ~3.5rem, Mobile: ~2.5rem */
}

h2 {
    font-size: clamp(2rem, 4vw, 3.5rem); /* Desktop: 3.5rem, Tablet: ~2.8rem, Mobile: ~2rem */
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2.5rem); /* Desktop: 2.5rem, Tablet: ~2rem, Mobile: ~1.5rem */
}

.navbar-brand .fs-4 {
    font-size: clamp(1.25rem, 3vw, 1.8rem) !important; /* Desktop: 1.8rem, Tablet: ~1.5rem, Mobile: ~1.25rem */
}

@media (max-width: 767.98px) {
    body {
        padding-top: 65px;
    }
}

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

.btn-primary {
    background-color: var(--primary-red);
    border-color: var(--primary-red);
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--primary-red-dark);
    border-color: var(--primary-red-dark);
    transform: translateY(-2px);
}

.btn-lg {
    font-size: 1.1rem;
    padding: 0.8rem 2rem;
}

.btn {
    text-decoration: none !important;
}

.text-primary {
    color: var(--primary-red) !important;
}

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

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

/* Navbar */
.navbar-brand {
    font-weight: 700;
}

.nav-link {
    color: var(--dark-grey);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-red);
}

.offcanvas-header {
    background-color: var(--primary-red);
    color: white;
}

.offcanvas-title {
    color: white;
}

.offcanvas-body {
    background-color: #f8f9fa;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    background-image: url('uploads/content/investment-gold-gems-background.png');
    background-position: center;
    background-size: cover;
    position: relative;
    color: white;
    padding-top: 75px; /* Ensure content is below fixed header */
}

.hero-section .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 0;
}

.hero-section h1 {
    color: #fff;
    font-size: clamp(2.2rem, 6vw, 5rem);
    line-height: 1.1;
}

.hero-section p.lead {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
}

.trust-badges img {
    filter: brightness(0) invert(1);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.trust-badges img:hover {
    opacity: 1;
}

/* About Section */
.process-step .progress {
    height: 8px;
    background-color: #e9ecef;
    border-radius: 5px;
    overflow: hidden;
}

.process-step .progress-bar {
    border-radius: 5px;
    transition: width 1.5s ease-out;
}

/* Services Section */
.service-step {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e9ecef;
}

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

.service-step-col {
    position: relative;
}



@media (min-width: 768px) {
    
    .service-step-col:nth-child(3n)::after { /* Adjust for 3-column layout */
        display: none;
    }
}

@media (min-width: 992px) {
    
    .service-step-col:nth-child(3n)::after { /* Adjust for 3-column layout */
        display: none;
    }
}

/* FAQ Section */
#faqSearch {
    border-radius: 0.5rem;
}

.accordion-button:not(.collapsed) {
    color: white;
    background-color: var(--primary-red);
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.125);
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(var(--primary-red-rgb), .25);
}

.accordion-button {
    font-weight: 600;
    color: var(--text-color-dark);
}

.accordion-item {
    margin-bottom: 1rem;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    overflow: hidden;
}

.accordion-body {
    color: var(--text-color-light);
}

/* Features Section */
.features-grid .feature-item {
    transition: all 0.3s ease-in-out;
    border: 1px solid #e9ecef;
}

.features-grid:hover .feature-item:not(:hover) {
    opacity: 0.5;
    transform: scale(0.98);
    box-shadow: none !important;
}

.features-grid .feature-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.15) !important;
    opacity: 1;
}

/* Team Section */
.founder-card {
    background-color: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.05);
}

.team-member {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

/* Stats Section */
#stats {
    background-attachment: fixed; /* Parallax effect */
    position: relative;
}

#stats .overlay {
    background-color: rgba(0, 0, 0, 0.7);
}

#stats .bg-dark-transparent {
    background-color: rgba(0, 0, 0, 0.5) !important;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#stats .count-up {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

/* How It Works Section */
.icon-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: var(--secondary-cyan);
    color: white;
    font-size: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.how-it-works-step:hover .icon-circle {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 0.5rem 1rem rgba(var(--secondary-cyan-rgb), 0.3) !important;
}

.how-it-works-grid {
    position: relative;
}


/* Testimonials Section */
.testimonial-bubble {
    background-color: white;
    border: 1px solid #e9ecef;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.testimonial-bubble p {
    position: relative;
    z-index: 1;
}

/* Contact Section */
#contact .form-control, #contact .form-select {
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
}

#contact .form-control:focus, #contact .form-select:focus {
    border-color: var(--primary-red);
    box-shadow: 0 0 0 0.25rem rgba(var(--primary-red-rgb), .25);
}

#contact label {
    font-weight: 500;
    color: var(--dark-grey);
    margin-bottom: 0.5rem;
}

.email-break {
    word-break: break-all;
}

/* Footer */
footer {
    background-color: var(--dark-grey) !important;
}

footer a {
    color: var(--text-color-light);
}

footer a:hover {
    color: var(--primary-red);
}

.hover-primary:hover {
    color: var(--primary-red) !important;
}

/* Animations */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.animate-in {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1) rotate(0deg) !important;
}

/* Specific animations */
.animate-on-scroll[data-animation="fade-in-up"] {
    transform: translateY(20px);
}

.animate-on-scroll[data-animation="fade-in-left"] {
    transform: translateX(-20px);
}

.animate-on-scroll[data-animation="fade-in-right"] {
    transform: translateX(20px);
}

.animate-on-scroll[data-animation="fade-in-scale"] {
    transform: scale(0.9);
}

/* Testimonial bubble animation (JS will add random initial rotation, CSS will handle floating) */
.testimonial-bubble.animate-in {
    animation: floatAndRotate 10s ease-in-out infinite alternate;
}

@keyframes floatAndRotate {
    0% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-5px) rotate(1deg);
    }
    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

/* Responsive adjustments for services section arrows */
@media (max-width: 767.98px) {
   
    .service-step-col:last-child::after {
        display: none;
    }
    .service-step-col:nth-child(odd)::after {
        /* Ensure arrows only appear between vertical items */
        display: block;
    }
    .service-step-col:nth-child(even)::after {
        display: none;
    }
    .service-step-col:nth-last-child(2)::after {
        display: none; /* No arrow after the second to last item if total is even */
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  
    .service-step-col:nth-child(2n)::after { /* For 2-column layout */
        display: none;
    }
    .service-step-col:nth-last-child(1)::after {
        display: none;
    }
}

@media (min-width: 992px) {
  
    .service-step-col:nth-child(3n)::after {
        display: none;
    }
}

/* Responsive adjustments for how-it-works section arrows */
@media (max-width: 767.98px) {
 
    .how-it-works-grid .how-it-works-step:last-child::after {
        display: none;
    }
    .how-it-works-grid .how-it-works-step:nth-child(odd)::after {
        display: block;
    }
    .how-it-works-grid .how-it-works-step:nth-child(even)::after {
        display: none;
    }
    .how-it-works-grid .how-it-works-step:nth-last-child(2)::after {
        display: none;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
 
    .how-it-works-grid .how-it-works-step:nth-child(2n)::after {
        display: none;
    }
    .how-it-works-grid .how-it-works-step:nth-last-child(1)::after {
        display: none;
    }
}

@media (min-width: 992px) {
  
    .how-it-works-grid .how-it-works-step:nth-child(4n)::after {
        display: none;
    }
}/* Parent container styling */
.secureTermsHub {
    margin-top: 3rem; /* Top margin for separation from content above */
    padding-left: 1.5rem; /* Left padding for content inside the hub */
    padding-right: 1.5rem; /* Right padding for content inside the hub */
    /* Optional: You might want a max-width and margin: auto here for better readability on large screens,
       e.g., max-width: 75rem; margin-left: auto; margin-right: auto;
       But sticking to the explicit request for only top and side margins. */
}

/* Heading styles */
.secureTermsHub h1 {
    font-size: 1.8rem; /* Moderately sized heading 1 */
    font-weight: 700; /* Bold */
    line-height: 1.2; /* Tighter line height for headings */
    margin-top: 2rem; /* Space above heading */
    margin-bottom: 1rem; /* Space below heading */
}

.secureTermsHub h2 {
    font-size: 1.5rem; /* Moderately sized heading 2 */
    font-weight: 600; /* Slightly less bold than h1 */
    line-height: 1.3;
    margin-top: 1.8rem;
    margin-bottom: 0.9rem;
}

.secureTermsHub h3 {
    font-size: 1.3rem; /* Moderately sized heading 3 */
    font-weight: 500; /* Normal to medium bold */
    line-height: 1.4;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
}

.secureTermsHub h4 {
    font-size: 1.1rem; /* Moderately sized heading 4 */
    font-weight: 500;
    line-height: 1.4;
    margin-top: 1.2rem;
    margin-bottom: 0.7rem;
}

.secureTermsHub h5 {
    font-size: 1rem; /* Moderately sized heading 5, similar to paragraph text */
    font-weight: 500; /* Differentiate by weight, not just size */
    line-height: 1.5;
    margin-top: 1rem;
    margin-bottom: 0.6rem;
}

/* Paragraph styles */
.secureTermsHub p {
    font-size: 1rem; /* Standard paragraph font size */
    line-height: 1.6; /* Good readability for paragraphs */
    margin-bottom: 1rem; /* Space between paragraphs */
}

/* Unordered list styles */
.secureTermsHub ul {
    list-style-type: disc; /* Default disc bullets */
    margin-top: 1rem; /* Space above the list */
    margin-bottom: 1rem; /* Space below the list */
    padding-left: 1.5rem; /* Indentation for bullet points */
}

/* List item styles */
.secureTermsHub li {
    font-size: 1rem; /* Standard list item font size */
    line-height: 1.6; /* Good readability for list items */
    margin-bottom: 0.5rem; /* Space between list items */
}

#stats h2{
    color: #fff;
}