/* Consolidated CSS file for Amazing Global Marketing */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Light theme variables */
    --primary-bg: #ffffff;
    --secondary-bg: #f5f5f5;
    --text-color: #333333;
    --nav-bg: #e0d5d5;
    --nav-hover: #ff1493; /* Dark pink */
    --nav-active: #4a90e2;
    --accent-color: #4a90e2; /* Blue */
    --border-color: #dddddd;
    --transition-speed: 0.3s;
    --loading-size: 30px;
    --loading-border: 3px;
    /* Theme variables */
    --base-color: white;
    --base-variant: #f8f9fa;
    --secondary-text: #34495e;
    --primary-color: #4a90e2; /* Blue */
    --color-primary: #4a90e2;
    --color-secondary: #ff1493;
    --card-bg: #ffffff;
    --hover-text: #ff1493; /* Dark pink */
    --menu-shadow: rgba(0, 0, 0, 0.1);
    --hover-bg: rgba(255, 20, 147, 0.1); /* Light pink background */
    --shadow-lg: rgba(0, 0, 0, 0.2);
}

.darkmode {
    /* Dark theme variables */
    --primary-bg: #1a1a1a;
    --secondary-bg: #2d2d2d;
    --text-color: #ffffff;
    --nav-bg: #333333;
    --nav-hover: #ff1493; /* Dark pink for dark mode */
    --nav-active: #64b5f6;
    --accent-color: #64b5f6; /* Blue for dark mode */
    --border-color: #404040;
    /* Dark theme overrides */
    --base-color: #1a1a2e;
    --base-variant: #16213e;
    --secondary-text: #b0b0b0;
    --primary-color: #64b5f6; /* Blue for dark mode */
    --color-primary: #64b5f6;
    --color-secondary: #ff1493;
    --card-bg: #16213e;
    --hover-text: #ff1493; /* Dark pink for dark mode */
    --menu-shadow: rgba(0, 0, 0, 0.3);
}

html {
    font-family: Poppins;
}

body {
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--primary-bg);
    color: var(--text-color);
    line-height: 1.6;
    scroll-behavior: smooth;
    scroll-padding-top: 60px;
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

/* Navigation Styles */
.nav-wrapper {
    position: relative;
    z-index: 100;
    background: var(--nav-bg);
}

.nav-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 60px;
}

.nav-list {
    display: flex;
    align-items: center;
    justify-content: space-between;
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}

.nav-left, .nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

nav {
    background-color: var(--nav-bg);
    box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    box-sizing: border-box;
}

nav ul {
    width: 100%;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    margin: 0;
}

.nav-left {
    flex: 0 0 auto;
}

.nav-middle {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-right {
    flex: 0 0 auto;
}

nav li {
    height: 50px;
}

.nav-link {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 0.75rem 1.25rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.nav-link:hover {
    background: var(--nav-hover);
}

nav a {
    height: 100%;
    padding: 0 30px;
    text-decoration: none;
    display: flex;
    align-items: center;
    color: var(--text-color);
    transition: background-color 0.3s ease;
}

nav a:hover {
    background-color: var(--nav-hover);
}

/* Dropdown Styles */
.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--base-variant);
    min-width: 200px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    z-index: 1000;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.2s ease;
}

.dropdown-menu a:hover {
    background-color: var(--primary-color);
    color: white;
}

.categories-dropdown {
    position: relative;
}

.dropdown-toggle {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 0.75rem 1.25rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-toggle:hover {
    background: var(--nav-hover);
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--secondary-bg);
    min-width: 200px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
    z-index: 1000;
}

.dropdown-content a {
    color: var(--text-color);
    padding: 12px 16px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background-color 0.3s;
}

.dropdown-content a:hover {
    background-color: var(--nav-hover);
}

/* Sidebar submenu */
.sidebar-submenu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-submenu li a {
    padding-left: 40px;
}

.sidebar i {
    width: 20px;
    text-align: center;
}

/* Grid Layout */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

/* Navigation alignment with grid */
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    box-sizing: border-box;
}

.card {
    background-color: var(--secondary-bg);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card:hover {
    transform: translateY(-5px);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-color);
    margin-bottom: 1rem;
}

.main-heading {
    font-size: 2.5rem;
    text-align: center;
    margin: 2rem 0 1rem;
}

header .btn {
    display: block;
    margin: 0 auto;
    width: fit-content;
}

