/* Lucky Draw Website Styles */

/* Payment Options Styling */
.payment-option {
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.payment-option:hover {
    border-color: #007bff !important;
    background-color: #f8f9fa !important;
}

.payment-option input[type="radio"] {
    cursor: pointer;
}

.payment-option label {
    cursor: pointer;
    width: 100%;
    margin: 0;
}

/* QR Code Styling */
.qr-placeholder {
    border-radius: 8px;
    transition: all 0.3s ease;
}

.qr-placeholder:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Form Group Spacing */
.form-group {
    margin-bottom: 1.5rem;
}

/* Adjust navbar and hero section back to normal */
.navbar.fixed-top {
    top: 0; /* Back to normal position */
}

.hero-section {
    margin-top: 76px; /* Normal navbar spacing */
    margin-bottom: 0; /* Remove bottom margin */
}

/* Live Winner Ticker */
.winner-ticker {
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.ticker-content {
    display: inline-block;
    animation: scroll-left 30s linear infinite;
    padding: 10px 0;
    font-weight: 600;
}

@keyframes scroll-left {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Pause animation on hover */
.winner-ticker:hover .ticker-content {
    animation-play-state: paused;
}

/* Hero Section with Background Images */
.hero-section {
    position: relative;
    overflow: hidden;
    min-height: 70vh;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
}

.hero-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 200 200"><defs><pattern id="islamic-pattern" x="0" y="0" width="40" height="40" patternUnits="userSpaceOnUse"><polygon points="20,4 36,20 20,36 4,20" fill="rgba(255,215,0,0.1)" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/><circle cx="20" cy="20" r="6" fill="rgba(46,139,87,0.1)"/><rect x="15" y="15" width="10" height="10" rx="2" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100%25" height="100%25" fill="url(%23islamic-pattern)"/></svg>');
    opacity: 0.4;
    animation: pattern-move 20s linear infinite;
}

@keyframes pattern-move {
    0% { transform: translateX(0) translateY(0); }
    25% { transform: translateX(-10px) translateY(-10px); }
    50% { transform: translateX(-20px) translateY(0); }
    75% { transform: translateX(-10px) translateY(10px); }
    100% { transform: translateX(0) translateY(0); }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center !important;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.hero-icon {
    font-size: 4rem;
    opacity: 0.9;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.4));
    color: #FFD700;
    transition: all 0.5s ease-in-out;
}

.hero-title {
    transition: all 0.5s ease-in-out;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    text-align: center !important;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    transition: all 0.5s ease-in-out;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    text-align: center !important;
    margin-bottom: 2rem;
}

.hero-icon {
    text-align: center !important;
    display: block;
    margin: 0 auto 2rem auto;
}

/* Animated text reveal */
.animate-reveal {
    animation: slideInUp 1s ease-out;
}

.animate-reveal-delay {
    animation: slideInUp 1s ease-out 0.3s both;
}

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

/* Countdown timer styles */
.countdown-timer {
    background: linear-gradient(45deg, #ff6b6b, #ffa500);
    border-radius: 15px;
    padding: 15px;
    margin: 15px 0;
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}

.countdown-digits {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3px;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: white;
    font-size: 1rem;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.countdown-digit {
    background: rgba(255,255,255,0.2);
    padding: 4px 6px;
    border-radius: 6px;
    min-width: 24px;
    text-align: center;
    font-size: 0.95rem;
}

.countdown-digits .text-sm {
    font-size: 0.75rem;
    font-weight: 600;
    margin: 0 1px;
    opacity: 0.9;
}

/* Participant counter */
.participant-counter {
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
    border-radius: 10px;
    padding: 10px;
    margin-top: 10px;
    color: white;
    font-weight: 600;
}

.counter-number {
    font-size: 1.5rem;
    font-weight: bold;
    animation: countUp 2s ease-out;
}

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

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

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

/* Feature Cards */
.feature-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.feature-card h5,
.feature-card p {
    color: #333 !important;
}

.feature-card i {
    opacity: 1;
}

/* Remove gaps between sections */
section {
    margin: 0 !important;
    padding-top: 5rem;
    padding-bottom: 5rem;
}

section.py-5 {
    padding-top: 5rem !important;
    padding-bottom: 5rem !important;
}

section.bg-light {
    margin: 0 !important;
}

/* About Section Cards */
.about-detail-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e9ecef;
}

.about-detail-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15) !important;
}

