/* ========================================
   RESET & BASE STYLES
======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

ul {
    list-style: none;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

/* ========================================
   UTILITIES
======================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 5rem 1.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: #2563eb;
    color: white;
}

.btn-primary:hover {
    background: #1d4ed8;
    transform: scale(1.05);
}

.btn-secondary {
    border: 2px solid #2563eb;
    color: #2563eb;
}

.btn-secondary:hover {
    background: #2563eb;
    color: white;
}

.btn-dark {
    background: #111827;
    color: white;
    width: 100%;
    justify-content: center;
}

.btn-dark:hover {
    background: #1f2937;
}

/* ========================================
   HEADER & NAVIGATION
======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    background: transparent;
}

.header.scrolled {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.25rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: white;
    transition: color 0.3s ease;
}

.header.scrolled .logo {
    color: #111827;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
    color: white;
    transition: color 0.3s ease;
    font-weight: 500;
}

.header.scrolled .nav-link {
    color: #4b5563;
}

.nav-link:hover {
    color: #2563eb;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 0.5rem;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background: white;
    transition: all 0.3s ease;
}

.header.scrolled .mobile-menu-btn span {
    background: #111827;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ========================================
   HERO SECTION
======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #111827 0%, #1f2937 50%, #111827 100%);
}

.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('images/hero2.webp');
    background-size: cover;
    background-position: center;
    opacity: 0.2;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    /*background: linear-gradient(to bottom, rgba(17, 24, 39, 0.7), rgba(17, 24, 39, 0.8), #111827);*/
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 2rem;
}

.hero-title {
    font-size: clamp(3rem, 10vw, 6rem);
    color: white;
    text-transform: uppercase;
    font-weight: 400;
    letter-spacing: -2px;
    margin-bottom: 2rem;
}

.hero-rotating {
    min-height: 5rem;
    margin-bottom: 2rem;
}

.hero-subtitle {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: #60a5fa;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.hero-name {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    color: #d1d5db;
    margin-bottom: 2rem;
}

.scroll-down {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    animation: bounce 2s infinite;
}

.scroll-down:hover {
    color: white;
}

/* ========================================
   SECTIONS
======================================== */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-badge {
    display: inline-block;
    background: #2563eb;
    color: white;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    color: #111827;
    margin-bottom: 1rem;
}

/* ========================================
   SERVICES SECTION
======================================== */
.services-section {
    background: #f9fafb;
}

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

