/* Premium Leader as a Coach - Custom Styles */

:root {
    --primary: #ED592C;
    --primary-light: #F27A51;
    --primary-dark: #D84820;
}

html[data-theme="dark"] {
    color-scheme: dark;
}

html[data-theme="light"] {
    color-scheme: light;
}

/* Smooth transitions */
* {
    transition-property: background-color, border-color, color, fill, stroke, opacity;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
}

html[data-theme="dark"] ::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Hero Animation */
@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.hero-gradient {
    background: linear-gradient(-45deg, var(--primary), var(--primary-light), #ED592C, var(--primary-light));
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

/* Glow Effects */
.glow-primary {
    box-shadow: 0 0 30px rgba(237, 89, 44, 0.3);
}

.glow-primary:hover {
    box-shadow: 0 0 50px rgba(237, 89, 44, 0.5);
}

/* Card Hover Effects */
.card-hover {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

html[data-theme="dark"] .card-hover:hover {
    box-shadow: 0 20px 40px rgba(237, 89, 44, 0.2);
}

/* FAQ Styling */
.faq-item {
    overflow: hidden;
}

.faq-header {
    transition: all 0.3s ease;
    position: relative;
}

.faq-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.faq-item.active .faq-header::after {
    width: 100%;
}

.faq-header i {
    transition: transform 0.3s ease;
}

.faq-item.active .faq-header i {
    transform: rotate(180deg);
}

.faq-answer {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Smooth Scroll Behavior */
html {
    scroll-behavior: smooth;
}

/* Focus Styles for Accessibility */
button:focus,
a:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

html[data-theme="dark"] button:focus,
html[data-theme="dark"] a:focus {
    outline: 2px solid var(--primary-light);
}

/* Mobile Menu Animation */
#mobileMenu {
    animation: slideDown 0.3s ease;
}

/* Badge Pulse Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Responsive Typography */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    h2 {
        font-size: 1.875rem;
    }
    h3 {
        font-size: 1.5rem;
    }
}

/* Print Styles */
@media print {
    header,
    footer {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Glass Morphism Effect */
.glass {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

html[data-theme="dark"] .glass {
    background: rgba(15, 23, 42, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Button Base Styles */
button {
    transition: all 0.3s ease;
}

button:active {
    transform: scale(0.98);
}

/* Links */
a {
    position: relative;
}

a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

a:hover::after {
    width: 100%;
}

/* Section Padding Responsive */
@media (max-width: 768px) {
    section {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
}

/* Form Input Styling */
input,
textarea,
select {
    transition: all 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
    box-shadow: 0 0 0 3px rgba(237, 89, 44, 0.1);
    border-color: var(--primary);
}

/* Loader Animation */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.spinner {
    animation: spin 1s linear infinite;
}

/* Dark Mode Specific Adjustments */
@media (prefers-color-scheme: dark) {
    img {
        opacity: 0.95;
    }

    img:hover {
        opacity: 1;
    }
}
