/* CSS Custom Properties for Theme Support */


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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 1rem auto;
    padding: 0rem 1rem 0;
    min-height: 5vh;
}

/* Theme Toggle Button */
.theme-toggle {
    position: fixed;
    bottom: 30px; /* Very close to footer on mobile */
    right: 1rem;
    width: 40px; /* Smaller for mobile */
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-primary);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px var(--shadow-medium);
    transition: all 0.3s ease;
    z-index: 1000;
}

/* Tablet and desktop adjustments */
@media (min-width: 768px) {
    .theme-toggle {
        bottom: 120px;
        right: 2rem;
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}

/* Hero Section */
.hero-section {
    background: var(--gradient-hero);
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.star {
    position: absolute;
    font-size: 1.5rem;
    animation: twinkle 3s infinite;
}

.star-1 {
    top: 20%;
    left: 15%;
    animation-delay: 0s;
}

.star-2 {
    top: 30%;
    right: 20%;
    animation-delay: 1s;
}

.star-3 {
    bottom: 25%;
    left: 25%;
    animation-delay: 2s;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* Calculator Section */
.calculator-section {
    padding: 1rem 0;
    background-color: var(--bg-secondary);
}

.calculator-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 10px 30px var(--shadow-light);
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    border: 1px solid var(--border-color);
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.section-description {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.calculator-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.input-group {
    text-align: left;
}

.input-label {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.date-input {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1.1rem;
    background-color: var(--input-bg);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.date-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.input-help {
    display: block;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.cta-button {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 1.25rem 2rem;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
}

.cta-button:active {
    transform: translateY(0);
}

.button-icon {
    font-size: 1.3rem;
}

/* Error and Loading States */
.error-message {
    background-color: #fee2e2;
    color: #dc2626;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid #fecaca;
}

[data-theme="dark"] .error-message {
    background-color: rgba(220, 38, 38, 0.1);
    border-color: rgba(220, 38, 38, 0.3);
}

.loading-state {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Results Section */
.results-section {
    padding: 4rem 0;
    background-color: var(--bg-primary);
}

.results-header {
    text-align: center;
    margin-bottom: 3rem;
}

.results-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.results-subtitle {
    color: var(--text-secondary);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    align-items: start;
}

.result-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 25px var(--shadow-light);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    height: fit-content;
    display: flex;
    flex-direction: column;
}

.result-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px var(--shadow-medium);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.card-icon {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.card-content {
    color: var(--text-secondary);
    line-height: 1.6;
}

.data-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    gap: 1rem;
}

.data-item:last-child {
    border-bottom: none;
}

.data-label {
    font-weight: 500;
    color: var(--text-secondary);
    flex-shrink: 0;
    min-width: 100px;
}

.data-value {
    font-weight: 600;
    color: var(--text-primary);
    text-align: right;
    word-wrap: break-word;
    flex: 1;
}

.compatibility-score {
    text-align: center;
    padding: 1.5rem;
    background: var(--gradient-primary);
    border-radius: 12px;
    color: white;
    margin-top: 1rem;
}

.score-number {
    font-size: 3rem;
    font-weight: 700;
    display: block;
}

.score-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Phase Meaning Card Specific Styles */
.phase-meaning-card {
    grid-column: 1 / -1; /* Span full width */
}

.phase-meaning-content {
    text-align: left;
}

.meaning-text {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    border-left: 4px solid var(--accent-primary);
}

.meaning-text strong {
    color: var(--accent-primary);
    font-weight: 600;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.action-button {
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    border: none;
    font-size: 1rem;
}

.action-button.primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

.action-button.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
}

.action-button.secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.action-button.secondary:hover {
    background: var(--bg-tertiary);
    transform: translateY(-2px);
}

/* Information Section */
.info-section {
    padding: 1rem 0;
    background-color: var(--bg-secondary);
}

.info-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.info-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.info-description {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 3rem;
}

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

.info-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 8px 25px var(--shadow-light);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px var(--shadow-medium);
}

.info-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.info-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.info-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

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

.footer-content {
    margin-bottom: 2rem;
}

.footer-links-simple ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-links-simple a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links-simple a:hover {
    color: var(--accent-gold);
}

.footer p {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.copyright {
    font-weight: 600;
}

.site-name {
    color: var(--accent-gold);
}

.tagline {
    font-size: 0.9rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    
    
    .theme-toggle {
        order: 2;
        position: absolute !important;
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
        width: 40px !important;
        height: 40px !important;
        margin: 0 !important;
        z-index: 1002;
    }
    
    
    .calculator-card {
        padding: 2rem;
        margin: 0 0rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .results-title {
        font-size: 2.5rem;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .action-button {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .footer-links-simple ul {
        flex-direction: column;
        gap: 1rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .calculator-card {
        padding: 1.5rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .result-card {
        padding: 1.5rem;
    }
    
    .theme-toggle {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus Styles for Accessibility */
button:focus,
input:focus,
a:focus {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --border-color: #000000;
        --shadow-light: rgba(0, 0, 0, 0.5);
        --shadow-medium: rgba(0, 0, 0, 0.7);
    }
    
    [data-theme="dark"] {
        --border-color: #ffffff;
    }
}


/* FAQ Section Styles */
.faq-section {
    padding: 1rem 0.75rem 0;
    background-color: var(--bg-secondary);
}

.faq-header {
    text-align: center;
    margin-bottom: 2rem;
}

.faq-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.faq-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 90%;
    margin: 0 auto;
    line-height: 1.5;
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
}

.faq-card {
    background: var(--card-bg);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px var(--shadow-light);
    margin: 0;
}

.faq-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--shadow-medium);
}

.faq-question {
    padding: 1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    background: var(--card-bg);
    transition: background-color 0.3s ease;
    min-height: 60px;
}

.faq-question:hover {
    background: var(--bg-secondary);
}

.faq-question h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.4;
    flex-grow: 1;
    word-break: break-word;
    hyphens: auto;
}

.faq-toggle {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--accent-primary);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-secondary);
    margin-top: 2px;
}

.faq-card.active .faq-toggle {
    transform: rotate(45deg);
    background: var(--accent-primary);
    color: white;
}

.faq-answer {
    padding: 0 1rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background: var(--bg-secondary);
}

.faq-card.active .faq-answer {
    max-height: none;
    padding: 0 1rem 1rem;
}

.faq-answer p {
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
    padding-top: 0.5rem;
    font-size: 0.9rem;
    word-break: break-word;
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 480px) {
    .faq-section {
        padding: 0.75rem 0.5rem 0;
    }
    
    .faq-header {
        margin-bottom: 1.5rem;
    }
    
    .faq-title {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }
    
    .faq-subtitle {
        font-size: 0.95rem;
        max-width: 95%;
    }
    
    .faq-grid {
        gap: 0.5rem;
    }
    
    .faq-card {
        border-radius: 6px;
        box-shadow: 0 1px 6px var(--shadow-light);
    }
    
    .faq-question {
        padding: 0.875rem;
        gap: 0.5rem;
        min-height: 55px;
    }
    
    .faq-question h3 {
        font-size: 0.9rem;
        line-height: 1.3;
    }
    
    .faq-toggle {
        width: 22px;
        height: 22px;
        font-size: 1.1rem;
    }
    
    .faq-card.active .faq-answer {
        max-height: none;
        padding: 0 0.875rem 0.875rem;
    }
    
    .faq-answer p {
        font-size: 0.875rem;
        line-height: 1.4;
    }
}

/* Tablet and medium screens */
@media (min-width: 481px) and (max-width: 768px) {
    .faq-section {
        padding: 1rem 1rem 0;
    }
    
    .faq-grid {
        gap: 1rem;
        max-width: 600px;
    }
    
    .faq-question {
        padding: 1.125rem;
    }
    
    .faq-question h3 {
        font-size: 1rem;
    }
    
    .faq-card.active .faq-answer {
        max-height: none;
        padding: 0 1.125rem 1.125rem;
    }
}

/* Desktop optimization */
@media (min-width: 769px) {
    .faq-section {
        padding: 1rem 1.5rem 0;
    }
    
    .faq-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 1.5rem;
        max-width: 1000px;
    }
    
    .faq-title {
        font-size: 2.5rem;
    }
    
    .faq-subtitle {
        font-size: 1.1rem;
        max-width: 600px;
    }
    
    .faq-question {
        padding: 1.5rem;
        gap: 1rem;
    }
    
    .faq-question h3 {
        font-size: 1.1rem;
    }
    
    .faq-toggle {
        width: 30px;
        height: 30px;
        font-size: 1.5rem;
    }
    
    .faq-card.active .faq-answer {
        max-height: none;
        padding: 0 1.5rem 1.5rem;
    }
    
    .faq-answer p {
        font-size: 1rem;
        line-height: 1.6;
    }
}


/* Moon Phase Cards Section Styles */
.moon-phases-section {
    padding: 1rem 0 0;
    background-color: var(--bg-primary);
}

.moon-phases-header {
    text-align: center;
    margin-bottom: 3rem;
}

.moon-phases-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.moon-phases-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.moon-phases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.moon-phase-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 25px var(--shadow-light);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.moon-phase-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px var(--shadow-medium);
}

.moon-phase-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.phase-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.phase-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.phase-keywords {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.keyword {
    background: var(--accent-primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.phase-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    text-align: left;
}

.birth-traits {
    text-align: left;
}

.birth-traits h4 {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.birth-traits ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.birth-traits li {
    color: var(--text-secondary);
    padding: 0.25rem 0;
    position: relative;
    padding-left: 1.5rem;
    line-height: 1.4;
}

.birth-traits li::before {
    content: '✨';
    position: absolute;
    left: 0;
    top: 0.25rem;
    font-size: 0.8rem;
}

/* Moon Phase Cards Responsive Design */
@media (max-width: 768px) {
    .moon-phases-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .moon-phase-card {
        padding: 1.5rem;
    }
    
    .phase-icon {
        font-size: 2.5rem;
    }
    
    .phase-name {
        font-size: 1.3rem;
    }
    
    .phase-keywords {
        gap: 0.25rem;
    }
    
    .keyword {
        font-size: 0.8rem;
        padding: 0.2rem 0.6rem;
    }
}

@media (max-width: 480px) {
    .moon-phase-card {
        padding: 1.25rem;
    }
    
    .phase-icon {
        font-size: 2rem;
    }
    
    .phase-name {
        font-size: 1.2rem;
    }
}







/* ==============================================
   COMPACT NAVIGATION STYLES
   ============================================== */

/* Navbar Container */
.navbar {
    background: #0F0F23;
    border-bottom: 1px solid rgba(255, 111, 0, 0.2);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 25px rgba(0, 0, 0, 0.15);
    width: 100%;
    transform: translateY(0);
    transition: all 0.3s ease;
    height: 80px;
}

/* Navbar Scrolled State */
.navbar.scrolled {
    background: rgba(15, 15, 35, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 30px rgba(0, 0, 0, 0.25);
    height: 55px;
}

/* Navbar Hidden State */
.navbar.hidden {
    transform: translateY(-100%);
}

/* Navbar Container Inner */
.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
}

/* Brand Logo */
.navbar-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    z-index: 1001;
}

.brand-logo {
    height: 50px;
    width: auto;
    transition: transform 0.2s ease;
}

.brand-logo:hover {
    transform: scale(1.05);
}

/* Mobile Toggle Button */
.navbar-toggler {
    display: none;
    flex-direction: column;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: relative;
}

.navbar-toggler-icon {
    display: block;
    position: relative;
    background: #FF6F00;
    height: 2px;
    width: 100%;
    border-radius: 2px;
    transition: .3s ease;
}

.navbar-toggler-icon:before,
.navbar-toggler-icon:after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: #FF6F00;
    transition: .3s ease;
}

.navbar-toggler-icon:before {
    top: -8px;
}

.navbar-toggler-icon:after {
    top: 8px;
}

/* Hide the checkbox */
.navbar-toggle-checkbox {
    display: none;
}

/* Navigation Links Container */
.navbar-collapse {
    display: flex;
    align-items: center;
}

.navbar-nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    gap: 4px;
}

.nav-item {
    position: relative;
}

/* Navigation Links */
.nav-link {
    color: #E0E0E0;
    text-decoration: none;
    padding: 8px 16px;
    font-weight: 500;
    font-size: 14px;
    border-radius: 20px;
    position: relative;
    display: flex;
    align-items: center;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.nav-link:hover {
    color: #FFB74D;
    background: rgba(255, 111, 0, 0.12);
    transform: translateY(-1px);
}

.nav-link[aria-current="page"] {
    background: linear-gradient(135deg, #FF6F00, #FFB74D);
    color: #FFFFFF;
    font-weight: 600;
    box-shadow: 0 2px 12px rgba(255, 111, 0, 0.3);
}

/* Dropdown Styles */
.dropdown {
    position: relative;
}

.dropdown-toggle:after {
    content: "▼";
    font-size: 9px;
    margin-left: 6px;
    transition: transform 0.2s ease;
    color: #FFB74D;
}

.dropdown:hover .dropdown-toggle:after {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: #1A1A2E;
    min-width: 180px;
    border-radius: 12px;
    border: 1px solid rgba(255, 111, 0, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    list-style: none;
    padding: 8px 0;
    margin: 0;
    z-index: 1000;
    transition: all 0.2s ease;
}

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

.dropdown-item {
    color: #E0E0E0;
    text-decoration: none;
    padding: 10px 16px;
    display: block;
    font-size: 13px;
    font-weight: 500;
    border-radius: 6px;
    margin: 2px 8px;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: rgba(255, 111, 0, 0.15);
    color: #FFB74D;
    transform: translateX(4px);
}

.dropdown-divider {
    height: 1px;
    background: rgba(255, 111, 0, 0.2);
    margin: 6px 16px;
    border: none;
}

/* ==============================================
   MOBILE NAVIGATION
   ============================================== */

@media (max-width: 991px) {
    .navbar {
        height: 56px;
    }
    
    .navbar.scrolled {
        height: 52px;
    }

    .navbar-toggler {
        display: flex;
    }
    
    .brand-logo {
        height: 32px;
    }
    
    /* Mobile Menu Container */
    .navbar-collapse {
        position: fixed;
        top: 56px;
        left: 0;
        width: 100vw;
        height: calc(100vh - 56px);
        background: #0F0F23;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 32px;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 999;
        overflow-y: auto;
    }
    
    .navbar-toggle-checkbox:checked ~ .navbar-collapse {
        transform: translateX(0);
    }

    .navbar-toggle-checkbox:checked ~ .navbar {
        transform: translateY(0) !important;
    }
    
    .navbar:has(.navbar-toggle-checkbox:checked) {
        transform: translateY(0) !important;
    }
    
    .navbar-nav {
        flex-direction: column;
        width: 100%;
        max-width: 280px;
        text-align: center;
        gap: 12px;
        padding: 0 20px;
    }
    
    .nav-item {
        width: 100%;
        opacity: 0;
        transform: translateX(-30px);
        transition: all 0.3s ease;
    }
    
    .nav-link {
        font-size: 16px;
        padding: 14px 20px;
        width: 100%;
        justify-content: center;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 111, 0, 0.1);
    }
    
    .nav-link:hover {
        background: rgba(255, 111, 0, 0.15);
        transform: scale(1.02);
        border-color: rgba(255, 111, 0, 0.3);
    }
    
    /* Mobile Dropdown */
    .dropdown-menu {
        position: static;
        opacity: 0;
        visibility: hidden;
        max-height: 0;
        overflow: hidden;
        background: rgba(255, 255, 255, 0.03);
        box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.2);
        margin-top: 0;
        width: 100%;
        border: 1px solid rgba(255, 111, 0, 0.15);
        transition: all 0.3s ease;
    }

    .dropdown.open .dropdown-menu {
        opacity: 1;
        visibility: visible;
        max-height: 200px;
        margin-top: 8px;
    }
    
    .dropdown.open .dropdown-toggle:after {
        transform: rotate(180deg);
    }

    /* Hamburger Animation */
    .navbar-toggle-checkbox:checked ~ .navbar-toggler .navbar-toggler-icon {
        background: transparent;
    }
    
    .navbar-toggle-checkbox:checked ~ .navbar-toggler .navbar-toggler-icon:before {
        top: 0;
        transform: rotate(135deg);
    }
    
    .navbar-toggle-checkbox:checked ~ .navbar-toggler .navbar-toggler-icon:after {
        top: 0;
        transform: rotate(-135deg);
    }
    
    /* Staggered Animation */
    .navbar-toggle-checkbox:checked ~ .navbar-collapse .nav-item {
        opacity: 1;
        transform: translateX(0);
    }
    
    .navbar-toggle-checkbox:checked ~ .navbar-collapse .nav-item:nth-child(1) { 
        transition-delay: 0.1s; 
    }
    .navbar-toggle-checkbox:checked ~ .navbar-collapse .nav-item:nth-child(2) { 
        transition-delay: 0.15s; 
    }
    .navbar-toggle-checkbox:checked ~ .navbar-collapse .nav-item:nth-child(3) { 
        transition-delay: 0.2s; 
    }
    .navbar-toggle-checkbox:checked ~ .navbar-collapse .nav-item:nth-child(4) { 
        transition-delay: 0.25s; 
    }
    .navbar-toggle-checkbox:checked ~ .navbar-collapse .nav-item:nth-child(5) { 
        transition-delay: 0.3s; 
    }
    .navbar-toggle-checkbox:checked ~ .navbar-collapse .nav-item:nth-child(6) { 
        transition-delay: 0.35s; 
    }
}

/* Prevent body scroll when mobile menu is open */
body:has(.navbar-toggle-checkbox:checked) {
    overflow: hidden;
}


/* Partner Comparison Modal Styles */
.comparison-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: var(--card-bg);
    border-radius: 20px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.modal-body {
    padding: 2rem;
}

.comparison-form {
    margin-bottom: 2rem;
}

.comparison-results {
    margin-top: 2rem;
}

.comparison-header {
    text-align: center;
    margin-bottom: 2rem;
}

.comparison-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.compatibility-score-section {
    text-align: center;
    margin-bottom: 3rem;
}

.overall-score {
    display: inline-block;
}

.score-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.3);
}

.score-circle span {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
}

.score-description {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.person-column {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
}

.person-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 1rem 0;
    text-align: center;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-primary);
}

.person-data {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.data-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.data-row:last-child {
    border-bottom: none;
}

.data-row .label {
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.data-row .value {
    font-weight: 600;
    color: var(--text-primary);
    text-align: right;
    font-size: 0.9rem;
}

.compatibility-insights {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.compatibility-insights h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 1rem 0;
    text-align: center;
}

.insights-content {
    color: var(--text-secondary);
    line-height: 1.6;
}

.insight-item {
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--card-bg);
    border-radius: 8px;
    border-left: 4px solid var(--accent-primary);
}

.insight-item:last-child {
    margin-bottom: 0;
}

.insight-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.insight-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

.comparison-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Responsive Design for Modal */
@media (max-width: 768px) {
    .modal-content {
        margin: 1rem;
        max-height: 95vh;
    }
    
    .modal-header {
        padding: 1.5rem 1.5rem 1rem;
    }
    
    .modal-title {
        font-size: 1.5rem;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .comparison-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .score-circle {
        width: 100px;
        height: 100px;
    }
    
    .score-circle span {
        font-size: 2rem;
    }
    
    .comparison-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .comparison-actions .action-button {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .modal-content {
        margin: 0.5rem;
        border-radius: 15px;
    }
    
    .modal-header {
        padding: 1rem;
    }
    
    .modal-title {
        font-size: 1.3rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .person-column {
        padding: 1rem;
    }
    
    .compatibility-insights {
        padding: 1.5rem;
    }
}




        /* CSS Custom Properties for Theme Support */
        /* CSS Custom Properties for Theme Support */
        :root {
            /* Light Theme Colors */
            --bg-primary: #ffffff;
            --bg-secondary: #f8fafc;
            --bg-tertiary: #e2e8f0;
            --text-primary: #1a202c;
            --text-secondary: #4a5568;
            --text-muted: #718096;
            --accent-primary: #4f46e5;
            --accent-secondary: #7c3aed;
            --accent-gold: #f59e0b;
            --border-color: #e2e8f0;
            --shadow-light: rgba(0, 0, 0, 0.1);
            --shadow-medium: rgba(0, 0, 0, 0.15);
            --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            --gradient-hero: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            --card-bg: #ffffff;
            --input-bg: #ffffff;
            --navbar-bg: #ffffff;
            --footer-bg: #1a202c;
        }

        /* Dark Theme Colors */
        [data-theme="dark"] {
            --bg-primary: #0f172a;
            --bg-secondary: #1e293b;
            --bg-tertiary: #334155;
            --text-primary: #f1f5f9;
            --text-secondary: #cbd5e1;
            --text-muted: #94a3b8;
            --accent-primary: #6366f1;
            --accent-secondary: #8b5cf6;
            --accent-gold: #fbbf24;
            --border-color: #334155;
            --shadow-light: rgba(0, 0, 0, 0.3);
            --shadow-medium: rgba(0, 0, 0, 0.4);
            --gradient-primary: linear-gradient(135deg, #1e293b 0%, #334155 100%);
            --gradient-hero: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
            --card-bg: #1e293b;
            --input-bg: #334155;
            --navbar-bg: #0f172a;
            --footer-bg: #020617;
        }

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

        html {
            scroll-behavior: smooth;
        }

        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            line-height: 1.6;
            color: var(--text-primary);
            background-color: var(--bg-primary);
            transition: background-color 0.3s ease, color 0.3s ease;
            padding-top: 80px; /* Account for fixed navbar */
        }

        /* Container */
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 1rem;
        }

        /* ==============================================
           ENHANCED SMOOTH NAVBAR STYLES
           ============================================== */

        /* Navbar Container */
        .navbar {
            background: #0F0F23;
            border-bottom: 1px solid rgba(255, 111, 0, 0.2);
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 1000;
            width: 100%;
            height: 80px;
            will-change: transform, background-color, box-shadow;
            transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
            transform: translateZ(0); /* Force hardware acceleration */
            backface-visibility: hidden;
        }

        /* Navbar Scrolled State - Enhanced */
        .navbar.scrolled {
            background: rgba(15, 15, 35, 0.95);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            box-shadow: 0 4px 32px rgba(0, 0, 0, 0.25);
            height: 60px;
            border-bottom: 1px solid rgba(255, 111, 0, 0.3);
        }

        /* Navbar Hidden State - Smoother */
        .navbar.hidden {
            transform: translate3d(0, -100%, 0);
            transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
        }

        /* Navbar Container Inner */
        .navbar .container {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 24px;
            max-width: 1200px;
            margin: 0 auto;
            height: 100%;
            transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
        }

        /* Brand Logo - Enhanced */
        .navbar-brand {
            display: flex;
            align-items: center;
            text-decoration: none;
            z-index: 1001;
            transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
        }

        .brand-logo {
            height: 50px;
            width: auto;
            transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
            filter: drop-shadow(0 2px 8px rgba(255, 111, 0, 0.3));
        }

        .navbar.scrolled .brand-logo {
            height: 40px;
            filter: drop-shadow(0 2px 12px rgba(255, 111, 0, 0.4));
        }

        .brand-logo:hover {
            transform: scale(1.05);
        }

        /* Mobile Toggle Button - Enhanced */
        .navbar-toggler {
            display: none;
            flex-direction: column;
            justify-content: center;
            width: 32px;
            height: 32px;
            background: transparent;
            border: none;
            cursor: pointer;
            padding: 0;
            z-index: 1001;
            position: relative;
            transition: transform 0.2s ease;
        }

        .navbar-toggler:hover {
            transform: scale(1.1);
        }

        .navbar-toggler-icon {
            display: block;
            position: relative;
            background: #FF6F00;
            height: 3px;
            width: 100%;
            border-radius: 3px;
            transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
            box-shadow: 0 1px 3px rgba(255, 111, 0, 0.3);
        }

        .navbar-toggler-icon:before,
        .navbar-toggler-icon:after {
            content: "";
            position: absolute;
            left: 0;
            width: 100%;
            height: 3px;
            border-radius: 3px;
            background: #FF6F00;
            transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
            box-shadow: 0 1px 3px rgba(255, 111, 0, 0.3);
        }

        .navbar-toggler-icon:before {
            top: -10px;
        }

        .navbar-toggler-icon:after {
            top: 10px;
        }

        /* Hide the checkbox */
        .navbar-toggle-checkbox {
            display: none;
        }

        /* Navigation Links Container */
        .navbar-collapse {
            display: flex;
            align-items: center;
        }

        .navbar-nav {
            display: flex;
            list-style: none;
            margin: 0;
            padding: 0;
            align-items: center;
            gap: 8px;
        }

        .nav-item {
            position: relative;
        }

        /* Navigation Links - Enhanced */
        .nav-link {
            color: #E0E0E0;
            text-decoration: none;
            padding: 10px 18px;
            font-weight: 500;
            font-size: 14px;
            border-radius: 25px;
            position: relative;
            display: flex;
            align-items: center;
            white-space: nowrap;
            transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
            overflow: hidden;
        }

        .nav-link::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(135deg, rgba(255, 111, 0, 0.1), rgba(255, 183, 77, 0.1));
            border-radius: 25px;
            opacity: 0;
            transform: scale(0.8);
            transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
            z-index: -1;
        }

        .nav-link:hover {
            color: #FFB74D;
            transform: translateY(-2px);
            text-shadow: 0 2px 8px rgba(255, 183, 77, 0.3);
        }

        .nav-link:hover::before {
            opacity: 1;
            transform: scale(1);
        }

        .nav-link[aria-current="page"] {
            background: linear-gradient(135deg, #FF6F00, #FFB74D);
            color: #FFFFFF;
            font-weight: 600;
            box-shadow: 0 4px 16px rgba(255, 111, 0, 0.4);
            transform: translateY(-1px);
        }

        .nav-link[aria-current="page"]::before {
            display: none;
        }

        /* Dropdown Styles - Enhanced */
        .dropdown {
            position: relative;
        }

        .dropdown-toggle:after {
            content: "▼";
            font-size: 10px;
            margin-left: 8px;
            transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
            color: #FFB74D;
            filter: drop-shadow(0 1px 2px rgba(255, 183, 77, 0.3));
        }

        .dropdown:hover .dropdown-toggle:after {
            transform: rotate(180deg);
            color: #FF6F00;
        }

        .dropdown-menu {
            position: absolute;
            top: calc(100% + 12px);
            left: 0;
            background: rgba(26, 26, 46, 0.95);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            min-width: 200px;
            border-radius: 16px;
            border: 1px solid rgba(255, 111, 0, 0.3);
            box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
            opacity: 0;
            visibility: hidden;
            transform: translateY(-12px) scale(0.95);
            list-style: none;
            padding: 12px 0;
            margin: 0;
            z-index: 1000;
            transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
        }

        .dropdown:hover .dropdown-menu {
            opacity: 1;
            visibility: visible;
            transform: translateY(0) scale(1);
        }

        .dropdown-item {
            color: #000000;
            text-decoration: none;
            padding: 12px 20px;
            display: block;
            font-size: 13px;
            font-weight: 500;
            border-radius: 10px;
            margin: 3px 12px;
            transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
            position: relative;
            overflow: hidden;
        }

        .dropdown-item::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 111, 0, 0.2), transparent);
            transition: left 0.5s ease;
        }

        .dropdown-item:hover {
            background: rgba(255, 111, 0, 0.15);
            color: #FFB74D;
            transform: translateX(6px);
            box-shadow: 0 2px 8px rgba(255, 111, 0, 0.2);
        }

        .dropdown-item:hover::before {
            left: 100%;
        }

        .dropdown-divider {
            height: 1px;
            background: linear-gradient(90deg, transparent, rgba(255, 111, 0, 0.3), transparent);
            margin: 8px 20px;
            border: none;
        }

        /* Theme Toggle Button */
        .theme-toggle {
            position: fixed;
            bottom: 30px;
            right: 1rem;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background: var(--gradient-primary);
            border: none;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            box-shadow: 0 6px 20px var(--shadow-medium);
            transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
            z-index: 1000;
            color: white;
        }

        .theme-toggle:hover {
            transform: translateY(-3px) scale(1.1);
            box-shadow: 0 8px 25px var(--shadow-medium);
        }

        /* ==============================================
           MOBILE NAVIGATION - ENHANCED
           ============================================== */

        @media (max-width: 991px) {
            body {
                padding-top: 60px;
            }

            .navbar {
                height: 60px;
            }
            
            .navbar.scrolled {
                height: 55px;
            }

            .navbar-toggler {
                display: flex;
            }
            
            .brand-logo {
                height: 36px;
            }

            .navbar.scrolled .brand-logo {
                height: 32px;
            }
            
            /* Mobile Menu Container - Enhanced */
            .navbar-collapse {
                position: fixed;
                top: 60px;
                left: 0;
                width: 100vw;
                height: calc(100vh - 60px);
                background: linear-gradient(135deg, #0F0F23 0%, #1A1A2E 100%);
                flex-direction: column;
                justify-content: flex-start;
                align-items: center;
                padding-top: 40px;
                transform: translateX(-100%);
                transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
                z-index: 999;
                overflow-y: auto;
                backdrop-filter: blur(20px);
                -webkit-backdrop-filter: blur(20px);
            }
            
            .navbar-toggle-checkbox:checked ~ .navbar-collapse {
                transform: translateX(0);
            }

            .navbar-toggle-checkbox:checked ~ .navbar {
                transform: translateY(0) !important;
            }
            
            .navbar-nav {
                flex-direction: column;
                width: 100%;
                max-width: 320px;
                text-align: center;
                gap: 16px;
                padding: 0 24px;
            }
            
            .nav-item {
                width: 100%;
                opacity: 0;
                transform: translateX(-40px);
                transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
            }
            
            .nav-link {
                font-size: 16px;
                padding: 16px 24px;
                width: 100%;
                justify-content: center;
                border-radius: 16px;
                background: rgba(255, 255, 255, 0.05);
                border: 1px solid rgba(255, 111, 0, 0.2);
                backdrop-filter: blur(10px);
                -webkit-backdrop-filter: blur(10px);
            }
            
            .nav-link:hover {
                background: rgba(255, 111, 0, 0.2);
                transform: scale(1.03);
                border-color: rgba(255, 111, 0, 0.4);
                box-shadow: 0 4px 16px rgba(255, 111, 0, 0.3);
            }
            
            /* Mobile Dropdown - Enhanced */
            .dropdown-menu {
                position: static;
                opacity: 0;
                visibility: hidden;
                max-height: 0;
                overflow: hidden;
                background: rgba(255, 255, 255, 0.03);
                box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
                margin-top: 0;
                width: 100%;
                border: 1px solid rgba(255, 111, 0, 0.15);
                transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
                backdrop-filter: blur(10px);
                -webkit-backdrop-filter: blur(10px);
            }

            .dropdown.open .dropdown-menu {
                opacity: 1;
                visibility: visible;
                max-height: 250px;
                margin-top: 12px;
            }
            
            .dropdown.open .dropdown-toggle:after {
                transform: rotate(180deg);
            }

            /* Hamburger Animation - Enhanced */
            .navbar-toggle-checkbox:checked ~ .navbar-toggler .navbar-toggler-icon {
                background: transparent;
                box-shadow: none;
            }
            
            .navbar-toggle-checkbox:checked ~ .navbar-toggler .navbar-toggler-icon:before {
                top: 0;
                transform: rotate(135deg);
                background: #FFB74D;
            }
            
            .navbar-toggle-checkbox:checked ~ .navbar-toggler .navbar-toggler-icon:after {
                top: 0;
                transform: rotate(-135deg);
                background: #FFB74D;
            }
            
            /* Staggered Animation - Enhanced */
            .navbar-toggle-checkbox:checked ~ .navbar-collapse .nav-item {
                opacity: 1;
                transform: translateX(0);
            }
            
            .navbar-toggle-checkbox:checked ~ .navbar-collapse .nav-item:nth-child(1) { 
                transition-delay: 0.1s; 
            }
            .navbar-toggle-checkbox:checked ~ .navbar-collapse .nav-item:nth-child(2) { 
                transition-delay: 0.15s; 
            }
            .navbar-toggle-checkbox:checked ~ .navbar-collapse .nav-item:nth-child(3) { 
                transition-delay: 0.2s; 
            }
            .navbar-toggle-checkbox:checked ~ .navbar-collapse .nav-item:nth-child(4) { 
                transition-delay: 0.25s; 
            }
            .navbar-toggle-checkbox:checked ~ .navbar-collapse .nav-item:nth-child(5) { 
                transition-delay: 0.3s; 
            }
            .navbar-toggle-checkbox:checked ~ .navbar-collapse .nav-item:nth-child(6) { 
                transition-delay: 0.35s; 
            }
        }

        /* Prevent body scroll when mobile menu is open */
        body:has(.navbar-toggle-checkbox:checked) {
            overflow: hidden;
        }