*,
*:before,
*:after {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #667eea 100%, #764ba2 100%);
}

/*----------    Header CSS    ----------*/
.enhanced-header {
    background: rgba(255, 255, 255, 0.98);
    padding: 20px 40px;
    border-radius: 15px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: bold;
    color: #667eea;
}

.logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.nav-menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: #667eea;
    cursor: pointer;
}

.nav-menu a.active {
    color: #667eea;
    font-weight: 600;
}

.header-actions {
    display: flex;
    gap: 15px;
}

.btn-enhanced {
    padding: 10px 12px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
}

/* Login Form Styling - Desktop First */
.login-form {
    max-width: 450px;
    width: 100%;
    border-radius: 15px;
    padding: 40px;
    margin: 40px auto;
    background: #f9fafb;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-form h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #1f2937;
}

.login-form p {
    color: #6b7280;
    margin-bottom: 30px;
    font-size: 1rem;
}

.login-form .form-control {
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.login-form .form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    outline: none;
}

.login-form .form-label {
    text-align: left;
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    font-size: 14px;
}

.login-form .btn {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    margin-top: 10px;
}

.login-form .form-check {
    text-align: left;
    margin-bottom: 20px;
}

.login-form .divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 25px 0;
}

.login-form .divider::before,
.login-form .divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e5e7eb;
}

.login-form .divider span {
    padding: 0 15px;
    color: #6b7280;
    font-size: 14px;
}

.login-form .social-login {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.login-form .social-btn {
    flex: 1;
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    background: white;
    transition: all 0.3s ease;
    cursor: pointer;
}

.login-form .social-btn:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.login-form .footer-links {
    margin-top: 25px;
    font-size: 14px;
}

.login-form .footer-links a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.login-form .footer-links a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Tablet Responsive - 768px and below */
@media (max-width: 768px) {
    .login-form {
        max-width: 90%;
        width: 90%;
        padding: 30px 25px;
        margin: 30px auto;
        border-radius: 12px;
    }

    .login-form h2 {
        font-size: 1.75rem;
        margin-bottom: 8px;
    }

    .login-form p {
        font-size: 0.9rem;
        margin-bottom: 25px;
    }

    .login-form .form-control {
        padding: 12px 14px;
        font-size: 14px;
        margin-bottom: 18px;
        border-radius: 8px;
    }

    .login-form .form-label {
        font-size: 13px;
        margin-bottom: 6px;
    }

    .login-form .btn {
        padding: 12px;
        font-size: 15px;
        margin-top: 8px;
    }

    .login-form .divider {
        margin: 20px 0;
    }

    .login-form .social-login {
        flex-direction: column;
        gap: 12px;
    }

    .login-form .social-btn {
        width: 100%;
        padding: 12px;
    }

    .login-form .footer-links {
        margin-top: 20px;
        font-size: 13px;
    }
}

/* Small Mobile - 576px and below */
@media (max-width: 576px) {
    .login-form {
        max-width: 95%;
        width: 100%;
        padding: 25px 20px;
        margin: 12px auto;
        border-radius: 10px;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    }

    .login-form h2 {
        font-size: 1.5rem;
        margin-bottom: 6px;
    }

    .login-form p {
        font-size: 0.85rem;
        margin-bottom: 20px;
    }

    .login-form .form-control {
        padding: 10px 12px;
        font-size: 14px;
        margin-bottom: 15px;
        border-radius: 8px;
    }

    .login-form .form-label {
        font-size: 12px;
        margin-bottom: 5px;
    }

    .login-form .btn {
        padding: 11px;
        font-size: 14px;
        margin-top: 5px;
    }

    .login-form .form-check {
        margin-bottom: 15px;
    }

    .login-form .form-check-label {
        font-size: 13px;
    }

    .login-form .divider {
        margin: 18px 0;
    }

    .login-form .divider span {
        font-size: 13px;
        padding: 0 10px;
    }

    .login-form .social-login {
        gap: 10px;
    }

    .login-form .social-btn {
        padding: 10px;
        font-size: 13px;
    }

    .login-form .footer-links {
        margin-top: 18px;
        font-size: 12px;
    }
}

/* Extra Small Mobile - 400px and below */
@media (max-width: 400px) {
    .login-form {
        max-width: 100%;
        width: 100%;
        padding: 20px 15px;
        margin: 15px auto;
        border-radius: 8px;
    }

    .login-form h2 {
        font-size: 1.3rem;
    }

    .login-form p {
        font-size: 0.8rem;
        margin-bottom: 18px;
    }

    .login-form .form-control {
        padding: 10px;
        font-size: 13px;
    }

    .login-form .btn {
        padding: 10px;
        font-size: 13px;
    }
}

/* Landscape Tablet - 1024px and below */
@media (max-width: 1024px) and (orientation: landscape) {
    .login-form {
        max-width: 800px;
        padding: 30px;
    }

    .login-form h2 {
        font-size: 1.8rem;
    }
}

/* iPad Specific - 768px */
@media (max-width: 768px) and (min-width: 481px) {
    .login-form {
        max-width: 85%;
        padding: 35px 30px;
    }

    .login-form h2 {
        font-size: 1.8rem;
    }

    .login-form .form-control {
        font-size: 15px;
    }

    .login-form .btn {
        font-size: 15px;
    }
}

/* Print Styles */
@media print {
    .login-form {
        box-shadow: none;
        border: 1px solid #e5e7eb;
        page-break-inside: avoid;
    }
}

/* Authentication Buttons Styling */

/* Login Button */
.btn-login {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 10px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
}

.btn-login:hover {
    background: linear-gradient(135deg, #5568d3, #6a3f8f);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
    color: white;
}

.btn-login:active {
    transform: translateY(0);
}

/* Sign Up Button */
.btn-sign {
    background: #3b82f6;
    color: white;
    padding: 10px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
}

.btn-sign:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.4);
    color: white;
}

