/* TouchStone CPA Custom Styles with Modern Animations */

:root {
    --primary-color: #5B73E8;
    --secondary-color: #FFA500;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --text-dark: #333;
    --text-light: #666;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
    --border-radius: 0.375rem;
    --border-radius-lg: 0.5rem;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease-in-out;
}

/* Global Animations */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, #4A5EE0 100%);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
    color: white;
}

.preloader-logo {
    width: 200px;
    height: auto;
    margin-bottom: 2rem;
    animation: pulse 2s infinite;
}

.preloader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

/* Page Load Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes bounce {

    0%,
    20%,
    53%,
    80%,
    100% {
        transform: translate3d(0, 0, 0);
    }

    40%,
    43% {
        transform: translate3d(0, -8px, 0);
    }

    70% {
        transform: translate3d(0, -4px, 0);
    }

    90% {
        transform: translate3d(0, -2px, 0);
    }
}

/* Scroll Reveal Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition);
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

.slide-left {
    animation: slideInLeft 0.8s ease-out;
}

.slide-right {
    animation: slideInRight 0.8s ease-out;
}

.fade-in {
    animation: fadeIn 1s ease-out;
}

.fade-up {
    animation: fadeInUp 0.8s ease-out;
}

/* Logo Styles - Responsive */
.navbar-logo {
    height: 60px;
    width: auto;
    max-width: 100%;
    transition: all 0.3s ease;
}

/* Mobile responsive logo */
@media (max-width: 768px) {
    .navbar-logo {
        height: 45px;
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .navbar-logo {
        height: 40px;
        max-width: 180px;
    }
}

/* Logo hover effect */
.navbar-brand:hover .navbar-logo {
    transform: scale(1.05);
}

/* Enhanced Navbar with Animations */
.navbar {
    padding: 0.8rem 0;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 1030;
    position: relative;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.98) !important;
    box-shadow: var(--shadow-sm);
    padding: 0.5rem 0;
}

.navbar-brand {
    padding: 0;
    margin-right: 2rem;
    transition: var(--transition);
}

.navbar-brand:hover {
    transform: scale(1.02);
}

/* Enhanced Navigation Links */
.navbar-nav .nav-link {
    position: relative;
    transition: var(--transition);
    color: var(--text-light) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    margin: 0 0.25rem;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
    z-index: -1;
    opacity: 0.1;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
    transform: translateY(-2px);
}

.navbar-nav .nav-link:hover::before {
    width: 100%;
}

.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
    font-weight: 600;
    background-color: rgba(91, 115, 232, 0.1);
}

.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
    animation: slideInUp 0.3s ease;
}

@keyframes slideInUp {
    from {
        transform: translateX(-50%) translateY(10px);
        opacity: 0;
    }

    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

/* Enhanced Dropdown */
.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: var(--border-radius-lg);
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    background-color: var(--white);
    z-index: 1050 !important;
    min-width: 200px;
    animation: dropdownFadeIn 0.3s ease;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    transition: var(--transition);
    padding: 0.75rem 1.5rem;
    font-weight: 500;
}

.dropdown-item:hover {
    background-color: rgba(91, 115, 232, 0.1);
    color: var(--primary-color);
    transform: translateX(5px);
}

.dropdown-item.active {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white !important;
    transform: none;
}

/* Dropdown Toggle and Position Fixes */
.nav-item.dropdown {
    position: relative;
}

.dropdown-toggle::after {
    transition: transform 0.3s ease;
}

.dropdown.show .dropdown-toggle::after {
    transform: rotate(180deg);
}

/* Ensure dropdown shows properly */
.navbar-nav .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: auto;
    margin-top: 0.125rem;
    min-width: 200px;
}

/* Override Bootstrap default hidden state */
.dropdown-menu:not(.show) {
    display: none !important;
}

.dropdown-menu.show {
    display: block !important;
}

