/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Poppins:wght@300;400;500;600&display=swap');

/* Global Body Styles */
body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', 'Inter', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    transition: all 0.5s ease;
    overflow-x: hidden;
    max-width: 100vw; /* Changed from 100% */
    box-sizing: border-box;
    position: relative; /* Added */
}

body.dark {
    background: #1a202c;
}

body.dark p {
    color: white;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

.logo-link:hover {
    opacity: 0.8;
}

.logo-link:visited {
    color: inherit;
}

/*Text*/
.main-text {
    font-size: 2.8rem;
    font-weight: 500;
    color: #2d3748;
    line-height: 1.3;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

body.dark .main-text {
    color: #e2e8f0;
}

.hero
{
    z-index: 100;
}

/* Background Elements */
.background-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Cloud animations for light theme */
.cloud {
    position: absolute;
    background: rgba(181, 181, 181, 0.463);
    border-radius: 50px;
    opacity: 0.8;
    animation: float 20s infinite linear;
}

.cloud:before,
.cloud:after {
    content: '';
    position: absolute;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50px;
}

.cloud1 {
    width: 100px;
    height: 40px;
    top: 20%;
    left: -150px;
    animation-duration: 25s;
}

.cloud1:before {
    width: 50px;
    height: 50px;
    top: -25px;
    left: 10px;
}

.cloud1:after {
    width: 60px;
    height: 30px;
    top: -15px;
    right: 10px;
}

.cloud2 {
    width: 80px;
    height: 30px;
    top: 40%;
    left: -120px;
    animation-duration: 30s;
}

.cloud2:before {
    width: 40px;
    height: 40px;
    top: -20px;
    left: 15px;
}

.cloud2:after {
    width: 50px;
    height: 25px;
    top: -10px;
    right: 15px;
}

.cloud3 {
    width: 120px;
    height: 50px;
    top: 60%;
    left: -180px;
    animation-duration: 35s;
}

.cloud3:before {
    width: 60px;
    height: 60px;
    top: -30px;
    left: 20px;
}

.cloud3:after {
    width: 70px;
    height: 35px;
    top: -20px;
    right: 20px;
}

@keyframes float {
    from { transform: translateX(0); }
    to { transform: translateX(calc(100vw + 200px)); }
}

body.dark .cloud,
body.dark .cloud:before,
body.dark .cloud:after {
    display: none;
}

/* Stars for dark theme */
.star {
    position: absolute;
    background: #fff;
    border-radius: 50%;
    opacity: 0;
    animation: twinkle 3s infinite;
}

body.light .star {
    display: none;
}

@keyframes twinkle {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

/* Sun for light theme */
.sun {
    position: absolute;
    top: 10%;
    right: 10%;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, #ffeb3b 30%, rgba(255, 235, 59, 0.4) 70%);
    border-radius: 50%;
    animation: rotate 20s linear infinite;
    box-shadow: 0 0 30px rgba(255, 235, 59, 0.5);
}

.sun:before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: radial-gradient(circle, transparent 40%, rgba(255, 235, 59, 0.1) 50%, transparent 60%);
    border-radius: 50%;
}

body.dark .sun {
    display: none;
}

/* Moon for dark theme */
.moon {
    position: absolute;
    top: 10%;
    right: 10%;
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, #f5f5f5 0%, #e0e0e0 100%);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(245, 245, 245, 0.3);
}

.moon:before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    width: 8px;
    height: 8px;
    background: #ccc;
    border-radius: 50%;
}

.moon:after {
    content: '';
    position: absolute;
    top: 15px;
    right: 8px;
    width: 6px;
    height: 6px;
    background: #ccc;
    border-radius: 50%;
}

body.light .moon {
    display: none;
}

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

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(99, 179, 237, 0.1);
    height:40px;
}

