/* 
    RECZEK STUDIO - Premium Design System
    Theme: Luxury Dark Mode
*/

:root {
    --bg-color: #080808;
    --accent-color: #C9A84C; /* Champagne Gold */
    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.4);
    --border-color: rgba(255, 255, 255, 0.1);
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Outfit', sans-serif;
    --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none; /* Hide default cursor for custom cursor */
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- Grain Overlay --- */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("https://grainy-gradients.vercel.app/noise.svg");
    opacity: 0.04;
    pointer-events: none;
    z-index: 9999;
}

/* --- Custom Cursor --- */
#cursor {
    width: 8px;
    height: 8px;
    background: var(--accent-color);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
}

#cursor-follower {
    width: 40px;
    height: 40px;
    border: 1px solid var(--accent-color);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background 0.3s;
}

/* --- Typography --- */
h1, h2, h3 {
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: 1.1;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 2rem;
    text-align: center;
}

.gold-text {
    color: var(--accent-color);
}

/* --- Layout --- */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

section {
    padding: 120px 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* --- Header & Nav --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 30px 0;
    transition: var(--transition-smooth);
    border-bottom: 1px solid transparent;
}

header.scrolled {
    padding: 15px 0;
    background: rgba(8, 8, 8, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition-smooth);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-color);
    transition: var(--transition-smooth);
}

.nav-links a:hover, .nav-links a.active {
    color: var(--accent-color);
}

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

/* --- Preloader --- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10001;
}

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

.loader-logo {
    font-family: var(--font-serif);
    font-size: 2rem;
    overflow: hidden;
}

.loader-logo span {
    display: inline-block;
    transform: translateY(100%);
}

/* --- Hero --- */
#hero {
    height: 100vh;
    padding: 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    margin-bottom: 1.5rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 3rem;
    opacity: 0;
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
    opacity: 0;
}

.btn {
    padding: 18px 35px;
    border-radius: 0;
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: var(--transition-smooth);
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-color) 0%, #a68434 100%);
    color: #000;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(201, 168, 76, 0.2);
    overflow: hidden;
    border: none;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transform: skewX(-20deg);
    transition: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(201, 168, 76, 0.4);
}

.btn-primary:hover::after {
    left: 150%;
}

.btn-text {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-block;
    position: relative;
    z-index: 2; /* Keep above the shine effect */
}

.btn-primary:hover .btn-text {
    transform: scale(1.1);
}

.btn-secondary {
    color: var(--text-primary);
    padding: 10px 0;
    border-bottom: 1px solid rgba(201, 168, 76, 0.3);
    margin: 8px 0; /* To align better with primary button visually */
}

.btn-secondary::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--accent-color);
    box-shadow: 0 0 10px var(--accent-color), 0 0 20px rgba(201, 168, 76, 0.5); /* Rozświetlenie */
    transform: scaleX(0);
    transform-origin: left; /* Start from left */
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-secondary:hover {
    color: var(--text-primary);
}

.btn-secondary:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    will-change: transform; /* GPU Acceleration */
}

#hero-canvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* --- About --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
}

.about-img-container {
    position: relative;
    overflow: visible;
}

.about-img-container::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 1px solid var(--accent-color);
    z-index: -1;
    transition: var(--transition-smooth);
}

/* Border shift on hover */
.about-img-container:hover::before {
    top: 0;
    left: 0;
    border-color: rgba(201, 168, 76, 0.5);
}

.about-photo {
    width: 100%;
    height: auto;
    filter: none; /* Removed grayscale */
    transition: var(--transition-smooth);
}

.about-img-container:hover .about-photo {
    transform: scale(1.05);
    filter: brightness(1.1) contrast(1.05);
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.feature-item i {
    color: var(--accent-color);
}

/* --- Portfolio --- */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.project-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 0;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    will-change: transform, opacity;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color);
}

.mac-window-top {
    background: #222;
    padding: 10px 15px;
    display: flex;
    gap: 8px;
    border-bottom: 1px solid var(--border-color);
}

.mac-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.iframe-container {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    position: relative;
}

.portfolio-video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    position: absolute;
    top: 0;
    left: 0;
}

.project-info {
    padding: 20px;
    text-align: center;
}

.project-badge {
    position: absolute;
    top: 50px;
    right: 20px;
    background: var(--accent-color);
    color: #000;
    font-size: 0.7rem;
    padding: 4px 10px;
    text-transform: uppercase;
    font-weight: bold;
}

.project-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.project-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

/* --- Process --- */
#proces {
    padding: 0; 
    background: #000;
    height: 100vh; /* Fixed height for pinning */
    position: relative;
}

.process-container {
    display: flex;
    gap: 50px;
    align-items: flex-start;
    padding: 0;
    height: 100vh;
}

.process-left {
    width: 40%;
    height: 100vh;
    display: flex;
    align-items: center;
}

.process-left .section-title {
    text-align: left;
    margin: 0;
}

.process-right {
    width: 60%;
    height: 100vh;
    position: relative;
    padding-left: 60px;
}

.process-progress-wrapper {
    position: absolute;
    left: 20px;
    top: 50vh; /* Start from center */
    /* Exact distance to the middle of the 'Stwórzmy coś razem' heading */
    /* 50vh to bottom of #proces + 120px padding of #kontakt + 35px half heading height */
    height: calc(50vh + 155px); 
    width: 2px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 0;
}

.process-progress-fill {
    width: 100%;
    background: var(--accent-color);
    height: 0%;
    box-shadow: 0 0 10px rgba(201, 168, 76, 0.5);
}

.cards-viewport {
    height: 100vh;
    overflow: hidden; /* Clips cards to not spill down */
    position: relative;
}

