/* ===== CSS VARIABLES ===== */
:root {
    --color-cream: #F7F5EF;
    --color-pink: #E7B2C8;
    --color-green: #A7C4A0;
    --color-yellow: #F5E6A6;
    --color-purple: #3d2b4b;
    --color-lavender: #C8C3ED;
    --color-gold: #d6b770;
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    --transition: 0.3s ease;
    --shadow: 0 4px 20px rgba(110, 106, 134, 0.1);
    --shadow-hover: 0 8px 30px rgba(110, 106, 134, 0.15);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-purple);
    background-color: var(--color-cream);
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.mb-4 { margin-bottom: 1rem; }


/* ===== LOADER ===== */
.loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--color-cream);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.6s;
}

.loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--color-lavender);
    border-top-color: var(--color-pink);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== HEADER ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(218, 180, 96, 0.15);
    padding: 18px 0;
    transition: transform 0.5s ease, background 0.3s ease, box-shadow 0.3s ease;
    will-change: transform;
}

header.scrolled {
    background: rgba(247, 245, 239, 0.98);
    box-shadow: var(--shadow);
}

header.hidden {
    transform: translateY(-100%);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
    color: var(--color-purple);
}

.logo img {
    width: clamp(50px, 3vw, 120px);
    height: auto;
    margin-bottom: -1rem;
}

nav ul {
    display: flex;
    gap: 32px;
    align-items: center;
}

nav a {
    color: var(--color-gold);
    font-weight: 500;
    font-size: 15px;
    letter-spacing: 0.3px;
    position: relative;
}

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

nav a:not(.btn-primary)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-pink);
    transition: width var(--transition);
}

nav a:not(.btn-primary):hover::after {
    width: 100%;
}

nav a.active {
    border-bottom: 2px solid var(--color-pink);
    padding-bottom: 4px;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--color-purple);
    transition: var(--transition);
}

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

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

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

/* ===== BUTTONS ===== */
.btn-primary,
.btn-secondary,
.btn-hero {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 15px;
    letter-spacing: 0.5px;
    cursor: pointer;
    border: none;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--color-pink);
    color: white;
}

.btn-primary:hover {
    background: #d89bb4;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background: transparent;
    color: var(--color-purple);
    border: 2px solid var(--color-purple);
}

.btn-secondary:hover {
    background: var(--color-purple);
    color: var(--color-cream);
    transform: translateY(-2px);
}

.btn-hero {
    background: var(--color-pink);
    color: white;
    padding: 18px 40px;
    font-size: 16px;
    box-shadow: var(--shadow);
}

.btn-hero:hover {
    background: #d89bb4;
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}


/* Ripple Effect */
.btn-ripple {
    position: relative;
    overflow: hidden;
}

.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple 1s ease-out;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 140px 0 80px;
    background-color: var(--color-purple);
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(50px);
    opacity: 0.20;
    pointer-events: none;
    animation: blobMove 15s infinite ease-in-out alternate;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: var(--color-pink);
    top: -100px;
    left: -100px;
    animation-delay: 1s;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: var(--color-lavender);
    bottom: -50px;
    right: -50px;
    animation-delay: 4s;
}

.blob-3 {
    width: 350px;
    height: 350px;
    background: var(--color-yellow);
    top: 50%;
    right: 20%;
    animation-delay: 8s;
}
/* Kouzlo pohybu: trochu zvětšit, trochu posunout, trochu rotovat */
@keyframes blobMove {
    0% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(60px, -60px) scale(1.25) rotate(12deg);
    }
    100% {
        transform: translate(-60px, 40px) scale(0.9) rotate(-12deg);
    }
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 600;
    color: #dabe7e;
    margin-bottom: 24px;
    line-height: 1.2;
    position: relative;
}

.sparkle-text {
    position: relative;
    display: inline-block;
    color: #d6b770;
}

.hero-subtitle {
    font-size: clamp(18px, 2.5vw, 24px);
    color: #e6d4a9;
    opacity: 0.8;
    margin-bottom: 40px;
    min-height: 36px;
}

.scroll-indicator {
    position: absolute;
    bottom: 21px;
    left: 63%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    color: var(--color-purple);
    opacity: 0.5;
    width: 10px;
    height: auto
}
@media (max-width: 1000px) {
    .scroll-indicator {
        display: none;
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}
/* Logo Bouncer */
@keyframes bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1) rotate(2deg); }
}

.logo-bounce {
    animation: bounce 1s ease;
}
@media (max-width: 768px) {
  .logo-bounce {
    animation: bounce 1s ease infinite alternate;
  }
}


