/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Main colors */
    --primary-color: #414040;    /* Darker gray for header/footer */
    --secondary-color: #eb0000;  /* Burgundy for logo and accents */
    --accent-color: #9b9797;     /* Blue accent */
    
    /* Text colors */
    --text-color: #2c3e50;       /* Dark blue-gray for main text */
    --text-light: #7f8c8d;       /* Light gray for secondary text */
    --white: #ffffff;            /* White for contrast */
    
    /* Background colors */
    --bg-light: #ecf0f1;         /* Light gray background */
    --bg-white: #ffffff;         /* White background */
    --bg-dark: #4A4A4A;          /* Dark background */
    
    /* Additional colors */
    --success: #27ae60;          /* Green for success messages */
    --warning: #f39c12;          /* Orange for warnings */
    --error: #e74c3c;            /* Red for errors */
    --light-gray: #ecf0f1;       /* Light gray for borders and backgrounds */
    --dark-gray: #2C2C2C;        /* Darker gray for hover states */
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    --gradient-secondary: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    
    /* Container width */
    --container-width: 1200px;
    
    /* Header height */
    --header-height: 70px;
    
    /* Border radius */
    --border-radius: 8px;
    
    /* Transition speed */
    --transition-speed: 0.3s;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
    text-align: center;
}
#main_logo {
                width: 100%;
                height: auto;
                max-width: 250px;
            }

/* Navigation */
.navbar {
    background-color: var(--primary-color);
    padding: 0.5rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
    height: var(--header-height);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items:center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
}

.logo a {
    text-decoration: none;
}

.logo h1 {
    color: var(--secondary-color);
    font-size: 1.8rem;
    font-weight: 700;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1rem;
    align-items: center;
    margin-left: auto;
    justify-content: center;
    flex-wrap: nowrap;
}

.nav-links a {
    text-decoration: none;
    color: var(--white);
    font-weight: 500;
    transition: color var(--transition-speed) ease;
    padding: 0.5rem 0.6rem;
    text-align: center;
    white-space: nowrap;
    font-size: 0.9rem;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--secondary-color);
    border-bottom: 2px solid var(--secondary-color);
}

.burger {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    margin: 5px;
    transition: all var(--transition-speed) ease;
}

/* Hero Section */
.hero {
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding: 0 1rem;
    margin-top: var(--header-height);
    position: relative;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    background: url("/images/Pleven\ Print\ background_1.png") no-repeat center center/cover;
    opacity: 40%;

    z-index: 1;
}

.hero-content {
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    position: relative;
    z-index: 2;
    gap: 2rem;
    padding: 0 1rem;
}

.hero-text {
    flex: 1;
    max-width: 100%;
}

.hero-content img {
    flex: 1;
    max-width: 500px;
    
    height: auto;
    object-fit: contain;
    margin-left: 0;
    display: block;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-content p {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    margin-bottom: 2.5rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--secondary-color);
    
    color: var(--white);
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: background-color var(--transition-speed) ease;
    
    font-weight: 500;
}

.cta-button:hover {
    background-color: var(--accent-color);
    
    background-color: #27ae60;
    transform: translateY(-2px);
}

/* Services Section */
.services {
    padding: 5rem 0;
    background-color: var(--light-gray);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    justify-items: center;
}

.service-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    border: 1px solid var(--light-gray);
    max-width: 350px;
    width: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.service-card i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.service-card h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.learn-more {
    display: inline-block;
    margin-top: 1.5rem;
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    background-color: var(--secondary-color);
    padding: 0.8rem 1.5rem;
    border-radius: var(--border-radius);
    transition: all var(--transition-speed) ease;
    border: 2px solid var(--secondary-color);
}

.learn-more:hover {
    background-color: transparent;
    color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* About Section */
.about {
    padding: 5rem 0;
}

.about .container {
    max-width: var(--container-width);
    margin: 0 auto;
}

.about h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
    font-size: 2.5rem;
}