header p {
    text-align: center;
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

/* Buttons */
.btn, .button {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s ease;
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn:hover, .button:hover {
    background-color: var(--nav-hover);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Footer */
footer {
    background-color: var(--nav-bg);
    color: var(--text-color);
    padding: 2rem 0;
    margin-top: auto;
    text-align: center;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-links {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--text-color);
    text-decoration: none;
}

/* Footer detailed */
.footer-container {
    background-color: var(--base-variant);
    padding: 3rem 0 2rem;
    margin-top: 4rem;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: var(--secondary-text);
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    text-align: center;
}

.footer-text,
.copyright {
    color: var(--secondary-text);
    font-size: 0.9rem;
    margin: 0.5rem 0;
}

.heart-icon {
    color: #ff4444;
    margin: 0 0.25rem;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--primary-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 5px;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Loading states */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: var(--loading-size);
    height: var(--loading-size);
    margin: calc(var(--loading-size / -2));
    border: var(--loading-border) solid var(--accent-color);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading > * {
    opacity: 0.6;
}

/* Lazy loading */
img.lazy {
    opacity: 0;
    transition: opacity var(--transition-speed) ease-in-out;
}

img.lazy.loaded {
    opacity: 1;
}

/* Card sections */
.section-green {
    background-color: #e8f5e9;
    border-radius: 8px 8px 0 0;
    margin: -1.5rem -1.5rem 1rem;
    padding: 1rem;
}

.darkmode .section-green {
    background-color: #1b5e20;
    color: #e8f5e9;
}

.section-blue {
    background-color: #e3f2fd;
    border-radius: 8px 8px 0 0;
    margin: -1.5rem -1.5rem 1rem;
    padding: 1rem;
}

.darkmode .section-blue {
    background-color: #0d47a1;
    color: #e3f2fd;
}

.section-purple {
    background-color: #f3e5f5;
    border-radius: 8px 8px 0 0;
    margin: -1.5rem -1.5rem 1rem;
    padding: 1rem;
}

.darkmode .section-purple {
    background-color: #4a148c;
    color: #f3e5f5;
}

.section-blue-white {
    background-color: #e1f5fe;
    border-radius: 8px 8px 0 0;
    margin: -1.5rem -1.5rem 1rem;
    padding: 1rem;
}

.darkmode .section-blue-white {
    background-color: #01579b;
    color: #e1f5fe;
}

/* Top Bar */
.top-bar {
    background-color: var(--secondary-bg);
    padding: 0.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    flex-wrap: wrap;
    gap: 1rem;
}

.top-bar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    padding: 0 1rem;
    box-sizing: border-box;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-section img {
    margin-left: 1rem;
}

.time-section {
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-section {
    display: flex;
    align-items: center;
}

/* Header detailed */
header {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
    text-align: center;
}

.main-heading {
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    line-height: 1.2;
}

header p {
    font-size: 1.125rem;
    color: var(--secondary-text);
    max-width: 800px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

header .btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

header .btn:hover {
    background-color: var(--nav-hover);
}

.top-bar {
    background: var(--base-variant);
    border-bottom: 1px solid var(--border-color);
    padding: 0.5rem 0;
}

.top-bar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    position: relative;
    min-height: 130px;
}

.logo-section {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
}

#google_translate_element {
    transform: scale(0.85);
    transform-origin: center top;
    margin-top: 0.25rem;
}

.time-section iframe {
    display: block;
    margin: 0 auto;
}


#theme-switch {
    padding: 10px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

#theme-switch svg {
    width: 24px !important;
    height: 24px !important;
}

#theme-switch:hover {
    background-color: var(--hover-bg, rgba(0, 0, 0, 0.05));
}

/* Theme Switch */
.theme-switch-wrapper {
    display: flex;
    align-items: center;
    margin-left: auto;
}

#theme-switch {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

#theme-switch:hover {
    background-color: var(--hover-bg);
}

.moon-icon, .sun-icon {
    width: 24px;
    height: 24px;
    fill: var(--text-color);
    transition: opacity 0.3s ease;
}

/* Google Translate Element */
.goog-te-gadget-simple {
    border: 1px solid var(--border-color) !important;
    padding: 4px 8px !important;
    border-radius: 4px !important;
    background-color: var(--secondary-bg) !important;
}

.goog-te-menu-value {
    color: var(--text-color) !important;
}

.goog-te-gadget {
    font-family: inherit !important;
    font-size: 0.9rem !important;
}

.goog-te-gadget-simple {
    padding: 4px 8px !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 4px !important;
    background-color: var(--base-color) !important;
}

.goog-te-gadget-simple span {
    color: var(--text-color) !important;
    font-size: 0.9rem !important;
}

/* Mobile Menu */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 10px;
    transition: color 0.3s ease;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 280px;
    background-color: var(--nav-bg);
    box-shadow: 2px 0 8px var(--menu-shadow);
    z-index: 1000;
    padding: 20px 0;
    overflow-y: auto;
}