.btn-sign:active {
    transform: translateY(0);
}

/* Guest Button */
.btn-guest {
    background: #6b7280;
    color: white;
    padding: 10px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
}

.btn-guest:hover {
    background: #4b5563;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(107, 114, 128, 0.3);
    color: white;
}

.btn-guest:active {
    transform: translateY(0);
}

/* Logout Button */
.btn-logout {
    background: #10b981;
    color: white;
    padding: 10px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
}

.btn-logout:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.3);
    color: white;
}

.btn-logout:active {
    transform: translateY(0);
}

/* Optional: Outline Variants */
.btn-login-outline {
    background: transparent;
    color: #667eea;
    padding: 10px 24px;
    border: 2px solid #667eea;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
}

.btn-login-outline:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.btn-sign-outline {
    background: transparent;
    color: #3b82f6;
    padding: 10px 24px;
    border: 2px solid #3b82f6;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
}

.btn-sign-outline:hover {
    background: #3b82f6;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

.btn-guest-outline {
    background: transparent;
    color: #6b7280;
    padding: 10px 24px;
    border: 2px solid #6b7280;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
}

.btn-guest-outline:hover {
    background: #6b7280;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(107, 114, 128, 0.3);
}

/* Button Group Spacing */
.auth-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* Responsive */
@media (max-width: 768px) {
    .btn-login,
    .btn-sign,
    .btn-guest,
    .btn-logout {
        padding: 8px 18px;
        font-size: 13px;
    }

    .auth-buttons {
        gap: 10px;
    }
}

/* Loading State (Optional) */
.btn-login.loading,
.btn-sign.loading,
.btn-guest.loading,
.btn-logout.loading {
    pointer-events: none;
    opacity: 0.7;
    position: relative;
}

.btn-login.loading::after,
.btn-sign.loading::after,
.btn-guest.loading::after,
.btn-logout.loading::after {
    content: '';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    border: 2px solid white;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: translateY(-50%) rotate(360deg);
    }
}

/* Section 1 Hero Container */
.hero-section {
    border-radius: 30px !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.95)) !important;
    position: relative;
    overflow: hidden;
    animation: fadeInScale 1s ease-out;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Animated Background Decorations */
.hero-section::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.15), transparent);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -150px;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(118, 75, 162, 0.12), transparent);
    border-radius: 50%;
    animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(30px, 30px) scale(1.1);
    }
}

/* Main Heading */
.hero-section h1 {
    font-size: 3.5rem !important;
    font-weight: 900;
    line-height: 1.2;
    background: linear-gradient(135deg, #667eea, #764ba2, #667eea);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease-in-out infinite, slideInDown 0.8s ease-out;
    position: relative;
    z-index: 1;
    padding: 0 20px;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0 center;
    }
    50% {
        background-position: 100% center;
    }
}

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

/* Animated Underline */
.hero-section h1::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 6px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 3px;
    animation: expandLine 1.2s ease-out forwards;
    animation-delay: 0.5s;
}

@keyframes expandLine {
    to {
        width: 200px;
    }
}