/* Mobile dropdown adjustments */
@media (max-width: 991.98px) {
    .navbar-nav .dropdown-menu {
        position: static;
        float: none;
        width: auto;
        margin-top: 0;
        background-color: var(--white);
        border: 1px solid rgba(0, 0, 0, 0.05);
        box-shadow: none;
        transform: none;
        opacity: 1;
        visibility: visible;
    }

    .dropdown-menu:not(.show) {
        display: none !important;
    }
}

/* Navbar Toggler Animation */
.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
    transition: var(--transition);
}

.navbar-toggler:hover {
    transform: scale(1.1);
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Mobile navbar adjustments */
@media (max-width: 991.98px) {
    .navbar-brand {
        margin-right: 1rem;
    }

    .navbar-collapse {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid #e9ecef;
    }

    .navbar-nav .nav-link {
        padding: 0.7rem 0;
        border-bottom: 1px solid #f8f9fa;
    }

    .navbar-nav .nav-link.active::after {
        bottom: 5px;
        left: 0;
        transform: none;
        width: 100%;
        height: 2px;
    }
}

/* Enhanced Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #4A5EE0 100%);
    color: white;
    padding: 50px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 165, 0, 0.2) 0%, transparent 50%);
    animation: heroFloat 6s ease-in-out infinite;
}

@keyframes heroFloat {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section .display-4 {
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-section .lead {
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-section .btn {
    animation: fadeInUp 1s ease-out 0.6s both;
    transition: var(--transition);
}

.hero-section .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.hero-section img {
    animation: fadeInUp 1s ease-out 0.8s both;
    transition: var(--transition);
}

.hero-section img:hover {
    transform: scale(1.02) rotate(1deg);
}

/* BPU Foundation Modern Mission Section */
.bpu-mission-section {
    background: linear-gradient(to bottom, #ffffff, #f0f4ff);
}

.bpu-mission-card {
    border: none;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    background: white;
}

.bpu-mission-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12) !important;
}

