/* Modern Design System */
:root {
    --primary: #6c5ce7;
    --primary-light: #a29bfe;
    --primary-dark: #5649c0;
    --secondary: #00cec9;
    --secondary-dark: #00b5b2;
    --accent: #fd79a8;
    --accent-dark: #e84393;
    --light: #f8f9fa;
    --dark: #2d3436;
    --dark-light: #636e72;
    --gray: #dfe6e9;
    --success: #00b894;
    --warning: #fdcb6e;
    --danger: #d63031;
    
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 50px rgba(0,0,0,0.15);
    
    --transition: all 0.3s ease;
    --transition-slow: all 0.6s ease;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--light);
    color: var(--dark);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Navigation Bar */
.nav-glass {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 5%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    transition: var(--transition);
    z-index: 1001;
}
#navUsername{
    color: rgba(0,0,0);
    font-size: 1rem;
    font-weight: bold;
}
.logo:hover {
    transform: scale(1.05);
}

.logo i {
    margin-right: 0.5rem;
    font-size: 2rem;
}

.hamburger {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: var(--dark);
    margin: 5px 0;
    transition: var(--transition);
}

.nav-container {
    display: flex;
    align-items: center;
    transition: var(--transition-slow);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin-right: 200px;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.auth-buttons {
    display: flex;
    gap: 1rem;
    margin-left: 2rem;
}

.login-btn, .signup-btn {
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.login-btn {
    background-color: var(--primary);
    color: white;
    border: 2px solid var(--primary);
}

.login-btn:hover {
    background-color: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 92, 231, 0.3);
}

.signup-btn {
    background-color: var(--primary);
    color: white;
    border: 2px solid var(--primary);
}

.signup-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 92, 231, 0.3);
}

.pulse-on-hover:hover {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(108, 92, 231, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(108, 92, 231, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(108, 92, 231, 0);
    }
}

/* User Section Styles */
.user-section {
    display: flex;
    position: relative;
    margin-left: 2rem;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.user-profile:hover {
    color: var(--primary);
}

.user-avatar {
    font-size: 1.8rem;
    color: var(--primary);
    transition: var(--transition);
}

.user-profile:hover .user-avatar {
    transform: scale(1.1);
}

.user-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    z-index: 1000;
    overflow: hidden;
}

.user-dropdown a {
    display: block;
    padding: 0.8rem 1rem;
    text-decoration: none;
    color: var(--dark);
    transition: var(--transition);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.user-dropdown a:hover {
    background: var(--primary-light);
    color: white;
    padding-left: 1.2rem;
}

.user-dropdown a i {
    margin-right: 0.5rem;
    width: 20px;
    text-align: center;
}

/* Hero Section */
.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 100vh;
    padding: 8% 5%;
    padding-top: 6rem;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(108, 92, 231, 0.1) 0%, rgba(108, 92, 231, 0) 70%);
    top: -300px;
    right: -300px;
    z-index: 0;
}

.hero-content {
    max-width: 600px;
    z-index: 1;
    animation: fadeInUp 1s ease;
}

.gradient-text {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.quiz-code-input {
    display: flex;
    margin: 2rem 0;
    position: relative;
    max-width: 500px;
}

.quiz-code-input input {
    padding: 1rem 1.5rem;
    width: 100%;
    border: 2px solid var(--gray);
    border-radius: 50px;
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.quiz-code-input input:focus {
    border-color: var(--primary);
    box-shadow: 0 5px 15px rgba(108, 92, 231, 0.1);
}

#joinQuizBtn {
    position: absolute;
    right: 5px;
    top: 5px;
    padding: 0.7rem 1.5rem;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

#joinQuizBtn:hover {
    background-color: var(--primary-dark);
    transform: translateX(5px);
}

.glow-on-hover:hover {
    box-shadow: 0 0 15px var(--primary);
}

.hero-subtext {
    font-size: 1.1rem;
    color: var(--dark);
    margin: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.hero-subtext::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
}

.fade-slide {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeSlideIn 1s forwards;
}

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

.cta-btn {
    display: inline-flex;
    align-items: center;
    margin-top: 2rem;
    padding: 1rem 2rem;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    text-decoration: none;
}

.cta-btn span {
    position: relative;
    z-index: 2;
}

.cta-btn i {
    margin-left: 0.5rem;
    transition: var(--transition);
    z-index: 2;
}

.cta-btn:hover i {
    transform: translateX(5px);
}

.cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--secondary), var(--primary));
    transition: var(--transition-slow);
}

.cta-btn:hover::before {
    left: 0;
}

.shine-effect:hover {
    animation: shine 1.5s infinite;
}

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

.hero-illustration {
    z-index: 1;
    animation: float 6s ease-in-out infinite;
}

.hero-illustration img {
    max-width: 600px;
    width: 100%;
    height: auto;
}

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

/* Features Section */
.features {
    text-align: center;
    padding: 6rem 5%;
    background-color: white;
    position: relative;
}

