/* ===================================
   CUSTOM UI/UX IMPROVEMENTS
   Professional enhancements for EquizBattle
   =================================== */

/* Logo Link Styling - Make it clear it's clickable */
.logo {
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo:hover {
    opacity: 0.9;
}

.logo svg {
    transition: transform 0.3s ease;
}

.logo:hover svg {
    transform: scale(1.05);
}

/* Navigation Menu Spacing - Prevent menu overlapping with logo */
.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem !important;
    width: 100%;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: auto;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: nowrap;
    overflow: visible;
}

.nav-menu li {
    margin: 0;
    padding: 0;
    flex-shrink: 0;
}

/* Ensure navbar container has proper width */
.navbar .container {
    width: 100%;
    max-width: 100%;
    padding-left: 2rem;
    padding-right: 2rem;
    overflow: visible;
}

/* Colorful Rounded Button Style for Nav Menu */
.nav-menu li a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 25px;
    border: 2px solid;
    font-weight: 500;
    font-size: 0.9rem;
    position: relative;
    white-space: nowrap;
}

/* Circle indicator on left side */
.nav-menu li a::before {
    content: '';
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid currentColor;
    background: transparent;
    flex-shrink: 0;
}

/* Different colors for each menu item */
.nav-menu li:nth-child(1) a {
    border-color: #FFB84D;
    color: #FFB84D;
}
.nav-menu li:nth-child(1) a:hover,
.nav-menu li:nth-child(1) a.active {
    background: #FFB84D;
    color: white;
}
.nav-menu li:nth-child(1) a:hover::before,
.nav-menu li:nth-child(1) a.active::before {
    background: white;
    border-color: white;
}

.nav-menu li:nth-child(2) a {
    border-color: #5DADE2;
    color: #5DADE2;
}
.nav-menu li:nth-child(2) a:hover,
.nav-menu li:nth-child(2) a.active {
    background: #5DADE2;
    color: white;
}
.nav-menu li:nth-child(2) a:hover::before,
.nav-menu li:nth-child(2) a.active::before {
    background: white;
    border-color: white;
}

.nav-menu li:nth-child(3) a {
    border-color: #48C9B0;
    color: #48C9B0;
}
.nav-menu li:nth-child(3) a:hover,
.nav-menu li:nth-child(3) a.active {
    background: #48C9B0;
    color: white;
}
.nav-menu li:nth-child(3) a:hover::before,
.nav-menu li:nth-child(3) a.active::before {
    background: white;
    border-color: white;
}

.nav-menu li:nth-child(4) a {
    border-color: #EC7063;
    color: #EC7063;
}
.nav-menu li:nth-child(4) a:hover,
.nav-menu li:nth-child(4) a.active {
    background: #EC7063;
    color: white;
}
.nav-menu li:nth-child(4) a:hover::before,
.nav-menu li:nth-child(4) a.active::before {
    background: white;
    border-color: white;
}

.nav-menu li:nth-child(5) a {
    border-color: #AF7AC5;
    color: #AF7AC5;
}
.nav-menu li:nth-child(5) a:hover,
.nav-menu li:nth-child(5) a.active {
    background: #AF7AC5;
    color: white;
}
.nav-menu li:nth-child(5) a:hover::before,
.nav-menu li:nth-child(5) a.active::before {
    background: white;
    border-color: white;
}

.nav-menu li:nth-child(6) a {
    border-color: #F9C80E;
    color: #F9C80E;
}
.nav-menu li:nth-child(6) a:hover,
.nav-menu li:nth-child(6) a.active {
    background: #F9C80E;
    color: white;
}
.nav-menu li:nth-child(6) a:hover::before,
.nav-menu li:nth-child(6) a.active::before {
    background: white;
    border-color: white;
}

.nav-menu li:nth-child(7) a {
    border-color: #85C1E2;
    color: #85C1E2;
}
.nav-menu li:nth-child(7) a:hover,
.nav-menu li:nth-child(7) a.active {
    background: #85C1E2;
    color: white;
}
.nav-menu li:nth-child(7) a:hover::before,
.nav-menu li:nth-child(7) a.active::before {
    background: white;
    border-color: white;
}