/* Sparkle Effect */
.sparkle {
    position: absolute;
    width: 20px;
    height: 20px;
    background: radial-gradient(
        circle,
        var(--color-yellow) 0%,
        rgba(235, 235, 126, 0.6) 40%,
        transparent 80%
    );
    pointer-events: none !important;
    z-index: 9998;
    filter: blur(4px);
    animation: sparkle-fade 0.8s ease-out forwards;
}


@keyframes sparkle-fade {
    0% {
        opacity: 0;
        transform: scale(0) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: scale(1.2) rotate(180deg);
    }
    100% {
        opacity: 0;
        transform: scale(0.8) rotate(360deg);
    }
}
/* Sparkle efekt pro tlačítko */
.sparkle-hover {
    position: absolute;
    width: 10px;
    height: 10px;
    pointer-events: none;
    border-radius: 50%;
    filter: blur(2px);
    animation: sparkle-hover-fade 0.6s ease-out forwards;
    z-index: 1000;
}

@keyframes sparkle-hover-fade {
    0% {
        opacity: 0;
        transform: scale(0) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: scale(1.2) rotate(180deg);
    }
    100% {
        opacity: 0;
        transform: scale(0.8) rotate(360deg);
    }
}
/* Sparkle efekt pro footer */
.sparkle-footer {
    position: fixed; /* fixed místo absolute pro správnou pozici */
    width: 20px;
    height: 20px;
    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.9) 0%,
        rgba(247, 245, 239, 0.6) 40%,
        transparent 80%
    );
    pointer-events: none;
    z-index: 9998;
    filter: blur(4px);
    animation: sparkle-footer-fade 0.8s ease-out forwards;
}

@keyframes sparkle-footer-fade {
    0% {
        opacity: 0;
        transform: scale(0) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: scale(1.3) rotate(180deg);
    }
    100% {
        opacity: 0;
        transform: scale(0.7) rotate(360deg);
    }
}

/* ===== SECTIONS ===== */
section {
    padding: 100px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header.centered {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

section h2 {
    font-family: var(--font-heading);
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 600;
    color: var(--color-purple);
    margin-bottom: 16px;
}

section p {
    font-size: 18px;
    color: var(--color-purple);
    opacity: 0.8;
}

/* Fade-in Animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== ABOUT SECTION ===== */
.about {
    background: linear-gradient(135deg, rgba(200, 195, 237, 0.1) 0%, rgba(247, 245, 239, 0) 50%);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    margin-bottom: 80px;
}

.about-text h2 {
    text-align: left;
    margin-bottom: 24px;
}

.about-text p {
    margin-bottom: 20px;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-placeholder {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1;
    border-radius: 16px;
    overflow: hidden;
    background: var(--color-lavender);
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-placeholder svg {
    width: 100%;
    height: 100%;
}
/* ===== SERVICES SECTION ===== */
.services-section {
    margin: 100px 1px 80px 1px;
}

.section-header.centered {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 48px;
    color: var(--color-purple);
    margin-bottom: 16px;
}

.section-header p {
    font-size: 18px;
    color: var(--color-purple);
    opacity: 0.8;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    margin-bottom: 100px;
}

.service-card {
    background: white;
    padding: 48px 40px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    transition: all var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.service-card.featured {
    border: 3px solid var(--color-pink);
    background: linear-gradient(135deg, rgba(231, 178, 200, 0.05) 0%, white 50%);
}

.service-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-pink);
    color: white;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--color-lavender) 0%, var(--color-pink) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.service-icon svg {
    color: white;
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 28px;
    color: var(--color-purple);
    margin-bottom: 16px;
}

.service-card p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-purple);
    opacity: 0.8;
    margin-bottom: 24px;
}

.service-features {
    list-style: none;
    margin-bottom: 32px;
    flex-grow: 1;
}

.service-features li {
    font-size: 15px;
    color: var(--color-purple);
    margin-bottom: 12px;
    padding-left: 8px;
}

.service-link {
    color: var(--color-pink);
    font-weight: 600;
    text-decoration: none;
    font-size: 16px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.service-link:hover {
    gap: 12px;
    opacity: 0.8;
}

/* Skills section spacing */
.skills-section {
    margin-top: 80px;
}

.skills-section .section-header {
    margin-bottom: 48px;
}

/* Responsive */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 24px;
    }
    
    .service-card {
        padding: 40px 32px;
    }
}

@media (max-width: 768px) {
    .services-section {
        margin-top: 60px;
        margin-bottom: 60px;
    }
    
    .section-header h2 {
        font-size: 36px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-bottom: 60px;
    }
    
    .service-card {
        padding: 32px 24px;
    }
    
    .service-card h3 {
        font-size: 24px;
    }
    
    .service-icon {
        width: 64px;
        height: 64px;
    }
    
    .service-icon svg {
        width: 40px;
        height: 40px;
    }
}
/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
}