.about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    text-align: center;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.feature {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.feature i {
    color: var(--secondary-color);
    font-size: 1.5rem;
}

/* Contact Section */
.contact {
    padding: 5rem 0;
    background-color: var(--light-gray);
}

.contact .container {
    max-width: var(--container-width);
    margin: 0 auto;
}

.contact h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
    font-size: 2.5rem;
}

.contact-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.contact-info {
    display: grid;
    gap: 2rem;
    margin-bottom: 2rem;
}

.contact-link {
    color: var(--text-color);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

.contact-link:hover {
    color: var(--secondary-color);
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.info-item i {
    color: var(--secondary-color);
    font-size: 1.5rem;
    min-width: 24px;
}

.map-container {
    width: 100%;
    max-width: 800px;
    height: 400px;
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.map-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-light);
    color: var(--text-light);
}

.map-placeholder i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.map-placeholder p {
    font-size: 1.2rem;
}

/* Remove old contact form styles */
.contact-form,
.contact-form input,
.contact-form textarea,
.submit-btn {
    display: none;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    max-width: var(--container-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    padding: 0 1rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--white);
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--secondary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    font-size: 1.5rem;
    color: var(--white);
    transition: color var(--transition-speed);
}

.social-links a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 2rem;
    color: var(--text-light);
}