.features::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 206, 201, 0.1) 0%, rgba(0, 206, 201, 0) 70%);
    bottom: -150px;
    left: -150px;
    z-index: 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--dark);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 4px;
    bottom: -10px;
    left: 25%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem auto;
    max-width: 1200px;
}

.feature-card {
    background: white;
    border-radius: 15px;
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.feature-card p {
    color: var(--dark-light);
    line-height: 1.6;
}

.try-btn {
    display: inline-flex;
    align-items: center;
    margin-top: 2rem;
    padding: 1rem 2rem;
    background-color: white;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.try-btn:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.try-btn i {
    margin-left: 0.5rem;
    transition: var(--transition);
}

.try-btn:hover i {
    transform: translateX(5px);
}

.floating {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* Testimonials Section */
.testimonials {
    text-align: center;
    padding: 6rem 5%;
    background-color: var(--light);
    position: relative;
}

.testimonial-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.testimonial-card {
    background: white;
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition-slow);
    opacity: 0;
    transform: translateX(50px);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    visibility: hidden;
}

.testimonial-card.active {
    opacity: 1;
    transform: translateX(0);
    visibility: visible;
    position: relative;
}

.quote-icon {
    font-size: 2rem;
    color: var(--primary-light);
    margin-bottom: 1.5rem;
}

.testimonial-text {
    font-size: 1.1rem;
    color: var(--dark);
    margin-bottom: 2rem;
    font-style: italic;
    line-height: 1.8;
}

.user-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.user-info img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-light);
}

.user-info h4 {
    color: var(--dark);
    font-size: 1.2rem;
}

.user-info p {
    color: var(--dark-light);
    font-size: 0.9rem;
}

.slider-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.slider-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--primary);
    color: var(--primary);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

/* Footer */
.footer {
    background-color: var(--dark);
    color: white;
    padding: 4rem 5% 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo {
    display: flex;
    align-items: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
}

.footer-logo i {
    margin-right: 0.5rem;
    color: var(--primary-light);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
}

.footer-column h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: white;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 2px;
    bottom: 0;
    left: 0;
    background: var(--primary);
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 0.8rem;
}

.footer-column a {
    color: var(--gray);
    text-decoration: none;
    transition: var(--transition);
}

.footer-column a:hover {
    color: var(--primary-light);
    padding-left: 5px;
}

.footer-social h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: white;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transition: var(--transition);
}

.social-icons a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 3rem;
    margin-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--gray);
    font-size: 0.9rem;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 8rem;
        padding-bottom: 5rem;
    }
    
    .hero-content {
        margin-bottom: 3rem;
    }
    
    .quiz-code-input {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-illustration {
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
    
    .nav-container {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 2rem;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }
    
    .nav-container.active {
        right: 0;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }
    
    .nav-links {
        flex-direction: column;
        align-items: center;
        margin-bottom: 2rem;
    }
    
    .auth-buttons, .user-section {
        margin-left: 0;
        width: 100%;
    }
    
    .auth-buttons {
        flex-direction: column;
    }
    
    .login-btn, .signup-btn {
        width: 100%;
        justify-content: center;
    }
    
    .user-section {
        margin-top: 1rem;
    }
    
    .user-dropdown {
        position: static;
        width: 100%;
        box-shadow: none;
        margin-top: 0.5rem;
    }
    
    .gradient-text {
        font-size: 2.5rem;
    }
    
    .hero-illustration img {
        max-width: 400px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .gradient-text {
        font-size: 2rem;
    }
    
    .quiz-code-input {
        flex-direction: column;
    }
    
    #joinQuizBtn {
        position: relative;
        top: 0;
        right: 0;
        width: 100%;
        margin-top: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}
#uniqueid {
    font-size: 1.5rem;
    text-align: center;
    color: black;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    padding: 15px 25px;
    margin: 15px auto;
    border: 2px solid black;
    border-radius: 12px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    box-shadow: 0 4px 12px rgba(67, 97, 238, 0.15);
    display: inline-block;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    letter-spacing: 1px;
    text-transform: uppercase;
}

#uniqueid::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(67, 97, 238, 0.1), 
        transparent);
    transform: translateX(-100%);
    transition: 0.5s;
}

#uniqueid:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(67, 97, 238, 0.25);
    color: #3a0ca3;
    border-color: #3a0ca3;
}

#uniqueid:hover::before {
    transform: translateX(100%);
}

/* Add this if you want a small label above the ID */
.uniqueid-label {
    display: block;
    font-size: 0.8rem;
    color: black;
    margin-bottom: 5px;
    font-weight: 500;
    text-transform: none;
    letter-spacing: normal;
}




/* Add to your CSS file */
html {
    scroll-behavior: smooth;
}

/* Highlight the about section when navigated to */
section:target {
    animation: highlight 2s ease;
}

@keyframes highlight {
    0% { background-color: rgba(255,255,255,0.1); }
    50% { background-color: rgba(255,255,255,0.3); }
    100% { background-color: rgba(255,255,255,0); }
}