/* Subheading */
.hero-section h4 {
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.8;
    color: #374151;
    animation: fadeInUp 0.8s ease-out;
    animation-delay: 0.4s;
    animation-fill-mode: both;
    position: relative;
    z-index: 1;
    padding: 30px 40px;
    max-width: 1000px;
    margin: 0 auto;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Highlight important words */
.highlight {
    color: #667eea;
    font-weight: 700;
    position: relative;
    display: inline-block;
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 8px;
    background: rgba(102, 126, 234, 0.2);
    z-index: -1;
    animation: highlightSlide 5s ease-in-out infinite;
}

@keyframes highlightSlide {
    0%, 100% {
        width: 100%;
        left: 0;
    }
    50% {
        width: 0;
        left: 50%;
    }
}

/* Province Pills */
.province-pills {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 30px;
    animation: fadeInUp 0.8s ease-out;
    animation-delay: 0.8s;
    animation-fill-mode: both;
    position: relative;
    z-index: 1;
}

.province-pill {
    padding: 12px 25px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 25px;
    font-weight: 600;
    color: #374151;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    animation: popIn 0.6s ease-out;
    animation-fill-mode: both;
}

.province-pill:nth-child(1) {
    animation-delay: 1s;
}

.province-pill:nth-child(2) {
    animation-delay: 1.1s;
}

.province-pill:nth-child(3) {
    animation-delay: 1.2s;
}

.province-pill:nth-child(4) {
    animation-delay: 1.3s;
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(0);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.province-pill:hover {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

/* Icon before province names */
.province-pill::before {
    content: '📍';
    margin-right: 5px;
}

/* Floating particles */
.particle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    opacity: 0.15;
    animation: floatParticle 10s ease-in-out infinite;
}

@keyframes floatParticle {
    0%, 100% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(50px, -50px);
    }
    50% {
        transform: translate(-30px, -80px);
    }
    75% {
        transform: translate(40px, -40px);
    }
}

.particle-1 {
    width: 60px;
    height: 60px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.particle-2 {
    width: 40px;
    height: 40px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.particle-3 {
    width: 50px;
    height: 50px;
    bottom: 15%;
    left: 15%;
    animation-delay: 4s;
}

.particle-4 {
    width: 35px;
    height: 35px;
    top: 30%;
    right: 20%;
    animation-delay: 6s;
}

/* Stats Counter */
.stats-row {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 40px;
    animation: fadeInUp 0.8s ease-out;
    animation-delay: 1.4s;
    animation-fill-mode: both;
    position: relative;
    z-index: 1;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    animation: countUp 2s ease-out;
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.stat-label {
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 600;
    margin-top: 5px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.2rem !important;
    }

    .hero-section h4 {
        font-size: 1.1rem;
        padding: 20px 15px;
    }

    .province-pills {
        gap: 10px;
    }

    .province-pill {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .stats-row {
        flex-direction: column;
        gap: 20px;
    }

    .stat-number {
        font-size: 2rem;
    }
}

/* Section 4 Animations */
.section4-container {
    border-radius: 25px !important;
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    animation: fadeInScale 0.8s ease-out;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Decorative Background Elements */
.section4-container::before {
    content: '';
    position: absolute;
    top: -150px;
    left: -150px;
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08), rgba(118, 75, 162, 0.08));
    border-radius: 50%;
    animation: float 10s ease-in-out infinite;
}

.section4-container::after {
    content: '';
    position: absolute;
    bottom: -150px;
    right: -150px;
    width: 450px;
    height: 450px;
    background: linear-gradient(135deg, rgba(118, 75, 162, 0.08), rgba(102, 126, 234, 0.08));
    border-radius: 50%;
    animation: float 12s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    50% {
        transform: translate(30px, 30px) rotate(180deg);
    }
}

/* Section 4-A: Welcome Section */
.section-4-a {
    position: relative;
    z-index: 1;
    padding: 40px 0;
}

.section-4-a .head-h2 {
    animation: slideInLeft 0.8s ease-out;
    animation-delay: 0.2s;
    animation-fill-mode: both;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-70px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.section-4-a .head-h2 h2 {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.3;
    position: relative;
    padding-bottom: 20px;
}

.section-4-a .head-h2 h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
    animation: expandWidth 0.4s ease-out;
    animation-delay: 0.8s;
    animation-fill-mode: both;
}

@keyframes expandWidth {
    from {
        width: 0;
    }
    to {
        width: 100px;
    }
}

/* Text Animation Effect */
.section-4-a .head-h2 h2 {
    overflow: hidden;
}

.section-4-a .head-h2 h2::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Top Right Image */
.section-4-a .col-md-6:last-child {
    animation: slideInRight 0.2s ease-out;
    animation-delay: 0.5s;
    animation-fill-mode: both;
    position: relative;
    z-index: 1;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.section-4-a img {
    border-radius: 20px !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    transition: all 0.4s ease;
    position: relative;
}

.section-4-a img:hover {
    transform: scale(1.05) rotate(-1deg);
    box-shadow: 0 20px 50px rgba(102, 126, 234, 0.3);
}

/* Image decorative frame */
.section-4-a .col-md-6:last-child > div {
    position: relative;
}

.section-4-a .col-md-6:last-child > div::before {
    content: '';
    position: absolute;
    top: -19px;
    right: 8px;
    width: 100%;
    height: 100%;
    border: 3px solid #667eea;
    border-radius: 25px;
    opacity: 0.3;
    z-index: -1;
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.03);
        opacity: 0.5;
    }
}

/* Section 4-B: Description Section */
.section-4-b {
    position: relative;
    z-index: 1;
    padding: 40px 0;
}

.section-4-b p {
    font-size: 1.1rem;
    line-height: 1.9;
    color: #374151;
    animation: fadeInUp 0.8s ease-out;
    animation-delay: 0.6s;
    animation-fill-mode: both;
    padding: 30px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #667eea;
    position: relative;
    overflow: hidden;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-4-b p::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 15px;
    font-size: 4rem;
    color: rgba(102, 126, 234, 0.1);
    font-weight: bold;
    line-height: 1;
}

.section-4-a .container .row .col-md-6 img:hover {
    transform: scale(1.04) rotate(-3deg) !important;
    box-shadow: 0 25px 60px rgba(102, 126, 234, 0.4);
}

.section-4-b .container .row .col-md-6 .row .col-6 img:hover {
    transform: scale(1.03) rotate(1deg) !important;
    box-shadow: 0 25px 60px rgba(102, 126, 234, 0.4);
}

/* Bottom Images Grid */
.section-4-b .row .col-6:first-child {
    animation: zoomInRotate 0.8s ease-out;
    animation-delay: 0.7s;
    animation-fill-mode: both;
}

.section-4-b .row .col-6:last-child {
    animation: zoomInRotate 0.8s ease-out;
    animation-delay: 0.9s;
    animation-fill-mode: both;
}

@keyframes zoomInRotate {
    from {
        opacity: 0;
        transform: scale(0.5) rotate(-10deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

.section-4-b img {
    border-radius: 15px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.section-4-b img:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3);
}

.section-4-b .col-6:hover::after {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

/* Floating icons decoration */
.floating-icon {
    position: absolute;
    font-size: 2rem;
    opacity: 0.15;
    animation: floatIcon 4s ease-in-out infinite;
    z-index: 0;
}

@keyframes floatIcon {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(10deg);
    }
}

.icon-1 {
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.icon-2 {
    top: 60%;
    right: 10%;
    animation-delay: 1s;
}

.icon-3 {
    bottom: 15%;
    left: 8%;
    animation-delay: 2s;
}

/* Responsive */
@media (max-width: 768px) {
    .section-4-a .head-h2 h2 {
        font-size: 1.8rem;
    }

    .section-4-b p {
        font-size: 1rem;
        padding: 20px;
    }

    .section-4-a .col-md-6:last-child,
    .section-4-a .head-h2,
    .section-4-b p,
    .section-4-b .row .col-6 {
        animation: fadeInUp 0.8s ease-out;
    }
}

/* Scroll reveal effect */
.reveal {
    opacity: 0;
    transform: translateY(30px);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s ease-out;
}

@media (max-width: 968px) {
    .enhanced-header {
        flex-direction: column;
        gap: 20px;
    }

    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }
}

.bd-placeholder-img {
    font-size: 1.125rem;
    text-anchor: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
}

@media (min-width: 768px) {
    .bd-placeholder-img-lg {
        font-size: 3.5rem;
    }
}

/***----------    Section #5 Animations CSS    ----------***/
.section5 {
    border-radius: 25px !important;
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    animation: fadeInScale 0.8s ease-out;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Decorative Background */
.section5::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(30px, 30px);
    }
}

/* Header Section */
.section5 .text-center h3 {
    font-weight: 800;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: slideDown 0.8s ease-out;
    position: relative;
    display: inline-block;
}

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

.section5 .text-center h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
    animation: expandWidth 0.8s ease-out;
    animation-delay: 0.4s;
    animation-fill-mode: both;
}

@keyframes expandWidth {
    from {
        width: 0;
    }
    to {
        width: 120px;
    }
}

.section5 .text-center p {
    color: #6b7280;
    font-size: 1.1rem;
    animation: fadeIn 0.8s ease-out;
    animation-delay: 0.3s;
    animation-fill-mode: both;
}

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

/* Features List */
.features-list {
    list-style: none;
    padding: 0;
    position: relative;
    z-index: 1;
}

.features-list li {
    padding: 18px 20px;
    margin-bottom: 12px;
    background: white;
    border-radius: 12px;
    border-left: 4px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: slideInLeft 0.6s ease-out;
    animation-fill-mode: both;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

/* Staggered animation for list items */
.features-list li:nth-child(1) {
    animation-delay: 0.5s;
}

.features-list li:nth-child(2) {
    animation-delay: 0.6s;
}

.features-list li:nth-child(3) {
    animation-delay: 0.7s;
}

.features-list li:nth-child(4) {
    animation-delay: 0.8s;
}

.features-list li:nth-child(5) {
    animation-delay: 0.9s;
}

.features-list li:nth-child(6) {
    animation-delay: 1s;
}

.features-list li:nth-child(7) {
    animation-delay: 1.1s;
}

.features-list li:nth-child(8) {
    animation-delay: 1.2s;
}

.features-list li:nth-child(9) {
    animation-delay: 1.3s;
}

.features-list li:nth-child(10) {
    animation-delay: 1.4s;
}

.features-list li:nth-child(11) {
    animation-delay: 1.5s;
}

.features-list li:nth-child(12) {
    animation-delay: 1.6s;
}

.features-list li:nth-child(13) {
    animation-delay: 1.7s;
}

.features-list li:nth-child(14) {
    animation-delay: 1.8s;
}

.features-list li:nth-child(15) {
    animation-delay: 1.9s;
}

.features-list li:nth-child(16) {
    animation-delay: 2s;
}

.features-list li:nth-child(17) {
    animation-delay: 2.1s;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Checkmark icon */
.features-list li::before {
    content: '✓';
    position: absolute;
    left: -30px;
    top: 50%;
    transform: translateY(-50%);
    width: 26px;
    height: 26px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.3s ease;
    opacity: 0;
}

.features-list li:hover::before {
    left: -15px;
    opacity: 1;
}

/* Hover effects */
.features-list li:hover {
    transform: translateX(15px);
    border-left-color: #667eea;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
}

.features-list li::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: left 0.5s ease;
}

.features-list li:hover::after {
    left: 100%;
}

/* Image Section */
.image-wrapper {
    position: relative;
    z-index: 1;
    animation: slideInRight 0.8s ease-out;
    animation-delay: 0.4s;
    animation-fill-mode: both;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.image-wrapper img {
    border-radius: 20px !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    transition: all 0.4s ease;
    position: relative;
}

.image-wrapper img:hover {
    transform: scale(1.03) rotate(1deg);
    box-shadow: 0 25px 60px rgba(102, 126, 234, 0.3);
}

/* Decorative frame around image */
.image-wrapper::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: 20px;
    bottom: 20px;
    border: 3px solid #667eea;
    border-radius: 25px;
    opacity: 0.3;
    z-index: -1;
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.02);
        opacity: 0.5;
    }
}

/* Badge counters */
.feature-badge {
    display: inline-block;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 10px;
    animation: scaleIn 0.3s ease-out;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .features-list li {
        animation: fadeInUp 0.6s ease-out;
        animation-fill-mode: both;
    }

    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .image-wrapper {
        margin-top: 30px;
    }

    .section5 .text-center h3 {
        font-size: 2rem !important;
    }
}

/* Counter animation for total features */
.feature-count {
    display: inline-block;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 700;
    margin-top: 15px;
    animation: bounceIn 0.8s ease-out;
    animation-delay: 2.2s;
    animation-fill-mode: both;
}

@keyframes bounceIn {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

#top-menu-section {
    text-align: center;
}

#top-menu-section a {
    font-size: 12px;
    font-family: "Lato", sans-serif;
    text-decoration: none;
    color: #a0a0a0;
}