.footer-bottom .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.footer-contact p {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-contact i {
    color: var(--secondary-color);
    font-size: 1.2rem;
    min-width: 20px;
}

.footer-contact .contact-link {
    color: var(--white);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

.footer-contact .contact-link:hover {
    color: var(--secondary-color);
}

/* Styles for the developer link */
.footer-bottom .developer-link {
    color: var(--secondary-color);
    text-decoration: underline;
    text-decoration-color: var(--secondary-color);
    position: relative;
    transition: color var(--transition-speed) ease, transform var(--transition-speed) ease;
}

.footer-bottom .developer-link:hover,
.footer-bottom .developer-link:active {
    transform: scale(1.05);
    color: var(--secondary-color);
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
    :root {
        --container-width: 90%;
    }
}

@media screen and (max-width: 768px) {
    .nav-links {
        position: fixed;
        right: -100%;
        top: var(--header-height);
        height: calc(100vh - var(--header-height));
        background-color: var(--primary-color);
        flex-direction: column;
        width: 100%;
        text-align: center;
        transition: right 0.3s ease;
        padding: 2rem 0;
        gap: 1rem;
        z-index: 999;
    }

    .nav-links.active {
        right: 0;
    }

    .burger {
        display: block;
        z-index: 1000;
    }

    .burger.toggle .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .burger.toggle .line2 {
        opacity: 0;
    }

    .burger.toggle .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .nav-links a {
        padding: 0.8rem 1.5rem;
        width: 100%;
        display: block;
    }

    .about-content,
    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .service-features,
    .packaging-types,
    .banner-types {
        grid-template-columns: 1fr;
    }

    .logo h1 {
        font-size: 1.5rem;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
    }

    .hero-text {
        max-width: 100%;
    }

    .hero-content img {
        max-width: 80%;
    }

    .hero::before {
        background-color: rgba(0, 0, 0, 0.6);
    }
}

@media screen and (max-width: 480px) {
    :root {
        --container-width: 95%;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    .pricing-table {
        font-size: 0.9rem;
    }

    .pricing-table th,
    .pricing-table td {
        padding: 0.75rem;
    }

    /* Центриране на слайдера и премахване на марджин отдолу */
    .slider,
    .slider2 {
        margin-bottom: 0 !important;
        margin-left: auto;
        margin-right: auto;
        
        box-sizing: border-box;
    }

    /* Слайдове: центриране и ограничаване на ширината */
    .slides {
        margin: 0 auto;
        width: 100%;
        
    }

    /* Слайдове: изображението да е винаги видимо и центрирано */
    .slide img {
        object-fit: contain !important;
        width: 100%;
        height: 100%;
        background: #222;
        display: block;
        margin: 0 auto;
    }

    /* Мобилен слайдер: корекция за малки екрани */
    @media screen and (max-width: 480px) {
        .slider {
            display: none !important;
        }
        .slider2 {  
            display: block !important;
            
            max-width: 100vw;
            height: 88vh !important;
        }
        .slider2 .slides {
            max-width: 100vw;
            height: auto !important;
        }
        .slider2 .slide img {
            max-width: 100vw;
            /* max-height: 36vh; */
            width: 100%;
            height: 100%;
            object-fit: contain !important;
            background: #222;
            
        }
        
    }

    /* За по-големи екрани: центриране и ограничаване на ширината */
    @media screen and (min-width: 481px) {
        .slider, .slider2 {
            max-width: 900px;
            margin-left: auto;
            margin-right: auto;
            height: 65vh;
        }
        .slides {
            max-width: 900px;
            height: 65vh;
        }
        .slide img {
            max-width: 100%;
            max-height: 65vh;
            object-fit: contain !important;
        }
    }
}

/* Print Styles */
@media print {
    .navbar,
    .hero,
    .cta-button,
    .footer {
        display: none;
    }

    body {
        color: #000;
    }

    .container {
        max-width: 100%;
        padding: 0;
    }

    a {
        text-decoration: none;
        color: #000;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card,
.about-content,
.contact-container {
    animation: fadeIn 1s ease-out;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* High Contrast Mode */
@media (forced-colors: active) {
    .service-card,
    .feature-card,
    .pricing-table {
        border: 1px solid currentColor;
    }
}

/* Update specific component colors */
.navbar {
    background-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.hero {
    background: var(--gradient-primary);
}

.cta-button {
    background-color: var(--secondary-color);
    color: var(--white);
    transition: background-color var(--transition-speed);
}

.cta-button:hover {
    background-color: var(--accent-color);
}

.service-card {
    border: 1px solid var(--light-gray);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.feature-card i {
    color: var(--secondary-color);
}

.pricing-table th {
    background-color: var(--primary-color);
    color: var(--white);
}

.pricing-table tr:hover {
    background-color: var(--light-gray);
}

footer {
    background-color: var(--primary-color);
    color: var(--white);
}

.social-links a {
    color: var(--white);
    transition: color var(--transition-speed);
}

.social-links a:hover {
    color: var(--secondary-color);
}

/* Update form elements */
input, textarea {
    border: 1px solid var(--light-gray);
    transition: border-color var(--transition-speed);
}

input:focus, textarea:focus {
    border-color: var(--accent-color);
    outline: none;
}

/* Update navigation */
.nav-links a {
    color: var(--white);
    transition: color var(--transition-speed);
}

.nav-links a:hover {
    color: var(--secondary-color);
}

.nav-links a.active {
    color: var(--secondary-color);
    border-bottom: 2px solid var(--secondary-color);
}

/* Update service hero sections */
.service-hero {
    background: var(--gradient-primary);
}

/* Update feature cards */
.feature-card {
    background-color: var(--white);
    border: 1px solid var(--light-gray);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

/* Update pricing tables */
.pricing-table th {
    background-color: var(--primary-color);
    color: var(--white);
}

.pricing-table tr:hover {
    background-color: var(--light-gray);
}

/* Update CTA sections */
.cta-section {
    background-color: var(--bg-light);
    padding: 3rem 0;
}

.cta-section .cta-button {
    background-color: var(--secondary-color);
    color: var(--white);
    transition: background-color var(--transition-speed);
}

.cta-section .cta-button:hover {
    background-color: var(--accent-color);
}

.service-content {
    padding: 5rem 5%;
    text-align: center;
}

.service-description {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
}

.service-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    justify-items: center;
}

.feature-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    text-align: center;
    max-width: 350px;
    width: 100%;
}

.banner-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
    justify-items: center;
}

.banner-type {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    max-width: 400px;
    width: 100%;
    text-align: center;
}

.banner-type ul {
    list-style: none;
    padding: 0;
    text-align: left;
    display: inline-block;
}

.banner-type ul li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.cta-section {
    text-align: center;
    margin-top: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Remove pricing table styles */
.pricing-table {
    display: none;
}