.skill-card {
    background: white;
    padding: 32px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: all var(--transition);
    text-align: center;
}

.skill-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.skill-card svg {
    color: var(--color-pink);
    margin-bottom: 16px;
}

.skill-card h3 {
    font-family: var(--font-heading);
    font-size: 22px;
    margin-bottom: 12px;
    color: var(--color-purple);
}

.skill-card p {
    font-size: 15px;
    opacity: 0.8;
}

/* ===== PORTFOLIO SECTION ===== */
.portfolio {
    background: var(--color-cream);
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.filter-btn {
    padding: 10px 24px;
    background: white;
    border: 2px solid var(--color-lavender);
    border-radius: 24px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    color: var(--color-purple);
    cursor: pointer;
    transition: all var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--color-lavender);
    color: var(--color-purple);
    transform: translateY(-2px);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.project-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all var(--transition);
    cursor: pointer;
    background: white;
}

.project-card.featured {
    grid-column: span 1;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}
.project-card a.project-link {
    display: block;
    color: inherit; /* zachová barvy textu */
    text-decoration: none;
    height: 100%;
    width: 100%;
}


.project-image {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--color-lavender);
}

.project-image img,
.project-image .image-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.project-card:hover .project-image img,
.project-card:hover .project-image .image-placeholder svg {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(110, 106, 134, 0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 32px;
    opacity: 0;
    transition: opacity var(--transition);
    text-align: center;
}
.project-overlay.visible {
    opacity: 1;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-overlay h3 {
    font-family: var(--font-heading);
    font-size: 28px;
    color: white;
    margin-bottom: 12px;
}

.project-overlay p {
    font-size: 16px;
    color: white;
    opacity: 0.9;
    margin-bottom: 16px;
}

.project-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(247, 245, 239, 0.2);
    border-radius: 16px;
    font-size: 13px;
    color: var(--color-yellow);
    font-weight: 500;
}

/* Browser Window Style */
.browser-window {
    position: relative;
    background: linear-gradient(135deg, #C8C3ED 0%, #E7B2C8 100%);
    border-radius: 12px 12px 0 0;
    overflow: hidden;
}
/*
.browser-header {
    background: rgba(110, 106, 134, 0.15);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    backdrop-filter: blur(10px);
}
*/
.browser-window img {
    width: 100%;
    display: block;
}

.project-card:hover .browser-window {
    transform: perspective(1000px) rotateY(5deg) rotateX(2deg);
}

/* ===== PRICING SECTION ===== */
.pricing {
    background: linear-gradient(135deg, rgba(167, 196, 160, 0.1) 0%, rgba(247, 245, 239, 0) 50%);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-card {
    background: white;
    padding: 48px 32px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    transition: all var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.pricing-card.popular {
    border: 3px solid var(--color-pink);
}

.badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-pink);
    color: white;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.pricing-card h3 {
    font-family: var(--font-heading);
    font-size: 28px;
    color: var(--color-purple);
    margin-bottom: 16px;
}

.price {
    font-family: var(--font-heading);
    font-size: 42px;
    color: var(--color-pink);
    font-weight: 600;
    margin-bottom: 32px;
}

.features {
    flex-grow: 1;
    margin-bottom: 32px;
}

.features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 15px;
}

.features svg {
    flex-shrink: 0;
    color: var(--color-green);
    margin-top: 2px;
}

.pricing-card .btn-primary,
.pricing-card .btn-secondary {
    width: 100%;
    text-align: center;
}

/* ===== CONTACT SECTION ===== */
.contact {
    background: linear-gradient(135deg, rgba(231, 178, 200, 0.1) 0%, rgba(247, 245, 239, 0) 50%);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-form-wrap h2 {
    text-align: left;
    margin-bottom: 16px;
}

.contact-form-wrap > p {
    margin-bottom: 40px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

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

.form-group label {
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--color-purple);
}

.form-group input,
.form-group textarea {
    padding: 14px 16px;
    border: 2px solid var(--color-lavender);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--color-purple);
    background: white;
    transition: all var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-pink);
    box-shadow: 0 0 0 3px rgba(231, 178, 200, 0.1);
}

.form-group.error input,
.form-group.error textarea {
    border-color: #e74c3c;
}

.form-group.success input,
.form-group.success textarea {
    border-color: var(--color-green);
}

.error-msg {
    color: #e74c3c;
    font-size: 13px;
    margin-top: 6px;
}

.form-group.checkbox {
    flex-direction: row;
    align-items: center;
    gap: 12px;
}

.form-group.checkbox input {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.form-group.checkbox label {
    margin: 0;
    font-weight: 400;
    font-size: 14px;
    cursor: pointer;
}

.contact-form button[type="submit"] {
    width: 100%;
    margin-top: 8px;
}

/* Contact Info */
.contact-info {
    background: white;
    padding: 48px;
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 32px;
}

.contact-item svg {
    flex-shrink: 0;
    color: var(--color-pink);
}

.contact-item h4 {
    font-family: var(--font-heading);
    font-size: 18px;
    color: var(--color-purple);
    margin-bottom: 8px;
}

.contact-item a {
    font-size: 16px;
    color: var(--color-purple);
    opacity: 0.8;
}

.contact-item a:hover {
    color: var(--color-pink);
    opacity: 1;
}

.decorative-element {
    margin-top: 48px;
    display: flex;
    justify-content: center;
    opacity: 0.5;
}

/* Success Message */
.success-message {
    text-align: center;
    padding: 60px 20px;
}

.checkmark {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
}

.checkmark circle {
    stroke: var(--color-green);
    stroke-width: 3;
    fill: none;
    animation: checkmark-circle 0.6s ease;
}

.checkmark path {
    stroke: var(--color-green);
    stroke-width: 3;
    fill: none;
    stroke-dasharray: 50;
    stroke-dashoffset: 50;
    animation: checkmark-path 0.4s 0.3s ease forwards;
}

@keyframes checkmark-circle {
    from {
        stroke-dasharray: 0 251;
    }
    to {
        stroke-dasharray: 251 251;
    }
}

@keyframes checkmark-path {
    to {
        stroke-dashoffset: 0;
    }
}

.success-message h3 {
    font-family: var(--font-heading);
    font-size: 32px;
    color: var(--color-purple);
    margin-bottom: 12px;
}

/* ===== FOOTER ===== */
footer {
    background: var(--color-purple);
    color: var(--color-cream);
    padding: 60px 0 24px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-logo svg {
    color: var(--color-cream);
}

.footer-logo p {
    opacity: 0.8;
    font-size: 15px;
}

.footer-links h4,
.footer-social h4 {
    font-family: var(--font-heading);
    font-size: 18px;
    margin-bottom: 16px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 15px;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--color-yellow);
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(247, 245, 239, 0.1);
    border-radius: 50%;
    transition: all var(--transition);
}

.social-links a:hover {
    background: var(--color-pink);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid rgba(247, 245, 239, 0.2);
}

.footer-bottom p {
    font-size: 14px;
    opacity: 0.7;
}

/* ===== WATERCOLOR SPOTS ===== */
.watercolor-spot {
    position: absolute;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    pointer-events: none;
    opacity: 0.4;
    z-index: 0;
}

.spot-1 {
    width: 300px;
    height: 300px;
    background-image: url('images/sasanka.png');
    top: 15%;
    left: 10%;
    animation: float-rotate 20s ease-in-out infinite;
}

.spot-2 {
    width: 350px;
    height: 350px;
    background-image: url('images/sasanka.png');
    bottom: 20%;
    right: 15%;
    animation: float-rotate-reverse 25s ease-in-out infinite;
    animation-delay: 3s;
}


.spot-contact {
    width: 350px;
    height: 350px;
    background-image: url('images/sasanka.png');
    position: relative; 
    margin: 0 auto;
    animation: float-rotate-reverse 25s ease-in-out infinite;
    animation-delay: 3s;
}

/* Animace: plovoucí rotace */
@keyframes float-rotate {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
        opacity: 0.3;
    }
    25% {
        transform: translate(30px, -40px) rotate(90deg) scale(1.1);
        opacity: 0.5;
    }
    50% {
        transform: translate(50px, -20px) rotate(180deg) scale(1.15);
        opacity: 0.4;
    }
    75% {
        transform: translate(20px, -50px) rotate(270deg) scale(1.05);
        opacity: 0.45;
    }
}

/* Animace: opačný směr */
@keyframes float-rotate-reverse {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
        opacity: 0.35;
    }
    33% {
        transform: translate(-40px, 30px) rotate(-120deg) scale(1.12);
        opacity: 0.5;
    }
    66% {
        transform: translate(-20px, 50px) rotate(-240deg) scale(1.08);
        opacity: 0.42;
    }
}