.bpu-logo-modern {
    max-height: 240px;
    width: auto;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.bpu-mission-card:hover .bpu-logo-modern {
    transform: scale(1.05);
}

.feature-icon-circle {
    width: 45px;
    height: 45px;
    background: rgba(91, 115, 232, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.bpu-mission-card:hover .feature-icon-circle {
    background: var(--primary-color);
    color: white;
    transform: rotate(360deg);
}

.bg-primary-subtle {
    background-color: rgba(91, 115, 232, 0.1) !important;
}

.bpu-mission-quote {
    position: relative;
    font-size: 1.05rem;
}

.bpu-mission-quote::before {
    content: '\f10d';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 5px;
    right: 20px;
    font-size: 2rem;
    color: var(--primary-color);
    opacity: 0.1;
}

@media (max-width: 991.98px) {
    .bpu-logo-reveal {
        border-right: none !important;
        border-bottom: 1px solid #eee;
    }

    .bpu-logo-modern {
        max-height: 180px;
    }

    .bpu-mission-content {
        text-align: center;
    }

    .bpu-mission-content .d-flex {
        justify-content: center;
        flex-direction: column;
    }

    .bpu-mission-content .mission-feature {
        justify-content: center;
    }

    .bpu-mission-content .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Enhanced Stats Section */
.stats-section {
    background: linear-gradient(45deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23333" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.5;
}

.stats-section .container {
    position: relative;
    z-index: 2;
}

.stats-section .display-4 {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    animation: countUp 2s ease-out;
}

@keyframes countUp {
    from {
        transform: scale(0.5);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Enhanced Card Animations */
.card-hover {
    transition: var(--transition);
    border: none;
    background: var(--white);
    position: relative;
    overflow: hidden;
}

.card-hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.card-hover:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.card-hover:hover::before {
    left: 100%;
}

.card-hover .card-body {
    transition: var(--transition);
}

.card-hover:hover .card-body {
    transform: translateY(-5px);
}

.card-hover img {
    transition: var(--transition);
}

.card-hover:hover img {
    transform: scale(1.1) rotate(10deg);
}

/* Card stagger animation for groups */
.card-hover:nth-child(1) {
    animation: fadeInUp 0.8s ease-out 0.1s both;
}

.card-hover:nth-child(2) {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.card-hover:nth-child(3) {
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.footer-section {
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.footer-link {
    transition: all 0.3s ease;
    text-decoration: none !important;
}

.footer-link:hover {
    color: var(--primary-color) !important;
}

.footer-link.text-primary {
    color: var(--primary-color) !important;
    font-weight: 600;
}

.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #20ba5a;
    color: #FFF;
    text-decoration: none;
    animation: bounce 1s infinite;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 120px;
    right: 40px;
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 99;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(91, 115, 232, 0.4);
    background: linear-gradient(45deg, #4A5EE0, var(--primary-color));
}

/* Enhanced Buttons */
.btn {
    transition: var(--transition);
    font-weight: 600;
    border-radius: var(--border-radius-lg);
    position: relative;
    overflow: hidden;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), #4A5EE0);
    box-shadow: 0 4px 15px rgba(91, 115, 232, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(91, 115, 232, 0.4);
}

.btn-warning {
    background: linear-gradient(45deg, var(--warning-color), var(--secondary-color));
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
    color: #333 !important;
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.4);
    color: #333 !important;
}

.btn-success {
    background: linear-gradient(45deg, var(--success-color), #20c997);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Enhanced Forms */
.form-control {
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius-lg);
    padding: 0.75rem 1rem;
    transition: var(--transition);
    background-color: #f8f9fa;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(91, 115, 232, 0.25);
    background-color: var(--white);
    transform: translateY(-2px);
}

.form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

/* Enhanced Form Animations */
.form-floating>.form-control:focus~label,
.form-floating>.form-control:not(:placeholder-shown)~label {
    transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
    opacity: 0.65;
}

/* Loading States */
.btn.loading {
    pointer-events: none;
    position: relative;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Enhanced Blockquote */
.blockquote {
    position: relative;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(91, 115, 232, 0.05), rgba(255, 165, 0, 0.05));
    border-radius: var(--border-radius-lg);
    border-left: 4px solid var(--primary-color);
}

.blockquote::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.3;
    font-family: Georgia, serif;
}

.blockquote-footer {
    color: var(--text-light);
    font-style: normal;
}

/* Section Animations */
section {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition);
}

section.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Image Enhancements */
img {
    transition: var(--transition);
}

.img-fluid:hover {
    transform: scale(1.02);
}

/* Progress Bars (if needed) */
.progress {
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    background-color: #e9ecef;
}

.progress-bar {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    animation: progressFill 2s ease-in-out;
}

@keyframes progressFill {
    from {
        width: 0%;
    }
}

/* Alert Enhancements */
.alert {
    border: none;
    border-radius: var(--border-radius-lg);
    position: relative;
    overflow: hidden;
    animation: alertSlideIn 0.3s ease-out;
}

@keyframes alertSlideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.alert-success {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1), rgba(40, 167, 69, 0.05));
    border-left: 4px solid var(--success-color);
}

.alert-danger {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.1), rgba(220, 53, 69, 0.05));
    border-left: 4px solid var(--danger-color);
}

.alert-warning {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1), rgba(255, 193, 7, 0.05));
    border-left: 4px solid var(--warning-color);
}

.alert-info {
    background: linear-gradient(135deg, rgba(23, 162, 184, 0.1), rgba(23, 162, 184, 0.05));
    border-left: 4px solid var(--info-color);
}

/* Homepage Specific Enhancements */
.hero-image-container {
    position: relative;
    animation: fadeInUp 1s ease-out 0.8s both;
}

.floating-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: linear-gradient(45deg, var(--secondary-color), var(--warning-color));
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    animation: bounce 2s infinite;
    z-index: 3;
}

.floating-badge i {
    margin-right: 0.5rem;
}

.hero-buttons {
    animation: fadeInUp 1s ease-out 0.6s both;
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
    transform: translateY(-2px);
}

/* Section Titles */
.section-title {
    position: relative;
    margin-bottom: 2rem;
}

.section-title .highlight {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.section-title .highlight::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

/* Feature List */
.feature-list {
    list-style: none;
    padding: 0;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    font-weight: 500;
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateX(10px);
    color: var(--primary-color);
}

/* Image Containers */
.image-container {
    position: relative;
}

.floating-stats {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: var(--white);
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    animation: float 3s ease-in-out infinite;
}

.stat-item strong {
    display: block;
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 700;
}

.stat-item span {
    color: var(--text-light);
    font-size: 0.9rem;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Enhanced Stats Section */
.stat-card {
    background: var(--white);
    padding: 2.5rem 1.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    animation: pulse 2s infinite;
}

.stat-description {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.counter {
    transition: var(--transition);
}

/* Quote Section Enhancement */
.bg-light {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
}

/* CPA Overview Cards */
.row.g-4 .col-md-4:nth-child(1) .card-hover {
    animation-delay: 0.1s;
}

.row.g-4 .col-md-4:nth-child(2) .card-hover {
    animation-delay: 0.2s;
}

.row.g-4 .col-md-4:nth-child(3) .card-hover {
    animation-delay: 0.3s;
}

.row.mt-2 .col-md-4:nth-child(1) .card-hover {
    animation-delay: 0.4s;
}

.row.mt-2 .col-md-4:nth-child(2) .card-hover {
    animation-delay: 0.5s;
}

.row.mt-2 .col-md-4:nth-child(3) .card-hover {
    animation-delay: 0.6s;
}

/* Tools and Techniques Section */
.tools-section .tool-item {
    transition: var(--transition);
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
}

.tools-section .tool-item:hover {
    background: rgba(91, 115, 232, 0.05);
    transform: translateX(10px);
}

.tools-section .fas {
    width: 50px;
    height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 50%;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.tools-section h5:hover .fas {
    transform: scale(1.1) rotate(10deg);
    box-shadow: var(--shadow-lg);
}

.tools-section h5 {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.tools-section .text-muted {
    line-height: 1.6;
}

/* Newsletter Section Enhancement */
.newsletter-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #4A5EE0 100%);
    position: relative;
    overflow: hidden;
}

.newsletter-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="newsletter-pattern" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23newsletter-pattern)"/></svg>');
}

.newsletter-section .container {
    position: relative;
    z-index: 2;
}

.newsletter-content {
    animation: fadeInUp 1s ease-out;
}

.newsletter-form .form-control {
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: var(--border-radius-lg) 0 0 var(--border-radius-lg);
}

.newsletter-form .form-control:focus {
    background: var(--white);
    box-shadow: none;
    border-color: transparent;
}

.newsletter-form .btn {
    border-radius: 0 var(--border-radius-lg) var(--border-radius-lg) 0;
    font-weight: 600;
}

.newsletter-form .input-group {
    box-shadow: var(--shadow-lg);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    .hero-section {
        padding: 80px 0;
    }

    .hero-section .display-4 {
        font-size: 2.5rem;
    }

    .floating-badge {
        position: static;
        display: inline-block;
        margin-top: 1rem;
    }

    .hero-buttons {
        text-align: center;
    }

    .stat-card {
        margin-bottom: 2rem;
    }

    .feature-item:hover {
        transform: translateX(5px);
    }
}

@media (max-width: 576px) {
    .hero-section .btn-lg {
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
    }

    .stat-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.75rem;
    }
}

/* Authentication Pages */
.auth-left-panel {
    background: linear-gradient(135deg, var(--primary-color) 0%, #4A5EE0 100%);
    position: relative;
    overflow: hidden;
}

.auth-left-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 165, 0, 0.2) 0%, transparent 50%);
    animation: heroFloat 6s ease-in-out infinite;
}