/* Dark theme header */
body.dark .header {
    background: rgba(26, 32, 44, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

body.dark .header.scrolled {
    background: rgba(26, 32, 44, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

/* Brand Elements */
.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-container a
{
    display: flex;
    align-items: center;
    gap:1rem;
}
.brand-logo {
    height: auto;
    width: 45px;
}

.brand-name {
    font-size: 1.6rem;
    font-weight: 600;
    color: rgb(63, 144, 242);
    margin: 0;
    font-family: 'Poppins', sans-serif;
}

body.dark .brand-name {
    color: rgb(99, 179, 237);
}

.theme-toggle {
    display: flex;
    justify-content: flex-end;
}

.toggle-switch {
    position: relative;
    width: 64px;
    height: 32px;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e0 100%);
    border-radius: 24px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        inset 0 2px 6px rgba(0, 0, 0, 0.1),
        0 4px 16px rgba(0, 0, 0, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

.toggle-switch:hover {
    transform: translateY(-2px);
    box-shadow: 
        inset 0 2px 6px rgba(0, 0, 0, 0.15),
        0 8px 24px rgba(0, 0, 0, 0.12);
}

.toggle-switch.dark {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
    border: 2px solid rgba(99, 179, 237, 0.2);
    box-shadow: 
        inset 0 2px 6px rgba(0, 0, 0, 0.3),
        0 4px 16px rgba(0, 0, 0, 0.2);
}

.toggle-switch.dark:hover {
    box-shadow: 
        inset 0 2px 6px rgba(0, 0, 0, 0.4),
        0 8px 24px rgba(0, 0, 0, 0.3);
}

.toggle-slider {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #ffffff 0%, #f7fafc 100%);
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.15),
        0 2px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.9);
}

.toggle-slider:hover {
    transform: scale(1.05);
}

.toggle-slider.dark {
    transform: translateX(30px);
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    border: 1px solid rgba(99, 179, 237, 0.3);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.3),
        0 2px 6px rgba(0, 0, 0, 0.2);
}

.toggle-slider.dark:hover {
    transform: translateX(30px) scale(1.05);
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .toggle-switch {
        width: 56px;
        height: 28px;
    }

    .toggle-slider {
        width: 20px;
        height: 20px;
        font-size: 10px;
    }

    .toggle-slider.dark {
        transform: translateX(26px);
    }

    .toggle-slider.dark:hover {
        transform: translateX(26px) scale(1.05);
    }
}

/* Center container for logo and nav menu */
.center-container {
    display: flex;
    align-items: center;
    gap: 3rem;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

/* Main Content */
main {
    flex: 1;
    padding: 0;
    margin: 0;
    width: 100%;
    max-width: 100%; /* Added */
    position: relative;
    z-index: 10;
    
    box-sizing: border-box; /* Added */
    overflow-x: hidden; /* Added */
}

/* Page Content Structure */
.page-content {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40vh;
    width: 100%; /* Changed from 100vw */
    padding: 20px 20px;
    box-sizing: border-box; /* Added */
}



.content-left {
    flex: 1;
    max-width: 500px;
}

.content-right {
    flex: 1;
    text-align: center;
    max-width: 600px;
}

.main-image {
    width: 100%;
    max-width: 450px;
    height: auto;
    border-radius: 25px;
}

.main-text {
    font-size: 2.8rem;
    font-weight: 500;
    color: #2d3748;
    margin-bottom: 30px;
    line-height: 1.3;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

body.dark .main-text {
    color: #e2e8f0;
}

/* Section Separator */
.section-separator {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px 0;
    width: 100%;
}

.separator-line {
    width: 75%;
    max-width: 800px;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(200, 200, 200, 0.3) 10%, 
        rgba(180, 180, 180, 0.6) 50%, 
        rgba(200, 200, 200, 0.3) 90%, 
        transparent 100%);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

body.dark .separator-line {
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(100, 100, 100, 0.3) 10%, 
        rgba(120, 120, 120, 0.6) 50%, 
        rgba(100, 100, 100, 0.3) 90%, 
        transparent 100%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.separator-line::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.4) 50%, 
        transparent 100%);
    animation: shimmer 3s infinite;
    border-radius: 10px;
}

body.dark .separator-line::before {
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.2) 50%, 
        transparent 100%);
}

@keyframes shimmer {
    0% { left: -100%; }
    50% { left: -100%; }
    100% { left: 100%; }
}

/* Footer Styles */

footer {
    background: #ffffffb7;
    backdrop-filter: blur(10px);
    position: relative;
    padding: 30px 20px;
    text-align: center;
    margin-top: auto;
    color: rgb(23, 23, 23);
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(0, 0, 0, 0.1) 10%, 
        rgba(0, 0, 0, 0.2) 50%, 
        rgba(0, 0, 0, 0.1) 90%, 
        transparent 100%);
}

body.dark footer::before {
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.1) 10%, 
        rgba(255, 255, 255, 0.2) 50%, 
        rgba(255, 255, 255, 0.1) 90%, 
        transparent 100%);
}


