:root {
    /* Ulepszone odcienie czerni */
    --color-black: #080810;
    --color-black-rich: #0C0C14;
    --color-black-deep: #101018;
    --color-black-soft: #14141C;
    --color-black-warm: #18181F;
    --color-black-accent: #1C1C23;
    
    /* Bardziej intensywne odcienie złota */
    --color-gold-darkest: #B7892C;
    --color-gold-dark: #D4A017;
    --color-gold-base: #FFD700;
    --color-gold-light: #FFE87C;
    --color-gold-bright: #FFF3A0;
    
    /* Uproszczenie gradientu */
    --gradient-gold-main: #FFD700;
    
    /* Gradienty tła */
    --bg-gradient-main: radial-gradient(circle at top, 
        var(--color-black-soft) 0%,
        var(--color-black-deep) 35%,
        var(--color-black-rich) 70%,
        var(--color-black) 100%
    );
    
    --bg-gradient-section: linear-gradient(180deg, 
        var(--color-black) 0%,
        var(--color-black-rich) 50%,
        var(--color-black) 100%
    );
    
    --bg-gradient-card: linear-gradient(180deg,
        var(--color-black-rich) 0%,
        var(--color-black-deep) 100%
    );
    
    --bg-gradient-nav: linear-gradient(to bottom,
        rgba(8, 8, 16, 0.98) 0%,
        rgba(12, 12, 20, 0.95) 100%
    );
    
    /* Tła i cienie */
    --shadow-gold: 0 5px 15px rgba(253, 185, 49, 0.15);
    --shadow-gold-hover: 0 8px 25px rgba(253, 185, 49, 0.25);
    
    --color-white: #ffffff;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--color-black);
    color: var(--color-white);
    line-height: 1.6;
    min-height: 100vh;
}

body::before,
body::after {
    display: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--color-black);
    z-index: 1000;
    padding: 20px 0;
    transition: transform 0.3s ease;
}

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

.logo {
    position: relative;
    height: 40px;
    display: flex;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo img {
    height: 100%;
    width: auto;
    max-height: 40px;
    object-fit: contain;
    filter: brightness(1.2) drop-shadow(0 0 8px rgba(255, 215, 0, 0.4)) sepia(1) saturate(2) hue-rotate(360deg) brightness(1.1);
    transition: all 0.3s ease;
}

.logo:hover img {
    filter: brightness(1.4) drop-shadow(0 0 12px rgba(255, 215, 0, 0.6)) sepia(1) saturate(2.2) hue-rotate(360deg) brightness(1.2);
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    color: var(--color-white);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover, .nav-links a.active {
    background: var(--gradient-gold-main);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    text-align: center;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    line-height: 1.2;
    text-align: center;
    background: var(--gradient-gold-main);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: none;
}

.hero h1 span {
    display: block;
    font-weight: 700;
    color: var(--color-gold-base);
    margin-bottom: 10px;
    text-shadow: 
        0 0 10px rgba(255, 215, 0, 0.6),
        0 0 20px rgba(255, 215, 0, 0.4),
        0 0 30px rgba(255, 215, 0, 0.3),
        0 0 40px rgba(255, 215, 0, 0.2);
    animation: softGlow 3s ease-in-out infinite;
}

.hero h1 span:first-child {
    animation: softGlow 3s ease-in-out infinite;
}

.hero h1 span:last-child {
    animation: softGlow 3s ease-in-out infinite;
    animation-delay: 0.2s;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 30px;
}

/* Buttons */
.cta-button {
    display: inline-block;
    padding: 15px 30px;
    background: var(--color-gold-base);
    color: var(--color-black);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: transform 0.3s ease;
}

.cta-button:hover {
    background: var(--color-gold-light);
    transform: translateY(-2px);
}

/* Sections */
section {
    padding: 100px 0;
    position: relative;
    z-index: 1;
    background: var(--color-black-rich);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    background: var(--gradient-gold-main);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: none;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.about-text {
    font-size: 1.1rem;
}

.about-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    border-radius: 15px;
    border: 3px solid var(--color-gold-base);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.15);
    background: var(--color-black-deep);
    overflow: hidden;
    width: fit-content;
}

.about-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.about-image:hover {
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.25);
}

.about-image:hover img {
    transform: scale(1.02);
}

/* Projects Section */
.featured-projects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.project-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    background: var(--color-black-deep);
    transition: transform 0.3s ease;
}

.project-thumbnail {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* Proporcje 16:9 */
    overflow: hidden;
    cursor: pointer;
}