.pk-site-title {
    font-size: 30px !important;
    padding: 6px 16px !important;
}

.pk-site-logo img {
    height: 34px;
    width: auto;
}

.pk-site-title:hover {
    color: #f2f2f2;
}

#header-section {
    margin: auto;
    display: flex;
    width: 100%;
    height: 60px;
}

.features-list li {
    margin-bottom: 12px;
}

/* Why Us Container */
.why-us-container {
    border-radius: 25px !important;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    animation: fadeInScale 0.8s ease-out;
    overflow: hidden;
    position: relative;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Decorative Background Elements */
.why-us-container::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.why-us-container::after {
    content: '';
    position: absolute;
    bottom: -9%;
    left: -8%;
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, rgba(118, 75, 162, 0.1), rgba(102, 126, 234, 0.1));
    border-radius: 50%;
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    50% {
        transform: translate(30px, 30px) rotate(180deg);
    }
}

/* Title Section */
.why-us-title {
    position: relative;
    z-index: 1;
    animation: slideDown 0.8s ease-out;
    animation-delay: 0.2s;
    animation-fill-mode: both;
}

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

.why-us-title h1 {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
    padding: 5px;
}

.why-us-title h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
    animation: expandWidth 0.8s ease-out;
    animation-delay: 0.6s;
    animation-fill-mode: both;
}

