/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette from Logo */
    --bg-primary: #000000;
    --bg-secondary: #0a0a0a;
    --text-primary: #CCCCCC;
    --text-secondary: #E0E0E0;
    --accent-dark: #6B1A1A;
    --accent-mid: #A03030;
    --accent-bright: #B03535;
    --accent-vibrant: #D9482B;
    --accent-orange: #E05030;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #A03030 0%, #D9482B 100%);
    --gradient-bright: linear-gradient(135deg, #B03535 0%, #E05030 100%);
    --gradient-dark: linear-gradient(135deg, #6B1A1A 0%, #7A2020 100%);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(212, 72, 43, 0.2);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.nav-logo-img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.35);
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-secondary);
    letter-spacing: 2px;
    margin: 0;
}

.logo .tagline {
    font-size: 0.7rem;
    color: var(--text-primary);
    letter-spacing: 1px;
    margin: 0;
    font-weight: 400;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    color: var(--accent-orange);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-bright);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 4px;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-secondary);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 20px 80px;
    background-color: var(--bg-primary);
    background-image: url('assets/hero-bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
}

.hero-bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(2px);
    pointer-events: none;
    animation: pulseGlow 8s ease-in-out infinite;
    transition: transform 0.25s ease-out;
}

.hero-bg-shape-1 {
    width: 340px;
    height: 340px;
    top: 90px;
    left: -70px;
    background: radial-gradient(circle, rgba(224, 80, 48, 0.32) 0%, rgba(224, 80, 48, 0) 70%);
}

.hero-bg-shape-2 {
    width: 380px;
    height: 380px;
    bottom: 40px;
    right: -80px;
    background: radial-gradient(circle, rgba(176, 53, 53, 0.26) 0%, rgba(176, 53, 53, 0) 70%);
    animation-delay: 1.4s;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.8) 100%),
        radial-gradient(circle at 20% 50%, rgba(212, 72, 43, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(224, 80, 48, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-logo {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
}

.hero-logo-img {
    width: min(220px, 58vw);
    max-height: 170px;
    height: auto;
    object-fit: contain;
    border-radius: 24px;
    padding: 1rem;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.03), rgba(224, 80, 48, 0.08));
    border: 1px solid rgba(224, 80, 48, 0.22);
    box-shadow: 0 22px 44px rgba(0, 0, 0, 0.35);
    animation: float 6s ease-in-out infinite;
    transition: transform 0.25s ease-out;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulseGlow {
    0%, 100% {
        transform: scale(1);
        opacity: 0.75;
    }
    50% {
        transform: scale(1.08);
        opacity: 1;
    }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    background: var(--gradient-bright);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    display: inline-block;
    border: 2px solid transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-bright);
    color: var(--bg-primary);
    border-color: transparent;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(224, 80, 48, 0.4);
}

.btn-primary::after {
    content: "";
    position: absolute;
    top: -130%;
    left: -30%;
    width: 38%;
    height: 360%;
    background: rgba(255, 255, 255, 0.28);
    transform: rotate(18deg);
    transition: left 0.6s ease;
}

.btn-primary:hover::after {
    left: 120%;
}

.btn-secondary {
    background: transparent;
    color: var(--accent-orange);
    border-color: var(--accent-orange);
}

.btn-secondary:hover {
    background: var(--accent-orange);
    color: var(--bg-primary);
    transform: translateY(-2px);
}

/* Section Styles */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    position: relative;
}

.title-underline {
    width: 80px;
    height: 4px;
    background: var(--gradient-bright);
    margin: 0 auto 1.5rem;
    border-radius: 2px;
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-primary);
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about {
    background-color: var(--bg-secondary);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-primary);
}

.about-text .lead {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.about-text strong {
    color: var(--accent-orange);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.stat-card {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(212, 72, 43, 0.1) 0%, rgba(224, 80, 48, 0.05) 100%);
    border-radius: 15px;
    border: 1px solid rgba(212, 72, 43, 0.2);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-orange);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-bright);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Products Section */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--bg-secondary);
    border-radius: 15px;
    border: 1px solid rgba(212, 72, 43, 0.2);
    text-align: center;
    transition: all 0.3s ease;
    will-change: transform;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-orange);
    box-shadow: 0 15px 40px rgba(212, 72, 43, 0.2);
}

.product-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
    border-bottom: 2px solid rgba(212, 72, 43, 0.15);
}

.product-image::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 60%, var(--bg-secondary) 105%);
    pointer-events: none;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.08);
}

.product-info {
    padding: 2rem 1.5rem;
    flex-grow: 1;
}

.product-info h3 {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.product-info p {
    color: var(--text-primary);
    line-height: 1.7;
}

/* CV Section */
.cv-section {
    background-color: var(--bg-primary);
    padding: 80px 0;
}

.cv-container {
    max-width: 1400px;
    margin: 0 auto;
}

.cv-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 10px;
    border: 1px solid rgba(212, 72, 43, 0.2);
    flex-wrap: wrap;
    gap: 1rem;
}

.cv-info p {
    color: var(--text-primary);
    margin: 0;
    font-size: 1rem;
}

.cv-actions {
    display: flex;
    gap: 1rem;
}


/* Catalog Section */
.catalog {
    background-color: var(--bg-secondary);
    padding: 80px 0;
}

.catalog-container {
    max-width: 1400px;
    margin: 0 auto;
}

