.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 75px;
    min-height: 75px;
    max-height: 75px;
    padding: 0 1.53rem;
    margin-top: 2.5rem;
    background: rgba(var(--bg-secondary-rgb), 0.50);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    width: 95%;
    margin-left: auto;
    margin-right: auto;
    z-index: 1000;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
    transition: all 0.3s ease;
    border-radius: 2.5rem 2.5rem 2.5rem 2.5rem;
    /* Curved bottom corners only, not a full oval */
}

.logo {
    position: relative;
    padding: 0.5rem;
}

.logo-img {
    height: 45px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 0 0 rgba(255, 56, 100, 0));
}

.logo:hover .logo-img {
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px rgba(255, 56, 100, 0.5));
}

.nav-group {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links a {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.5rem 1.2rem;
    position: relative;
    transition: all 0.3s ease;
}

/* Remove underline effect */
.nav-links a:after {
    display: none;
}

/* Simple scale hover with color change */
.nav-links a:hover {
    color: var(--text-primary);
    transform: scale(1.05);
}

/* Navigation Links */
.nav-links a[href="/"] {
    color: var(--text-primary) !important;
}

.nav-links a[href="/"]:after {
    content: '';
    position: absolute;
    width: 100% !important;
    height: 2px;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--accent);
    opacity: 1 !important;
}

/* Theme Switch */
.theme-switch-wrapper {
    display: flex;
    align-items: center;
    border-left: 1px solid var(--border);
    padding-left: 2rem;
    transition: border-color 0.3s ease;
}

.theme-switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 26px;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #2D3748;
    transition: .3s ease-in-out;
    border-radius: 26px;
    border: 1px solid #2D3748;
}

[data-theme="light"] .slider {
    background-color: #000000;
    border-color: #dadada;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--accent);
    border-radius: 50%;
    transition: all 0.3s ease;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z'%3E%3C/path%3E%3C/svg%3E");
    background-size: 12px;
    background-repeat: no-repeat;
    background-position: center;
}

input:checked + .slider {
    background-color: #2D3748;
}

[data-theme="light"] input:checked + .slider {
    background-color: #dbdbdb;
}

input:checked + .slider:before {
    transform: translate(26px, -50%);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='5'/%3E%3Cpath d='M12 1v2M12 21v2M4.22 4.22l1.42 1.42M18.36 18.36l1.42 1.42M1 12h2M21 12h2M4.22 19.78l1.42-1.42M18.36 5.64l1.42-1.42'/%3E%3C/svg%3E");
}

/* Modern Footer Styles */
.site-footer {
    background: var(--bg-secondary);
    border-top: 2px solid var(--accent);
    padding: 4rem 2rem 1.5rem;
    margin-top: 6rem;
    /* position: static by default, so just remove fixed positioning */
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 6rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    text-align: center;
}

.footer-logo {
    width: 140px;
    height: auto;
    filter: brightness(0.9);
}

.social-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    width: 100%;
}

.social-link {
    color: var(--text-secondary);
    font-size: 1.5rem;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.social-link:hover {
    color: var(--accent);
    transform: translateY(-2px);
    opacity: 1;
}

.footer-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
}