@keyframes expandWidth {
    from {
        width: 0;
    }
    to {
        width: 100px;
    }
}

.subtitle {
    color: #6b7280;
    font-size: 1.2rem;
    font-weight: 500;
    margin-top: 20px;
    animation: fadeIn 0.8s ease-out;
    animation-delay: 0.4s;
    animation-fill-mode: both;
}

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

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 50px 0;
    position: relative;
    z-index: 1;
}

.feature-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.feature-card:nth-child(1) {
    animation-delay: 0.6s;
}

.feature-card:nth-child(2) {
    animation-delay: 0.8s;
}

.feature-card:nth-child(3) {
    animation-delay: 1s;
}

.feature-card:nth-child(4) {
    animation-delay: 1.2s;
}

.feature-card:nth-child(5) {
    animation-delay: 1.4s;
}

.feature-card:nth-child(6) {
    animation-delay: 1.6s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.25);
    border-color: #667eea;
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.feature-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.feature-description {
    color: #6b7280;
    line-height: 1.7;
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
}

/* Stats Section */
.stats-section {
    padding: 50px 30px;
    border-radius: 20px;
    margin-top: 50px;
    position: relative;
    z-index: 1;
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out;
    animation-delay: 1.8s;
    animation-fill-mode: both;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: -120%;
    right: -12%;
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, rgba(118, 75, 162, 0.1), rgba(102, 126, 234, 0.1));
    border-radius: 50%;
    animation: rotate 20s ease-in-out infinite reverse;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 1;
}

