/* Custom styles for KamateRaho */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Enhanced Header Styles */
.navbar-custom {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4edf9 100%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    animation: fadeInDown 0.5s ease-out;
}

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

.navbar-brand {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a2a6c !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.navbar-nav .nav-link {
    color: #1a2a6c !important;
    font-weight: 500;
    margin: 0 5px;
    padding: 8px 15px;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #1a2a6c !important;
    background: rgba(26, 42, 108, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.wallet-display {
    background: rgba(26, 42, 108, 0.1);
    padding: 8px 15px;
    border-radius: 30px;
    backdrop-filter: blur(5px);
}

.balance-amount {
    color: #1a2a6c;
    font-weight: 700;
    font-size: 1.1rem;
}

.btn-login, .btn-register, .btn-withdraw, .btn-user-profile {
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.btn-login:hover, .btn-register:hover, .btn-withdraw:hover, .btn-user-profile:hover {
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* Focus styles for accessibility */
.navbar-nav .nav-link:focus {
    outline: 2px solid #1a2a6c;
    outline-offset: 2px;
}

.btn:focus {
    outline: 2px solid #1a2a6c;
    outline-offset: 2px;
}

.form-control:focus {
    border-color: #1a2a6c;
    box-shadow: 0 0 0 0.2rem rgba(26, 42, 108, 0.25);
}

.btn-login {
    background: transparent;
    border: 2px solid #1a2a6c;
    color: #1a2a6c;
}

.btn-login:hover {
    background: #1a2a6c;
    color: white;
    transform: translateY(-2px);
}

.btn-register {
    background: #1a2a6c;
    color: white;
    border: 2px solid #1a2a6c;
}

.btn-register:hover {
    background: transparent;
    color: #1a2a6c;
    transform: translateY(-2px);
}

.btn-withdraw {
    background: #1a2a6c;
    border: 2px solid #1a2a6c;
    color: white;
}

.btn-withdraw:hover {
    background: #0d1a4d;
    border-color: #0d1a4d;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(26, 42, 108, 0.3);
}

.btn-user-profile {
    background: transparent;
    border: 2px solid #1a2a6c;
    color: #1a2a6c;
}

.btn-user-profile:hover {
    background: #1a2a6c;
    color: white;
    transform: translateY(-2px);
}

.dropdown-menu {
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    animation: fadeIn 0.3s ease-out;
    background: #f5f7fa;
}

.dropdown-item {
    transition: all 0.2s ease;
    border-radius: 5px;
    margin: 2px 10px;
}

.dropdown-item:hover {
    background: #1a2a6c;
    color: white;
}

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

/* Enhanced Hero Section Styles */
.hero {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4edf9 100%);
    position: relative;
    overflow: hidden;
}

/* Decorative elements */
.hero::before {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(26, 42, 108, 0.1) 0%, rgba(247, 183, 51, 0.1) 100%);
    top: -100px;
    right: -100px;
    z-index: 0;
}

.hero::after {
    content: "";
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(247, 183, 51, 0.1) 0%, rgba(255, 110, 127, 0.1) 100%);
    bottom: -80px;
    left: -80px;
    z-index: 0;
}

/* Stats Section */
.stats {
    display: flex;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

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

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

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.users-icon {
    background: linear-gradient(135deg, #1a2a6c, #f7b733);
}

.rupee-icon {
    background: linear-gradient(135deg, #3498db, #8e44ad);
}

.stat-content {
    
}

.stat-number {
    font-weight: 700;
    font-size: 1.5rem;
    color: #1a2a6c;
}

.stat-label {
    color: #555;
}

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

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 120px 5% 80px;
    min-height: 100vh;
    gap: 5%; /* Equal gap between content and visual */
    position: relative;
    z-index: 1;
}

/* Left Content */
.hero-content {
    flex: 1;
    max-width: 50%;
    padding: 30px;
    border-radius: 20px;
      animation: slideInLeft 0.8s ease-out;
}

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

/* Gradient Heading */
.hero-content h1 {
    font-size: 3.8rem;
    font-weight: 700;
    background: linear-gradient(90deg, #1a2a6c, #f7b733, #ff6e7f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0 0 20px 0;
    line-height: 1.2;
}

/* Typing Effect */
.typing-text {
    font-size: 2rem;
    font-weight: 600;
    color: #333;
    border-right: 3px solid #1a2a6c;
    white-space: nowrap;
    overflow: hidden;
    display: inline-block;
    animation: blink 0.7s infinite step-end;
    min-height: 50px;
    margin-bottom: 20px;
}

@keyframes blink {
    50% { border-color: transparent; }
}

/* Paragraph */
.hero-content p {
    margin: 20px 0;
    font-size: 1.2rem;
    color: #555;
    line-height: 1.6;
}

/* Buttons */
.buttons {
    display: flex;
    gap: 20px; /* Equal gap between buttons */
    margin-top: 30px;
}

.buttons a {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4edf9 100%);
    color: rgb(0, 0, 0);
    box-shadow: 0 4px 15px rgba(26, 42, 108, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(26, 42, 108, 0.4);
}

.btn-outline {
    border: 2px solid #1a2a6c;
    color: #1a2a6c;
}

.btn-outline:hover {
    background: #1a2a6c;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(26, 42, 108, 0.3);
}

/* Right Side Carousel */
.hero-visual {
    flex: 1;
    max-width: 45%;
    position: relative;
    height: 500px;
    overflow: hidden;
    border-radius: 25px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    animation: float 6s ease-in-out infinite;
    animation-delay: 0.3s;
    opacity: 0;
    animation: slideInRight 0.8s ease-out 0.3s forwards, float 6s ease-in-out 0.8s infinite;
}

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

.hero-visual img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    animation: fade 12s infinite;
    border-radius: 25px;
    transition: transform 0.3s ease;
}

.hero-visual img:hover {
    transform: scale(1.02);
}

.hero-visual img:nth-child(1) { animation-delay: 0s; }
.hero-visual img:nth-child(2) { animation-delay: 4s; }
.hero-visual img:nth-child(3) { animation-delay: 8s; }

@keyframes fade {
    0% { opacity: 0; }
    10% { opacity: 1; }
    30% { opacity: 1; }
    40% { opacity: 0; }
    100% { opacity: 0; }
}

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

/* Responsive adjustments for hero section */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 100px 5% 60px;
        gap: 40px;
    }
    
    .hero-content, .hero-visual {
        max-width: 100%;
        width: 100%;
    }
    
    .hero-content {
        padding: 20px;
        background: rgba(255, 255, 255, 0.8);
    }
    
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .typing-text {
        font-size: 1.6rem;
        justify-content: center;
    }
    
    .buttons {
        justify-content: center;
    }
    
    .stats {
        justify-content: center;
    }
    
    .hero-visual {
        height: 400px;
        animation: float 6s ease-in-out infinite;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 80px 5% 40px;
        gap: 30px;
    }
    
    .hero-content h1 {
        font-size: 2.3rem;
    }
    
    .typing-text {
        font-size: 1.4rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .buttons a {
        width: 100%;
        text-align: center;
    }
    
    .stats {
        justify-content: center;
        width: 100%;
    }
    
    .hero-visual {
        height: 300px;
        animation: float 6s ease-in-out infinite;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 60px 5% 30px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .typing-text {
        font-size: 1.2rem;
        min-height: 40px;
    }
    
    .stats {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .stat-item {
        justify-content: center;
        text-align: center;
    }
    
    .hero-visual {
        height: 250px;
        border-radius: 15px;
        animation: float 6s ease-in-out infinite;
    }
    
    .hero-visual img {
        border-radius: 15px;
    }
}


.banner-section {
    background-color: #f8f9fa;
}

.category-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
    background: white;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.offer-card {
    transition: transform 0.3s ease;
    margin-bottom: 1.5rem;
    border-radius: 10px;
    overflow: hidden;
}

.offer-card:hover {
    transform: scale(1.02);
}

.offer-img {
    height: 200px;
    object-fit: cover;
}

.wallet-card {
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.breadcrumb {
    background-color: #f8f9fa;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
}

/* Enhanced Footer Styles */
.footer-enhanced {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4edf9 100%);
    color: #333;
    padding: 3rem 0 2rem;
    margin-top: 3rem;
    animation: fadeInUp 0.8s ease-out;
    border-top: 1px solid #d1d1d1;
}

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

.footer-heading {
    color: #1a2a6c;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: #1a2a6c;
    border-radius: 3px;
}

.footer-text {
    color: #555;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(26, 42, 108, 0.1);
    color: #1a2a6c;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: #1a2a6c;
    color: white;
    transform: translateY(-3px);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #555;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
}

.footer-links a:hover {
    color: #1a2a6c;
    transform: translateX(5px);
}

.contact-info {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    color: #555;
    transition: all 0.3s ease;
}

.contact-info li:hover {
    color: #1a2a6c;
    transform: translateX(5px);
}

.newsletter .form-control {
    border-radius: 30px 0 0 30px;
    border: 1px solid #ddd;
    padding: 10px 15px;
}

.btn-subscribe {
    background: #1a2a6c;
    color: white;
    border: none;
    border-radius: 0 30px 30px 0;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-subscribe:hover {
    background: #0d1a4d;
    transform: translateY(-2px);
}

.footer-divider {
    background: rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
}

.copyright {
    color: #666;
}

.footer-links-inline {
    display: flex;
    gap: 20px;
    justify-content: flex-end;
}

.footer-links-inline a {
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links-inline a:hover {
    color: #1a2a6c;
    text-decoration: underline;
}

/* Responsive adjustments for footer */
@media (max-width: 768px) {
    .footer-links-inline {
        justify-content: center;
        gap: 15px;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .footer-heading::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

/* Admin panel styles */
.admin-sidebar {
    background-color: #f8f9fa;
    min-height: 100vh;
    padding: 1rem;
}

.admin-content {
    padding: 1rem;
}

.nav-pills .nav-link.active {
    background-color: #0d6efd;
}

.table th {
    border-top: none;
}

/* Carousel indicators */
.carousel-indicators {
    bottom: -40px;
}

.carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

/* Card styles */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

/* Badge styles */
.badge {
    font-weight: 500;
}

/* Section headers */
h2 {
    position: relative;
    padding-bottom: 10px;
}

h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: #4361ee;
    border-radius: 3px;
}

/* View All links */
.text-decoration-none:hover {
    text-decoration: underline !important;
}

/* Credit card section */
.credit-card-img {
    height: 150px;
    object-fit: cover;
}

/* Category image overlay */
.bg-gradient-dark {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}

/* Scrolling Categories Section */
.scrolling-wrapper {
    overflow: hidden;
    width: 100%;
    position: relative;
}

.scrolling-content {
    display: flex;
    width: max-content;
}

.category-card-wrapper {
    flex: 0 0 auto;
    width: 150px;
    margin-right: 15px;
}

.category-card {
    width: 100%;
    height: 100%;
}

/* Animation for automatic scrolling */
@keyframes scrollCategories {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.scrolling-content {
    animation: scrollCategories 20s linear infinite;
    animation-play-state: running;
}

.scrolling-content:hover {
    animation-play-state: paused;
}

/* Circular category images */
.category-card .rounded-circle {
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.category-card:hover .rounded-circle {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.category-card .card-title {
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.category-card:hover .card-title {
    color: #1a2a6c;
}

/* Responsive styles for Trending Promotion Tasks */
.offer-card-col {
    display: flex;
    flex-direction: column;
}

.offer-card-col .card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.offer-card-col .card-img-top {
    object-fit: cover;
    width: 100%;
}

.offer-card-col .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Additional responsive adjustments for smaller screens */
@media (max-width: 400px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .typing-text {
        font-size: 1.1rem;
        min-height: 35px;
    }
    
    .buttons a {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .stats {
        gap: 15px;
    }
    
    .stat-icon {
        width: 40px;
        height: 40px;
    }
    
    .stat-number {
        font-size: 1.2rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    /* Increase image height on very small screens */
    .offer-card-col .card-img-top {
        height: 160px !important;
    }
}

/* Extra small devices (phones, less than 400px) */
@media (max-width: 350px) {
    .hero-content h1 {
        font-size: 1.6rem;
    }
    
    .typing-text {
        font-size: 1rem;
        min-height: 30px;
    }
    
    .buttons {
        gap: 10px;
    }
    
    .buttons a {
        padding: 8px 15px;
        font-size: 0.85rem;
    }
    
    .hero-visual {
        height: 200px;
    }
    
    /* Further increase image height on extremely small screens */
    .offer-card-col .card-img-top {
        height: 150px !important;
    }
}