body.dark footer {
    background: rgba(26, 32, 44, 0.9);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto 30px auto;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-column-title {
    color: rgba(99, 99, 99, 0.95);
    font-size: 1.1rem;
    font-weight: 300;
    margin: 0 0 15px 0;
    font-family: 'Poppins', sans-serif;
}

body.dark .footer-column-title {
    color: rgba(226, 232, 240, 0.95);
}

.footer-links-column {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links-column a {
    color: rgba(67, 76, 98, 0.8);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    padding: 2px 0;
}

.footer-links-column a:hover {
    color: rgb(91, 91, 91);
    transform: translateX(5px);
}

body.dark .footer-links-column a {
    color: rgba(160, 174, 192, 0.8);
}

body.dark .footer-links-column a:hover {
    color: #e2e8f0;
}

.footer-separator {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px 0 20px 0;
    width: 100%;
}

.footer-separator-line {
    width: 80%;
    max-width: 600px;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.2) 10%, 
        rgba(255, 255, 255, 0.4) 50%, 
        rgba(255, 255, 255, 0.2) 90%, 
        transparent 100%);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

body.dark .footer-separator-line {
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.1) 10%, 
        rgba(255, 255, 255, 0.2) 50%, 
        rgba(255, 255, 255, 0.1) 90%, 
        transparent 100%);
}

.footer-separator-line::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.6) 50%, 
        transparent 100%);
    animation: shimmer 4s infinite;
    border-radius: 10px;
}

body.dark .footer-separator-line::before {
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.3) 50%, 
        transparent 100%);
}

.copyright {
    margin: 0;
    font-size: 0.9rem;
}

body.dark .copyright {
    color: rgba(160, 174, 192, 0.8);
}

/* Popup Styles */
.popup-overlay {
    position: fixed;
    bottom: -200px;
    left: 0;
    right: 0;
    z-index: 200;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding: 25px 20px;
    box-shadow: 0 -5px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    justify-content: center;
    align-items: center;
}

.popup-overlay.show {
    bottom: 0;
}

body.dark .popup-overlay {
    background: rgba(26, 32, 44, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 -5px 30px rgba(0, 0, 0, 0.3);
}

.popup-content {
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 600px;
    width: 100%;
}

.popup-text {
    flex: 1;
}

.popup-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2d3748;
    margin: 0 0 5px 0;
    font-family: 'Poppins', sans-serif;
}

body.dark .popup-title {
    color: #e2e8f0;
}

.popup-description {
    font-size: 0.9rem;
    color: #4a5568;
    margin: 0;
    line-height: 1.4;
}

body.dark .popup-description {
    color: #a0aec0;
}

.popup-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.popup-close {
    background: none;
    border: none;
    color: #718096;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.popup-close:hover {
    background: rgba(113, 128, 150, 0.1);
    color: #2d3748;
}

body.dark .popup-close {
    color: #a0aec0;
}

body.dark .popup-close:hover {
    background: rgba(160, 174, 192, 0.1);
    color: #e2e8f0;
}

/* Mobile  */

/* Mobile Navigation */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #4a5568;
    padding: 0.5rem;
}

body.dark .mobile-nav-toggle {
    color: #a0aec0;
}

/* Mobile Side Menu Styles */
.mobile-side-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    z-index: 1001;
    transition: right 0.3s ease;
}

.mobile-side-menu.active {
    right: 0;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999; /* Lower than mobile-side-menu */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    height: 100%;
    padding: 20px;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.15);
    position: relative; /* Ensure it's positioned correctly */
    z-index: 1002; /* Highest z-index */
}

body.dark .mobile-menu-content {
    background: rgba(26, 32, 44, 0.95);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.3);
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

body.dark .mobile-menu-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo-img {
    width: 40px;
    height: auto;
    cursor: pointer;
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #2d3748;
    padding: 5px;
}

body.dark .mobile-menu-close {
    color: #e2e8f0;
}

.mobile-menu-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu-links li {
    margin-bottom: 15px;
}

