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

:root {
    --midnight-black: #0a0a0a;
    --neon-cyan: #00ffff;
    --white: #ffffff;
    --gray-dark: #1a1a1a;
    --gray-light: #e5e5e5;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background-color: var(--white);
    color: var(--midnight-black);
    line-height: 1.6;
    font-size: 16px;
}

/* Remove list styling from nav and footer */
.nav-menu li,
.footer-links li {
    margin-bottom: 0 !important;
    list-style: none !important;
}

.nav-menu li::before,
.nav-menu li::after,
.footer-links li::before,
.footer-links li::after {
    display: none !important;
    content: none !important;
}

.nav-menu,
.footer-links {
    list-style: none !important;
}

/* Header and Navigation */
header {
    background-color: var(--midnight-black);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 255, 255, 0.1);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-img {
    width: 50px;
    height: 50px;
}

.brand-name {
    color: var(--neon-cyan);
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none !important;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
}

.nav-menu a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
}

.nav-menu a:hover {
    color: var(--neon-cyan);
}

.cta-button {
    background-color: var(--neon-cyan);
    color: var(--midnight-black);
    padding: 0.75rem 1.5rem !important;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
    display: inline-block;
    white-space: nowrap;
    text-align: center;
}

.cta-button:hover {
    background-color: var(--white);
    transform: translateY(-2px);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: 2px solid var(--neon-cyan);
    color: var(--neon-cyan);
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 1rem;
        padding-top: 1rem;
    }

    .nav-menu.active {
        display: flex;
    }

    .header-container {
        justify-content: space-between;
    }
}

/* Hero Section */
.hero-section {
    background-color: var(--midnight-black) !important;
    color: var(--white) !important;
    padding: 6rem 1rem !important;
    position: relative !important;
    overflow: hidden !important;
    text-align: center !important;
}

.hero-section::before {
    content: '' !important;
    position: absolute !important;
    top: -50% !important;
    left: -10% !important;
    width: 500px !important;
    height: 500px !important;
    background: var(--neon-cyan) !important;
    opacity: 0.1 !important;
    border-radius: 50% !important;
    animation: float 6s ease-in-out infinite !important;
}

.hero-section::after {
    content: '' !important;
    position: absolute !important;
    bottom: -30% !important;
    right: -5% !important;
    width: 400px !important;
    height: 400px !important;
    background: var(--neon-cyan) !important;
    opacity: 0.1 !important;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%) !important;
    animation: float 8s ease-in-out infinite !important;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

.hero-content {
    max-width: 900px !important;
    margin: 0 auto !important;
    position: relative !important;
    z-index: 2 !important;
}

.hero-section {
    border-radius: 0 !important;
}

.hero-section h1 {
    font-size: 3rem !important;
    font-weight: bold !important;
    margin-bottom: 1.5rem !important;
    color: var(--white) !important;
    line-height: 1.2 !important;
}

.hero-section p {
    font-size: 1.25rem !important;
    margin-bottom: 2rem !important;
    color: var(--gray-light) !important;
    line-height: 1.8 !important;
}

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem !important;
    }

    .hero-section p {
        font-size: 1rem !important;
    }
}

/* Table of Contents */
.toc-section {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 2rem;
    background-color: var(--gray-light);
    border-left: 4px solid var(--neon-cyan);
}

.toc-list {
    list-style: none;
    padding-left: 1rem;
}

.toc-list li {
    margin-bottom: 0.75rem;
}

.toc-list a {
    color: var(--midnight-black);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.toc-list a:hover {
    color: var(--neon-cyan);
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

section {
    margin-bottom: 4rem;
    padding: 2rem;
    background-color: var(--white);
    border-radius: 8px;
}

/* Headers */
h1 {
    font-size: 2.5rem !important;
    font-weight: bold !important;
    margin-bottom: 1.5rem !important;
    color: var(--midnight-black) !important;
    line-height: 1.2 !important;
}

h2 {
    font-size: 2rem !important;
    font-weight: bold !important;
    margin-top: 2rem !important;
    margin-bottom: 1.5rem !important;
    color: var(--midnight-black) !important;
    padding-bottom: 0.5rem !important;
    border-bottom: 3px solid var(--neon-cyan) !important;
}

h3 {
    font-size: 1.5rem !important;
    font-weight: bold !important;
    margin-top: 1.5rem !important;
    margin-bottom: 1rem !important;
    color: var(--midnight-black) !important;
}

/* Paragraphs */
p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 1.125rem;
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

img:hover {
    transform: scale(1.02);
}

picture {
    display: block;
    margin: 2rem 0;
}

/* Lists - Content Lists with Styling */
main ul,
main ol {
    margin: 1.5rem 0;
    padding-left: 0;
    list-style: none;
}

main ul li,
main ol li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    line-height: 1.8;
    font-size: 1.125rem;
}

main ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 10px;
    height: 10px;
    background-color: var(--neon-cyan);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--neon-cyan);
}

main ol {
    counter-reset: item;
}

main ol li::before {
    content: counter(item);
    counter-increment: item;
    position: absolute;
    left: 0;
    top: 0;
    color: var(--neon-cyan);
    font-weight: bold;
    font-size: 1.25rem;
}

/* Tables */
.table-container {
    overflow-x: auto;
    margin: 2rem 0;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--white);
    min-width: 600px;
}

thead {
    background-color: var(--midnight-black);
    color: var(--white);
}

th {
    padding: 1rem;
    text-align: left;
    font-weight: bold;
    font-size: 1.125rem;
    border-bottom: 2px solid var(--neon-cyan);
}

td {
    padding: 1rem;
    border-bottom: 1px solid var(--gray-light);
    font-size: 1rem;
}

tbody tr:hover {
    background-color: rgba(0, 255, 255, 0.05);
}

tbody tr:last-child td {
    border-bottom: none;
}

/* Cards */
.card {
    background-color: var(--white);
    border: 1px solid var(--gray-light);
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 255, 255, 0.2);
}

/* Conversion Buttons */
.conversion-button {
    background-color: var(--neon-cyan);
    color: var(--midnight-black);
    padding: 1rem 2.5rem !important;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.125rem;
    transition: all 0.3s;
    display: inline-block;
    white-space: nowrap;
    text-align: center;
    border: none;
    cursor: pointer;
    margin: 1rem 0;
}

.conversion-button:hover {
    background-color: var(--midnight-black);
    color: var(--neon-cyan);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 255, 255, 0.3);
}

/* Footer */
footer {
    background-color: var(--midnight-black);
    color: var(--white);
    padding: 3rem 1rem 1.5rem;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

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

.footer-section h3 {
    color: var(--neon-cyan) !important;
    margin-bottom: 1rem !important;
    font-size: 1.25rem !important;
}

.footer-links {
    list-style: none !important;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem !important;
    list-style: none !important;
}

.footer-links a {
    color: var(--gray-light);
    text-decoration: none;
    transition: color 0.3s;
}

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

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

.footer-bottom p {
    color: var(--gray-light) !important;
    margin: 0;
    font-size: 1rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem !important;
    }

    h2 {
        font-size: 1.5rem !important;
    }

    h3 {
        font-size: 1.25rem !important;
    }

    section {
        padding: 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* Accessibility */
a:focus,
button:focus {
    outline: 2px solid var(--neon-cyan);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    header,
    footer,
    .cta-button,
    .conversion-button {
        display: none;
    }

    body {
        color: black;
        background: white;
    }
}
