/* 
   Theme: Dark Premium (Historický nábytek)
   Colors: 
     Background: #1a1a1a (Dark Gray), #121212 (Darker Black)
     Text: #e0e0e0 (Off-white), #a0a0a0 (Light Gray)
     Accent: #c5a065 (Antique Gold/Brass)
*/

:root {
    --bg-primary: #121212;
    --bg-secondary: #1e1e1e;
    --bg-tertiary: #2a2a2a;
    --text-primary: #f0f0f0;
    --text-secondary: #b0b0b0;
    --accent-color: #c5a065;
    --accent-hover: #e0b070;
    --border-color: #333;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Outfit', sans-serif;
    
    --container-width: 1200px;
    --nav-height: 80px;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    /* Decoration */
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.5);
    --shadow-accent: 0 0 20px rgba(197, 160, 101, 0.2);
}

/* Light Theme */
[data-theme="light"] {
    --bg-primary: #f5f5f5;
    --bg-secondary: #ffffff;
    --bg-tertiary: #e8e8e8;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --accent-color: #b8934d;
    --accent-hover: #d4a55e;
    --border-color: #d0d0d0;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.15);
    --shadow-accent: 0 0 20px rgba(184, 147, 77, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: smooth;
}

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

img {
    max-width: 100%;
    display: block;
    border-radius: var(--border-radius-md);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #cfaa6e, #f0d5a6, #cfaa6e);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent; /* Fallback: var(--accent-color) */
}

.section-desc {
    text-align: center;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 3rem auto;
}

.section-line {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    margin: 0 auto 3rem auto;
    border-radius: 2px;
}

span.accent-text {
    color: var(--accent-color);
    font-style: italic;
}

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 0.9rem 2.2rem;
    font-family: var(--font-body);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50px; /* Fully rounded buttons */
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-color), #a07d47);
    color: #000;
    border: none;
    box-shadow: 0 4px 15px rgba(197, 160, 101, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(197, 160, 101, 0.5);
}

.btn-secondary {
    background-color: rgba(255,255,255,0.05);
    color: var(--text-primary);
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background-color: rgba(255,255,255,0.1);
    border-color: var(--text-primary);
    transform: translateY(-3px);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background-color: rgba(18, 18, 18, 0.85); /* More transparency */
    backdrop-filter: blur(15px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    background: linear-gradient(to right, #cfaa6e, #fff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    position: relative;
    padding: 5px 0;
}

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

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

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

.nav-links .btn-primary {
    padding: 0.6rem 1.8rem;
    color: #000; /* Ensure text visible on gold */
}
.nav-links .btn-primary:hover {
    color: #000;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.hamburger {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--text-primary);
    position: relative;
    border-radius: 2px;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    left: 0;
    border-radius: 2px;
}

.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background-image: url('images/hero-bg.jpg'); 
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    border-bottom-left-radius: var(--border-radius-lg);
    border-bottom-right-radius: var(--border-radius-lg);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.8) 100%);
}

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

.hero-title {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    color: #fff;
    text-shadow: 0 4px 10px rgba(0,0,0,0.7);
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.35rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 3rem;
    font-weight: 300;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

/* Sections General */
.section {
    padding: var(--spacing-xl) 0;
}

/* About Section */
.about-section {
    background-color: var(--bg-primary);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

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

.about-image-placeholder {
    height: 450px;
    background-color: var(--bg-tertiary);
    border: 1px solid rgba(255,255,255,0.05); /* Softer border */
    border-radius: var(--border-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: var(--shadow-md);
    overflow: hidden; /* For inner content */
}

/* Services Section */
.services-section {
    background-color: var(--bg-secondary);
    position: relative;
}

/* Subtle background pattern/glow */
.services-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(197, 160, 101, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: rgba(42, 42, 42, 0.6);
    backdrop-filter: blur(10px);
    padding: 3rem 2rem;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: var(--border-radius-lg);
    transition: all 0.4s ease;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(197, 160, 101, 0.3);
    box-shadow: var(--shadow-md), var(--shadow-accent);
    background-color: rgba(42, 42, 42, 0.9);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
    background: rgba(197, 160, 101, 0.1);
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    margin-left: auto;
    margin-right: auto;
    transition: transform 0.4s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    background: rgba(197, 160, 101, 0.2);
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Portfolio Section */
.portfolio-section {
    background-color: var(--bg-primary);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
}

.portfolio-img-box {
    border-radius: var(--border-radius-md);
    transition: all 0.7s cubic-bezier(0.19, 1, 0.22, 1);
}

.portfolio-item:hover .portfolio-img-box {
    transform: scale(1.05);
    filter: brightness(0.4);
}

.portfolio-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.95), transparent);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease 0.1s;
}

.portfolio-item:hover .portfolio-info {
    transform: translateY(0);
    opacity: 1;
}

.portfolio-info h4 {
    color: var(--accent-color);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.portfolio-info p {
    color: #dadada;
    font-size: 0.95rem;
}

/* Contact Section */
.contact-section {
    background-color: var(--bg-secondary);
    border-top-left-radius: var(--border-radius-xl);
    border-top-right-radius: var(--border-radius-xl);
    margin-top: -20px; /* Overlap effect */
    padding-top: var(--spacing-xl);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 5rem;
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    background: rgba(255,255,255,0.03);
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius-sm);
    border: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.contact-detail:hover {
    border-color: rgba(197, 160, 101, 0.3);
}

.contact-detail .icon {
    color: var(--accent-color);
    font-size: 1.5rem;
}

.contact-detail p {
    margin-bottom: 0;
    color: var(--text-primary);
    font-weight: 500;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background: var(--bg-tertiary);
    padding: 3rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255,255,255,0.03);
}

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

.form-group label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-left: 0.5rem;
}