.stat-item {
    text-align: center;
    color: white;
    animation: scaleIn 0.6s ease-out;
    animation-fill-mode: both;
}

.stat-item:nth-child(1) {
    animation-delay: 2s;
}

.stat-item:nth-child(2) {
    animation-delay: 2.2s;
}

.stat-item:nth-child(3) {
    animation-delay: 2.4s;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.stat-label {
    font-size: 1.1rem;
    font-weight: 500;
    opacity: 0.9;
}

/* Responsive */
@media (max-width: 768px) {
    .why-us-title h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .stat-number {
        font-size: 2rem;
    }
}

.paper-maker-topnav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
    background-color: white;
}

.paper-maker-topnav a {
    text-align: center;
    font-size: 17px;
    font-family: "Lato", sans-serif;
    position: relative;
    text-decoration: none;
    color: #a0a0a0;
    margin: 0 5px;
    letter-spacing: 0.05em;
    padding: 0 10px;
}

.paper-maker-topnav a:hover {
    color: black;
}

.paper-maker-topnav a:not(:first-child):after {
    content: "";
    background-color: #ff3c78;
    height: 3px;
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 0;
    transition: 0.5s;
}

.paper-maker-topnav a:not(:first-child):hover:after {
    width: 100%;
}

@media screen and (max-width: 708px) {
    .paper-maker-topnav {
        width: 100%;
    }

    .paper-maker-topnav {
        display: flex;
        width: 100%;
        margin: auto;
        padding-left: 12px;
    }

    .paper-maker-topnav a {
        padding: 0;
        letter-spacing: 0;
    }
}

@media screen and (max-width: 623px) {
    .paper-maker-topnav a {
        padding-left: 0;
        font-size: 14px;
    }
}

@media screen and (max-width: 545px) {
    .paper-maker-topnav a {
        font-size: 12px;
        color: black;
    }

    .paper-maker-topnav .generate-test span,
    .paper-maker-topnav .saved-paper span {
        display: none;
    }

    .paper-maker-topnav a {
        margin: 0;
        padding: 0 4px;
    }

    .paper-maker-topnav {
        padding-left: 0;
    }
}

.paper-maker-footer {
    background-color: #333;
    color: #f2f2f2;
    padding: 16px;
}

/*select all style*/
#Select-All-Chapters, #Select-All-Topics {
    display: inline-block;
}

#primary {
    min-height: 440px;
}

#tm-main-content input[type="radio"] {
    display: none;
}

/*loader*/
#footer-section .bg-overlay {
    background: rgb(66 64 64 / 46%);
    z-index: 2222;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#footer-section .loader {
    border: 10px solid #000;
    border-radius: 50%;
    border-top: 10px solid #ddd;
    width: 70px;
    height: 70px;
    -webkit-animation: spin 2s linear infinite;
    animation: spin 2s linear infinite;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

/* Safari */
@-webkit-keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

