/* Common styles shared across all pages */
:root {
    /* Brand Colors */
    --primary-color: #e63946;
    --primary-rgb: 230, 57, 70;
    --secondary-color: #f1c40f;
    
    /* Theme Colors */
    --theme-pink: #ffc4c6;
    --theme-pink-rgb: 255, 196, 198;
    --theme-purple: #b590b9;
    --theme-purple-rgb: 181, 144, 185;
    
    /* Dark theme (default) */
    --bg-color: #121212;
    --darker-bg: #0a0a0a;
    --text-color: #f5f5f5;
    --gray-text: #aaaaaa;
    --card-bg: #1e1e1e;
    --shadow-color: rgba(0, 0, 0, 0.3);
    --shadow-hover: rgba(0, 0, 0, 0.5);
    --primary-hover: #c62b38;
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Gradients */
    --gradient-start: #d00000;  /* deeper red */
    --gradient-middle: #e63946;  /* brand red */
    --gradient-end: #ff4d4d;    /* lighter red */
    --nav-bg-start: #f8f9ff;    /* very light blue */
    --nav-bg-end: #ffffff;      /* white */
    --btn-gradient-start: #e63946; /* brand red */
    --btn-gradient-end: #ff4d4d;   /* lighter red */
    --theme-gradient: linear-gradient(135deg, var(--theme-pink), var(--theme-purple));
    --gradient-bg: radial-gradient(circle at center,
        #ffffff 0%,
        rgba(255, 196, 198, 0.2) 50%,
        rgba(181, 144, 185, 0.1) 100%
    );
}

/* Light theme */
.light-theme {
    --bg-color: #ffffff;
    --darker-bg: #fafafa;
    --text-color: #1a1e22;
    --gray-text: #5a6268;
    --card-bg: rgba(255, 255, 255, 0.9);
    --shadow-color: rgba(181, 144, 185, 0.15);
    --shadow-hover: rgba(181, 144, 185, 0.2);
    
    /* Keep existing gradient variables */
    --gradient-start: #d00000;
    --gradient-middle: #e63946;
    --gradient-end: #ff4d4d;
    --nav-bg-start: #f8f9ff;
    --nav-bg-end: #ffffff;
    --btn-gradient-start: #e63946;
    --btn-gradient-end: #ff4d4d;
}

body.light-theme {
    background: linear-gradient(135deg, 
        rgba(255, 196, 198, 0.1),
        rgba(255, 255, 255, 0.8),
        rgba(181, 144, 185, 0.1)
    );
    background-attachment: fixed;
}

.light-theme .section-title h2 {
    background: linear-gradient(120deg, var(--theme-pink), var(--theme-purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: black;
    font-weight: 600;
}

.light-theme .btn {
        font-weight: 500;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.2rem;
    font-size: 0.95rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    color: white;
    background: linear-gradient(120deg, var(--btn-gradient-start), var(--btn-gradient-end));
    border: 1px solid transparent;
   
}


.light-theme .btn:hover {
background: linear-gradient(to left, #614a6d85 1%, rgb(255 0 0 / 100%) 100%);    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(181, 144, 185, 0.3);
}

.light-theme .card,
.light-theme .section-wrapper,
.light-theme .form-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 196, 198, 0.1);
    box-shadow: 0 4px 15px rgba(181, 144, 185, 0.1);
}

.light-theme .card:hover {
    border-color: rgba(181, 144, 185, 0.2);
    box-shadow: 0 8px 25px rgba(181, 144, 185, 0.15);
    transform: translateY(-2px);
}

.light-theme footer {
    background:white;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    border-top: 1px solid rgba(0, 0, 0, 0.29);
}

.light-theme .social-links a {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(181, 144, 185, 0.1);
    border: 1px solid rgba(255, 196, 198, 0.1);
}

.light-theme .social-links a:hover {
    background: linear-gradient(120deg, var(--theme-pink), var(--theme-purple));
    border-color: transparent;
}

.light-theme input,
.light-theme textarea,
.light-theme select {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(181, 144, 185, 0.2);
    box-shadow: inset 0 2px 4px rgba(181, 144, 185, 0.05);
}

.light-theme input:focus,
.light-theme textarea:focus,
.light-theme select:focus {
    border-color: var(--theme-purple);
    box-shadow: 0 0 0 2px rgba(181, 144, 185, 0.1);
}

/* Global styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    opacity: 1;
    transition: opacity 0.3s ease-out;
}

a {
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition);
}

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

.container {
    /* width: 90%; */
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5px;
}