/* Download APK button - special styling */
.nav-menu li:nth-child(8) a {
    border-color: #F9C80E;
    background: #F9C80E;
    color: white;
    font-weight: 600;
    padding: 0.6rem 1.25rem;
    box-shadow: 0 4px 15px rgba(249, 200, 14, 0.3);
    white-space: nowrap;
    margin-left: 0.5rem;
}
.nav-menu li:nth-child(8) a::before {
    background: white;
    border-color: white;
}
.nav-menu li:nth-child(8) a:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249, 200, 14, 0.4);
}

/* Ensure Download APK button stays visible */
.nav-menu li:nth-child(8) {
    margin-right: 0;
    flex-shrink: 0;
}

/* Hero Title - Force single line and prevent wrapping */
.hero-title {
    white-space: nowrap !important;
    font-size: clamp(2.5rem, 5vw, 3.5rem) !important;
    margin-bottom: 1.5rem !important;
    letter-spacing: 0.5px;
    font-weight: 800 !important;
}

/* Button Improvements - Prevent text wrapping */
.btn-primary.btn-lg,
.btn-secondary.btn-lg {
    white-space: nowrap !important;
    padding: 1rem 2.5rem !important;
    min-width: fit-content !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.75rem !important;
    font-size: 1.05rem !important;
    font-weight: 600 !important;
    border-radius: 12px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.btn-primary.btn-lg:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 25px rgba(249, 200, 14, 0.4) !important;
}

.btn-secondary.btn-lg:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 25px rgba(249, 200, 14, 0.2) !important;
}

/* Hero Buttons Container - Better spacing */
.hero-buttons {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 1.5rem !important;
    margin-top: 2rem !important;
    align-items: center !important;
}

/* Phone Mockup Enhancements */
.phone-mockup,
.phone-mockup-large {
    position: relative;
    width: 300px;
    height: 600px;
    background: linear-gradient(145deg, #1a1a1a, #2d2d2d);
    border-radius: 40px;
    padding: 15px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        inset 0 0 0 2px rgba(255, 255, 255, 0.1);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.5s ease;
}

.phone-mockup:hover,
.phone-mockup-large:hover {
    transform: perspective(1000px) rotateY(0deg) translateY(-10px);
}

.phone-mockup::before,
.phone-mockup-large::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

.phone-screen,
.phone-screen-large {
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Trust Badges Enhancement */
.trust-badges {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 1.5rem !important;
    margin-top: 2rem !important;
}

.badge {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    padding: 0.75rem 1.25rem !important;
    background: rgba(249, 200, 14, 0.1) !important;
    border: 2px solid rgba(249, 200, 14, 0.3) !important;
    border-radius: 50px !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.badge:hover {
    background: rgba(249, 200, 14, 0.2) !important;
    border-color: var(--primary) !important;
    transform: translateY(-2px) !important;
}

.badge-icon {
    font-size: 1.2rem !important;
}

/* Responsive Improvements */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem !important;
        white-space: normal !important;
        line-height: 1.2 !important;
    }
    
    .btn-primary.btn-lg,
    .btn-secondary.btn-lg {
        padding: 0.875rem 1.75rem !important;
        font-size: 1rem !important;
        width: 100% !important;
        justify-content: center !important;
    }
    
    .hero-buttons {
        flex-direction: column !important;
        width: 100% !important;
        gap: 1rem !important;
    }
    
    .phone-mockup {
        width: 250px;
        height: 500px;
        transform: perspective(1000px) rotateY(0deg);
    }
    
    /* Mobile menu styling for colorful buttons */
    .nav-menu {
        flex-direction: column;
        gap: 0.75rem;
        padding: 1rem;
    }
    
    .nav-menu li a {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem !important;
    }
    
    .trust-badges {
        justify-content: center !important;
    }
    
    .badge {
        padding: 0.625rem 1rem !important;
        font-size: 0.875rem !important;
    }
}

/* Smooth Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-text > * {
    animation: fadeInUp 0.6s ease-out backwards;
}

.hero-text > *:nth-child(1) { animation-delay: 0.1s; }
.hero-text > *:nth-child(2) { animation-delay: 0.2s; }
.hero-text > *:nth-child(3) { animation-delay: 0.3s; }
.hero-text > *:nth-child(4) { animation-delay: 0.4s; }
.hero-text > *:nth-child(5) { animation-delay: 0.5s; }

/* Professional Shadow Effects */
.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    padding: 3rem 0;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}