.project-thumbnail a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.project-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-card:hover img {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* Usuwamy style dla overlay */
.project-overlay {
    display: none;
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
}

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

.contact-form input,
.contact-form textarea {
    padding: 15px;
    border: none;
    background: var(--color-black-deep);
    color: var(--color-white);
    border: 1px solid var(--color-black-accent);
    border-radius: 5px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.contact-form input:focus,
.contact-form textarea:focus {
    background: var(--color-black-rich);
}

.submit-button {
    background: var(--color-gold-base);
    color: var(--color-black);
    padding: 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.3s ease;
    box-shadow: var(--shadow-gold);
}

.submit-button:hover {
    background: var(--color-gold-light);
    transform: translateY(-2px);
}

.social-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

.social-icon {
    color: var(--color-gold-base);
    font-size: 24px;
    transition: transform 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-2px);
}

/* Projects Page */
.projects-page {
    padding: 120px 0 80px;
    background: var(--bg-gradient-main);
    min-height: calc(100vh - 60px); /* 60px to wysokość stopki */
}

.projects-page .section-title {
    margin-bottom: 60px;
    text-align: center;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    padding: 0 20px;
}

.project-link {
    display: inline-block;
    padding: 10px 20px;
    margin-top: 15px;
    background: var(--color-gold-base);
    color: var(--color-black);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: transform 0.3s ease;
}

.project-link:hover {
    background: var(--color-gold-light);
    transform: translateY(-2px);
}

/* Footer */
footer {
    text-align: center;
    padding: 20px 0;
    background: var(--color-black);
    border-top: 1px solid var(--color-black-accent);
    height: 60px;
}

/* Dodanie stylów dla body w podstronie projektów */
.projects-page ~ footer {
    position: sticky;
    bottom: 0;
    width: 100%;
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

@keyframes slideIn {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

.fade-in {
    will-change: transform, opacity;
}

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

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
    z-index: 1001;
    padding: 10px;
    background: transparent;
    border: none;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-gold-base);
    margin: 5px 0;
    transition: all 0.3s ease;
    border-radius: 3px;
}

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

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

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

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

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(8, 8, 16, 0.98);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 30px;
        padding: 40px 0;
        transition: all 0.3s ease-in-out;
        z-index: 1000;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        opacity: 0;
        transform: translateX(50px);
        width: 100%;
        text-align: center;
    }

    .nav-links.active li {
        opacity: 1;
        transform: translateX(0);
    }

    .nav-links a {
        font-size: 1.2rem;
        padding: 15px 20px;
        display: block;
        width: 100%;
        color: var(--color-white);
    }

    .nav-links a:hover,
    .nav-links a.active {
        background: var(--color-black-deep);
        color: var(--color-gold-base);
    }

    /* Animacje dla elementów menu */
    .nav-links li:nth-child(1) { transition-delay: 0.1s; }
    .nav-links li:nth-child(2) { transition-delay: 0.2s; }
    .nav-links li:nth-child(3) { transition-delay: 0.3s; }
    .nav-links li:nth-child(4) { transition-delay: 0.4s; }

    .hero h1 {
        font-size: 2.5rem;
    }

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

    .section-title {
        font-size: 2rem;
    }

    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .projects-page {
        padding: 100px 0 60px;
    }

    .about-image {
        margin: 0 auto;
    }
}

/* Collaboration Section */
.collaboration {
    background: var(--color-black-rich);
    overflow: hidden;
}

.partners-slider {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 40px 0;
}

.partners-slider::before,
.partners-slider::after {
    content: none;
}

.partners-track {
    display: flex;
    animation: slidePartners 60s linear infinite;
    will-change: transform;
}

.partner-item {
    flex: 0 0 300px;
    padding: 20px;
}

.partner-content {
    background: var(--color-black-deep);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
}

.partner-content .image-container {
    width: 180px;
    height: 180px;
    margin: 0 auto 20px;
    border-radius: 50%;
    border: 3px solid var(--color-gold-base);
    background: var(--color-black-deep);
}

.partner-content img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    padding: 10px;
    transition: all 0.3s ease;
}

.partner-content:hover .image-container {
    box-shadow: 0 0 15px rgba(253, 185, 49, 0.3);
}