#filterSubject {
    padding: 5px;
    width: 100%;
    background-color: #fff;
}

.lbl {
    width: 125px;
    margin-top: 5px;
}

#tm-main-tabs .active {
    background: #333;
    color: #fff;
}

#tm-main-tabs .tm-tabs:hover:not(.active) {
    background-color: #ddd;
    color: black;
}

#tm-main-tabs .tm-tabs {
    font-size: 21px;
    cursor: pointer;
    width: 20%;
    text-align: center;
}

#header-section {
    min-height: 57px;
}

#footer-section {
    min-height: 56px;
}

.text-justify {
    text-align: justify;
    text-align-last: center;
}

/* Carousel Container */
.carousel-section {
    margin: 40px 0;
    animation: fadeInScale 0.8s ease-out;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

#carouselExampleRide {
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
}

/* Carousel Items */
#carouselExampleRide .carousel-inner .carousel-item {
    max-height: 600px;
    position: relative;
    transition: transform 0.6s ease-in-out;
}

#carouselExampleRide .carousel-inner .carousel-item img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    filter: brightness(0.7);
    transition: all 0.6s ease;
}

#carouselExampleRide .carousel-inner .carousel-item.active img {
    filter: brightness(0.75);
    animation: zoomIn 8s ease-out;
}

@keyframes zoomIn {
    from {
        transform: scale(1.2);
    }
    to {
        transform: scale(1);
    }
}

/* Overlay Gradient */
#carouselExampleRide .carousel-inner .carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.4), rgba(118, 75, 162, 0.4));
    z-index: 1;
    pointer-events: none;
}

/* Text Caption */
#carouselExampleRide .carousel-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 900px;
    z-index: 2;
}

/* Main Heading */
#carouselExampleRide .carousel-caption .h1 {
    font-size: 3rem;
    font-weight: 900;
    color: white;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px 40px;
    border-left: 6px solid #667eea;
    border-right: 6px solid #764ba2;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    animation: slideInUp 3.2s ease-out;
    position: relative;
    overflow: hidden;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Shimmer Effect */
#carouselExampleRide .carousel-caption .h1::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 6.3s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 200%;
    }
}

/* Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
    width: 60px;
    height: 60px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(102, 126, 234, 0.8);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.3s ease;
}

#carouselExampleRide:hover .carousel-control-prev,
#carouselExampleRide:hover .carousel-control-next {
    opacity: 1;
}

.carousel-control-prev {
    left: 20px;
}

.carousel-control-next {
    right: 20px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: rgba(118, 75, 162, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 25px;
    height: 25px;
}

/* Carousel Indicators */
.carousel-indicators {
    bottom: 20px;
    z-index: 3;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid white;
    margin: 0 8px;
    transition: all 0.3s ease;
}

.carousel-indicators button.active {
    width: 40px;
    border-radius: 8px;
    background-color: white;
}

/* Floating Elements */
.floating-badge {
    position: absolute;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.9rem;
    z-index: 3;
    animation: float 3s ease-in-out infinite;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

.badge-1 {
    top: 30px;
    left: 30px;
    animation-delay: 0s;
}

.badge-2 {
    top: 30px;
    right: 30px;
    animation-delay: 1s;
}

.badge-3 {
    bottom: 30px;
    left: 30px;
    animation-delay: 2s;
}

/* Feature Tags Below Carousel */
.feature-tags {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out;
    animation-delay: 0.3s;
    animation-fill-mode: both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-tag {
    background: white;
    padding: 15px 30px;
    border-radius: 15px;
    font-weight: 600;
    color: #374151;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-tag:hover {
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.5);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
}

.feature-tag .icon {
    font-size: 1.5rem;
}

/* Pulse Animation for Active Slide */
.carousel-item.active .h1 {
    animation: slideInUp 0.8s ease-out, pulse 2s ease-in-out 1s;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

/* Responsive */
@media (max-width: 768px) {
    #carouselExampleRide .carousel-inner .carousel-item {
        max-height: 400px;
    }

    #carouselExampleRide .carousel-inner .carousel-item img {
        height: 400px;
    }

    #carouselExampleRide .carousel-caption .h1 {
        font-size: 1.5rem;
        padding: 20px 25px;
    }

    .floating-badge {
        font-size: 0.75rem;
        padding: 8px 15px;
    }

    .feature-tag {
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 45px;
        height: 45px;
    }
}

/* carousel styling ends here */

.g-col-6 img {
    width: 415px;
}

section .row .col-lg-6 figure img {
    max-width: 100%;
    height: auto;

}

.col-lg-6 figure img {
    min-width: 100%;
}