.mobile-menu-links a {
    display: block;
    padding: 15px 0;
    color: #2d3748;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

body.dark .mobile-menu-links a {
    color: #e2e8f0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-menu-links a:hover {
    color: rgb(63, 144, 242);
    padding-left: 10px;
}

body.dark .mobile-menu-links a:hover {
    color: rgb(99, 179, 237);
}

/* Mobile Responsive Updates */
@media (max-width: 768px) {
    .center-container {
        position: static;
        transform: none;
        gap: 0;
    }
    
    .logo-container {
        flex: 0 0 auto;
    }
    
    .theme-toggle {
        flex: 0 0 auto;
        order: 3;
    }
    
    .mobile-nav-toggle {
        flex: 0 0 auto;
        order: 2;
        margin: 0 1rem 0 auto;
    }

    .nav-menu {
        display: none;
    }
    
    .mobile-nav-toggle {
        display: block;
    }
    
    .header {
        justify-content: space-between;
    }
    
    .header .theme-toggle {
        order: 2;
    }
}



@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
        text-align: center;
        max-width: 100%;
    }
    
    .footer-column-title {
        font-size: 0.95rem;
        margin-bottom: 12px;
    }
    
    .footer-links-column a {
        font-size: 0.8rem;
        padding: 1px 0;
    }
    
    .footer-separator-line {
        width: 90%;
    }
    
    .copyright {
        font-size: 0.8rem;
        line-height: 1.4;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        text-align: center;
    }
    
    .footer-column-title {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }
    
    .footer-links-column a {
        font-size: 0.75rem;
        padding: 1px 0;
    }
    
    .footer-links-column a:hover {
        transform: translateX(3px); /* Reduce hover movement on mobile */
    }
    
    .copyright {
        font-size: 0.75rem;
        text-align: center;
    }
}

/* Add this new media query for very small screens */
@media (max-width: 320px) {
    .footer-grid {
        gap: 15px;
    }
    
    .footer-column-title {
        font-size: 0.85rem;
        margin-bottom: 8px;
    }
    
    .footer-links-column a {
        font-size: 0.7rem;
    }
    
    .copyright {
        font-size: 0.7rem;
    }
}



/* Nav Menu */
/* Navigation Menu - Center */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: #4a5568;
    font-weight: 400;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-menu a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 179, 237, 0.1), transparent);
    transition: left 0.5s ease;
}

.nav-menu a:hover::before 
{
    left: 100%;
}

.nav-menu a:hover {
    color: #1f80ff;
    background: rgba(99, 179, 237, 0.1);
    transform: translateY(-1px);
}

body.dark .nav-menu a {
    color: #a0aec0;
}

body.dark .nav-menu a:hover {
    color: #63b3ed;
    background: rgba(99, 179, 237, 0.15);
}

/* Mobile Profile Section Styles - Add to your CSS */

.mobile-profile-section {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 10px;
}