.catalog-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 10px;
    border: 1px solid rgba(212, 72, 43, 0.2);
    flex-wrap: wrap;
    gap: 1rem;
}

.catalog-info p {
    color: var(--text-primary);
    margin: 0;
    font-size: 1rem;
}

.catalog-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-catalog {
    padding: 0.75rem 1.5rem;
    background: var(--gradient-bright);
    color: var(--bg-primary);
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: inherit;
}

.btn-catalog:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(224, 80, 48, 0.4);
}

.btn-catalog span {
    font-size: 1.2rem;
}

.pdf-viewer-container {
    position: relative;
    width: 100%;
    min-height: 800px;
    background: var(--bg-secondary);
    border-radius: 15px;
    border: 1px solid rgba(212, 72, 43, 0.2);
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

#pdfViewer,
#cvViewer {
    width: 100%;
    height: 800px;
    border: none;
    display: block;
    background: #525252;
}

.pdf-viewer-container.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    border-radius: 0;
    min-height: 100vh;
}

.pdf-viewer-container.fullscreen #pdfViewer,
.pdf-viewer-container.fullscreen #cvViewer {
    height: 100vh;
}

.pdf-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    z-index: 10;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(212, 72, 43, 0.2);
    border-top-color: var(--accent-orange);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.pdf-loading p {
    color: var(--text-primary);
    font-size: 1.1rem;
}

.pdf-error {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    padding: 2rem;
    text-align: center;
    z-index: 10;
}

.error-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.pdf-error h3 {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.pdf-error p {
    color: var(--text-primary);
    margin-bottom: 2rem;
    max-width: 500px;
}

.catalog-note {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(212, 72, 43, 0.1);
    border-radius: 8px;
    border-left: 4px solid var(--accent-orange);
    text-align: center;
}

.catalog-note p {
    color: var(--text-primary);
    margin: 0;
    font-size: 0.95rem;
}

.catalog-note strong {
    color: var(--accent-orange);
}

/* Projects Section */
.projects {
    background-color: var(--bg-secondary);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.project-card {
    background: var(--bg-primary);
    padding: 3rem;
    border-radius: 15px;
    border: 1px solid rgba(212, 72, 43, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    will-change: transform;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-bright);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.project-card:hover::before {
    transform: scaleX(1);
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-orange);
    box-shadow: 0 15px 40px rgba(212, 72, 43, 0.3);
}

.project-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.project-card h3 {
    font-size: 1.8rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.project-card p {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.project-features {
    list-style: none;
    padding: 0;
}

.project-features li {
    color: var(--text-primary);
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.project-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-orange);
    font-weight: bold;
}

/* Why Us Section */
.why-us {
    background: radial-gradient(ellipse at center, rgba(212, 72, 43, 0.05) 0%, var(--bg-primary) 70%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-item {
    text-align: center;
    padding: 2rem;
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-6px);
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-bright);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--bg-primary);
}

.feature-item h3 {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.feature-item p {
    color: var(--text-primary);
    line-height: 1.7;
}

/* Contact Section */
.contact {
    background-color: var(--bg-secondary);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.contact-icon {
    font-size: 2rem;
    min-width: 50px;
}

.contact-item h3 {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.contact-item p {
    color: var(--text-primary);
}

.contact-item a {
    color: var(--accent-orange);
    text-decoration: none;
}

.contact-item a:hover {
    color: var(--text-secondary);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: var(--bg-primary);
    border: 1px solid rgba(212, 72, 43, 0.3);
    border-radius: 8px;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-orange);
    box-shadow: 0 0 0 3px rgba(224, 80, 48, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-primary);
    opacity: 0.6;
}

/* Footer */
.footer {
    background-color: var(--bg-primary);
    border-top: 1px solid rgba(212, 72, 43, 0.2);
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-weight: 700;
    font-size: 1.5rem;
}

.footer-tagline {
    color: var(--text-primary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.footer-section h4 {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.footer-section a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--accent-orange);
}

.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-links a {
    padding: 0.5rem 1rem;
    background: rgba(212, 72, 43, 0.1);
    border-radius: 5px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--accent-orange);
    color: var(--bg-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(212, 72, 43, 0.2);
    color: var(--text-primary);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 968px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background: rgba(0, 0, 0, 0.98);
        width: 100%;
        padding: 2rem;
        transition: left 0.3s ease;
        border-top: 1px solid rgba(212, 72, 43, 0.2);
    }

    .nav-menu.active {
        left: 0;
    }

    .menu-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
    }

    .cv-controls,
    .catalog-controls {
        flex-direction: column;
        align-items: flex-start;
    }

    .cv-actions {
        width: 100%;
    }


    .catalog-actions {
        width: 100%;
    }

    .btn-catalog {
        flex: 1;
        justify-content: center;
    }

    #pdfViewer,
    #cvViewer {
        height: 600px;
    }

    .pdf-viewer-container {
        min-height: 600px;
    }
}

@media (max-width: 640px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-logo-img {
        width: min(180px, 52vw);
        max-height: 130px;
        padding: 0.65rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .products-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .logo h1 {
        font-size: 1.2rem;
    }

    .logo {
        gap: 0.6rem;
    }

    .nav-logo-img {
        width: 44px;
        height: 44px;
    }

    #pdfViewer,
    #cvViewer {
        height: 500px;
    }

    .pdf-viewer-container {
        min-height: 500px;
    }

    .catalog-actions,
    .cv-actions {
        flex-direction: column;
    }

    .btn-catalog {
        width: 100%;
    }

}