.about-stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    color: white !important;
}

.about-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.3);
}

.about-stat-card h4,
.about-stat-card p,
.about-stat-card i {
    color: white !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* Offer Cards */
.offer-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.offer-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

/* Pulse animation for featured card */
@keyframes pulse {
    0% {
        box-shadow: 0 12px 35px rgba(220, 53, 69, 0.4);
    }
    50% {
        box-shadow: 0 15px 45px rgba(220, 53, 69, 0.6);
    }
    100% {
        box-shadow: 0 12px 35px rgba(220, 53, 69, 0.4);
    }
}

/* Prize card animations */
.prize-card {
    background: white;
    border-radius: 20px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.prize-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ff6b6b, #ffa500, #4ecdc4, #45b7d1);
    border-radius: 22px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.prize-card:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.prize-amount {
    font-size: 3rem;
    font-weight: bold;
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 15px 0;
}

/* Winner announcement animation */
.winner-announcement {
    background: linear-gradient(45deg, #ff6b6b, #ffa500);
    color: white;
    padding: 15px;
    border-radius: 15px;
    margin: 10px 0;
    animation: winnerGlow 2s ease-in-out infinite alternate;
}

@keyframes winnerGlow {
    from { box-shadow: 0 0 20px rgba(255, 107, 107, 0.5); }
    to { box-shadow: 0 0 30px rgba(255, 165, 0, 0.8); }
}

.offer-card.featured {
    border: 3px solid #ffd700;
    transform: scale(1.05);
}

.offer-header {
    padding: 20px;
    text-align: center;
    position: relative;
}

.offer-header .badge {
    position: absolute;
    top: 10px;
    right: 10px;
}

.offer-body {
    padding: 30px 20px;
    text-align: center;
}

.price-tag {
    margin-bottom: 20px;
}

.price-tag .currency {
    font-size: 2rem;
    vertical-align: top;
    color: #666;
}

.price-tag .amount {
    font-size: 4rem;
    font-weight: bold;
    color: #333;
}

.offer-features {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.offer-features li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.offer-features li:last-child {
    border-bottom: none;
}

/* Sponsor Cards */
.sponsor-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    margin-bottom: 30px;
}

.sponsor-card:hover {
    transform: translateY(-5px);
}

/* Winner Cards */
.winner-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.winner-card:hover {
    transform: translateY(-5px);
}

.winner-avatar {
    margin-bottom: 15px;
}

.winner-name {
    color: #333;
    margin-bottom: 10px;
}

.winner-prize {
    margin-bottom: 10px;
}

/* Form Styles */
.form-container {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-control {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    padding: 12px 15px;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

.btn {
    border-radius: 10px;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* Enhanced button animations */
.hover-primary:hover {
    color: var(--bs-primary) !important;
    transition: color 0.3s ease;
}

/* Footer visibility fixes */
footer .contact-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 12px;
    border-radius: 6px;
    margin-bottom: 8px;
    border-left: 3px solid var(--bs-primary);
}

footer .bg-primary.bg-opacity-10 {
    /* Additional footer styling for better visibility */
    background: rgba(13, 110, 253, 0.2) !important;
    border: 1px solid rgba(13, 110, 253, 0.3);
}

footer h5, footer h6 {
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

footer .border-secondary {
    border-color: rgba(255, 255, 255, 0.2) !important;
}

/* Footer social icons alignment */
footer .d-flex.gap-2 {
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-top: 15px;
}

footer .btn-outline-light.rounded-circle {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin-right: 8px;
    transition: all 0.3s ease;
}

/* Social media brand colors */
footer .btn-outline-light.rounded-circle:nth-child(1) {
    border-color: #1877f2;
    color: #1877f2;
}

footer .btn-outline-light.rounded-circle:nth-child(1):hover {
    background-color: #1877f2;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.3);
}

footer .btn-outline-light.rounded-circle:nth-child(2) {
    border-color: #1da1f2;
    color: #1da1f2;
}

footer .btn-outline-light.rounded-circle:nth-child(2):hover {
    background-color: #1da1f2;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(29, 161, 242, 0.3);
}

footer .btn-outline-light.rounded-circle:nth-child(3) {
    border-color: #e4405f;
    color: #e4405f;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

footer .btn-outline-light.rounded-circle:nth-child(3):hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    -webkit-background-clip: initial;
    -webkit-text-fill-color: initial;
    background-clip: initial;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(228, 64, 95, 0.3);
}

footer .btn-outline-light.rounded-circle:nth-child(4) {
    border-color: #ff0000;
    color: #ff0000;
}

footer .btn-outline-light.rounded-circle:nth-child(4):hover {
    background-color: #ff0000;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.3);
}

footer .col-lg-3, footer .col-lg-2, footer .col-lg-4 {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

footer .text-light {
    color: #f8f9fa !important;
}

footer .list-unstyled li a {
    background: rgba(255, 255, 255, 0.03);
    padding: 6px 10px;
    border-radius: 4px;
    display: block;
    transition: all 0.3s ease;
}

footer .list-unstyled li a:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.btn-animated {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-animated::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-animated:hover::before {
    left: 100%;
}

.btn-pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(255, 193, 7, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 193, 7, 0); }
}

/* Review Cards */
.review-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.review-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.review-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    margin-right: 15px;
}

.review-content {
    color: #666;
    line-height: 1.6;
}

/* Popup Styles */

.modal-content {
    border: none;
    border-radius: 15px;
    overflow: hidden;
}

.modal-header {
    border-bottom: none;
    padding: 1.5rem;
}

.modal-body {
    padding: 2rem;
}

.modal-footer {
    border-top: none;
    padding: 1.5rem;
}

.feature-highlight {
    transition: transform 0.3s ease;
    border: 1px solid #e9ecef;
}

.feature-highlight:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.media-container img,
.media-container video {
    border: 3px solid #f8f9fa;
    transition: transform 0.3s ease;
}

.media-container img:hover,
.media-container video:hover {
    transform: scale(1.02);
}

/* Index.php specific popup centering */
#customPopupModal .modal-dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    width: 400px;
    max-width: 90vw;
}

#customPopupModal.modal.fade .modal-dialog {
    transform: translate(-50%, -60%);
    transition: transform 0.3s ease-out;
}

#customPopupModal.modal.show .modal-dialog {
    transform: translate(-50%, -50%);
}

/* Index.php popup responsive */
@media (max-width: 768px) {
    #customPopupModal .modal-dialog {
        width: 350px;
        max-width: 85vw;
    }
    
    #customPopupModal .modal-body {
        padding: 1rem;
    }
    
    #customPopupModal .modal-header {
        padding: 1rem;
    }
    
    #customPopupModal .modal-footer {
        padding: 1rem;
    }
}

