/* Satoshi Font Import */
@import url('https://fonts.cdnfonts.com/css/satoshi');

/* Tailwind CSS CDN */
@import url('https://cdn.jsdelivr.net/npm/tailwindcss@3.4.1/base.min.css');

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

:root {
    --primary-black: #000000;
    --accent-raspberry: #d4145a;
    --text-color: #1a1a1a;
    --bg-light: #ffffff;
    --bg-gray: #f5f5f5;
    --border-color: #e0e0e0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Satoshi', sans-serif;
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--bg-light);
    overflow-x: hidden;
}

/* Important CSS Rules for Tailwind */
.nav-menu li {
    margin-bottom: 0 !important;
    list-style: none !important;
}

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

footer ul li,
footer ol li {
    list-style: none !important;
    margin-bottom: 0 !important;
}

footer ul li::before,
footer ul li::after,
footer ol li::before,
footer ol li::after {
    display: none !important;
    content: none !important;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700 !important;
    line-height: 1.2 !important;
    margin-bottom: 1.5rem !important;
    color: var(--primary-black) !important;
}

h1 {
    font-size: 3rem !important;
    margin-top: 2rem !important;
}

h2 {
    font-size: 2.5rem !important;
    margin-top: 3rem !important;
    padding-top: 2rem !important;
}

h3 {
    font-size: 2rem !important;
    margin-top: 2rem !important;
}

p {
    margin-bottom: 1.5rem;
    font-size: 18px;
    line-height: 1.8;
}

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

a:hover {
    color: var(--primary-black);
}

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

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

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

.logo-wrapper img {
    height: 40px;
    width: auto;
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

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

.nav-menu a {
    color: white;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.nav-menu a:hover {
    color: var(--accent-raspberry);
}

.cta-button {
    background-color: transparent;
    color: var(--accent-raspberry);
    border: 2px solid var(--accent-raspberry);
    padding: 0.6rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-align: center;
}

.cta-button:hover {
    background-color: var(--accent-raspberry);
    color: white;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: 2px solid white;
    color: white;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-size: 1.2rem;
}

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

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

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

/* Hero Section */
.hero-section {
    position: relative !important;
    min-height: 600px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 4rem 2rem !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;
    overflow: hidden !important;
}

.hero-section::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(212,20,90,0.3) 100%) !important;
    z-index: 1 !important;
}

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

.hero-content h1 {
    color: white !important;
    font-size: 3.5rem !important;
    margin-bottom: 1.5rem !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5) !important;
    animation: fadeInUp 1s ease-out;
}

.hero-content p {
    color: white !important;
    font-size: 1.3rem !important;
    margin-bottom: 2rem !important;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5) !important;
    line-height: 1.8 !important;
}

.hero-cta {
    background-color: var(--accent-raspberry) !important;
    color: white !important;
    border: 2px solid var(--accent-raspberry) !important;
    padding: 1rem 3rem !important;
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: inline-block !important;
    margin-top: 1rem !important;
    animation: pulse 2s infinite;
}

.hero-cta:hover {
    background-color: transparent !important;
    color: white !important;
    border-color: white !important;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 500px !important;
        background-attachment: scroll !important;
    }

    .hero-content h1 {
        font-size: 2.5rem !important;
    }

    .hero-content p {
        font-size: 1.1rem !important;
    }
}

/* Table of Contents */
.table-of-contents {
    background-color: var(--bg-gray);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    margin: 3rem auto;
    max-width: 1200px;
}

.table-of-contents ul {
    list-style: none;
    padding-left: 0;
}

.table-of-contents li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.table-of-contents li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent-raspberry);
    font-weight: 700;
}

.table-of-contents a {
    font-size: 1.1rem;
    font-weight: 500;
}

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

/* Content Sections */
.content-section {
    margin-bottom: 4rem;
    padding: 2rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

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

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

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

.main-content ul li,
.main-content ol li {
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
    font-size: 18px;
    line-height: 1.7;
}

.main-content ul li::before {
    content: '■';
    position: absolute;
    left: 0;
    color: var(--accent-raspberry);
    font-size: 0.8rem;
}

.main-content ol {
    counter-reset: item;
}

.main-content ol li::before {
    content: counter(item) '. ';
    counter-increment: item;
    position: absolute;
    left: 0;
    color: var(--accent-raspberry);
    font-weight: 700;
}

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

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

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

th {
    padding: 1rem;
    text-align: left;
    font-weight: 700;
    font-size: 1rem;
}

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

tbody tr:hover {
    background-color: var(--bg-gray);
}

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

/* Images */
.main-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.main-content picture {
    display: block;
    margin: 2rem 0;
}

/* Footer */
.site-footer {
    background-color: var(--primary-black);
    color: white;
    padding: 3rem 2rem 2rem;
    margin-top: 4rem;
}

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

.footer-section h3 {
    color: white !important;
    font-size: 1.3rem !important;
    margin-bottom: 1rem !important;
}

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

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

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

.footer-section a {
    color: #cccccc;
    font-size: 1rem;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #333;
}

.footer-bottom p {
    color: #cccccc !important;
    font-size: 0.9rem;
    margin: 0;
}

/* Pop-up Modal */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.popup-overlay.active {
    display: flex;
}

.popup-content {
    background-color: white;
    padding: 3rem;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    position: relative;
    text-align: center;
    animation: slideIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

.popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-color);
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
}

.popup-close:hover {
    color: var(--accent-raspberry);
}

.popup-content h2 {
    color: var(--primary-black) !important;
    margin-bottom: 1rem !important;
}

.popup-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.popup-cta {
    background-color: transparent;
    color: var(--accent-raspberry);
    border: 2px solid var(--accent-raspberry);
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.popup-cta:hover {
    background-color: var(--accent-raspberry);
    color: white;
}

/* Sticky CTA Button */
.sticky-cta {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    background-color: transparent;
    color: var(--accent-raspberry);
    border: 2px solid var(--accent-raspberry);
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    animation: bounce 2s infinite;
}

.sticky-cta:hover {
    background-color: var(--accent-raspberry);
    color: white;
    transform: scale(1.1);
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@media (max-width: 768px) {
    .sticky-cta {
        bottom: 1rem;
        right: 1rem;
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Star Animation Elements */
.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    animation: twinkle 3s infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .main-content {
        padding: 2rem 1.5rem;
    }

    h1 {
        font-size: 2.5rem !important;
    }

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

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

@media (max-width: 768px) {
    body {
        font-size: 16px;
    }

    h1 {
        font-size: 2rem !important;
    }

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

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

    .main-content {
        padding: 1.5rem 1rem;
    }

    .content-section {
        padding: 1.5rem;
    }

    .card {
        padding: 1.5rem;
    }

    .table-of-contents {
        padding: 1.5rem;
    }

    .popup-content {
        padding: 2rem;
    }

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

@media (max-width: 480px) {
    .nav-container {
        padding: 0 1rem;
    }

    .main-content ul li,
    .main-content ol li {
        padding-left: 1.5rem;
    }
}

/* Accessibility */
:focus-visible {
    outline: 2px solid var(--accent-raspberry);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .site-header,
    .sticky-cta,
    .popup-overlay {
        display: none;
    }
}