.auth-left-panel>div {
    position: relative;
    z-index: 2;
}

.auth-logo {
    animation: fadeInUp 1s ease-out 0.2s both;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.auth-title {
    animation: fadeInUp 1s ease-out 0.4s both;
    font-weight: 700;
}

.auth-subtitle {
    animation: fadeInUp 1s ease-out 0.6s both;
    opacity: 0.9;
}

.auth-features {
    animation: fadeInUp 1s ease-out 0.8s both;
    margin-top: 2rem;
}

.feature-point {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    opacity: 0.9;
    transition: var(--transition);
}

.feature-point:hover {
    opacity: 1;
    transform: translateX(10px);
}

.feature-point i {
    color: var(--secondary-color);
    font-size: 1.2rem;
}

.auth-right-panel {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
}

.auth-form-container {
    animation: fadeInUp 1s ease-out 0.5s both;
}

.auth-card {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    position: relative;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
}

.auth-form-title {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.auth-card .form-floating {
    margin-bottom: 1.5rem;
}

.auth-card .form-floating .form-control {
    background: rgba(248, 249, 250, 0.8);
    border: 2px solid #e9ecef;
    padding: 1rem;
    height: auto;
}

.auth-card .form-floating .form-control:focus {
    background: var(--white);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(91, 115, 232, 0.25);
    transform: translateY(-2px);
}

.auth-card .form-floating label {
    color: var(--text-light);
    font-weight: 500;
}

.auth-card .btn-primary {
    background: linear-gradient(45deg, var(--primary-color), #4A5EE0);
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: var(--border-radius-lg);
    position: relative;
    overflow: hidden;
}

.auth-card .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.auth-card .btn-primary:hover::before {
    left: 100%;
}

.auth-card .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(91, 115, 232, 0.4);
}

/* Auth form animations */
.auth-card .form-floating:nth-child(1) {
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

.auth-card .form-floating:nth-child(2) {
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.auth-card .btn {
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

.auth-card .text-center a {
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

/* Remember me checkbox */
.auth-card .form-check {
    margin: 1.5rem 0;
}

.auth-card .form-check-input {
    border: 2px solid #e9ecef;
    border-radius: 4px;
}

.auth-card .form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.auth-card .form-check-label {
    color: var(--text-light);
    font-weight: 500;
}

/* Auth links */
.auth-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.auth-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Mobile responsive auth */
@media (max-width: 768px) {
    .auth-card {
        margin: 1rem;
    }

    .auth-card .card-body {
        padding: 2rem 1.5rem !important;
    }

    .feature-point:hover {
        transform: translateX(5px);
    }
}

.pricing-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 80px 0 60px;
    color: white;
    margin-bottom: 60px;
}

.pricing-card {
    border: none;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow: hidden;
    height: 100%;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.pricing-card.featured {
    border: 3px solid #667eea;
    transform: scale(1.05);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-15px);
}

.pricing-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px 20px;
    text-align: center;
}

.pricing-card.featured .pricing-header {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.plan-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.plan-type-badge {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.2);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pricing-body {
    padding: 40px 30px;
}

.price-section {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
}

.price {
    font-size: 3rem;
    font-weight: 800;
    color: #667eea;
    line-height: 1;
}

.price-currency {
    font-size: 1.5rem;
    vertical-align: super;
}

.price-period {
    display: block;
    color: #6c757d;
    font-size: 0.95rem;
    margin-top: 10px;
}

.student-range {
    background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 100%);
    color: #2d3436;
    padding: 12px 20px;
    border-radius: 10px;
    text-align: center;
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.plan-description {
    color: #6c757d;
    font-size: 0.95rem;
    margin-bottom: 25px;
    text-align: center;
    min-height: 45px;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.features-list li {
    padding: 12px 0;
    color: #495057;
    font-size: 0.95rem;
    display: flex;
    align-items: flex-start;
}

.features-list li i {
    color: #28a745;
    margin-right: 12px;
    font-size: 1.1rem;
    margin-top: 2px;
}

.cta-button {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
    color: white;
}

.featured-badge {
    position: absolute;
    top: 20px;
    right: -35px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 8px 40px;
    transform: rotate(45deg);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: #2d3436;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #6c757d;
    margin-bottom: 50px;
}

.plan-section {
    margin-bottom: 80px;
}

@media (max-width: 768px) {
    .pricing-card.featured {
        transform: scale(1);
        margin-bottom: 30px;
    }

    .pricing-card.featured:hover {
        transform: translateY(-15px);
    }

    .price {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }
}


/* Global Style Ends Here */