.service-card {
    background: white;
    padding: 2rem 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.service-icon {
    width: 3.5rem;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.service-icon svg {
    stroke: white;
}

.bg-blue { background: #3b82f6; }
.bg-green { background: #10b981; }
.bg-purple { background: #8b5cf6; }
.bg-orange { background: #f97316; }

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: #111827;
}

.service-card p {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.6;
}

.services-note {
    text-align: center;
    margin-top: 3rem;
}

.services-note p {
    font-size: 0.875rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.highlight {
    color: #2563eb;
    font-weight: 600;
}

/* ========================================
   PORTFOLIO SECTION
======================================== */
.portfolio-section {
    background: white;
}

.portfolio-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    /*margin-bottom: 3rem;*/
}

.filter-btn {
    padding: 0.5rem 1.5rem;
    background: #f3f4f6;
    color: #4b5563;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: #2563eb;
    color: white;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.portfolio-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: #f3f4f6;
    transition: all 0.3s ease;
    cursor: pointer;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3));
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-content {
    padding: 1.5rem;
    width: 100%;
}

.portfolio-item h3 {
    color: white;
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.portfolio-item p {
    color: #d1d5db;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.portfolio-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    background: rgba(37, 99, 235, 0.8);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.portfolio-link:hover {
    background: #2563eb;
    transform: translateX(5px);
}

.portfolio-link svg {
    stroke: white;
}

/* ========================================
   ABOUT SECTION
======================================== */
.about-section {
    background: #f9fafb;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: start;
}

.about-text {
    max-width: 100%;
}

.about-intro {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.name-highlight {
    border-bottom: 4px solid #2563eb;
    padding-bottom: 0.25rem;
}

.about-text p {
    font-size: 1.125rem;
    color: #4b5563;
    margin-bottom: 1rem;
    line-height: 1.8;
}

.about-image {
    position: relative;
    max-width: 300px;
    margin: 0 auto;
}

.about-image img {
    width: 100%;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

/* ========================================
   CONTACT SECTION
======================================== */
.contact-section {
    background: #2563eb;
    color: white;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.contact-info h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1.5rem;
}

.contact-info > p {
    font-size: 1.25rem;
    color: #bfdbfe;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-icon-circle {
    width: 3rem;
    height: 3rem;
    background: #111827;
    color: #60a5fa;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.contact-icon-circle svg {
    stroke: #60a5fa;
}

.contact-item a,
.contact-item p {
    font-size: 1.125rem;
    color: white;
    margin: 0;
}

.contact-item a:hover {
    color: #bfdbfe;
}

.contact-benefits {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    list-style: none;
    padding: 0;
}

.contact-benefits li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #bfdbfe;
}

.contact-benefits svg {
    stroke: #bfdbfe;
    flex-shrink: 0;
}

.contact-form-wrapper {
    background: white;
    padding: 2rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    color: #4b5563;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
    resize: none;
}

#formMessage {
    padding: 1rem;
    border-radius: 4px;
    display: none;
    margin-top: 1rem;
}

/* Styly pro zprávy */
#formMessage {
    padding: 1rem;
    border-radius: 4px;
    margin-top: 1rem;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#formMessage.show {
    display: block;
    opacity: 1;
}

.form-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
}

.form-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
}

/* Styl pro zakázané tlačítko během odesílání */
button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* ========================================
   FOOTER
======================================== */
.footer {
    background: #111827;
    color: #d1d5db;
    padding: 3rem 1.5rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.footer-left p {
    margin-bottom: 0.5rem;
}

.footer-left a:hover {
    color: white;
}

.footer-small {
    font-size: 0.875rem;
    color: #9ca3af;
    margin-bottom: 1rem !important;
}

.footer-right {
    text-align: left;
}

.footer-right p:first-child {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.footer-right p:last-child {
    color: #9ca3af;
}

/* ========================================
   FLOATING BUTTON
======================================== */
.floating-btn {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 3.5rem;
    height: 3.5rem;
    background: #2563eb;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
    z-index: 999;
    transition: all 0.3s ease;
}

.floating-btn:hover {
    background: #1d4ed8;
    transform: scale(1.1);
}

.floating-btn svg {
    stroke: white;
}

/* ========================================
   ANIMATIONS
======================================== */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Portfolio Animations */
.portfolio-item {
    opacity: 0;
    animation: fadeInScale 0.5s ease forwards;
}

.portfolio-item:nth-child(1) { animation-delay: 0.1s; }
.portfolio-item:nth-child(2) { animation-delay: 0.2s; }
.portfolio-item:nth-child(3) { animation-delay: 0.3s; }
.portfolio-item:nth-child(4) { animation-delay: 0.4s; }
.portfolio-item:nth-child(5) { animation-delay: 0.5s; }
.portfolio-item:nth-child(6) { animation-delay: 0.6s; }
.portfolio-item:nth-child(7) { animation-delay: 0.7s; }
.portfolio-item:nth-child(8) { animation-delay: 0.8s; }

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        gap: 0;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav-menu.active {
        max-height: 400px;
        padding: 1rem 0;
    }

    .nav-link {
        display: block;
        padding: 0.75rem 1.5rem;
        color: #4b5563 !important;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        text-align: center;
    }

    .footer-right {
        text-align: center;
    }
}

@media (min-width: 769px) {
    .about-content {
        grid-template-columns: 2fr 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

    .footer-right {
        text-align: right;
    }
}

@media (min-width: 1024px) {
    .portfolio-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Show More Button */
.show-more-btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
}

.show-more-btn:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.show-more-btn:active {
    transform: translateY(0);
}
