/* === CSS Variables === */
:root {
    --primary-color: #2c2420;
    --secondary-color: #5c4d3d;
    --accent-color: #d4a574;
    --accent-hover: #c49a6c;
    --bg-light: #faf8f5;
    --bg-white: #ffffff;
    --text-dark: #2c2420;
    --text-light: #6b5d4f;
    --text-muted: #9b8b7a;
    --border-color: #e8e2db;
    --shadow: 0 4px 20px rgba(44, 36, 32, 0.08);
    --shadow-hover: 0 8px 30px rgba(44, 36, 32, 0.12);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === Base Styles === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

/* === Navigation === */
.navbar {
    background: transparent;
    padding: 1.5rem 0;
    transition: all 0.4s ease;
}

.navbar.scrolled {
    background: #ffffff;
    padding: 1rem 0;
    box-shadow: 0 1px 0 rgba(0,0,0,0.05);
}

.navbar-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff !important;
    letter-spacing: -0.5px;
    transition: color 0.4s ease;
}

.navbar.scrolled .navbar-brand {
    color: var(--primary-color) !important;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 400;
    font-size: 0.9rem;
    margin-left: 2rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 0.5rem 0 !important;
    position: relative;
    background: transparent !important;
    transition: color 0.4s ease;
}

.navbar.scrolled .nav-link {
    color: var(--primary-color) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

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

.nav-link:hover {
    color: #ffffff !important;
}

.navbar.scrolled .nav-link:hover {
    color: var(--accent-color) !important;
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='1.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar.scrolled .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2844, 36, 32, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='1.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Menu mobilne - tylko na mobile */
@media (max-width: 991px) {
    .navbar-collapse {
        background: #ffffff;
        margin-top: 1rem;
        padding: 0.5rem 0;
    }
    
    .navbar-collapse .nav-link {
        color: var(--primary-color) !important;
        margin-left: 0;
        padding: 0.75rem 1.5rem !important;
    }
    
    .navbar-collapse .nav-link:hover {
        background: transparent !important;
        color: var(--accent-color) !important;
    }
}

/* === Hero Section === */
.hero {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('DSC_8876.JPG');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(44, 36, 32, 0.85) 0%, rgba(44, 36, 32, 0.7) 50%, rgba(44, 36, 32, 0.6) 100%);
    z-index: 1;
}

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

.hero::before {
    display: none;
}

.hero-content {
    padding: 6rem 0;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #ffffff;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

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

.text-accent::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background: rgba(212, 165, 116, 0.4);
    z-index: -1;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2rem;
    max-width: 500px;
    text-shadow: 0 1px 10px rgba(0,0,0,0.2);
}

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

.btn-primary {
    background: var(--accent-color);
    border: 2px solid var(--accent-color);
    color: var(--primary-color);
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 165, 116, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: #ffffff;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #ffffff;
    color: #ffffff;
    transform: translateY(-2px);
}

/* === Hero Visual/Sketch === */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.sketch-container {
    width: 100%;
    max-width: 400px;
}

.sketch-svg {
    width: 100%;
    height: auto;
}

.sketch-svg circle,
.sketch-svg path {
    stroke: rgba(255, 255, 255, 0.6);
}

.sketch-svg circle[fill],
.pulse-dot {
    fill: rgba(255, 255, 255, 0.5);
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

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

.float-animation {
    animation: float 6s ease-in-out infinite;
}

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

.rotate-slow {
    animation: rotate 20s linear infinite;
    transform-origin: center;
}

.rotate-reverse {
    animation: rotate 25s linear infinite reverse;
    transform-origin: center;
}

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

.pulse-dot {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

.draw-path {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: draw 3s ease forwards;
}

@keyframes draw {
    to { stroke-dashoffset: 0; }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
}

.mouse {
    width: 26px;
    height: 42px;
    border: 2px solid var(--text-muted);
    border-radius: 13px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--text-muted);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s ease infinite;
}

@keyframes scroll {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(12px); }
}

/* === Section Styles === */
section {
    padding: 5rem 0;
    scroll-margin-top: 80px;
}

section#home {
    scroll-margin-top: 0;
}

.section-header {
    margin-bottom: 3rem;
}

.section-tag {
    display: inline-block;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--text-light);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

/* === Services === */
.services {
    background: var(--bg-white);
}

.service-card {
    background: var(--bg-light);
    padding: 2.5rem;
    border-radius: 16px;
    transition: var(--transition);
    border: 1px solid transparent;
}

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

.service-icon {
    width: 64px;
    height: 64px;
    background: var(--accent-color);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 0;
}

/* === Portfolio === */
.portfolio {
    background: var(--bg-light);
}

.portfolio-item {
    transition: var(--transition);
}

.portfolio-item:hover {
    transform: translateY(-8px);
}

.portfolio-img {
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 1rem;
    aspect-ratio: 4/3;
    background: var(--bg-light);
}

.img-placeholder {
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    text-align: center;
    padding: 2rem;
    transition: var(--transition);
}

.gradient-1 {
    background: linear-gradient(135deg, #d4a574 0%, #b8936b 100%);
}

.gradient-2 {
    background: linear-gradient(135deg, #8b7355 0%, #6b5d4f 100%);
}

.gradient-3 {
    background: linear-gradient(135deg, #c49a6c 0%, #a08060 100%);
}

.portfolio-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.portfolio-info h4 {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.portfolio-info p {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 0;
}

/* === Contact === */
.contact {
    background: var(--bg-white);
}

.contact-card {
    background: var(--bg-light);
    padding: 3rem;
    border-radius: 24px;
    text-align: center;
}

.contact-item {
    margin-bottom: 2rem;
}

.contact-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.contact-link {
    font-size: 1.25rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.contact-link:hover {
    color: var(--accent-color);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.social-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition);
}

.social-link:hover {
    color: var(--accent-color);
}

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

/* === Footer === */
.footer {
    background: var(--primary-color);
    color: var(--bg-white);
}

.footer-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
}

.footer-text {
    color: rgba(255,255,255,0.6);
    font-size: 0.875rem;
}

/* === Responsive === */
@media (max-width: 991px) {
    .hero .row {
        flex-direction: column;
        min-height: auto;
        padding-bottom: 3rem;
    }
    
    .hero-content {
        text-align: center;
        padding: 6rem 0 2rem;
    }
    
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .hero-visual {
        display: flex;
        justify-content: center;
        margin-top: 2rem;
    }
    
    .sketch-container {
        max-width: 250px;
    }
    
    .contact-card {
        padding: 2rem;
    }
}

@media (max-width: 767px) {
    .service-card {
        padding: 2rem;
    }
    
    .sketch-container {
        max-width: 200px;
    }
}

/* === Reveal on Scroll === */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}