:root {
    --primary-color: #ca6200;    /* Strong red */
    --secondary-color: #d65307;   /* Deep red */
    --accent-color: #e07612;      /* Warm orange accent */
    --background-light: #FFF5F5;  /* Very light red */
    --text-dark: #2D3748;
    --text-light: #718096;
    --white: #ffffff;
    --gray-100: #f7fafc;
    --gray-200: #edf2f7;
    --max-width: 1200px;
    --transition: all 0.3s ease;
    --section-padding: 8rem 0;
    --card-border-radius: 16px;
    --gradient-overlay: linear-gradient(135deg, 
        rgba(112, 69, 13, 0.95), 
        rgba(65, 57, 57, 0.9)
    );
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden; /* Přidáme toto */
    width: 100%;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    overflow: hidden; /* Přidáme toto */
    width: 100%; /* Přidáme toto */
}
.container::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(237, 100, 166, 0.05) 0%, transparent 70%);
    z-index: -1;
    overflow: hidden; /* Přidáme toto */
}

/* Oprava pro všechny sekce */
section {
    overflow: hidden; /* Přidáme toto */
    width: 100%; /* Přidáme toto */
}

/* Header & Navigation */
.header {
    position: fixed;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1rem; /* Reduced padding for more space */
}

.logo {
    display: flex;
    align-items: center;
    margin-left: -5rem; /* Move logo more to the left */
}

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.logo a:hover {
    color: var(--primary-color); /* Keep the same color on hover */
}

.logo-image {
    height: 120px; /* Increased size from 90px */
    width: auto;
    object-fit: contain;
    transition: all 0.3s ease; /* Smooth transition for responsive changes */
}

/* Mobile responsive logo */
@media (max-width: 768px) {
    .logo {
        margin-left: 0; /* Reset margin on mobile */
        justify-content: center; /* Center on mobile */
        width: 100%; /* Take full width to help centering */
    }

    .logo-image {
        height: 80px; /* Adjusted size for mobile */
    }

    .nav-container {
        flex-wrap: wrap; /* Allow items to wrap on mobile */
        padding: 0.5rem 1rem;
    }

    .mobile-menu {
        position: absolute; /* Position the menu button */
        right: 1rem;
        top: 50%;
        transform: translateY(-50%);
    }
}

/* For even smaller screens */
@media (max-width: 480px) {
    .logo-image {
        height: 60px; /* Further reduced size for very small screens */
    }
}

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-menu a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    position: relative;
}

.nav-menu a:hover {
    color: var(--text-dark); /* Keep the same color on hover */
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-menu a:hover::after {
    transform: scaleX(1);
}

.mobile-menu {
    display: none;
}

/* Hero Section with new background and hover effects */
.hero {
    min-height: 100vh;
    background: linear-gradient(rgba(45, 55, 72, 0.9), rgba(26, 32, 44, 0.8)),
    url('https://images.unsplash.com/photo-1450101499163-c8848c66ca85?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: grid;
    place-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(rgba(0, 0, 0, 0.2), transparent),
        linear-gradient(transparent, rgba(0, 0, 0, 0.1));
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;    
}

.hero h1 {
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 2rem;
    letter-spacing: -0.5px;
    animation: fadeInDown 1s ease;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    color: var(--white);
    transition: transform 0.3s ease;
}

.hero h1:hover {
    transform: scale(1.02);
}

.hero p {
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    line-height: 1.6;
    margin-bottom: 3.5rem;
    opacity: 0.95;
    animation: fadeInUp 1s ease 0.2s backwards;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    color: var(--white);
    transition: all 0.3s ease;
}

.hero p:hover {
    opacity: 1;
}

.cta-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    animation: fadeIn 1s ease 0.4s backwards;
}

.btn {
    padding: 1.2rem 3rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.4s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Responsive design */
@media (max-width: 768px) {
    .hero {
        padding: 6rem 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }

    .hero h1 {
        font-size: clamp(2rem, 5vw, 2.5rem);
    }

    .hero p {
        font-size: clamp(1rem, 2vw, 1.2rem);
    }
}

/* Enhanced Services Section */
.services {
    padding: var(--section-padding);
    background: var(--background-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
    position: relative;
}

.service-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.service-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.service-card:hover i {
    transform: scale(1.1);
}

.service-card:nth-child(4) { /* Finanční poradenství */
    order: 2;
    grid-column: 2; /* This will place it in the middle column if 3 columns are available */
}

.service-content ul {
    list-style: none;
    margin-top: 1.5rem;
}

.service-content ul li {
    margin-bottom: 0.8rem;
    padding-left: 1.8rem;
    position: relative;
    line-height: 1.5;
}

.service-content ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* Enhanced Why Choose Us Section */
.why-us {
    padding: var(--section-padding);
    background: var(--white);
    position: relative;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.benefit-card {
    background: var(--background-light);
    padding: 2.5rem;
    border-radius: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--primary-color);
    transition: height 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.benefit-card:hover::before {
    height: 100%;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-dark);
    position: relative;
    padding-bottom: 1.5rem;
    letter-spacing: -0.5px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

@media (max-width: 768px) {
    .services-grid,
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

/* Contact Section Styling */
.contact {
    padding: var(--section-padding);
    position: relative;
    background-image: url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    isolation: isolate;
}

.contact::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(45, 55, 72, 0.95), /* Dark gray with high opacity */
        rgba(26, 32, 44, 0.9)   /* Darker gray with higher opacity */
    );
    z-index: -1;
}

/* Enhance text visibility against darker background */
.contact h2 {
    text-align: center;
    font-size: 2.8rem;
    color: var(--white);
    margin-bottom: 4rem;
    position: relative;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3); /* Stronger text shadow */
}

.contact h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--white);
    border-radius: 2px;
}