.footer-section h4 {
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-section a:hover {
    color: var(--text-primary);
    opacity: 1;
    transform: translateX(5px);
}

.footer-bottom {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(var(--accent-rgb), 0.1);
    text-align: center;
}

.footer-credits {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.footer-slogan {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

.footer-copyright {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-team {
    color: var(--accent);
    font-weight: 800;
    letter-spacing: 2px;
}

.footer-year {
    color: var(--text-secondary);
    font-size: 0.9rem;
    letter-spacing: 1px;
    opacity: 0.8;
}

.nav-links a i {
    margin-right: 0.5rem;
    font-size: 1rem;
    transition: color 0.3s ease;
}

/* Remove hover transform */
.nav-links a:hover i {
    transform: none;
}

.nav-links .nav-cta {
    background: transparent;
    padding: 0.7rem 1.6rem;
    margin-left: 2rem;
    position: relative;
    color: var(--accent);
    font-weight: 700;
    letter-spacing: 1px;
    transform: skew(-10deg);
    border: 2px solid var(--accent);
    overflow: hidden;
}

.nav-links .nav-cta span {
    display: inline-block;
    transform: skew(10deg);
}

.nav-links .nav-cta:before {
    content: '';
    position: absolute;
    inset: -2px; /* Extend behind border */
    background: var(--accent);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
    transform: skew(0deg);
}

.nav-links .nav-cta:hover {
    color: var(--text-primary);
    transform: skew(-10deg);
}

.nav-links .nav-cta:hover span {
    transform: skew(10deg);
}

.nav-links .nav-cta:hover:before {
    opacity: 1;
}

.nav-links .nav-cta i {
    font-size: 1.2rem;
    margin-right: 0.8rem;
    transition: color 0.3s ease;
}

/* Remove hover transform and rotation */
.nav-links .nav-cta:hover i {
    transform: none !important;
}

.burger-menu {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 1rem;
    cursor: pointer;
    margin-left: auto;
    z-index: 1001;
}

.burger-line {
    width: 28px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

.burger-menu.active .burger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.burger-menu.active .burger-line:nth-child(2) {
    opacity: 0;
}

.burger-menu.active .burger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

@media (max-width: 768px) {
    .burger-menu {
        display: flex;
        position: relative;
        z-index: 1001;
    }

    .nav-group {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 300px;
        background: var(--bg-secondary);
        flex-direction: column;
        padding: 6rem 2rem 3rem;
        transition: all 0.3s ease;
        transform: translateX(100%);
        visibility: hidden;
    }

    .nav-group.active {
        transform: translateX(0);
        visibility: visible;
    }

    .nav-links {
        opacity: 0;
        transform: translateX(30px);
        transition: all 0.3s ease;
    }

    .nav-group.active .nav-links {
        opacity: 1;
        transform: translateX(0);
        transition-delay: 0.2s;
    }

    .theme-switch-wrapper {
        opacity: 0;
        transform: translateX(30px);
        transition: all 0.3s ease;
    }

    .nav-group.active .theme-switch-wrapper {
        opacity: 1;
        transform: translateX(0);
        transition-delay: 0.3s;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4rem;
        margin-top: 2rem;
        opacity: 0;
        transition: opacity 0.2s ease;
    }

    .nav-links a {
        display: inline-block;
        width: fit-content;
    }

    .nav-links a:after {
        content: '';
        position: absolute;
        width: 0;
        height: 2px;
        bottom: -4px;
        left: 50%;
        transform: translateX(-50%);
        background-color: var(--accent);
        transition: width 0.2s ease-in-out;
    }

    .nav-links a:hover:after,
    .nav-links a.active:after {
        width: 100%;
    }

    .nav-links a {
        font-size: 1.2rem;
        padding: 1rem 2rem;
    }

    .theme-switch-wrapper {
        border: none;
        padding: 0;
        margin-top: auto;
    }

    .nav-group.active .nav-links,
    .nav-group.active .theme-switch-wrapper {
        opacity: 1;
        transition-delay: 0.2s;
    }
}

/* Standout style for logged-in username button */

.nav-account {
  background: linear-gradient(90deg, #ff1744 0%, #ff4569 100%);
  color: #fff !important;
  border-radius: 2em;
  font-weight: 900;
  font-size: 1.13em;
  padding: 0.55em 1.5em 0.55em 1.2em;
  margin-left: 0.7em;
  box-shadow: 0 2px 16px #ff174488, 0 0 0 2.5px #ff1744cc;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  letter-spacing: 0.01em;
  border: none;
  outline: none;
  text-decoration: none;
  background-size: 200% 100%;
  background-position: 0% 0%;
  transition: box-shadow 0.28s cubic-bezier(.4,0,.2,1), background-position 0.38s cubic-bezier(.4,0,.2,1);
}

.nav-account:hover, .nav-account:focus {
  box-shadow: 0 4px 24px #ff174488;
  color: #fff !important;
  background-position: 100% 0%;
}

.nav-account i {
  font-size: 1.25em;
}

.nav-account span {
  font-weight: 900;
  letter-spacing: 0.01em;
}
