/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Lucida Sans Unicode", sans-serif;
}

/* Variables */
:root {
    --primary-color: #2D3436;
    --secondary-color: #6C5CE7;
    --accent-color: #00B894;
    --gradient-start: #5352ED;
    --gradient-end: #3742FA;
    --text-primary: #2D3436;
    --text-secondary: #636E72;
    --background-light: #F9FAFB;
    --card-background: #FFFFFF;
}

/* Global styles */
body {
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--background-light);
    font-size: 16px;
}

/* Theme toggle */
.theme-toggle-container {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.theme-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    transition: transform 0.3s ease;
}

.theme-toggle:hover {
    transform: scale(1.1);
}

.theme-toggle-icon {
    font-size: 24px;
    line-height: 1;
}

/* Header styles */
header {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    color: white;
    padding: 5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.header-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.logo-title-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.company-logo {
    height: 280px;
    width: auto;
    margin-bottom: 25px;
    border-radius: 20px;
    box-shadow: 0 3px 20px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.company-logo:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.company-name {
    font-size: 3.5rem;
    background: linear-gradient(120deg, #FFFFFF 0%, #E2E8F0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-tagline {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.compliance-banner {
    margin-top: 1.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255,255,255,0.1);
    border-radius: 50px;
    font-size: 0.9rem;
    display: inline-block;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

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

/* Section styles */
.section-header {
    text-align: center;
    margin: 3rem 0;
    color: var(--primary-color);
    font-size: 2.25rem;
}

.section-header::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    background: var(--secondary-color);
    margin: 1rem auto;
    border-radius: 2px;
}

/* Overview section */
.overview-section {
    background: var(--card-background);
    border-radius: 20px;
    padding: 2.5rem;
    margin: -4rem auto 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: relative;
    max-width: 1000px;
}

/* Products grid */
.products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

/* Product cards */
.product-card {
    perspective: 1000px;
    height: 300px;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.card-inner.is-flipped {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 16px;
    background: var(--card-background);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.card-front:hover {
    border-color: var(--secondary-color);
    box-shadow:
        0 5px 15px rgba(108, 92, 231, 0.2),
        0 10px 30px rgba(108, 92, 231, 0.1);
    transform: translateY(-5px);
}

.card-back {
    transform: rotateY(180deg);
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    color: white;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-back:hover {
    box-shadow:
        0 5px 15px rgba(83, 82, 237, 0.3),
        0 10px 30px rgba(55, 66, 250, 0.2);
    transform: translateY(-5px) rotateY(180deg);
}

.product-emoji-container {
    padding: 2.5rem;
    background: linear-gradient(45deg, var(--background-light) 0%, white 100%);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.product-card:hover .product-emoji-container {
    background: linear-gradient(45deg, white 0%, var(--background-light) 100%);
}

.product-emoji {
    font-size: 5rem;
    line-height: 1;
    transition: transform 0.3s ease;
}

.product-card:hover .product-emoji {
    transform: scale(1.1);
}

.product-title {
    color: var(--primary-color);
    margin: 1.5rem 0;
    font-size: 1.5rem;
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    color: white;
    text-align: center;
    padding: 3rem 2rem;
    margin-top: 4rem;
}

.footer-badges {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Animations */
.product-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.product-card.fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* PDF Download Button Styles - Light Theme */
.pdf-download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 8px 16px;
    font-size: 0.9rem;
    margin-top: auto;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    align-self: center;
}

.pdf-download-btn:hover {
    background-color: #5849c4;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.pdf-download-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 3px rgba(0,0,0,0.1);
}

.pdf-download-btn.light {
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin-top: 15px;
}

.pdf-download-btn.light:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.download-icon {
    margin-right: 6px;
    font-size: 1.1rem;
}

/* Responsive design */
@media (max-width: 992px) {
    .products {
        grid-template-columns: repeat(2, 1fr);
    }

    .company-name {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .products {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0.5rem;
    }

    .company-logo {
        height: 200px;
        margin-bottom: 20px;
    }

    .company-name {
        font-size: 2.5rem;
    }

    header {
        padding: 3rem 1rem;
    }

    .header-tagline {
        font-size: 1.1rem;
    }

    .compliance-banner {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }

    .overview-section {
        margin-top: -2rem;
        padding: 1.5rem;
    }

    .section-header {
        font-size: 1.8rem;
        margin: 2rem 0;
    }

    .pdf-download-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    main {
        padding: 1.5rem 1rem;
    }
}

@media (max-width: 480px) {
    .company-name {
        font-size: 2rem;
    }

    .header-tagline {
        font-size: 1rem;
    }

    .company-logo {
        height: 160px;
    }

    .product-emoji {
        font-size: 4rem;
    }

    .product-title {
        font-size: 1.3rem;
    }

    .product-card {
        height: 280px;
    }

    .footer-badges {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .footer-badges span {
        display: block;
    }
}