/* section-2 styling flip-card starts */
/* Section Heading */
.section-heading {
    margin: 60px 0 40px;
    animation: fadeInDown 0.8s ease-out;
}

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

.section-heading h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    line-height: 1.4;
    position: relative;
    display: inline-block;
}

.section-heading h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: white;
    border-radius: 2px;
    animation: expandWidth 0.8s ease-out;
    animation-delay: 0.3s;
    animation-fill-mode: both;
}

@keyframes expandWidth {
    from {
        width: 0;
    }
    to {
        width: 120px;
    }
}

.section-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-top: 25px;
    font-weight: 500;
    animation: fadeIn 0.8s ease-out;
    animation-delay: 0.4s;
    animation-fill-mode: both;
}

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

/* Flip Card Container */
.flip-cards-section {
    margin-top: 60px;
    animation: fadeInUp 0.8s ease-out;
    animation-delay: 0.2s;
    animation-fill-mode: both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.flip-card {
    background-color: transparent;
    width: 100%;
    max-width: 380px;
    height: 420px;
    margin: auto;
    perspective: 1000px;
    animation: popIn 0.8s ease-out;
    animation-fill-mode: both;
}

.flip-card:nth-child(1) {
    animation-delay: 0.4s;
}

.flip-card:nth-child(2) {
    animation-delay: 0.6s;
}

.flip-card:nth-child(3) {
    animation-delay: 0.8s;
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    border-radius: 20px;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

/* Front Side */
.flip-card-front {
    background: white;
    display: flex;
    flex-direction: column;
    /*position: relative;*/
}

.flip-card-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.flip-card:hover .flip-card-front img {
    transform: scale(1.1);
}

/* Overlay on front */
.flip-card-front::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 60%, rgba(0, 0, 0, 0.7));
    z-index: 1;
    transition: all 0.6s ease;
}

.flip-card:hover .flip-card-front::before {
    background: linear-gradient(to bottom, transparent 40%, rgba(0, 0, 0, 0.8));
}

/* Back Side */
.flip-card-back {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 30px;
    position: relative;
    overflow: hidden;
}

/* Decorative circles on back */
.flip-card-back::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.flip-card-back::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.flip-card-back h3 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.flip-card-back p {
    font-size: 1rem;
    line-height: 1.7;
    position: relative;
    z-index: 1;
    opacity: 0.95;
}

/* Icon on back */
.card-icon {
    width: 70px;
    height: 70px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

/* Hover effects for entire card */
.flip-card {
    transition: transform 0.3s ease;
}

.flip-card:hover {
    transform: translateY(-10px);
}

/* Responsive Design */
@media (max-width: 992px) {
    .flip-card {
        max-width: 320px;
        height: 380px;
    }

    .section-heading h2 {
        font-size: 2rem;
    }

    .flip-card-back h3 {
        font-size: 1.5rem;
    }

    .flip-card-back p {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) and (min-width: 576px) {
    .flip-card {
        max-width: 280px;
        height: 340px;
    }

    .flip-card-back h3 {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }

    .flip-card-back p {
        font-size: 0.85rem;
        padding: 0 10px;
    }

    .card-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

@media (max-width: 575px) {
    .flip-card {
        max-width: 90%;
        height: 400px;
        margin-bottom: 30px;
    }

    .section-heading h2 {
        font-size: 1.5rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }
}

@media (min-width: 1200px) {
    .container, .container-lg, .container-md, .container-sm, .container-xl {
        max-width: 1272px;
    }
}

/* make responsive generate sub-menu */
@media (max-width: 600px) {
    #tm-main-tabs .tm-tabs {
        font-size: 14px;
    }

    #tm-main-tabs .tm-tabs.p-3 {
        padding: 10px 0 !important;
    }
}

/* make design page responsive */
#generate-content .mobile-view {
    display: none;
}

@media (max-width: 991px) {
    #generate-content .desktop-view {
        display: none
    }

    #generate-content .mobile-view {
        margin: 5px 0;
        display: block;
    }

    #generate-content .mobile-view + div {
        margin: 5px 0;
    }

    #generate-content .questionTopic {
        border: 1px solid #212529 !important;
        margin-top: 20px !important;
    }

    #generate-content .border-dark {
        border: none !important;
    }
}
/***-------------     Responsiveness     --------------***/

@media (max-device-width: 425px) {
    .enhanced-header {
        padding: 13px 0;
        border-radius: 0;
        gap: 10px;
    }
    .nav-menu {
        gap: 12px;
    }
}

@media (max-device-width: 1024px) {
    .enhanced-header {
        padding: 15px;
        border-radius: 0;
        gap: 18px;
    }
    .nav-menu {
        gap: 20px;
    }
}