.process-cards {
    display: flex;
    flex-direction: column;
    padding-top: 50vh; /* First card center */
    padding-bottom: 50vh; /* Last card center */
    position: relative;
    z-index: 1;
}

.process-card.step {
    padding: 80px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    opacity: 0.15;
    transition: opacity 0.5s ease;
}

.process-card.step.active {
    opacity: 1;
}

.card-num {
    font-family: var(--font-serif);
    font-size: 8rem;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.2);
    line-height: 1;
    transition: var(--transition-smooth);
}

.process-card.step.active .card-num {
    -webkit-text-stroke: 1px var(--accent-color);
    text-shadow: 0 0 20px rgba(201, 168, 76, 0.2);
}

.card-content {
    width: 65%;
}

.card-content h3 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.card-content p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* --- Contact / Widget --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.contact-info h3 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.contact-email {
    font-size: 1.5rem;
    color: var(--accent-color);
    text-decoration: none;
    display: inline-block;
    margin-top: 20px;
}

/* Booking Widget */
.booking-widget {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: 5px;
    position: relative;
}

.widget-step {
    display: none;
}

.widget-step.active {
    display: block;
    animation: fadeIn 0.5s ease-in;
}

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

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    text-align: center;
}

.day-name {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 10px;
}

.calendar-day {
    padding: 10px;
    font-size: 0.9rem;
    border: 1px solid transparent;
}

.calendar-day.available {
    color: var(--accent-color);
    border: 1px solid rgba(201, 168, 76, 0.3);
    cursor: pointer;
}

.calendar-day.available:hover {
    background: var(--accent-color);
    color: #000;
}

.calendar-day.selected {
    background: var(--accent-color);
    color: #000;
}

.time-slots {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.time-slot {
    padding: 15px;
    border: 1px solid var(--accent-color);
    text-align: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.time-slot:hover {
    background: var(--accent-color);
    color: #000;
}

.booking-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-family: inherit;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.form-row {
    display: flex;
    gap: 15px;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* --- Footer --- */
footer {
    padding: 80px 0 40px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-logo {
    font-family: var(--font-serif);
    font-size: 2rem;
    margin-bottom: 2rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 3rem;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.8rem;
    text-transform: uppercase;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* --- Mobile Menu --- */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    z-index: 1001;
}

.hamburger span {
    width: 30px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition-smooth);
}

.mobile-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-close {
    position: absolute;
    top: 30px;
    right: 5%;
    background: none;
    border: none;
    color: var(--text-primary);
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1002;
}

.mobile-close i {
    width: 32px;
    height: 32px;
}

.mobile-overlay.active {
    right: 0;
}

.mobile-links {
    display: flex;
    flex-direction: column;
    gap: 30px;
    text-align: center;
}

.mobile-links a {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    text-decoration: none;
    color: var(--text-primary);
}

/* --- Responsive --- */
@media (max-width: 1200px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    * { cursor: auto !important; }
    #cursor, #cursor-follower { display: none; }

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

    .nav-links { display: none; }
    .hamburger { display: flex; }

    .about-grid, .contact-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .about-img-container::before {
        display: none; /* Remove golden frame on mobile */
    }

    .about-img-container {
        /* Mobile specific portrait animation */
        animation: floatMobile 6s ease-in-out infinite;
    }

    @keyframes floatMobile {
        0%, 100% { transform: translateY(0); }
        50% { transform: translateY(-10px); }
    }

    .about-photo {
        border: 2px solid var(--accent-color);
        box-shadow: 0 10px 30px rgba(201, 168, 76, 0.15);
    }

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

    .iframe-container {
        height: auto;
    }

    .portfolio-video {
        display: block;
        position: relative;
        height: auto;
        object-fit: contain;
    }

    #proces {
        height: auto;
    }

    .process-container {
        flex-direction: column;
        height: auto;
        padding-top: 60px;
        padding-bottom: 60px;
        gap: 30px;
    }

    .process-left {
        width: 100%;
        position: static;
        height: auto;
        display: block;
    }

    .process-left .section-title {
        margin-top: 0;
        text-align: center;
    }

    .process-right {
        width: 100%;
        height: auto;
        padding-left: 80px; /* More space for the line and nodes */
    }

    .process-progress-wrapper {
        display: block; /* Show progress line on mobile */
        top: 0;
        left: 40px; /* Move line towards center */
        height: 100% !important; /* Override desktop calc */
    }

    .cards-viewport {
        height: auto;
        overflow: visible;
    }

    .process-cards {
        padding-top: 0;
        padding-bottom: 0;
        gap: 60px;
    }

    .process-card.step {
        flex-direction: column;
        align-items: flex-start;
        padding: 0;
        opacity: 1; /* Fully visible on mobile by default */
        position: relative; /* For absolute positioning of node */
    }
    
    .card-num {
        position: absolute;
        left: -40px; /* Align exactly over the line */
        transform: translateX(-50%);
        top: 0;
        width: 42px;
        height: 42px;
        border-radius: 50%;
        background: #000;
        border: 1px solid var(--accent-color);
        color: var(--accent-color);
        font-size: 1.2rem;
        -webkit-text-stroke: 0; /* Remove desktop stroke */
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 0;
        z-index: 2;
    }
    
    .card-content {
        width: 100%;
    }
    
    .card-content h3 {
        font-size: 1.8rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
    }

    .booking-widget {
        padding: 20px; /* Reduce padding on mobile to prevent overflow */
    }

    .calendar-day {
        padding: 8px 4px; /* Reduce day cell padding */
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .hero-btns {
        flex-direction: column;
        align-items: center;
    }
}
