@media (max-width: 480px) {
    html {
        -webkit-text-size-adjust: 100%;
        -webkit-tap-highlight-color: transparent;
    }
    
    .nav-container {
        height: 60px;
        padding: 0 15px;
    }
    
    .logo-circle {
        width: 40px;
        height: 40px;
    }
    
    .logo-circle i {
        font-size: 18px;
    }
    
    .brand-title {
        font-size: 18px;
    }
    
    .brand-subtitle {
        font-size: 10px;
    }
    
    .mobile-menu-toggle {
        display: block;
        font-size: 20px;
        padding: 8px;
    }
    
    .mobile-menu {
        top: 60px;
        padding: 15px;
        gap: 10px;
    }
    
    .mobile-link {
        padding: 12px;
        font-size: 14px;
    }
    
    .header {
        padding: 2rem 0 2rem;
    }
    
    .logo {
        font-size: 2.2rem;
        letter-spacing: 2px;
    }
    
    .logo i {
        font-size: 2.8rem;
    }
    
    .tagline {
        font-size: 1rem;
    }
    
    .hero-title {
        font-size: 2.2rem;
        letter-spacing: 2px;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .floating-icons {
        height: 40px;
    }
    
    .floating-icon {
        font-size: 2rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .giveaway-card, .entry-card, .success-card, .recent-entries-card, .giveaway-selection-card, .search-card, .help-card, .contact-card {
        padding: 1.25rem;
        border-radius: 18px;
        margin-bottom: 1.5rem;
    }

    .help-section, .contact-section {
        margin-bottom: 2rem;
    }

    .help-grid, .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }

    .help-item, .contact-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .help-icon, .contact-icon {
        margin-right: 0 !important;
        margin-bottom: 1rem;
    }

    .help-header h2, .contact-header h2 {
        font-size: 1.5rem;
    }

    .help-text h3, .contact-text h3 {
        font-size: 1.2rem;
    }

    .contact-form {
        margin-top: 1rem;
    }

    .help-cta-container {
        text-align: center;
        margin-top: 2rem;
        width: 100%;
    }

    .help-cta-container .btn-submit {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .giveaway-title {
        font-size: 1.6rem;
    }
    
    .giveaway-description {
        font-size: 0.95rem;
    }
    
    .progress-stats {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .stat-item {
        width: 100%;
        justify-content: center;
        padding: 0.75rem 1rem;
    }
    
    .countdown-container {
        padding: 1.25rem;
    }
    
    .countdown-display {
        gap: 0.75rem;
        flex-wrap: wrap;
    }
    
    .countdown-item {
        min-width: 65px;
        padding: 0.75rem;
        flex: 1;
        min-width: 0;
    }
    
    .countdown-number {
        font-size: 1.6rem;
    }
    
    .countdown-label {
        font-size: 0.7rem;
    }
    
    .entry-form {
        gap: 1rem;
    }
    
    .form-group input,
    .form-group select {
        padding: 0.875rem;
        font-size: 1rem;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .btn-submit, .btn-reset, .btn-social {
        width: 100%;
        padding: 1rem;
        font-size: 1rem;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .success-card {
        padding: 2rem 1.5rem;
    }
    
    .ticket-number {
        font-size: 2.2rem;
    }
    
    .success-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .btn-share, .btn-print {
        width: 100%;
        padding: 0.875rem;
        font-size: 0.9rem;
    }
    
    .selection-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .giveaway-tabs {
        width: 100%;
        padding: 0.25rem;
    }
    
    .tab-btn {
        padding: 0.6rem 1rem;
        font-size: 0.75rem;
    }
    
    .giveaway-list {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .giveaway-item {
        padding: 1.25rem;
    }
    
    .giveaway-item h4 {
        font-size: 1.1rem;
    }
    
    .giveaway-item p {
        font-size: 0.85rem;
    }
    
    .entries-list {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .entry-item {
        padding: 1.25rem;
    }
    
    .entry-item .entry-name {
        font-size: 1rem;
    }
    
    .btn-view-all {
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    .search-controls input {
        width: 100%;
        min-width: 100%;
        padding: 0.875rem;
    }
    
    .search-controls {
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
    }
    
    .btn-search {
        width: 100%;
        padding: 0.875rem;
        font-size: 0.9rem;
    }
    
    .search-results {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .search-result-item {
        padding: 1.25rem;
    }
    
    .result-name {
        font-size: 1rem;
    }
    
    .user-details,
    .modal-user-details {
        grid-template-columns: 1fr;
    }
    
    .summary-stats,
    .modal-summary-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .summary-value,
    .modal-summary-value {
        font-size: 1.5rem;
    }
    
    .featured-carousel {
        overflow: hidden;
        padding: 0;
        margin: 0;
    }
    
    .featured-item {
        flex: 0 0 100%;
        width: 100%;
        min-width: 100%;
        max-width: 100%;
        padding: 0;
        margin: 0;
    }
    
    .featured-image-container {
        height: 200px;
    }
    
    .featured-content {
        padding: 1.25rem;
    }
    
    .featured-title {
        font-size: 1.3rem;
    }
    
    .featured-countdown-item {
        min-width: 40px;
        padding: 0.4rem 0.6rem;
    }
    
    .featured-countdown-item span {
        font-size: 0.9rem;
    }
    
    .carousel-controls {
        gap: 1rem;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .modal-content {
        width: 95%;
        max-width: 100%;
        padding: 1rem;
    }
    
    .modal-header {
        padding: 1rem 1.5rem;
    }
    
    .modal-header h3 {
        font-size: 1.1rem;
    }
    
    .modal-body {
        padding: 1.5rem 1rem;
    }
    
    .option-input input {
        padding: 0.875rem;
        font-size: 1rem;
    }
    
    .btn-verify-modal {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .social-icons {
        justify-content: center;
        gap: 0.75rem;
    }
    
    .social-icons a {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    .footer-bottom {
        font-size: 0.85rem;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .nav-container {
        height: 65px;
        padding: 0 20px;
    }
    
    .logo-circle {
        width: 42px;
        height: 42px;
    }
    
    .logo-circle i {
        font-size: 19px;
    }
    
    .brand-title {
        font-size: 19px;
    }
    
    .brand-subtitle {
        font-size: 11px;
    }
    
    .header {
        padding: 2.5rem 0 2.5rem;
    }
    
    .logo {
        font-size: 2.4rem;
        letter-spacing: 3px;
    }
    
    .logo i {
        font-size: 3rem;
    }
    
    .hero-title {
        font-size: 2.4rem;
        letter-spacing: 3px;
    }
    
    .hero-subtitle {
        font-size: 1.15rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .giveaway-card, .entry-card, .success-card, .recent-entries-card, .giveaway-selection-card, .search-card {
        padding: 1.5rem;
        border-radius: 20px;
    }
    
    .giveaway-title {
        font-size: 1.8rem;
    }
    
    .countdown-display {
        gap: 1rem;
    }
    
    .countdown-item {
        min-width: 70px;
        padding: 0.875rem;
    }
    
    .countdown-number {
        font-size: 1.8rem;
    }
    
    .form-group input,
    .form-group select {
        padding: 0.9rem;
    }
    
    .btn-submit, .btn-reset {
        padding: 0.9rem;
    }
    
    .ticket-number {
        font-size: 2.4rem;
    }
    
    .giveaway-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
    
    .entries-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .search-results {
        grid-template-columns: 1fr;
    }
    
    .featured-image-container {
        height: 220px;
    }
    
    .featured-title {
        font-size: 1.4rem;
    }
    
    .modal-content {
        width: 90%;
        max-width: 500px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .nav-container {
        height: 70px;
        padding: 0 30px;
    }
    
    .logo-circle {
        width: 44px;
        height: 44px;
    }
    
    .logo-circle i {
        font-size: 20px;
    }
    
    .brand-title {
        font-size: 20px;
    }
    
    .brand-subtitle {
        font-size: 12px;
    }
    
    .header {
        padding: 3rem 0 2.5rem;
    }
    
    .logo {
        font-size: 2.6rem;
        letter-spacing: 3px;
    }
    
    .logo i {
        font-size: 3.2rem;
    }
    
    .hero-title {
        font-size: 2.6rem;
        letter-spacing: 3px;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .giveaway-card, .entry-card, .success-card, .recent-entries-card, .giveaway-selection-card, .search-card {
        padding: 1.75rem;
        border-radius: 22px;
    }
    
    .giveaway-title {
        font-size: 2rem;
    }
    
    .countdown-display {
        gap: 1.25rem;
    }
    
    .countdown-item {
        min-width: 80px;
        padding: 1rem;
    }
    
    .countdown-number {
        font-size: 2rem;
    }
    
    .form-group input,
    .form-group select {
        padding: 1rem;
    }
    
    .btn-submit, .btn-reset {
        padding: 1.125rem;
    }
    
    .ticket-number {
        font-size: 2.6rem;
    }
    
    .giveaway-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .entries-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
    
    .search-results {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
    
    .featured-image-container {
        height: 350px;
    }
    
    .featured-title {
        font-size: 1.5rem;
    }
    
    .modal-content {
        width: 85%;
        max-width: 600px;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
        text-align: left;
    }
}

@media (min-width: 1025px) {
    .nav-container {
        height: 70px;
        padding: 0 40px;
    }
    
    .logo-circle {
        width: 45px;
        height: 45px;
    }
    
    .logo-circle i {
        font-size: 20px;
    }
    
    .brand-title {
        font-size: 20px;
    }
    
    .brand-subtitle {
        font-size: 12px;
    }
    
    .header {
        padding: 4rem 0 3rem;
    }
    
    .logo {
        font-size: 3rem;
        letter-spacing: 4px;
    }
    
    .logo i {
        font-size: 3.5rem;
    }
    
    .hero-section {
        padding: 2rem 0 2rem 0;
        min-height: 400px;
    }

    .hero-title {
        font-size: 4.5rem;
        letter-spacing: 6px;
    }
    
    .hero-subtitle {
        font-size: 1.4rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .giveaway-card, .entry-card, .success-card, .recent-entries-card, .giveaway-selection-card, .search-card {
        padding: 2.5rem;
        border-radius: 24px;
    }
    
    .giveaway-title {
        font-size: 2.2rem;
    }
    
    .countdown-display {
        gap: 1.5rem;
    }
    
    .countdown-item {
        min-width: 100px;
        padding: 1.25rem;
    }
    
    .countdown-number {
        font-size: 2.5rem;
    }
    
    .form-group input,
    .form-group select {
        padding: 1.125rem;
    }
    
    .btn-submit, .btn-reset {
        padding: 1.25rem;
    }
    
    .ticket-number {
        font-size: 3rem;
    }
    
    .giveaway-list {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
    
    .entries-list {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
    
    .search-results {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .featured-image-container {
        height: 700px;
    }
    
    .featured-title {
        font-size: 1.5rem;
    }
    
    .modal-content {
        width: 80%;
        max-width: 700px;
    }
    
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
        gap: 3rem;
        text-align: left;
    }
}

@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }

    /* Giveaway Section */
    .giveaway-card {
        padding: 2.5rem;
    }

    .giveaway-title {
        font-size: 3rem;
    }

    /* Progress Stats */
    .progress-stats {
        gap: 3rem;
    }

    /* Countdown */
    .countdown-item {
        min-width: 120px;
        padding: 1.75rem;
    }

    .countdown-number {
        font-size: 3rem;
    }

    /* Entry Form */
    .entry-card {
        padding: 2.5rem;
    }

    /* Success Section */
    .success-card {
        padding: 2.5rem;
    }

    .ticket-number {
        font-size: 3rem;
    }
}

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo-circle i,
    .floating-icon,
    .countdown-number {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .progress-fill {
        transition: none;
    }
    
    .floating-icon,
    .logo i,
    .pulse-glow {
        animation: none !important;
    }
}

@media (max-width: 768px) and (orientation: landscape) {
    .countdown-display {
        gap: 0.5rem;
    }
    
    .countdown-item {
        min-width: 60px;
        padding: 0.6rem;
    }
    
    .countdown-number {
        font-size: 1.4rem;
    }
    
    .floating-icons {
        height: 30px;
    }
    
    .floating-icon {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) and (orientation: portrait) {
    .main-content {
        padding: 1.5rem 0;
    }
    
    .giveaway-card, .entry-card, .success-card, .recent-entries-card, .giveaway-selection-card, .search-card, .help-card, .contact-card {
        padding: 1rem;
        margin-bottom: 1.25rem;
    }
    
    .giveaway-title {
        font-size: 1.5rem;
    }
    
    .countdown-item {
        min-width: 55px;
        padding: 0.5rem;
    }
    
    .countdown-number {
        font-size: 1.4rem;
    }
    
    .hero-title {
        font-size: 2rem;
        letter-spacing: 2px;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
}

@media (hover: none) and (pointer: coarse) {
    .btn-submit, .btn-reset, .btn-share, .btn-print, .btn-search, .btn-verify-modal {
        min-height: 44px;
        padding: 1rem 1.5rem;
    }
    
    .nav-link, .mobile-link {
        min-height: 44px;
        padding: 12px 16px;
    }
    
    .form-group input,
    .form-group select {
        min-height: 44px;
        padding: 1rem;
    }
    
    .carousel-btn {
        min-width: 44px;
        min-height: 44px;
    }
    
    .modal-close {
        min-width: 44px;
        min-height: 44px;
    }
    
    .giveaway-item,
    .entry-item,
    .search-result-item {
        transition: transform 0.2s ease;
    }
    
    .giveaway-item:hover,
    .entry-item:hover,
    .search-result-item:hover {
        transform: translateX(3px);
    }
}

@media print {
    .navbar, .footer, .btn-share, .btn-print, .recent-entries-section, .giveaway-selection-section, .search-section {
        display: none !important;
    }
    
    .success-section {
        display: block !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .success-card {
        border: 2px solid #000;
        box-shadow: none;
    }
    
    .container {
        max-width: none;
        padding: 0 1rem;
    }
    
    .giveaway-card, .entry-card, .success-card, .recent-entries-card {
        box-shadow: none;
        border: 1px solid #ccc;
        background: white;
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .progress-bar {
        background: #eee;
    }
    
    .progress-fill {
        background: #000;
    }
    
    .ticket-number {
        color: #000;
        background: none;
        -webkit-text-fill-color: initial;
    }
}

@media (prefers-color-scheme: dark) {
    :root {
        --text-color: #e5e7eb;
        --text-light: #9ca3af;
        --bg-color: #111827;
        --card-bg: #1f2937;
        --border-color: #374151;
    }

    body {
        background-color: var(--bg-color);
        color: var(--text-color);
    }

    .entry-card, .success-card, .recent-entries-card {
        background: var(--card-bg);
        border-color: var(--border-color);
    }

    .form-group input {
        background: var(--card-bg);
        border-color: var(--border-color);
        color: var(--text-color);
    }

    .form-group input:focus {
        box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
    }

    .stat-item {
        background: var(--bg-color);
    }

    .entry-item {
        background: var(--bg-color);
    }

    .ticket-display {
        background: var(--card-bg);
        border-color: var(--border-color);
    }
}