.mobile-sign-in-btn {
    display: block;
    background: linear-gradient(135deg, #4299e1, #3182ce);
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(66, 153, 225, 0.3);
}

.mobile-sign-in-btn:hover {
    background: linear-gradient(135deg, #3182ce, #2c5aa0);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(66, 153, 225, 0.4);
}

.mobile-user-profile {
    display: flex;
    align-items: center;
}

.mobile-profile-info {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.mobile-profile-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid rgba(66, 153, 225, 0.3);
}

.mobile-profile-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mobile-profile-name {
    font-weight: 600;
    color: white;
    font-size: 1rem;
}

.mobile-profile-email {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.menu-separator {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 15px 0;
    list-style: none;
}

/* Update existing mobile menu links for auth-specific styling */
.mobile-auth-links li a {
    color: rgba(255, 255, 255, 0.8);
}

.mobile-auth-links li a:hover {
    color: #63b3ed;
    background: rgba(99, 179, 237, 0.1);
}

/* Profile Section Styles - Add to your CSS */

.profile-section {
    display: flex;
    align-items: center;
    margin-left: auto;
    margin-right: 1rem;
    position: relative;
}

.sign-in-btn {
    background: linear-gradient(135deg, #4299e1, #3182ce);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(66, 153, 225, 0.3);
}

.sign-in-btn:hover {
    background: linear-gradient(135deg, #3182ce, #2c5aa0);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(66, 153, 225, 0.4);
}

body.dark .sign-in-btn {
    background: linear-gradient(135deg, #63b3ed, #4299e1);
    box-shadow: 0 2px 10px rgba(99, 179, 237, 0.3);
}

body.dark .sign-in-btn:hover {
    background: linear-gradient(135deg, #4299e1, #3182ce);
    box-shadow: 0 4px 15px rgba(99, 179, 237, 0.4);
}

/* User Profile Dropdown */
.profile-dropdown {
    position: relative;
}

.profile-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 6px 12px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #2d3748;
}

.profile-trigger:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

body.dark .profile-trigger {
    background: rgba(45, 55, 72, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
}

body.dark .profile-trigger:hover {
    background: rgba(45, 55, 72, 0.9);
}

.profile-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.profile-name {
    font-weight: 500;
    font-size: 0.9rem;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dropdown-arrow {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
    color: #4299e1;
}

body.dark .dropdown-arrow {
    color: #63b3ed;
}

.profile-trigger.active .dropdown-arrow {
    transform: rotate(180deg);
}

/* Profile Menu */
.profile-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    min-width: 220px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.profile-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

body.dark .profile-menu {
    background: rgba(26, 32, 44, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.profile-menu-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

body.dark .profile-menu-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-menu-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(66, 153, 225, 0.3);
}

.profile-menu-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.profile-menu-name {
    font-weight: 600;
    color: #2d3748;
    font-size: 0.95rem;
}

body.dark .profile-menu-name {
    color: #e2e8f0;
}

.profile-menu-email {
    font-size: 0.8rem;
    color: #718096;
}

body.dark .profile-menu-email {
    color: #a0aec0;
}

.profile-menu-links {
    padding: 10px 0;
}

.profile-menu-links a {
    display: block;
    padding: 12px 20px;
    color: #4a5568;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.profile-menu-links a:hover {
    background: rgba(66, 153, 225, 0.1);
    color: #4299e1;
}

body.dark .profile-menu-links a {
    color: #a0aec0;
}

body.dark .profile-menu-links a:hover {
    background: rgba(99, 179, 237, 0.1);
    color: #63b3ed;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .profile-section {
        order: 3;
        margin-right: 0;
    }
    
    .sign-in-btn {
        padding: 6px 16px;
        font-size: 0.85rem;
    }
    
    .profile-trigger {
        padding: 4px 8px;
    }
    
    .profile-name {
        display: none; /* Hide name on mobile to save space */
    }
    
    .profile-menu {
        right: -10px;
        min-width: 200px;
    }
}

@media (max-width: 480px) {
    .profile-menu {
        right: -20px;
        left: 20px;
        min-width: auto;
    }
}

/* Authentication Overlay Styles */
.auth-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.auth-overlay.active {
    opacity: 1;
    visibility: visible;
}

.auth-modal {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 40px;
    width: 90%;
    max-width: 450px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s ease;
    text-align: center;
}

.auth-overlay.active .auth-modal {
    transform: scale(1) translateY(0);
}

body.dark .auth-modal {
    background: rgba(45, 55, 72, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.auth-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.auth-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #2d3748;
}

body.dark .auth-close {
    color: #a0aec0;
}

body.dark .auth-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
}

.auth-title {
    font-size: 2rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 10px;
    font-family: 'Poppins', sans-serif;
}

body.dark .auth-title {
    color: #e2e8f0;
}

.auth-subtitle {
    font-size: 1rem;
    color: #4a5568;
    margin-bottom: 30px;
    opacity: 0.8;
}

body.dark .auth-subtitle {
    color: #a0aec0;
}

.auth-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.auth-button {
    background: #4285F4;
    color: white;
    padding: 15px 24px;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.auth-button::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 ease;
}

.auth-button:hover::before {
    left: 100%;
}

.auth-button:hover {
    background: #3367d6;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(66, 133, 244, 0.3);
}

.auth-button img {
    width: 20px;
    height: 20px;
}

.auth-divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
    color: #718096;
    font-size: 0.9rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(0, 0, 0, 0.1);
}

.auth-divider::before {
    margin-right: 15px;
}

.auth-divider::after {
    margin-left: 15px;
}

body.dark .auth-divider {
    color: #a0aec0;
}

body.dark .auth-divider::before,
body.dark .auth-divider::after {
    background: rgba(255, 255, 255, 0.1);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.auth-input {
    padding: 15px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
}

.auth-input:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

body.dark .auth-input {
    background: rgba(45, 55, 72, 0.8);
    border-color: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
}

body.dark .auth-input:focus {
    border-color: #63b3ed;
    box-shadow: 0 0 0 3px rgba(99, 179, 237, 0.1);
}

.auth-button.email {
    background: #38a169;
}

.auth-button.email:hover {
    background: #2f855a;
    box-shadow: 0 8px 25px rgba(56, 161, 105, 0.3);
}

.auth-toggle {
    margin-top: 20px;
    color: #4a5568;
    font-size: 0.9rem;
}

body.dark .auth-toggle {
    color: #a0aec0;
}

.auth-toggle a {
    color: #4299e1;
    text-decoration: none;
    font-weight: 500;
}

.auth-toggle a:hover {
    text-decoration: underline;
}

body.dark .auth-toggle a {
    color: #63b3ed;
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
    .auth-modal {
        padding: 30px 25px;
        margin: 20px;
        width: calc(100% - 40px);
    }
    
    .auth-title {
        font-size: 1.8rem;
    }
    
    .auth-button {
        padding: 14px 20px;
        font-size: 1rem;
    }
}