.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

/* Mobile menu detailed */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 10px;
    transition: color 0.3s ease;
    position: relative;
    z-index: 1001;
}

.nav-toggle:hover {
    color: var(--hover-text);
}

.sidebar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 280px;
    background-color: var(--nav-bg);
    box-shadow: 2px 0 8px var(--menu-shadow);
    z-index: 1000;
    padding: 20px 0;
    overflow-y: auto;
}

.sidebar li {
    list-style: none;
}

.sidebar a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.sidebar a:hover {
    background-color: var(--nav-hover);
    color: var(--hover-text);
}

.sidebar a.active {
    background-color: var(--nav-active);
    color: white;
}

.sidebar i {
    margin-right: 10px;
}

.sidebar-close {
    display: flex;
    justify-content: flex-end;
    padding: 10px 20px;
}

.sidebar-section {
    margin: 10px 0;
}

.section-title {
    padding: 10px 20px;
    color: var(--secondary-text);
    font-weight: bold;
    display: flex;
    align-items: center;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100%;
    background: var(--nav-bg);
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.15);
    z-index: 1001;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
}

.menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.close-menu {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-items {
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu-item a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.2s ease;
}

.menu-item a:hover {
    background: var(--nav-hover, rgba(0, 0, 0, 0.05));
    color: var(--primary-color);
}

.menu-section {
    padding: 0.75rem 1rem;
    background: var(--base-variant);
    color: var(--secondary-text);
    font-weight: 500;
}

.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Focus styles for accessibility */
.btn:focus, .button:focus, nav a:focus, .dropdown-toggle:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Responsive Design */
@media (min-width: 1200px) {
    .grid-container {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 800px) {
    .hideOnMobile {
        display: none;
    }

    .nav-toggle {
        display: block;
    }

    .grid-container {
        grid-template-columns: 1fr;
        padding: 1rem;
        margin: 0 auto;
    }

    .main-heading {
        font-size: 2rem;
    }

    .top-bar {
        padding: 0.5rem 1rem;
    }

    .top-bar-container {
        flex-direction: column;
        gap: 0.5rem;
    }

    .time-section iframe {
        width: 100%;
        max-width: 212px;
    }

    nav {
        padding: 0 1rem;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-menu {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .mobile-menu.active {
        transform: translateX(0);
    }

    .menu-overlay.active {
        display: block;
    }

    .dropdown-content {
        position: absolute;
        top: 100%;
        right: 0;
        width: 250px;
        height: auto;
        max-height: calc(100vh - 100px);
        background-color: var(--secondary-bg);
        z-index: 1000;
        overflow-y: auto;
        padding-top: 0;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        border-radius: 8px;
        margin-top: 5px;
    }

    .dropdown-content.show {
        display: block;
    }

    .categories-dropdown > a {
        width: 100%;
        justify-content: space-between;
        padding: 10px 20px;
        background-color: var(--secondary-bg);
        position: relative;
        z-index: 1001;
        margin: 0;
    }

    .dropdown-content a {
        padding: 10px 15px;
        border-bottom: 1px solid var(--border-color);
        background-color: var(--secondary-bg);
        margin: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .dropdown-content a:last-child {
        border-bottom: none;
    }

    .dropdown-content a:first-child {
        border-top-left-radius: 8px;
        border-top-right-radius: 8px;
    }

    .dropdown-content a:last-child {
        border-bottom-left-radius: 8px;
        border-bottom-right-radius: 8px;
    }

    .grid-container {
        padding: 1rem;
        margin: 0 auto;
        max-width: 100%;
    }

    .top-bar {
        padding: 0.5rem;
        justify-content: center;
    }

    nav {
        padding: 0;
    }
}

@media (max-width: 480px) {
    .sidebar {
        width: 100%;
    }

    .card {
        padding: 1rem;
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .loading::after {
        animation: none !important;
    }

    .mobile-menu {
        transition: none !important;
    }
}

/* Emoji styling */
.emoji {
    font-size: 1.2em;
}

/* Heart icon */
.heart-icon {
    color: #ff0000 !important;
}

/* Additional from animations.css */
.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

.slide-in {
    animation: slideIn 0.3s ease-in-out;
}

.theme-transition * {
    transition: background-color 0.3s ease,
                color 0.3s ease,
                border-color 0.3s ease,
                box-shadow 0.3s ease;
}

.card {
    transition: transform 0.3s ease,
                box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.btn {
    transition: background-color 0.3s ease,
                transform 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

.scroll-top-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--color-primary);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease,
                transform 0.3s ease;
    z-index: 1000;
}

.scroll-top-btn:hover {
    background-color: var(--color-secondary);
    transform: translateY(-3px);
}

.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.sidebar {
    transition: transform 0.3s ease-in-out;
    transform: translateX(100%);
}

.sidebar.active {
    transform: translateX(0);
}

.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--text-primary);
    transition: transform 0.3s ease;
}

.theme-toggle:hover {
    transform: rotate(360deg);
}

.grid-item {
    opacity: 0;
    transform: translateY(20px);
    animation: slideIn 0.5s ease forwards;
}

.grid-container > * {
    animation-delay: calc(var(--item-index) * 0.1s);
}

/* From theme.css */
.theme-switch {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.theme-switch:hover {
    transform: scale(1.1);
}

.theme-switch img {
    width: 24px;
    height: 24px;
    transition: opacity 0.3s ease;
}

body:not(.darkmode) .dark-icon,
body.darkmode .light-icon {
    display: none;
}

.card {
    background-color: var(--base-variant);
    border: 1px solid var(--border-color);
}

nav {
    background-color: var(--nav-bg);
}

.sidebar {
    background-color: var(--base-variant);
}

* {
    transition: background-color 0.3s ease,
                color 0.3s ease,
                border-color 0.3s ease,
                box-shadow 0.3s ease;
}

/* From darkmode.css */
header, section {
    padding: 70px min(50px, 7%);
}

section {
    background-color: var(--base-variant);
}

p {
    margin: 10px 0 20px 0;
    color: var(--secondary-text);
}

button {
    border: solid green;
    padding: .8em 2em;
    background-color: var(--primary-color);
    color: white;
    border-radius: 4px;
    font: inherit;
    text-transform: uppercase;
    font-weight: 500;
    cursor: pointer;
}

.cta-button {
    background-color: var(--accent-color);
}

#theme-switch {
    height: 50px;
    width: 50px;
    padding: 0;
    border-radius: 50%;
    background-color: var(--base-variant);
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 20px;
    right: 20px;
}

#theme-switch img {
    width: 24px;
    height: 24px;
}

#theme-switch img:last-child {
    display: none;
}

.darkmode #theme-switch img:first-child {
    display: none;
}

.darkmode #theme-switch img:last-child {
    display: block;
}