.contact p {
    color: var(--white);
    opacity: 0.9;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3); /* Stronger text shadow */
}

.contact-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    background: rgba(255, 255, 255, 0.98);
    border-radius: var(--card-border-radius);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.contact-info {
    padding: 3rem;
    background: linear-gradient(135deg, 
        rgba(45, 55, 72, 1), 
        rgba(26, 32, 44, 1)
    );
    color: white;
    position: relative;
}

.contact-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,%3Csvg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M0 0h20v20H0V0zm10 17.5c4.142 0 7.5-3.358 7.5-7.5S14.142 2.5 10 2.5 2.5 5.858 2.5 10s3.358 7.5 7.5 7.5z" fill="%23fff" fill-opacity="0.05"/%3E%3C/svg%3E');
    opacity: 0.1;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: white;
    font-weight: 600;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    width: 100%;
    margin-bottom: 1rem;
}

.contact-info i {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    font-size: 1rem;
    flex-shrink: 0;
    margin-right: 10px;
}

.contact-info a,
.contact-info p {
    color: inherit;
    text-decoration: none;
}

.contact-info .fa-phone {
    margin-right: 8px;
}

.contact-form {
    padding: 3rem;
    background: white;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1.2rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 1.5rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;  
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(229, 62, 62, 0.1);
}

.contact-form textarea {
    min-height: 180px;
    resize: vertical;
}

.contact-form button {
    width: 100%;
    padding: 1.2rem;
    border: none;
    border-radius: 12px;
    background: rgba(45, 55, 72, 1); /* Solid color instead of gradient */
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    /* Remove all special effects */
    transition: none;
    -webkit-text-fill-color: none;
    -webkit-background-clip: none;
}

/* Remove all hover effects */
.contact-form button:hover {
    /* Reset everything */
    transform: none;
    box-shadow: none;
    background: rgba(45, 55, 72, 1); /* Keep the same solid color on hover */
    color: white;
}

/* Decorative Elements */
.section-divider {
    height: 4px;
    background: var(--gradient-overlay);
    margin: 2rem 0;
    width: 80px;
    border-radius: 2px;
}

/* Image Gallery for Services */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 4rem 0;
}

.gallery-item {
    position: relative;
    border-radius: var(--card-border-radius);
    overflow: hidden;
    aspect-ratio: 16/9;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Responsive Improvements */
@media (max-width: 1024px) {
    .services-grid,
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 1rem;
    }

    .service-card:nth-child(4) {
        grid-column: auto;
    }
}

@media (max-width: 768px) {
    .services-grid,
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .image-gallery {
        grid-template-columns: 1fr;
    }

    /* Update existing nav-menu styles */
    .nav-menu {
        display: flex;
        gap: 2rem;
        list-style: none;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        padding: 1rem;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .nav-menu.active {
        display: flex;
    }

    .mobile-menu {
        display: block;
        background: none;
        border: none;
        font-size: 1.5rem;
        cursor: pointer;
        color: var(--text-dark);
        padding: 0.5rem;
        z-index: 1000;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        margin: 0 1rem;
    }
    
    .contact h2 {
        font-size: 2.2rem;
    }
    
    .contact-info,
    .contact-form {
        padding: 2rem;
    }
}

/* Footer */
.footer {
    background: 
        linear-gradient(rgba(45, 55, 72, 0.97), rgba(45, 55, 72, 0.97)),
        url('https://images.unsplash.com/photo-1554224155-1696413565d3?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 4rem 0 2rem;
    background: linear-gradient(to bottom, #f7fafc, #fff);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .mobile-menu {
        display: block;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
        padding: 0 1.5rem;
    }

    .why-us {
        padding: 4rem 0;
    }

    .why-us .section-title {
        font-size: 2rem;
        margin-bottom: 2.5rem;
    }
}

/* Basic Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Base classes for animated elements */
.fade-in, .slide-up {
    opacity: 0;
}

/* Animation class that gets added by JavaScript */
.animate {
    animation: fadeInUp 0.8s ease forwards;
}

/* Stagger animations for cards */
.benefits-grid .benefit-card:nth-child(1) { animation-delay: 0.1s; }
.benefits-grid .benefit-card:nth-child(2) { animation-delay: 0.2s; }
.benefits-grid .benefit-card:nth-child(3) { animation-delay: 0.3s; }
.benefits-grid .benefit-card:nth-child(4) { animation-delay: 0.4s; }

.services-grid .service-card:nth-child(1) { animation-delay: 0.1s; }
.services-grid .service-card:nth-child(4) { animation-delay: 0.2s; } /* Financial advisory */
.services-grid .service-card:nth-child(2) { animation-delay: 0.3s; }
.services-grid .service-card:nth-child(3) { animation-delay: 0.4s; }