/* --- CSS Variables & Reset --- */
:root {
    --color-bg-main: #0a0a0a;
    --color-bg-secondary: #161616;
    --color-bg-tertiary: #1f1f1f;
    --color-orange: #ff5722;
    --color-orange-hover: #e64a19;
    --color-text-main: #ffffff;
    --color-text-muted: #a0a0a0;
    --color-border: #333333;
    
    --font-primary: 'Outfit', sans-serif;
    
    --transition-fast: 0.2s ease;
    --transition-medium: 0.4s ease;
    
    --color-hero-grad-1: #1a1a1a;
    --color-hero-grad-2: #0a0a0a;
    --color-placeholder-grad: #2a2a2a;
    --color-footer-bg: #050505;
    --color-nav-mobile: rgba(10, 10, 10, 0.98);
}

[data-theme="light"] {
    --color-bg-main: #ffffff;
    --color-bg-secondary: #f5f5f5;
    --color-bg-tertiary: #e0e0e0;
    --color-text-main: #121212;
    --color-text-muted: #555555;
    --color-border: #cccccc;
    
    --color-hero-grad-1: #f0f0f0;
    --color-hero-grad-2: #ffffff;
    --color-placeholder-grad: #d0d0d0;
    --color-footer-bg: #e8e8e8;
    --color-nav-mobile: rgba(255, 255, 255, 0.98);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-bg-main);
    color: var(--color-text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-orange {
    color: var(--color-orange);
}

.text-center {
    text-center;
}

/* --- Buttons --- */
.btn-primary {
    display: inline-block;
    background: var(--color-orange);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    transition: var(--transition-fast);
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-primary:hover {
    background: var(--color-orange-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 87, 34, 0.3);
}

.btn-secondary {
    display: inline-block;
    background: transparent;
    color: var(--color-text-main);
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    border: 1px solid var(--color-border);
    transition: var(--transition-fast);
    text-align: center;
}

.btn-secondary:hover {
    border-color: var(--color-text-main);
    transform: translateY(-2px);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* --- Typography --- */
h1, h2, h3, h4 {
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 3.5rem; font-weight: 800; }
h2 { font-size: 2.5rem; font-weight: 600; }
.subtitle { font-size: 1.2rem; color: var(--color-text-muted); margin-bottom: 2rem; }

/* --- Navbar --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: var(--color-bg-main);
    border-bottom: 1px solid var(--color-border);
    transition: var(--transition-medium);
}

header.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo img {
    height: 40px;
    object-fit: contain;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a:not(.btn-primary) {
    font-weight: 500;
    color: var(--color-text-muted);
    transition: var(--transition-fast);
}

.nav-links a:not(.btn-primary):hover {
    color: var(--color-orange);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: var(--color-text-main);
    margin: 5px 0;
    transition: 0.3s;
}

/* --- Theme Toggle --- */
.theme-toggle {
    background: transparent;
    border: none;
    color: var(--color-text-main);
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

/* --- Hero Section --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: radial-gradient(circle at center, var(--color-hero-grad-1) 0%, var(--color-hero-grad-2) 100%);
    overflow: hidden;
}

/* Optional subtle background pattern or image can go here */
.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: url('data:image/svg+xml;utf8,<svg width="20" height="20" xmlns="http://www.w3.org/2000/svg"><circle cx="2" cy="2" r="1" fill="%23ffffff" fill-opacity="0.05"/></svg>') repeat;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero p {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

/* --- Animations --- */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }

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

/* --- About Section --- */
.about {
    padding: 6rem 0;
    background-color: var(--color-bg-secondary);
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--color-text-muted);
}

.features {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.features li {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-text-main);
}

.about-logo {
    width: 100%;
    height: 400px;
    object-fit: contain;
    background: #ffffff;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid var(--color-border);
}

/* --- Catalog Section --- */
.catalog {
    padding: 6rem 0;
    background-color: var(--color-bg-main);
}

.catalog .section-title {
    margin-bottom: 3rem;
    text-align: center;
}

.catalog .section-title p {
    color: var(--color-text-muted);
}

.pdf-viewer-container {
    width: 100%;
    height: 800px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    background: var(--color-bg-tertiary);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.pdf-fallback {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 1rem;
    color: var(--color-text-muted);
}

/* --- Contact Section --- */
.contact {
    padding: 6rem 0;
    background-color: var(--color-bg-secondary);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info p {
    color: var(--color-text-muted);
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.info-item .icon {
    font-size: 1.5rem;
}

.info-item p {
    margin: 0;
    font-weight: 500;
    color: var(--color-text-main);
}

.contact-form-wrapper {
    background: var(--color-bg-tertiary);
    padding: 2.5rem;
    border-radius: 8px;
    border: 1px solid var(--color-border);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--color-bg-main);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    color: var(--color-text-main);
    font-family: inherit;
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-orange);
    box-shadow: 0 0 0 2px rgba(255, 87, 34, 0.2);
}

.btn-submit {
    width: 100%;
    margin-top: 1rem;
}

.form-status {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.9rem;
}

/* --- Modal --- */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.85);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.modal.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: var(--color-bg-main);
    padding: 3rem;
    border-radius: 8px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    position: relative;
    border: 1px solid var(--color-border);
    transform: translateY(-20px);
    transition: transform 0.3s;
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);
}

.modal.show .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-text-muted);
}

.modal-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.modal-content h3 {
    margin-bottom: 0.5rem;
}

.modal-content p {
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

/* --- Footer --- */
footer {
    background-color: var(--color-footer-bg);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--color-border);
}

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

.footer-logo p {
    color: var(--color-text-muted);
    margin-top: 1rem;
    font-size: 0.9rem;
}

.footer-links h4,
.footer-social h4 {
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a,
.social-icons a {
    color: var(--color-text-muted);
    transition: var(--transition-fast);
}

.footer-links a:hover,
.social-icons a:hover {
    color: var(--color-orange);
}

.social-icons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    h1 { font-size: 2.8rem; }
    .about-container,
    .contact-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

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

    .nav-links {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: var(--color-nav-mobile);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 20px rgba(0,0,0,0.5);
        padding: 2rem 0;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        margin: 1.5rem 0;
    }

    h1 { font-size: 2.2rem; }
    h2 { font-size: 2rem; }
    
    .hero p { font-size: 1rem; }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-large {
        width: 100%;
    }
    
    .pdf-viewer-container {
        height: 500px;
    }
    
    /* Reduce huge paddings on mobile */
    .about, .catalog, .contact {
        padding: 4rem 0;
    }
    
    .about-logo {
        height: auto;
        max-height: 250px;
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .features {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 0 1.5rem;
    }
    
    .pdf-viewer-container {
        height: 400px;
    }
}

/* --- Flipbook Customizations --- */
.df-ui-share, .df-ui-btn.df-ui-share, .df-icon-share {
    display: none !important;
}
