* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #ffffff;
    overflow-x: hidden;
}

/* Ukrywamy pasek przewijania */
::-webkit-scrollbar {
    display: none;
}

/* Dla Firefox */
* {
    scrollbar-width: none;
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    z-index: 1000;
    padding: 1.5rem 0;
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled {
    padding: 1rem 0;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

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

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.logo:hover {
    transform: scale(1.01);
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transform: scale(1) rotate(0deg);
    transform-origin: center center;
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    will-change: transform;
    opacity: 0;
    animation: logoAppear 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes logoAppear {
    0% {
        opacity: 0;
        transform: scale(0.8) rotate(-10deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

.logo:hover .logo-img {
    transform: scale(1.03) rotate(-1deg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: #1a1a1a;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #1a1a1a;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a:hover {
    color: #333;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 2rem;
    background-color: #ffffff;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
    z-index: 2;
    padding-top: 80px;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    max-width: 800px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.hero p {
    font-size: 1.25rem;
    color: #4a4a4a;
    margin-bottom: 2.5rem;
    max-width: 600px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cta-buttons {
    display: flex;
    gap: 1rem;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2rem;
    background-color: #1a1a1a;
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button .button-icon {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.cta-button:hover .button-icon {
    transform: translateX(5px);
}

.cta-button.secondary {
    background-color: transparent;
    color: #1a1a1a;
    border: 1px solid #1a1a1a;
}

.cta-button.secondary:hover {
    background-color: #f5f5f5;
}

/* Scroll Down Indicator */
.scroll-down-indicator {
    position: absolute;
    bottom: 2rem;
    left: 48%;
    transform: translateX(-48%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    animation: bounce 2s infinite;
}

.scroll-down-indicator:hover {
    transform: translateX(-48%) translateY(-5px);
}

.scroll-text {
    font-size: 0.875rem;
    font-weight: 500;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: 'Inter', sans-serif;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.scroll-down-indicator:hover .scroll-text {
    color: #1a1a1a;
    opacity: 1;
}

.scroll-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 2px solid #ddd;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.scroll-down-indicator:hover .scroll-arrow {
    border-color: #1a1a1a;
    background-color: rgba(26, 26, 26, 0.05);
}

.scroll-arrow svg {
    color: #666;
    transition: all 0.3s ease;
}

.scroll-down-indicator:hover .scroll-arrow svg {
    color: #1a1a1a;
}

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

/* Contact info in about section */

/* Clients Section */
.clients {
    padding: 3rem 2rem;
    background-color: #ffffff;
}

.clients-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Clients Slider */
.clients-slider {
    width: 100%;
    overflow: hidden;
    position: relative;
    margin-top: 2rem;
    padding: 1rem 0;
    display: flex;
    justify-content: center;
}

.clients-slider::before,
.clients-slider::after {
    content: '';
    position: absolute;
    top: 0;
    width: 80px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.clients-slider::before {
    left: 0;
    background: linear-gradient(to right, #fff 60%, rgba(255,255,255,0));
}

.clients-slider::after {
    right: 0;
    background: linear-gradient(to left, #fff 60%, rgba(255,255,255,0));
}

.clients-track {
    display: flex;
    animation: scroll 30s linear infinite;
    width: max-content;
    max-width: none;
    padding: 0 40px;
}

.clients-track:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.client-card {
    flex: 0 0 250px;
    margin: 0 1rem;
    text-align: center;
    transition: all 0.3s ease;
    padding: 1.5rem;
    opacity: 0.8;
}

.client-card:hover {
    opacity: 1;
    transform: translateY(-5px);
}

.client-image {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    overflow: hidden;
}

.client-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.client-card:hover .client-avatar {
    transform: scale(1.1);
}

.client-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
    color: #1a1a1a;
}

.client-card p {
    color: #4a4a4a;
    font-size: 0.9rem;
    margin: 0;
}

/* Portfolio Section */
.portfolio {
    padding: 6rem 2rem;
    background-color: #ffffff;
}

.section-header {
    max-width: 800px;
    margin: 0 auto 4rem;
    text-align: center;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    color: #4a4a4a;
    font-size: 1.1rem;
}

.portfolio-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    gap: 4rem;
}

@keyframes shadowAnimation {
    0% {
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    }
    100% {
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInBottom {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.portfolio-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    padding: 2rem;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: relative;
    opacity: 0;
}

.portfolio-item:nth-child(even) {
    direction: rtl;
}

.portfolio-item:nth-child(even) .portfolio-content {
    direction: ltr;
}

.portfolio-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    cursor: zoom-in;
    transform: none !important;
}

.portfolio-item.animate-left,
.portfolio-item.animate-right,
.portfolio-item.animate-bottom {
    animation: none;
}

.portfolio-item:active {
    transform: none;
}

.portfolio-item img:hover {
    transform: none;
}

.portfolio-item .portfolio-content h3,
.portfolio-item .portfolio-content .client,
.portfolio-item .portfolio-content .description {
    transition: none;
    color: #1a1a1a;
    transform: none;
}

.portfolio-content h3 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    color: #1a1a1a;
}

.portfolio-content .client {
    color: #666;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.portfolio-content .description {
    color: #4a4a4a;
    line-height: 1.6;
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background-color: #ffffff;
}

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

/* Formularz */
.contact-form-container {
    background: #ffffff;
    border-radius: 20px;
    padding: 3rem;
    border: 2px solid #f1f3f4;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    height: auto;
    display: flex;
    flex-direction: column;
}

.contact-form-container:hover {
    border-color: #e8eaed;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    height: 100%;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1.2rem 1rem;
    font-size: 1rem;
    border: 2px solid #e8eaed;
    border-radius: 12px;
    background: #ffffff;
    color: #1a1a1a;
    font-family: inherit;
    transition: all 0.3s ease;
    font-weight: 400;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1a1a1a;
    box-shadow: 0 0 0 4px rgba(26, 26, 26, 0.08);
    background: #fafbfc;
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    border-color: #dadce0;
}

.form-group textarea {
    resize: none;
    min-height: 140px;
    line-height: 1.5;
    overflow-y: hidden;
}

.form-group label {
    position: absolute;
    top: 1.2rem;
    left: 1rem;
    font-size: 1rem;
    color: #5f6368;
    transition: all 0.3s ease;
    pointer-events: none;
    background: #ffffff;
    padding: 0 0.5rem;
    font-weight: 400;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group.has-value label,
.form-group.is-open label {
    top: -0.5rem;
    font-size: 0.85rem;
    color: #1a1a1a;
    font-weight: 600;
    background: #ffffff;
}

.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: -0.5rem;
    font-size: 0.85rem;
    color: #1a1a1a;
    font-weight: 600;
    background: #ffffff;
}

.form-group textarea:placeholder-shown + label {
    top: 1.2rem;
    font-size: 1rem;
    color: #5f6368;
    font-weight: 400;
}

.submit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.2rem 2.5rem;
    background-color: #1a1a1a;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    width: 100%;
}

.submit-button:hover {
    background-color: #333;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.submit-button:active {
    transform: translateY(0);
}

.submit-button .button-icon {
    transition: transform 0.3s ease;
    font-size: 1.2rem;
}

.submit-button:hover .button-icon {
    transform: translateX(4px);
}

/* Informacje kontaktowe */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    justify-content: space-between;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: #ffffff;
    border-radius: 16px;
    border: 2px solid #f1f3f4;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    flex: 1;
}

.contact-method:hover {
    background: #fafbfc;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-3px);
    border-color: #e8eaed;
}

.contact-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.contact-method:hover .contact-icon {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.contact-details h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.contact-details p {
    color: #5f6368;
    margin-bottom: 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
}

.contact-link {
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 0.5rem 0;
    position: relative;
}

.contact-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #1a1a1a;
    transition: width 0.3s ease;
}

.contact-link:hover {
    color: #333;
}

.contact-link:hover::after {
    width: 100%;
}

/* Responsywność */
@media (max-width: 1024px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contact-form-container,
    .contact-info {
        min-height: auto;
    }
    
    .contact-info {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .contact-method {
        flex: 1;
        min-width: 300px;
    }
}

@media (max-width: 768px) {
    .contact {
        padding: 4rem 0;
    }
    
    .contact-content {
        padding: 0 1rem;
    }
    
    .contact-form-container {
        padding: 2rem;
        min-height: auto;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-info {
        flex-direction: column;
        min-height: auto;
    }
    
    .contact-method {
        min-width: 100%;
        flex: none;
    }
    
    .contact-icon {
        width: 48px;
        height: 48px;
    }
}

@media (max-width: 480px) {
    .contact-form-container {
        padding: 1.5rem;
    }
    
    .contact-method {
        padding: 1.5rem;
    }
    
    .submit-button {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 1rem;
    }
}

/* Footer */
footer {
    padding: 4rem 2rem 2rem;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #ffffff;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-main {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand {
    max-width: 350px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.footer-logo-img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    transition: transform 0.3s ease;
    opacity: 1 !important;
    animation: none !important;
}

.footer-logo-img:hover {
    transform: scale(1.05);
}

.footer-brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
}

.footer-description {
    color: #b0b0b0;
    line-height: 1.6;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.social-icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    color: #b0b0b0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255,255,255,0.1);
}

.social-icon-link:hover {
    background: rgba(255,255,255,0.1);
    color: #ffffff;
    transform: translateY(-2px);
    border-color: rgba(255,255,255,0.2);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.footer-section h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #ffffff;
    position: relative;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, #ffffff, transparent);
    border-radius: 1px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section ul li a {
    color: #b0b0b0;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    position: relative;
    padding-left: 0;
}

.footer-section ul li a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 0;
    height: 1px;
    background: #ffffff;
    transition: width 0.3s ease;
    transform: translateY(-50%);
}

.footer-section ul li a:hover {
    color: #ffffff;
    padding-left: 1rem;
}

.footer-section ul li a:hover::before {
    width: 0.5rem;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: #b0b0b0;
    font-size: 0.9rem;
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-bottom-links a {
    color: #b0b0b0;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: #ffffff;
}

.separator {
    margin: 0 0.5rem;
    color: #555;
}

/* Responsive Footer */
@media (max-width: 1024px) {
    .footer-main {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-brand {
        max-width: 100%;
        text-align: center;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .footer-social {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    footer {
        padding: 3rem 1.5rem 1.5rem;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .footer-bottom-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .footer-links {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .footer-section h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .scroll-down-indicator {
        bottom: 1.5rem;
    }
    
    .scroll-text {
        font-size: 0.75rem;
    }
    
    .scroll-arrow {
        width: 35px;
        height: 35px;
    }
    
    .portfolio-item {
        flex-direction: column;
    }
    
    .portfolio-item:nth-child(even) {
        flex-direction: column;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .nav-links {
        display: none;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .clients-grid {
        padding: 0 1rem;
    }
    
    .client-card {
        min-width: 250px;
    }
    
    .client-image {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 1000px) {
    .clients-track {
        max-width: 100vw;
        padding: 0 10vw;
    }
    .clients-slider::before,
    .clients-slider::after {
        width: 10vw;
    }
}

.dynamic-text {
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
}

.fade-in {
    opacity: 0;
    animation: fadeInLogo 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes fadeInLogo {
    to {
        opacity: 1;
    }
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    width: 1429px;
    max-width: 90vw;
    max-height: 90vh;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: -40px;
    right: -40px;
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    font-size: 24px;
    color: #1a1a1a;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.modal-overlay.active .modal-close {
    opacity: 1;
    transform: translateY(0);
}

.modal-close:hover {
    background: #f5f5f5;
    transform: rotate(90deg);
}

.modal-content img {
    width: 100%;
    height: auto;
    max-height: 804px;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.portfolio-item img {
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

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

.see-more-btn {
    background-color: #1a1a1a;
    color: #ffffff;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    margin-bottom: 1.5rem;
    letter-spacing: 0.02em;
}
.see-more-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
    transition: 0.5s;
}
.see-more-btn:hover::before {
    left: 100%;
}
.see-more-btn:hover, .see-more-btn:focus {
    background-color: #333;
    outline: none;
}

.more-works {
    animation: fadeInMore 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeInMore {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Sekcja kontaktowa */
.contact {
    padding: 6rem 0;
    background-color: #ffffff;
}

.submit-container {
    margin-top: auto;
    text-align: center;
}

.form-notice {
    color: #5f6368;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.custom-select-wrapper > select {
    display: none;
}

.custom-select {
    position: relative;
    height: 58px;
}

.custom-select__trigger {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 1.2rem 1rem;
    font-size: 1rem;
    border: 2px solid #e8eaed;
    border-radius: 12px;
    background: #ffffff;
    color: #1a1a1a;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.custom-select__trigger:hover {
    border-color: #dadce0;
}

.custom-select-wrapper.is-open .custom-select__trigger {
    outline: none;
    border-color: #1a1a1a;
    box-shadow: 0 0 0 4px rgba(26, 26, 26, 0.08);
}

.custom-select__trigger .arrow {
    border: solid #5f6368;
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 3px;
    transform: rotate(45deg);
    transition: all 0.3s ease;
}

.custom-select-wrapper.is-open .arrow {
    transform: rotate(-135deg);
    margin-top: -5px;
}

.custom-options {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 2px solid #e8eaed;
    border-radius: 12px;
    z-index: 10;
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease-in-out;
    max-height: 200px;
    overflow-y: auto;
}

.custom-select-wrapper.is-open .custom-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.custom-option {
    display: block;
    padding: 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    color: #1a1a1a;
}

.custom-option:hover {
    background-color: #f1f3f4;
}

.custom-option.is-selected {
    background-color: #e8eaed;
    font-weight: 600;
}

/* Cookie Banner - New Floating Card Style */
.cookie-banner {
    position: fixed;
    bottom: 25px;
    left: 25px;
    max-width: 380px;
    background: #ffffff;
    color: #222222;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    z-index: 1001;
    opacity: 0;
    transform: translateY(30px);
    visibility: hidden;
    transition: opacity 0.5s ease, transform 0.5s ease, visibility 0.5s;
    font-family: 'Inter', sans-serif;
}

.cookie-banner.show {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.cookie-banner p {
    margin: 0 0 18px 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.cookie-banner a {
    color: #007bff;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid #007bff;
    transition: color 0.2s, border-color 0.2s;
}

.cookie-banner a:hover {
    color: #0056b3;
    border-color: #0056b3;
}

.cookie-accept-btn {
    background-color: #222;
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    width: 100%;
    font-size: 1rem;
    transition: background-color 0.3s, transform 0.2s;
}

.cookie-accept-btn:hover {
    background-color: #000;
    transform: translateY(-2px);
}

@media (max-width: 480px) {
    .cookie-banner {
        left: 15px;
        right: 15px;
        bottom: 15px;
        max-width: none;
        width: auto;
    }
}

/* --- OLD UI BUTTON (minimalist, subtle glassmorphism) --- */
.old-ui-btn {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 1000;
    padding: 8px 18px 8px 14px;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #222;
    background: rgba(255,255,255,0.65);
    border: 1.5px solid rgba(34,34,34,0.13);
    border-radius: 12px;
    box-shadow: none;
    backdrop-filter: blur(6px);
    text-shadow: none;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 7px;
    transition: background 0.18s, color 0.18s, border 0.18s, transform 0.18s, filter 0.18s;
    outline: none;
    cursor: pointer;
    animation: old-ui-pop 0.7s cubic-bezier(.68,-0.55,.27,1.55);
}
.old-ui-btn:hover, .old-ui-btn:focus {
    background: rgba(0,123,255,0.10);
    color: #007bff;
    border: 1.5px solid #007bff;
    filter: brightness(1.15) saturate(1.2);
    transform: translateY(-2px) scale(1.07) rotate(-2deg);
    box-shadow: none;
}
.old-ui-icon {
    font-size: 1.15em;
    line-height: 1;
    color: inherit;
    opacity: 0.7;
    margin-right: 2px;
}
@keyframes old-ui-pop {
    0% { transform: scale(0.7) rotate(10deg); opacity: 0; }
    80% { transform: scale(1.1) rotate(-3deg); opacity: 1; }
    100% { transform: scale(1) rotate(0); opacity: 1; }
}
@media (max-width: 600px) {
    .old-ui-btn {
        top: 8px;
        right: 8px;
        padding: 7px 12px 7px 10px;
        font-size: 0.95rem;
        border-radius: 9px;
    }
    .old-ui-icon {
        font-size: 1em;
    }
}

html, body, .portfolio, .section-header, .hero, .contact {
    background: #fff !important;
}

.old-ui-btn {
    z-index: 1000;
}