.partner-content h3 {
    color: var(--color-gold-base);
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.partner-content p {
    color: var(--color-white);
    opacity: 0.8;
    font-size: 0.9rem;
}

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

@media (max-width: 768px) {
    .partner-content .image-container {
        width: 150px;
        height: 150px;
    }
    
    .partners-slider::before,
    .partners-slider::after {
        width: 100px;
    }
}

/* Usunięcie zbędnych animacji */
@keyframes floatingParticles {
    0%, 100% {
        opacity: 0;
    }
}

/* Optymalizacja efektów hover */
.project-card::before {
    display: none;
}

.center-button {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
    width: 100%;
}

.center-button .cta-button {
    min-width: 200px;
    text-align: center;
}

/* Dodanie animowanego tła */
@keyframes gradientAnimation {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 100% 50%;
    }
}

.creator-credit {
    text-align: center;
    padding: 10px 0;
    background: var(--color-black);
    border-top: 1px solid var(--color-black-accent);
    font-size: 0.9rem;
}

.creator-credit a {
    color: var(--color-gold-base);
    text-decoration: none;
    transition: color 0.3s ease;
}

.creator-credit a:hover {
    color: var(--color-gold-light);
}

/* Animacje dla złotych napisów */
@keyframes softGlow {
    0%, 100% {
        text-shadow: 
            0 0 10px rgba(255, 215, 0, 0.6),
            0 0 20px rgba(255, 215, 0, 0.4),
            0 0 30px rgba(255, 215, 0, 0.3),
            0 0 40px rgba(255, 215, 0, 0.2);
    }
    50% {
        text-shadow: 
            0 0 15px rgba(255, 215, 0, 0.7),
            0 0 25px rgba(255, 215, 0, 0.5),
            0 0 35px rgba(255, 215, 0, 0.4),
            0 0 45px rgba(255, 215, 0, 0.3);
    }
}

/* Usunięcie zbędnych efektów gradient */
.hero h1 span,
.section-title,
.logo {
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
}

/* Wzmocnienie efektu glow */
@keyframes softGlow {
    0% {
        text-shadow: 
            0 0 10px rgba(255, 215, 0, 0.3),
            0 0 20px rgba(255, 215, 0, 0.2),
            0 0 30px rgba(255, 215, 0, 0.1);
    }
    50% {
        text-shadow: 
            0 0 15px rgba(255, 215, 0, 0.4),
            0 0 25px rgba(255, 215, 0, 0.3),
            0 0 35px rgba(255, 215, 0, 0.2);
    }
    100% {
        text-shadow: 
            0 0 10px rgba(255, 215, 0, 0.3),
            0 0 20px rgba(255, 215, 0, 0.2),
            0 0 30px rgba(255, 215, 0, 0.1);
    }
}

/* Wzmocnienie efektu hover dla linków */
.nav-links a:hover, 
.nav-links a.active {
    color: var(--color-gold-base);
    text-shadow: 
        0 0 10px rgba(255, 215, 0, 0.4),
        0 0 20px rgba(255, 215, 0, 0.3);
}

/* Złoty tekst i efekty */
.section-title,
.logo {
    color: var(--color-gold-base);
    text-shadow: 
        0 0 10px rgba(255, 215, 0, 0.6),
        0 0 20px rgba(255, 215, 0, 0.4);
    animation: softGlow 3s ease-in-out infinite;
}

/* Poprawiona animacja softGlow */
@keyframes softGlow {
    0%, 100% {
        text-shadow: 
            0 0 10px rgba(255, 215, 0, 0.6),
            0 0 20px rgba(255, 215, 0, 0.4),
            0 0 30px rgba(255, 215, 0, 0.3),
            0 0 40px rgba(255, 215, 0, 0.2);
    }
    50% {
        text-shadow: 
            0 0 15px rgba(255, 215, 0, 0.7),
            0 0 25px rgba(255, 215, 0, 0.5),
            0 0 35px rgba(255, 215, 0, 0.4),
            0 0 45px rgba(255, 215, 0, 0.3);
    }
}

/* Social media */
.social-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

.social-icon {
    color: #FFD700;
    font-size: 24px;
    transition: all 0.3s ease;
}

.social-icon:hover {
    color: #FFE87C;
    transform: translateY(-2px);
    text-shadow: 
        0 0 10px rgba(255, 215, 0, 0.4),
        0 0 20px rgba(255, 215, 0, 0.2);
}

/* Nawigacja */
.nav-links a:hover, 
.nav-links a.active {
    color: #FFD700;
    text-shadow: 
        0 0 10px rgba(255, 215, 0, 0.3),
        0 0 20px rgba(255, 215, 0, 0.2);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--color-black-deep);
}

::-webkit-scrollbar-thumb {
    background: var(--color-gold-base);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-gold-light);
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--color-gold-base) var(--color-black-deep);
} 