/* Animace: pulzování a plovoucí */
@keyframes pulse-float {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.25;
    }
    50% {
        transform: translate(-50%, -60%) scale(1.2);
        opacity: 0.5;
    }
}
@keyframes pulse-rotate-soft {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.15) rotate(180deg);
        opacity: 0.5;
    }
}

/* Responsive - menší na mobilu */
@media (max-width: 768px) {
    .spot-1 {
        width: 180px;
        height: 180px;
        top: 10%;
        left: 5%;
    }
    
    .spot-2 {
        width: 150px;
        height: 150px;
        bottom: 15%;
        right: 5%;
    }
    
    .spot-3 {
        width: 120px;
        height: 120px;
    }
}
@media (max-width: 768px) {
    .spot-contact {
        width: 150px;
        height: 150px;
    }
}

/* Vypnout animace pro accessibility */
@media (prefers-reduced-motion: reduce) {
    .watercolor-spot {
        animation: none !important;
    }
}
/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }
    
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .about-text h2 {
        text-align: center;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .project-card.featured {
        grid-column: auto;
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-cream);
        flex-direction: column;
        padding: 24px;
        box-shadow: var(--shadow);
        gap: 16px;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-10px);
        transition: all var(--transition);
    }
    
    .nav-menu.active {
        opacity: 1;
        pointer-events: all;
        transform: translateY(0);
    }
    
    .hero {
        min-height: 80vh;
        padding: 80px 0 60px;
    }
    
    .blob-1,
    .blob-2,
    .blob-3 {
        width: 300px;
        height: 300px;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-buttons {
        flex-direction: column;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    section h2 {
        font-size: 32px;
    }
    
    .btn-primary,
    .btn-secondary,
    .btn-hero {
        padding: 12px 24px;
        font-size: 14px;
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

:focus-visible {
    outline: 2px solid var(--color-purple);
    outline-offset: 2px;
}

/* ===== UTILITY CLASSES ===== */
.hidden {
    display: none;
}

.text-center {
    text-align: center;
}
/* MOBILNÍ FIX */
@media (max-width: 768px) {
    .fade-in {
        opacity: 1 !important;
        transform: translateY(0) !important;
    }
    
    section {
        opacity: 1 !important;
        visibility: visible !important;
    }
}
/* ===== FIX: Fade-in sekce musí být interaktivní ===== */
.fade-in {
    pointer-events: auto !important;
}

.fade-in.visible {
    pointer-events: auto !important;
}

/* ===== FIX: Tlačítka musí být nad všemi efekty ===== */
.btn-primary,
.btn-secondary,
.btn-hero {
    position: relative;
    z-index: 100 !important;
    pointer-events: auto !important;
    cursor: pointer !important;
}

/* Hero content musí být nad blobs */
.hero-content {
    position: relative;
    z-index: 50;
}

/* Blob pozadí pod vším */
.blob {
    z-index: 0 !important;
    pointer-events: none !important;
}

/* Sparkle efekt nesmí blokovat kliky */
.sparkle {
    pointer-events: none !important;
    z-index: 9998 !important;
}

/* About sekce tlačítka */
.about-text {
    position: relative;
    z-index: 10;
}

/* Pricing karty tlačítka */
.pricing-card {
    position: relative;
    z-index: 10;
}

.pricing-card .btn-primary,
.pricing-card .btn-secondary {
    z-index: 20 !important;
}

/* Ripple efekt pod tlačítkem */
.ripple-effect {
    z-index: -1 !important;
    pointer-events: none !important;
}
/* ===== COOKIE CONSENT BANNER ===== */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--color-purple);
    color: var(--color-cream);
    padding: 24px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.cookie-consent.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
}

.cookie-text {
    flex: 1;
}

.cookie-text p {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
    color: var(--color-cream);
    opacity: 0.95;
}

.cookie-text p:first-child {
    margin-bottom: 8px;
}

.cookie-text strong {
    font-size: 18px;
    font-weight: 600;
}

.cookie-link {
    color: var(--color-yellow);
    text-decoration: underline;
    transition: opacity 0.3s;
}

.cookie-link:hover {
    opacity: 0.8;
}

.cookie-buttons {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-buttons .btn-primary,
.cookie-buttons .btn-secondary {
    white-space: nowrap;
    padding: 12px 24px;
    font-size: 14px;
}

/* Responzivní */
@media (max-width: 768px) {
    .cookie-consent {
        padding: 20px;
    }
    
    .cookie-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .cookie-buttons {
        width: 100%;
        flex-direction: column;
    }
    
    .cookie-buttons .btn-primary,
    .cookie-buttons .btn-secondary {
        width: 100%;
    }
    
    .cookie-text p {
        font-size: 14px;
    }
    
    .cookie-text strong {
        font-size: 16px;
    }
}
