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

/* Global Resets and Utilities */
body {
    font-family: var(--qb-font-family);
    background-color: var(--qb-bg-main);
    color: var(--qb-text-main);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--qb-navy);
    line-height: 1.2;
    margin-bottom: 0.5em;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; }
h3 { font-size: clamp(1.75rem, 3vw, 2.25rem); }
h4 { font-size: clamp(1.5rem, 2.5vw, 1.75rem); }
h5 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h6 { font-size: 1.1rem; }

p {
    margin-bottom: 1rem;
    color: var(--qb-text-muted);
}

a {
    color: var(--qb-orange);
    text-decoration: none;
    transition: color var(--qb-transition-fast);
}

a:hover {
    color: var(--qb-orange-hover);
    text-decoration: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--qb-gray-100);
}
::-webkit-scrollbar-thumb {
    background: var(--qb-gray-400);
    border-radius: var(--qb-radius-pill);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--qb-gray-600);
}

/* Utilities */
.text-orange { color: var(--qb-orange) !important; }
.text-navy { color: var(--qb-navy) !important; }
.bg-orange { background-color: var(--qb-orange) !important; }
.bg-navy { background-color: var(--qb-navy) !important; }
.bg-orange-light { background-color: var(--qb-orange-light) !important; }

.fw-semibold { font-weight: 600 !important; }
.fw-bold { font-weight: 700 !important; }
.fw-extrabold { font-weight: 800 !important; }

.tracking-wide { letter-spacing: 0.05em !important; }

/* Spacing and Layouts */
.section-padding {
    padding-top: var(--qb-space-12);
    padding-bottom: var(--qb-space-12);
}

@media (max-width: 768px) {
    .section-padding {
        padding-top: var(--qb-space-10);
        padding-bottom: var(--qb-space-10);
    }
}

.glass-panel {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

/* Animations */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 107, 0, 0.4); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(255, 107, 0, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 107, 0, 0); }
}

.animate-fade-up {
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0; /* Starts hidden until animation triggers */
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

/* Adding helper classes */
.text-hover-orange:hover { color: var(--qb-orange) !important; }
.text-hover-white:hover { color: var(--qb-white) !important; }
.filter-white { filter: brightness(0) invert(1); }
.cursor-pointer { cursor: pointer; }
.hover-shadow-sm:hover { box-shadow: var(--qb-shadow-sm) !important; }
.hover-shadow-md:hover { box-shadow: var(--qb-shadow-md) !important; }

/* Focus Accessibility */
:focus-visible {
    outline: 2px solid var(--qb-orange);
    outline-offset: 2px;
}