@media (min-width: 769px) {
    #customPopupModal .modal-dialog {
        width: 450px;
        max-width: 500px;
    }
}

/* Admin Panel Styles */
.admin-sidebar {
    background: #343a40;
    min-height: 100vh;
    padding: 20px 0;
}

.admin-sidebar .nav-link {
    color: #adb5bd;
    padding: 12px 20px;
    border-radius: 0;
    transition: all 0.3s ease;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background: #495057;
    color: white;
}

.admin-content {
    padding: 30px;
}

.stats-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-5px);
}

.stats-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.stats-number {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 5px;
}

/* Table Styles */
.table-container {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.table th {
    background: #f8f9fa;
    border: none;
    font-weight: 600;
    color: #495057;
}

.table td {
    border: none;
    vertical-align: middle;
}

.table tbody tr {
    border-bottom: 1px solid #e9ecef;
}

.table tbody tr:hover {
    background: #f8f9fa;
}

/* Status Badges */
.status-pending {
    background: #ffc107;
    color: #212529;
}

.status-approved {
    background: #28a745;
    color: white;
}

.status-rejected {
    background: #dc3545;
    color: white;
}

/* Enhanced Mobile Responsiveness */

/* Large tablets and small desktops */
@media (max-width: 1024px) {
    .hero-icon {
        font-size: 12rem;
    }
    
    .offer-card.featured {
        transform: scale(1.02);
    }
}

/* Tablets */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
        padding: 100px 0 60px;
        min-height: auto;
    }
    
    .hero-icon {
        font-size: 8rem;
        margin-top: 30px;
    }
    
    .offer-card.featured {
        transform: none;
        margin-bottom: 20px;
    }
    
    .hero-stats {
        justify-content: center;
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .display-4 {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .display-5 {
        font-size: 2rem;
        line-height: 1.3;
    }
    
    .btn-lg {
        padding: 15px 25px;
        font-size: 1.1rem;
    }
    
    .feature-card, .winner-card, .review-card {
        margin-bottom: 20px;
    }
    
    .form-container {
        padding: 30px 20px;
    }
    
    .navbar-brand {
        font-size: 1.5rem;
    }
}

/* Mobile phones */
@media (max-width: 480px) {
    .hero-section {
        padding: 80px 0 40px;
        background-size: cover, 80px 80px;
    }
    
    .hero-icon {
        font-size: 6rem;
    }
    
    .display-4 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .display-5 {
        font-size: 1.5rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 0.95rem;
    }
    
    .btn-lg {
        padding: 14px 20px;
        font-size: 1rem;
    }
    
    .offer-card, .prize-card {
        margin-bottom: 15px;
    }
    
    .price-tag .amount, .prize-amount {
        font-size: 2.5rem;
    }
    
    .price-tag .currency {
        font-size: 1.5rem;
    }
    
    .form-container {
        padding: 25px 15px;
    }
    
    .form-control {
        padding: 15px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .hero-stats {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .hero-stats .stat-item {
        min-width: 120px;
    }
    
    .navbar-toggler {
        padding: 8px 12px;
        font-size: 1.2rem;
    }
    
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .ticker-content {
        font-size: 0.9rem;
        animation-duration: 25s;
    }
    
    .countdown-digits {
        font-size: 1rem;
        gap: 5px;
    }
    
    .countdown-digit {
        padding: 3px 6px;
        min-width: 25px;
    }
    
    .prize-card {
        padding: 20px 15px;
    }
    
    .winner-announcement {
        padding: 12px;
        font-size: 0.9rem;
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    .btn, .nav-link, .accordion-button {
        min-height: 44px; /* Apple's recommended touch target */
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .offer-card:hover, .prize-card:hover {
        transform: none; /* Disable hover effects on touch devices */
    }
    
    .feature-card:hover, .winner-card:hover {
        transform: none;
    }
    
    .btn:hover {
        transform: none;
    }
    
    /* Enable tap animations instead */
    .offer-card:active, .prize-card:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
    
    .btn:active {
        transform: scale(0.95);
        transition: transform 0.1s ease;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-section::before {
        opacity: 0.3;
    }
    
    .hero-section {
        background-size: cover, 60px 60px;
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .ticker-content,
    .hero-icon,
    .animate-reveal,
    .animate-reveal-delay,
    .pattern-move,
    .countUp,
    .pulse,
    .winnerGlow {
        animation: none;
    }
    
    .offer-card:hover,
    .prize-card:hover,
    .btn:hover {
        transform: none;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Mobile App-like Navigation */
.navbar {
    backdrop-filter: blur(10px);
    background: rgba(102, 126, 234, 0.95) !important;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.4rem;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.navbar-brand i {
    animation: brandPulse 2s ease-in-out infinite;
}

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

.nav-link {
    position: relative;
    padding: 12px 16px !important;
    margin: 0 4px;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link i {
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-2px);
    color: #fff !important;
}

.nav-link:hover i {
    transform: scale(1.2) rotate(5deg);
}

.nav-link.active {
    background: rgba(255,255,255,0.2);
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(255,255,255,0.2);
}

.nav-link.active i {
    animation: iconBounce 0.6s ease;
}

@keyframes iconBounce {
    0%, 20%, 60%, 100% { transform: translateY(0); }
    40% { transform: translateY(-8px); }
    80% { transform: translateY(-4px); }
}

/* Mobile Navigation Enhancements */
.navbar-toggler {
    border: none;
    padding: 8px;
    border-radius: 12px;
    background: rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.navbar-toggler:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.05);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(255,255,255,0.3);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    transition: all 0.3s ease;
}

.navbar-collapse {
    background: rgba(102, 126, 234, 0.98);
    border-radius: 16px;
    margin-top: 10px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    backdrop-filter: blur(20px);
}

/* Mobile Navigation Animation */
@media (max-width: 991px) {
    .navbar-nav {
        gap: 8px;
    }
    
    .nav-link {
        padding: 16px 20px !important;
        margin: 4px 0;
        border-radius: 16px;
        font-size: 1.1rem;
        justify-content: flex-start;
    }
    
    .nav-link i {
        font-size: 1.3rem;
        width: 24px;
        text-align: center;
    }
    
    .nav-link:hover {
        background: rgba(255,255,255,0.2);
        transform: translateX(8px);
        padding-left: 28px !important;
    }
    
    .nav-link.active {
        background: rgba(255,255,255,0.25);
        transform: translateX(4px);
    }
    
    /* Staggered animation for mobile menu items */
    .nav-link:nth-child(1) { animation-delay: 0.1s; }
    .nav-link:nth-child(2) { animation-delay: 0.2s; }
    .nav-link:nth-child(3) { animation-delay: 0.3s; }
    .nav-link:nth-child(4) { animation-delay: 0.4s; }
    .nav-link:nth-child(5) { animation-delay: 0.5s; }
    .nav-link:nth-child(6) { animation-delay: 0.6s; }
}

/* Slide-in animation for mobile menu */
.navbar-collapse.show .nav-link,
.navbar-collapse.collapsing .nav-link {
    animation: slideInLeft 0.4s ease-out forwards;
    opacity: 0;
    transform: translateX(-30px);
}

.navbar-collapse.show .nav-link {
    opacity: 1;
    transform: translateX(0);
}

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

/* Touch feedback */
@media (hover: none) and (pointer: coarse) {
    .nav-link:active {
        background: rgba(255,255,255,0.3);
        transform: scale(0.95);
        transition: all 0.1s ease;
    }
    
    .navbar-brand:active {
        transform: scale(0.95);
    }
    
    .navbar-toggler:active {
        transform: scale(0.9);
        background: rgba(255,255,255,0.3);
    }
}

/* Additional Mobile Enhancements */

/* Contact page mobile improvements */
.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: background-color 0.3s ease;
}

.contact-item:hover {
    background: #e9ecef;
}

.contact-icon {
    margin-right: 15px;
    width: 50px;
    text-align: center;
}

.contact-details h6 {
    margin-bottom: 5px;
    font-weight: 600;
}

.contact-details p {
    margin-bottom: 0;
}

/* Social links styling */
.social-links {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.social-link.facebook { background: #1877f2; }
.social-link.twitter { background: #1da1f2; }
.social-link.instagram { background: #e4405f; }
.social-link.youtube { background: #ff0000; }

.social-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    color: white;
}

/* Mobile-specific contact improvements */
@media (max-width: 768px) {
    .contact-item {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* Performance optimizations */
.hero-section {
    will-change: transform;
}

.offer-card, .feature-card, .winner-card {
    will-change: transform;
}

/* Status Tracking Styles */
.status-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e9ecef;
    margin-bottom: 20px;
}

.status-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.status-header {
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.status-detail {
    margin-bottom: 15px;
}

.status-detail small {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.winner-badge, .pending-badge, .rejected-badge {
    padding: 10px 15px;
    border-radius: 10px;
    text-align: center;
}

.winner-badge {
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.pending-badge {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.rejected-badge {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.help-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    height: 100%;
}

.help-card:hover {
    transform: translateY(-3px);
}

/* Cover Photo Options */
.cover-photo-selector {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.cover-option {
    cursor: pointer;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 3px solid transparent;
    position: relative;
}

.cover-option:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.cover-option.active {
    border-color: #007bff;
    transform: scale(1.05);
}

.cover-option::after {
    content: '';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #007bff;
    color: white;
    display: none;
    align-items: center;
    justify-content: center;
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}

.cover-option.active::after {
    content: '\f00c';
    display: flex;
}

.cover-preview {
    width: 100%;
    height: 120px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
}

/* Accessibility improvements */
.btn:focus, .form-control:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* Skip to main content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #000;
    color: #fff;
    padding: 8px;
    text-decoration: none;
    z-index: 1000;
    border-radius: 4px;
}

.skip-link:focus {
    top: 6px;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    /* Mobile App-like Layout */
    body {
        font-size: 16px;
        line-height: 1.5;
    }
    
    /* Navigation */
    .navbar {
        padding: 8px 0;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }
    
    .navbar-brand {
        font-size: 1.3rem;
        font-weight: 700;
    }
    
    .navbar-nav .nav-link {
        padding: 12px 16px;
        font-size: 1rem;
        font-weight: 500;
        border-radius: 8px;
        margin: 2px 0;
    }
    
    .navbar-nav .nav-link i {
        font-size: 1.1rem;
        margin-right: 8px;
    }
    
    /* Hero Section */
    .hero-section {
        padding: 30px 0;
        text-align: center;
    }
    
    .hero-section h1 {
        font-size: 2.2rem;
        font-weight: 800;
        line-height: 1.2;
        margin-bottom: 16px;
    }
    
    .hero-section .lead {
        font-size: 1.1rem;
        font-weight: 500;
        margin-bottom: 24px;
    }
    
    /* Hero Stats Mobile Fix */
    .hero-stats {
        justify-content: center !important;
        flex-wrap: nowrap !important;
        gap: 16px !important;
    }
    
    .stat-item {
        text-align: center;
        white-space: nowrap;
        min-width: auto;
        flex-shrink: 0;
    }
    
    .stat-item h3 {
        font-size: 1.5rem !important;
        font-weight: 800;
        margin-bottom: 4px !important;
        line-height: 1;
    }
    
    .stat-item small {
        font-size: 0.75rem !important;
        font-weight: 600;
        display: block;
        line-height: 1.2;
        white-space: nowrap;
    }
    
    /* Prize Cards */
    .prize-card {
        margin-bottom: 24px;
        padding: 20px;
        border-radius: 16px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.15);
        background: white !important;
        color: #333 !important;
    }
    
    .prize-card.featured {
        transform: none;
        border: 2px solid #dc3545;
        background: white !important;
    }
    
    .prize-amount {
        font-size: 2rem;
        font-weight: 800;
        margin-bottom: 8px;
        color: #333 !important;
    }
    
    .prize-card h3 {
        font-size: 1.3rem;
        font-weight: 700;
        margin-bottom: 12px;
        color: #333 !important;
    }
    
    .prize-card p {
        font-size: 1rem;
        margin-bottom: 16px;
        color: #666 !important;
    }
    
    /* Countdown Timer Mobile */
    .countdown-timer {
        background: rgba(0,0,0,0.7) !important;
        border-radius: 12px;
        padding: 16px;
        margin: 16px 0;
        border: 1px solid rgba(255,255,255,0.2);
    }
    
    .countdown-timer p {
        font-size: 1rem;
        font-weight: 700;
        margin-bottom: 12px;
        color: white !important;
        text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    }
    
    .countdown-digits {
        gap: 4px;
        font-size: 1rem;
        justify-content: center;
        flex-wrap: nowrap;
    }
    
    .countdown-digit {
        min-width: 32px;
        padding: 8px 4px;
        font-size: 1.1rem;
        font-weight: 700;
        border-radius: 8px;
        background: rgba(255,255,255,0.9) !important;
        color: #333 !important;
        border: 1px solid rgba(255,255,255,0.3);
        text-shadow: none;
    }
    
    .countdown-digits .text-sm {
        font-size: 0.8rem;
        font-weight: 700;
        margin: 0 2px;
        color: white !important;
        text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    }
    
    /* Participant Counter Mobile */
    .participant-counter {
        padding: 12px 16px;
        border-radius: 12px;
        margin: 16px 0;
        font-size: 1rem;
        font-weight: 600;
        text-align: center;
    }
    
    .participant-counter i {
        font-size: 1.1rem;
        margin-right: 8px;
    }
    
    .counter-number {
        font-size: 1.2rem;
        font-weight: 700;
    }
    
    /* Buttons Mobile */
    .btn {
        padding: 14px 20px;
        font-size: 1rem;
        font-weight: 600;
        border-radius: 12px;
        border: none;
        transition: all 0.3s ease;
    }
    
    .btn-animated:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    }
    
    /* Footer Mobile */
    footer {
        padding: 40px 0 20px;
    }
    
    footer .col-lg-3, footer .col-lg-2, footer .col-lg-4 {
        margin-bottom: 24px;
        padding: 20px;
        border-radius: 12px;
    }
    
    footer h5 {
        font-size: 1.2rem;
        font-weight: 700;
        margin-bottom: 16px;
    }
    
    footer p, footer a {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    footer .btn-outline-light.rounded-circle {
        width: 44px;
        height: 44px;
        margin: 4px;
    }
    
    footer .btn-outline-light.rounded-circle i {
        font-size: 1.2rem;
    }
    
    /* Contact Form Mobile */
    .form-control {
        padding: 14px 16px;
        font-size: 1rem;
        border-radius: 10px;
        border: 2px solid #e9ecef;
    }
    
    .form-control:focus {
        border-color: #007bff;
        box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
    }
    
    /* Reviews Mobile */
    .review-card {
        padding: 20px;
        border-radius: 12px;
        margin-bottom: 20px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }
    
    /* Sponsors Mobile */
    .sponsor-card {
        padding: 20px;
        border-radius: 12px;
        margin-bottom: 20px;
        text-align: center;
    }
    
    /* Typography Mobile */
    h1 { font-size: 2.2rem; font-weight: 800; }
    h2 { font-size: 1.8rem; font-weight: 700; }
    h3 { font-size: 1.4rem; font-weight: 600; }
    h4 { font-size: 1.2rem; font-weight: 600; }
    h5 { font-size: 1.1rem; font-weight: 600; }
    
    /* Spacing Mobile */
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }
    
    .row {
        margin-left: -8px;
        margin-right: -8px;
    }
    
    .col-md-6, .col-lg-3, .col-lg-4 {
        padding-left: 8px;
        padding-right: 8px;
    }
}

/* Tablet Responsive */
@media (min-width: 769px) and (max-width: 1024px) {
    .prize-card {
        padding: 24px;
        margin-bottom: 20px;
    }
    
    .countdown-digit {
        min-width: 28px;
        font-size: 1rem;
    }
    
    footer .col-lg-3, footer .col-lg-2, footer .col-lg-4 {
        margin-bottom: 20px;
    }
}

/* Print styles */
@media print {
    .navbar, .footer, .btn {
        display: none !important;
    }
    
    .hero-section {
        background: none !important;
        color: #000 !important;
    }
    
    .offer-card, .feature-card {
        border: 1px solid #000 !important;
        box-shadow: none !important;
    }
}
