:root {
    --accent-color: #00ffcc;
    --accent-hover: #00e6b8;
    --bg-dark: #121212;
    --bg-light: #f5f5f5;
    --text-dark: #333;
    --text-light: #fff;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Orbitron', sans-serif;
    line-height: 1.6;
    background-color: var(--bg-dark);
    color: var(--text-light);
    background-image: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.5) 100%), url('https://images.unsplash.com/photo-1550745165-9bc0b252726f?auto=format&fit=crop&w=2000&q=80');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    min-height: 100vh;
}

body.light {
    background-color: var(--bg-light);
    color: var(--text-dark);
    background-image: linear-gradient(to bottom, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0.5) 100%), url('https://images.unsplash.com/photo-1550745165-9bc0b252726f?auto=format&fit=crop&w=2000&q=80');
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

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

/* Header Styles */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.logo {
    height: 60px;
    width: auto;
}

.controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Navigation styles */
.main-nav {
    position: relative;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--accent-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1rem;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    color: #fff;
    text-decoration: none;
    padding: 0.5rem 1rem;
    display: block;
    font-weight: 500;
    transition: color 0.3s ease;
    background-color: var(--accent-color);
    color: #000;
    border-radius: 8px;
}

.nav-menu a:hover, .nav-menu a.active {
    color: #000;
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,255,204,0.4);
}

.dropdown {
    position: relative;
}

.dropdown-arrow {
    font-size: 0.7rem;
    margin-left: 0.3rem;
    transition: transform 0.3s ease;
}

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

/* Fixed dropdown positioning */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: rgba(30, 30, 30, 0.95);
    border-radius: 8px;
    min-width: 200px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
    list-style: none;
    padding: 0.5rem 0;
    margin: 0;
}

/* Fix for Tools dropdown */
.nav-menu li:last-child .dropdown-menu {
    right: 0;
    left: auto;
}

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

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu a {
    padding: 0.75rem 1.5rem;
    background-color: var(--accent-color);
    color: #000;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.dropdown-menu a:hover {
    background-color: var(--accent-hover);
    color: #000;
}

/* Responsive navigation */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        right: 0;
        flex-direction: column;
        background-color: rgba(30, 30, 30, 0.95);
        border-radius: 8px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.3);
        padding: 1rem 0;
        min-width: 200px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        transition: all 0.3s ease;
        z-index: 100;
    }
    
    .nav-menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .dropdown-menu {
        position: static;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        background-color: rgba(20, 20, 20, 0.5);
        display: none;
        padding-left: 1rem;
    }
    
    .dropdown.active .dropdown-menu {
        display: block;
    }
}

/* Footer Styles */
footer {
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo-img {
    height: 60px;
    width: auto;
}

.footer-links h4 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1rem;
}

.legal-notice {
    font-size: 0.8rem;
    color: #777;
    max-width: 800px;
    margin: 1rem auto 0;
}

/* Content Containers */
.generator-container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.generator-hero {
    text-align: center;
    margin-bottom: 2rem;
}

.generator-hero h1 {
    color: var(--accent-color);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(0,255,204,0.3);
}

.generator-hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Generator Cards */
.generator-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .generator-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.generator-card {
    background-color: rgba(30, 30, 30, 0.7);
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(0,255,204,0.15);
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.generator-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(0,255,204,0.25);
}

.generator-card h2 {
    color: var(--accent-color);
    margin-top: 0;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Buttons */
.cta-button {
    background-color: var(--accent-color);
    color: #000;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-family: 'Orbitron', sans-serif;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
    margin: 2rem 0 1rem;
    text-decoration: none;
}

.cta-button:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,255,204,0.4);
}

/* Theme Toggle */
#theme-toggle {
    background-color: #333;
    border: none;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#theme-toggle:hover {
    background-color: #444;
}

/* Back Link */
.back-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.back-link:hover {
    text-shadow: 0 0 8px rgba(0,255,204,0.6);
    transform: translateX(-5px);
}

.back-link::before {
    content: "←";
    margin-right: 0.5rem;
}