/* From performance.css */
.card,
.btn,
.nav-link {
    will-change: transform;
    backface-visibility: hidden;
}

.loading-spinner {
    width: var(--loading-size);
    height: var(--loading-size);
    border: var(--loading-border) solid var(--color-primary);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.gpu-accelerated {
    transform: translateZ(0);
}

.paint-optimization {
    transform: translate3d(0, 0, 0);
}

.lazy-image {
    opacity: 0;
    transition: opacity var(--transition-speed) ease-in-out;
}

.lazy-image.loaded {
    opacity: 1;
}

.img-container {
    position: relative;
    overflow: hidden;
    background-color: var(--bg-secondary);
}

.img-container::before {
    content: "";
    display: block;
    padding-top: 56.25%;
}

.img-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.grid-item {
    opacity: 0;
    transform: translateY(20px);
}

.grid-item.loaded {
    opacity: 1;
    transform: translateY(0);
    transition: opacity var(--transition-speed) ease-in-out,
                transform var(--transition-speed) ease-in-out;
}

.btn {
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease-out, height 0.6s ease-out;
}

.btn:active::after {
    width: 200%;
    height: 200%;
}

.sidebar {
    transform: translateX(100%);
    transition: transform var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar.active {
    transform: translateX(0);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 60px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .loading-spinner {
        animation: none !important;
    }

    .sidebar {
        transition: none !important;
    }
}

/* Dark mode overrides */
body.darkmode .footer-text,
body.darkmode .footer-links a,
body.darkmode .nav-link {
    color: var(--text-color) !important;
}

body.darkmode .heart-icon {
    color: #ff4444 !important;
}

body.darkmode .footer-container {
    background-color: var(--base-variant);
}

body.darkmode .footer-section h3,
body.darkmode .footer-links a,
body.darkmode .footer-text,
body.darkmode .copyright {
    color: var(--text-color);
}

/* Responsive footer */
@media (max-width: 768px) {
    .footer-container {
        padding: 2rem 0 1.5rem;
        margin-top: 2rem;
    }

    .footer-content {
        padding: 0 1rem;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* Responsive header */

@media (max-width: 768px) {
    .top-bar-container {
        padding: 1rem;
        min-height: auto;
    }


    .logo-section {
        gap: 0.75rem;
        width: 100%;
    }

    #google_translate_element {
        transform: scale(0.8);
        margin-bottom: 0.5rem;
    }

    .top-bar-container {
        padding: 0 1rem;
    }

    header {
        margin: 1rem auto;
        padding: 0 1rem;
    }

    .main-heading {
        font-size: 2rem;
    }

    header p {
        font-size: 1rem;
    }

    .top-bar {
        padding: 0.5rem 1rem;
    }
}

@media (max-width: 480px) {
    .top-bar-container {
        padding: 0.75rem;
    }


    .main-heading {
        font-size: 1.75rem;
    }
}

/* Mobile navigation */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav-list {
        justify-content: space-between;
    }

    .nav-center {
        display: none;
    }

    .nav-right {
        display: none;
    }

    .mobile-menu {
        display: block;
    }

    .mobile-menu.active {
        transform: translateX(0);
    }

    .menu-overlay.active {
        display: block;
        opacity: 1;
    }

    body.menu-open {
        overflow: hidden;
    }

    #google_translate_element {
        margin: 1rem;
    }

    .hideOnMobile {
        display: none;
    }
}

/* Mobile dropdown */
@media (min-width: 769px) {
    .categories-dropdown:hover .dropdown-content {
        display: block;
    }
}

@media (max-width: 768px) {
    .dropdown-content {
        position: absolute;
        top: 100%;
        right: 0;
        width: 250px;
        height: auto;
        max-height: calc(100vh - 100px);
        background-color: var(--secondary-bg);
        z-index: 1000;
        overflow-y: auto;
        padding-top: 0;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        border-radius: 8px;
        margin-top: 5px;
    }

    .dropdown-content a {
        padding: 10px 15px;
        border-bottom: 1px solid var(--border-color);
        background-color: var(--secondary-bg);
        margin: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .dropdown-content a:last-child {
        border-bottom: none;
    }

    .categories-dropdown > a {
        width: 100%;
        justify-content: space-between;
        padding: 10px 20px;
        background-color: var(--secondary-bg);
        position: relative;
        z-index: 1001;
        margin: 0;
    }

    .categories-dropdown {
        margin: 0;
        padding: 0;
        position: relative;
    }

    .categories-dropdown a i {
        margin-right: 8px;
        width: 16px;
        flex-shrink: 0;
    }

    .dropdown-content a:hover {
        background-color: var(--nav-hover);
    }

    .dropdown-content a:first-child {
        border-top-left-radius: 8px;
        border-top-right-radius: 8px;
    }

    .dropdown-content a:last-child {
        border-bottom-left-radius: 8px;
        border-bottom-right-radius: 8px;
    }

    @media (max-width: 300px) {
        .dropdown-content {
            width: calc(100vw - 30px);
            right: -10px;
        }
    }
}

/* Mobile menu from mobile-menu.css */
@media (max-width: 768px) {
    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 10px;
    }

    .nav-list {
        justify-content: space-between;
        padding: 10px;
    }

    .nav-center {
        position: static;
        transform: none;
        order: -1;
        width: 100%;
        display: flex;
        justify-content: center;
        margin: 10px 0;
    }

    .nav-toggle {
        display: block;
        position: fixed;
        top: 10px;
        right: 10px;
        z-index: 1001;
        background-color: var(--nav-bg);
        border-radius: 4px;
        padding: 8px 12px;
        box-shadow: 0 2px 4px var(--menu-shadow);
    }

    .hideOnMobile {
        display: none;
    }

    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .sidebar.active {
        transform: translateX(0);
    }

    body.sidebar-open {
        overflow: hidden;
    }

    .overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }

    .overlay.active {
        display: block;
    }
}