.form-group input,
.form-group textarea {
    background-color: rgba(0,0,0,0.2);
    border: 1px solid var(--border-color);
    padding: 1.2rem;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    border-radius: var(--border-radius-sm);
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

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

.btn-submit {
    align-self: flex-start;
    margin-top: 1rem;
    width: 100%;
}

/* Footer */
.footer {
    background-color: #0d0d0d;
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-content {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 900px) {
    .hero-title {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; /* Hide for now, JS will toggle */
        position: absolute;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        background-color: var(--bg-secondary);
        flex-direction: column;
        padding: 2rem;
        border-bottom: 1px solid var(--border-color);
        box-shadow: var(--shadow-md);
        gap: 1.5rem;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-toggle {
        display: block;
    }

    /* Hero mobile fixes */
    .hero {
        background-attachment: scroll;
        background-size: cover;
        background-position: center center;
    }

    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary {
        width: 100%;
        max-width: 320px;
        text-align: center;
    }

    .about-content,
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contact-form {
        padding: 2rem;
    }

    .about-image-placeholder {
        order: -1;
        margin-bottom: 0;
        height: 300px;
    }
}

/* Light Theme Adjustments */
[data-theme="light"] .navbar {
    background-color: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

[data-theme="light"] .hero-overlay {
    background: radial-gradient(circle at center, rgba(255,255,255,0.2) 0%, rgba(0,0,0,0.5) 100%);
}

[data-theme="light"] .service-card {
    background-color: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0,0,0,0.08);
}

[data-theme="light"] .service-card:hover {
    background-color: rgba(255, 255, 255, 0.95);
    border-color: rgba(184, 147, 77, 0.3);
}

[data-theme="light"] .about-image-placeholder {
    background-color: #ffffff;
    border: 1px solid rgba(0,0,0,0.08);
}

[data-theme="light"] .contact-form {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.08);
}

[data-theme="light"] .form-group input,
[data-theme="light"] .form-group textarea {
    background-color: rgba(0,0,0,0.03);
    border: 1px solid var(--border-color);
}

[data-theme="light"] .form-group input:focus,
[data-theme="light"] .form-group textarea:focus {
    background-color: rgba(0,0,0,0.05);
}

[data-theme="light"] .contact-detail {
    background: rgba(0,0,0,0.03);
}

[data-theme="light"] .btn-secondary {
    background-color: rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.15);
}

[data-theme="light"] .btn-secondary:hover {
    background-color: rgba(0,0,0,0.1);
}

[data-theme="light"] .footer {
    background-color: #e8e8e8;
    border-top: 1px solid rgba(0,0,0,0.08);
}

[data-theme="light"] .services-section::before {
    background: radial-gradient(circle, rgba(184, 147, 77, 0.08) 0%, transparent 70%);
}

/* Theme Toggle Button */
.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.3rem;
    padding: 0.5rem;
    color: var(--text-primary);
    transition: transform 0.3s ease, color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    transform: rotate(15deg) scale(1.1);
    color: var(--accent-color);
}