/* Header styles */
header {
    background: linear-gradient(to right, 
        var(--nav-bg-start),
        var(--nav-bg-end),
        var(--nav-bg-start)
    );
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: var(--transition);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.light-theme header {
   
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.logo {
    flex: 0 0 auto;  /* Don't allow logo to grow or shrink */
    padding-right: 2rem;
}

.logo-img {
    height: 40px;  /* Reduced from 45px */
    width: auto;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.logo:hover .logo-img {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    flex: 1;  /* Changed from flex: 2 to give less space to nav section */
    justify-content: center;
    gap: 1.5rem;  /* Reduced gap */
    position: relative;  /* Added horizontal margin */
}

.nav-links li {
    margin: 0;
}

.nav-links a {
    font-weight: 500;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    font-size: 0.95rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    color: var(--text-color);
    background: transparent;
    border: 1px solid transparent;
}

.nav-links a i {
    font-size: 1rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    background: linear-gradient(120deg, 
        var(--btn-gradient-start),
        var(--btn-gradient-end)
    );
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.2);
    border-color: transparent;
}

.nav-links a:not(:hover):not(.active) {
    background: var(--nav-bg-end);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.nav-links a:hover i,
.nav-links a.active i {
    color: white;
}

/* Hide theme toggle button on all pages */
.theme-toggle {
    display: none !important;
    background: linear-gradient(120deg, 
        var(--btn-gradient-start),
        var(--btn-gradient-end)
    );
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.6rem;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 1rem;
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.15);
}

.theme-toggle:hover {
    transform: rotate(15deg) scale(1.1);
    box-shadow: 0 6px 16px rgba(var(--primary-rgb), 0.25);
}

/* Add styles for auth buttons in nav */
.nav-links .auth-links {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: 10px;
}

.nav-links .auth-links a {
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.nav-links .auth-links .btn-small {
    padding: 6px 12px;
    border-radius: 20px;
    background: var(--primary-color, #e63946);
    color: white;
    font-weight: 500;
    font-size: 14px;
}

.nav-links .auth-links .btn-small:hover {
    background: var(--primary-hover, #cf3a45);
    transform: translateY(-2px);
}

/* User dropdown menu in nav */
.user-menu {
    position: relative;
}

.user-menu-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    color: var(--text-color, #fff);
    font-size: 15px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.user-menu-btn i {
    font-size: 20px;
}

.user-menu-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.user-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    min-width: 200px;
    background: var(--card-bg, #fff);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
    overflow: hidden;
}

.user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown a {
    display: flex !important;
    align-items: center;
    padding: 10px 15px !important;
    color: var(--text-color) !important;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 14px;
}

.user-dropdown a:hover {
    background: rgba(230, 57, 70, 0.1);
    color: var(--primary-color, #e63946) !important;
}

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

/* Profile picture styles */
.profile-pic-small {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--theme-pink, #ffc4c6);
    display: inline-block;
    vertical-align: middle;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.user-menu-btn .profile-pic-small {
    margin-right: 6px;
}

.user-menu-btn:hover .profile-pic-small {
    transform: scale(1.05);
    border-color: var(--theme-purple, #b590b9);
}

.profile-upload {
    text-align: center;
    margin-bottom: 20px;
}

.profile-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--profile-bg);
    display: block;
    margin: 0 auto 10px;
}

/* Mobile menu styles */
.mobile-menu {
    display: none;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.mobile-menu:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(var(--primary-rgb), 0.3);
}

.bar {
    display: block;
    width: 25px;
    height: 2px;
    margin: 5px auto;
    background: linear-gradient(to right, #ff0009, #000000);
    transition: var(--transition);
    border-radius: 2px;
}

.mobile-menu.active .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu.active .bar:nth-child(2) {
    opacity: 0;
}

.mobile-menu.active .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu .bar {
    background-color: #333; /* Darker color for better visibility */
    height: 3px; /* Slightly thicker bars */
    width: 25px;
    margin: 5px 0;
    transition: 0.4s;
}

/* When in dark mode, make bars light colored */
.dark-mode .mobile-menu .bar {
    background-color: #fff;
}

/* Mobile Navigation Styles */
.mobile-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 80%;
    max-width: 300px;
    height: 100%;
    background: linear-gradient(113deg, #b590b9 61%, #ffffff 0%);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    padding: 2rem 1rem;
}

.mobile-sidebar.active {
    transform: translateX(0);
}

.sidebar-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
}

.sidebar-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #fff;
    padding: 3px;
    margin-bottom: 1rem;
}

.sidebar-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.sidebar-username {
    background: #fff;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-weight: 600;
    color: #333;
    font-size: 1.1rem;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    padding: 0 0.5rem;
}

.sidebar-btn {
    position: relative;
    box-shadow: black 0px 0px 10px 1px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: #fff;
    border: none;
    border-radius: 25px;
    padding: 0.8rem 1.2rem;
    color: #333;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    text-align: left;
}

.sidebar-btn i {
    width: 24px;
}

.sidebar-btn .cart-badge {
    position: static;
    margin-left: 0.5em;
    right: unset;
    top: unset;
    transform: none;
    display: inline-block;
    vertical-align: middle;
    font-size: 0.85rem;
    min-width: 1.5em;
    text-align: center;
    padding: 0.1em 0.55em;
    border-radius: 50%;
    background: #e63946;
    color: #fff;
    font-weight: 700;
}

.sidebar-btn-row {
    display: flex;
    gap: 0.8rem;
}

.sidebar-btn-row .sidebar-btn {
    flex: 1;
    padding: 0.8rem;
    justify-content: center;
}

.cart-badge {
    background: #ff4757;
    color: #fff;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
    margin-left: auto;
}

.sidebar-auth {
    margin-top: 1rem;
    background: transparent;
    border: 2px solid #fff;
    color: black;
}

.sidebar-auth:hover {
    background: #fff;
    color: #b590b9;
}

.sidebar-footer {
    margin-top: auto;
    text-align: center;
    padding-top: 2rem;
}

.sidebar-footer img {
    width: 100px;
    margin-bottom: 1rem;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

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

/* @media screen and (max-width: 768px) {
    .navbar, .nav-links {
        display: none !important;
    }
} */

@media screen and (max-width: 768px) {
    .navbar {
        padding: 0.5rem 1rem;
    }

    .mobile-menu {
        display: block;
        z-index: 100;
    }

    .nav-links {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        text-align: center;
        transition: 0.4s ease;
        padding: 2rem 0;
        gap: 1rem;
        border-top: 1px solid rgba(0,0,0,0.05);
    }

    .nav-links.active {
        left: 0;
        box-shadow: 0 4px 25px rgba(0, 0, 0, 0.15);
    }

    .nav-links li {
        margin: 0.5rem 0;
        width: 90%;
        max-width: 300px;
        margin: 0 auto;
    }

    .nav-links a {
        width: 100%;
        justify-content: center;
        border: 1px solid rgba(0, 0, 0, 0.08);
        margin: 0.5rem 0;
    }

    body.sidebar-open .navbar,
    body.sidebar-open .nav-links,
    .navbar[style*="display: block"],
    .nav-links[style*="display: block"] {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
        height: 0 !important;
    }

    body.sidebar-open header nav ul.nav-links,
    body.sidebar-open header nav ul {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
        height: 0 !important;
    }

    body.sidebar-open .mobile-sidebar {
        transform: translateX(0) !important;
    }

    body.sidebar-open .sidebar-overlay {
        opacity: 1;
        visibility: visible;
    }

    body.sidebar-open {
        overflow: hidden;
    }

    .mobile-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 80%;
        max-width: 300px;
        height: 100%;
        background: linear-gradient(113deg, #b590b9 61%, #ffffff 0%);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1000;
        display: flex;
        flex-direction: column;
        padding: 2rem 1rem;
    }

    .mobile-sidebar.active {
        transform: translateX(0);
    }

    .sidebar-header {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-bottom: 2rem;
    }

    .sidebar-avatar {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        background: #fff;
        padding: 3px;
        margin-bottom: 1rem;
    }

    .sidebar-avatar img {
        width: 100%;
        height: 100%;
        border-radius: 50%;
        object-fit: cover;
    }

    .sidebar-username {
        background: #fff;
        padding: 0.5rem 1.5rem;
        border-radius: 20px;
        font-weight: 600;
        color: #333;
        font-size: 1.1rem;
    }

    .sidebar-nav {
        display: flex;
        flex-direction: column;
        gap: 0.8rem;
        padding: 0 0.5rem;
    }

    .sidebar-btn {
        position: relative;
        box-shadow: black 0px 0px 10px 1px;
        display: flex;
        align-items: center;
        gap: 0.8rem;
        background: #fff;
        border: none;
        border-radius: 25px;
        padding: 0.8rem 1.2rem;
        color: #333;
        font-size: 1rem;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.2s ease;
        width: 100%;
        text-align: left;
    }

    .sidebar-btn i {
        width: 24px;
    }

    .sidebar-btn .cart-badge {
        position: static;
        margin-left: 0.5em;
        right: unset;
        top: unset;
        transform: none;
        display: inline-block;
        vertical-align: middle;
        font-size: 0.85rem;
        min-width: 1.5em;
        text-align: center;
        padding: 0.1em 0.55em;
        border-radius: 50%;
        background: #e63946;
        color: #fff;
        font-weight: 700;
    }

    .sidebar-btn-row {
        display: flex;
        gap: 0.8rem;
    }

    .sidebar-btn-row .sidebar-btn {
        flex: 1;
        padding: 0.8rem;
        justify-content: center;
    }

    .cart-badge {
        background: #ff4757;
        color: #fff;
        padding: 0.2rem 0.5rem;
        border-radius: 12px;
        font-size: 0.8rem;
        margin-left: auto;
    }

    .sidebar-auth {
        margin-top: 1rem;
        background: transparent;
        border: 2px solid #fff;
        color: black;
    }

    .sidebar-auth:hover {
        background: #fff;
        color: #b590b9;
    }

    .sidebar-footer {
        margin-top: auto;
        text-align: center;
        padding-top: 2rem;
    }

    .sidebar-footer img {
        width: 100px;
        margin-bottom: 1rem;
    }

    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999;
    }

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

@media (max-width: 480px) {
    .navbar {
        padding: 0.5rem;
    }

    .logo-img {
        height: 32px;  /* Smallest size for mobile */
    }

    .logo {
        padding-right: 0.5rem;
    }
}

/* Footer */
footer {
    background-color: var(--darker-bg);
    padding: 3rem 0;
    text-align: center;
}

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

.social-links {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--card-bg);
    margin: 0 10px;
    color: var(--text-color);
    font-size: 1.2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.social-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    border-radius: 50%;
    transform: scale(0);
    transition: var(--transition);
    z-index: -1;
}

.social-links a:hover::before {
    transform: scale(1);
}

.social-links a:hover {
    color: white;
    transform: translateY(-5px);
}

.footer-bottom {
    margin-top: 2rem;
    color: var(--gray-text);
}

/* Common button styles */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 30px;
    background: var(--primary-color);
    color: white;
    font-weight: 600;
    border: none;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    z-index: 1;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.3);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(var(--primary-rgb), 0.4);
}

/* Common section title styles */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-title p {
    color: var(--darker-bg);
    max-width: 700px;
    margin: 0 auto;
}

/* Hero section styles */
.hero {
    position: relative;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, 
        rgba(0,0,0,0.7) 0%,
        rgba(0,0,0,0.5) 50%,
        rgba(0,0,0,0.7) 100%
    );
    z-index: 1;
}

.hero-decoration {
    position: absolute;
    bottom: -20px;
    left: 0;
    width: 100%;
    height: 60px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23ffffff' fill-opacity='1' d='M0,96L48,112C96,128,192,160,288,186.7C384,213,480,235,576,213.3C672,192,768,128,864,128C960,128,1056,192,1152,202.7C1248,213,1344,171,1392,149.3L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E");
    background-size: cover;
    background-repeat: no-repeat;
    z-index: 2;
    opacity: 0.8;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
    padding: 0 20px;
    max-width: 800px;
    margin: 0 auto;
}

/* Authentication Animations */
@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

#auth-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    color: white;
    animation: fadeIn 0.3s ease forwards;
}

.auth-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 20px;
}

.auth-message {
    font-size: 18px;
    font-weight: bold;
}

#auth-success-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.auth-success-icon {
    font-size: 50px;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

/* Responsive design */
@media (max-width: 768px) {
    .mobile-menu {
        display: block;
        color:black;
    }
    .nav-links {
        position: fixed;
        left: -105%;
        top: 70px;
        flex-direction: column;
        background-color: var(--darker-bg);
        width: 100%;
        text-align: center;
        transition: var(--transition);
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.2);
        padding: 1.5rem 0;
        z-index: 99;
    }
    .nav-links.active {
        left: 0;
    }    .nav-links li {
        margin: 0.6rem 0;
        width: 85%;
        max-width: 300px;
    }
    
    .nav-links a {
        padding: 12px 20px;
        justify-content: center;
        font-size: 1rem;
        border-radius: 10px;
        border: 1px solid rgba(var(--theme-pink-rgb), 0.1);
        background: rgba(255, 255, 255, 0.7);
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
    }
    
    .nav-links a:hover,
    .nav-links a.active {
        background: var(--theme-gradient);
        border-color: transparent;
    }
    .section-title h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .logo-img {
        height: 32px;  /* Smallest size for mobile */
    }
    .navbar {
        padding: 0.5rem;
    }
    .btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
    }
    .section-title h2 {
        font-size: 1.8rem;
    }
}

/* Utilities */
.image-loading {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.image-loaded {
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}

img {
    max-width: 100%;
    height: auto;
}

/* Accessibility */
a:focus,
button:focus,
.btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

html {
    zoom: 0.85;
}
