:root {
    --color-primary: #2c1810;
    --color-accent: #8b6914;
    --color-accent2: #eec152;
    --color-light: #f5f1eb;
    --color-cream: #e8e0d5;
    --color-wood: #4a3428;
    --color-green: #3d5a3a;
    --spacing-unit: 1rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Manrope', sans-serif;
    background: var(--color-light);
    color: var(--color-primary);
    line-height: 1.7;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    line-height: 1.2;
}

/* Sticky Navigation */
.sticky-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(44, 24, 16, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.sticky-nav.visible {
    transform: translateY(0);
}

.sticky-nav-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.nav-logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-accent2);
    text-decoration: none;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.nav-link {
    color: var(--color-cream);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 1rem;
    white-space: nowrap;
}

.nav-link:hover {
  background: var(--color-accent2);
  color: #2c1810;
}

.nav-link.primary {
  background: #2c1810;
  color: var(--color-accent2);
  border: 1px solid var(--color-accent2);
    font-weight: 600;
}

.nav-link.primary:hover {
  background: var(--color-accent2);
  color: var(--color-primary);
  border: 1px solid #eec15200;
  
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 105, 20, 0.4);
}

/* Header */
header {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2c1810 0%, #4a3428cc 100%), url("bg.jpg");
    background-repeat: no-repeat;
    background-size: 100%;
    overflow: hidden;
    box-shadow: 0px 0px 100px inset #00000069;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 2px, rgba(139, 105, 20, 0.03) 2px, rgba(139, 105, 20, 0.03) 4px),
        radial-gradient(circle at 20% 50%, rgba(139, 105, 20, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(61, 90, 58, 0.1) 0%, transparent 50%);
    opacity: 0.6;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
    max-width: 900px;
    animation: fadeInUp 1.2s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 6rem);
    color: var(--color-light);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    font-weight: 300;
    animation: fadeInUp 1.2s ease-out 0.2s backwards;
}

.hero-title strong {
    font-weight: 700;
    display: block;
    color: var(--color-accent2);
    /* font-style: italic; */
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: var(--color-cream);
    margin-bottom: 3rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    animation: fadeInUp 1.2s ease-out 0.4s backwards;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1.2s ease-out 0.6s backwards;
}

.btn {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 2px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    font-family: 'Manrope', sans-serif;
    letter-spacing: 0.05em;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--color-accent);
    color: var(--color-primary);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(139, 105, 20, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--color-light);
    border: 2px solid var(--color-cream);
}

.btn-secondary:hover {
    background: var(--color-cream);
    color: var(--color-primary);
    transform: translateY(-3px);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateY(-50%);
    animation: bounce 2s infinite, fadeInUp 1.2s ease-out 0.8s backwards;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(0%) translateY(0);
    }
    40% {
        transform: translateX(0%) translateY(-10px);
    }
    60% {
        transform: translateX(0%) translateY(-5px);
    }
}

.scroll-indicator svg {
    width: 30px;
    height: 30px;
    stroke: var(--color-accent2);
}

/* Main Content */
main {
    background: var(--color-light);
}

.section {
    padding: clamp(4rem, 10vw, 8rem) clamp(1.5rem, 5vw, 3rem);
    position: relative;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1rem;
    color: var(--color-primary);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 60%;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent) 0%, transparent 100%);
}

.section-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: var(--color-wood);
    margin-bottom: 3rem;
    font-weight: 300;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.service-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(44, 24, 16, 0.08);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--color-accent2);
    transform: scaleY(0);
    transition: transform 0.4s ease;
    transform-origin: bottom;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(44, 24, 16, 0.15);
}

.service-card:hover::before {
    transform: scaleY(1);
    transform-origin: top;
}

.service-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.service-card ul {
    list-style: none;
    padding-left: 0;
}

.service-card li {
    padding: 0.6rem 0;
    padding-left: 1.5rem;
    position: relative;
    font-size: 1.05rem;
    color: var(--color-wood);
}

.service-card li::before {
    content: '◆';
    position: absolute;
    left: 0;
    color: var(--color-accent2);
    font-size: 0.8rem;
}

/* Features Section */
.features {
    background: linear-gradient(135deg, var(--color-wood) 0%, var(--color-primary) 100%);
    color: var(--color-light);
    position: relative;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(90deg, transparent, transparent 50px, rgba(139, 105, 20, 0.03) 50px, rgba(139, 105, 20, 0.03) 51px);
    opacity: 0.5;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    position: relative;
    z-index: 1;
}

.feature-item {
    text-align: center;
    padding: 2rem;
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: rgba(139, 105, 20, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    transition: all 0.4s ease;
    border: 1px solid #eec1520f;
    box-shadow: 0px 0px 10px #2c1810;
}

.feature-item:hover .feature-icon {
    background: var(--color-accent);
    transform: scale(1.1) rotate(5deg);
}

.feature-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-accent);
}

.feature-item p {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--color-cream);
}

/* Contact Section */
.contact {
    background: var(--color-cream);
    text-align: center;
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 3rem;
}

.contact-item {
    background: white;
    padding: 2.5rem;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(44, 24, 16, 0.1);
    transition: all 0.4s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(44, 24, 16, 0.15);
}

.contact-label {
    font-size: 1.1rem;
    color: var(--color-wood);
    margin-bottom: 1rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.phone-number {
    font-size: 2rem;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
    display: inline-block;
    transition: color 0.3s ease;
    font-family: 'Cormorant Garamond', serif;
    letter-spacing: 0.02em;
}

.phone-number:hover {
    color: var(--color-accent);
}

.messenger-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.messenger-link {
    padding: 0.8rem 1.5rem;
    background: var(--color-green);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.messenger-link:hover {
    background: var(--color-accent);
    transform: scale(1.05);
}

/* Footer */
footer {
    background: var(--color-primary);
    color: var(--color-cream);
    padding: 3rem 2rem;
    text-align: center;
}

footer p {
    font-size: 1rem;
    opacity: 0.8;
}

footer a {
  color: #e8e0d5;
}

/* Animations on Scroll */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
    width: 100%;
}
.fade-in.visible:after {width: 100%;}

/* Responsive */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .sticky-nav-content {
        padding: 0.8rem 1rem;
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-logo {
        font-size: 1.3rem;
    }
    
    .nav-links {
        gap: 0.8rem;
        width: 100%;
        justify-content: center;
    }
    
    .nav-link {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }
}

@media (max-width: 480px) {
    .nav-links {
        flex-direction: column;
        width: 100%;
    }
    
    .nav-link {
        width: 100%;
        text-align: center;
    }
}

/* Before/After Comparison Section */
.portfolio {
    background: white;
}

.comparisons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.comparison-container {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(44, 24, 16, 0.15);
    background: var(--color-cream);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.comparison-container:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(44, 24, 16, 0.25);
}

.comparison-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 75%; /* 4:3 aspect ratio */
    overflow: hidden;
    background: var(--color-cream);
}

.comparison-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-before {
    z-index: 1;
}

.image-after {
    z-index: 2;
    clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
}

.comparison-slider {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background0: var(--color-accent);
    background: var(--color-primary);
    z-index: 3;
    cursor: ew-resize;
    transform: translateX(-50%);
}

.slider-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    background0: var(--color-accent);
    background: var(--color-primary);
    border0: 4px solid white;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.comparison-container:hover .slider-handle {
    transform: translate(-50%, -50%) scale(1.1);
}

.slider-handle::before,
.slider-handle::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
}

.slider-handle::before {
    left: 12px;
    border-width: 8px 12px 8px 0;
    border-color: transparent white transparent transparent;
}

.slider-handle::after {
    right: 12px;
    border-width: 8px 0 8px 12px;
    border-color: transparent transparent transparent white;
}

.comparison-labels {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    z-index: 4;
    pointer-events: none;
}

.label {
    background: rgba(44, 24, 16, 0.85);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    backdrop-filter: blur(5px);
}

.comparison-caption {
    padding: 1.5rem;
    background: white;
}

.comparison-caption h3 {
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.comparison-caption p {
    color: var(--color-wood);
    font-size: 1rem;
    line-height: 1.6;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #d4c5b3 0%, #e8e0d5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: var(--color-wood);
    font-size: 1rem;
    text-align: center;
    padding: 2rem;
}

.image-placeholder svg {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.upload-instructions {
    background: rgba(139, 105, 20, 0.1);
    border-left: 4px solid var(--color-accent);
    padding: 2rem;
    margin-top: 3rem;
    border-radius: 4px;
}

.upload-instructions h3 {
    color: var(--color-primary);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.upload-instructions p {
    color: var(--color-wood);
    margin-bottom: 0.5rem;
    line-height: 1.8;
}

.upload-instructions code {
    background: rgba(44, 24, 16, 0.05);
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    color: var(--color-accent);
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (max-width: 768px) {
    .comparisons-grid {
        grid-template-columns: 1fr;
    }
}

@media only screen and (max-aspect-ratio: 1/1)
{
#stickyNav {  display: none !important;}
}

.nav-link.top{border: 2px solid white; color: white;}
.nav-link.top:hover{border: 2px solid var(--color-accent); color: var(--color-accent);}


#btn-return.visible {
  display: block !important;
}

.section.features h2 {color: white;}
.section.features h3 {color: #eec152;}

.btn-primary {
  /* background: var(--color-accent); */
  background: var(--color-accent2);
}

.nav-link.primary:hover {
  /* background: var(--color-accent); */
  /* box-shadow: 0 4px 12px rgba(139, 105, 20, 0.4); */
  background: var(--color-accent2);
  box-shadow: 0 4px 12px rgba(var(--color-accent2));
}

.feature-item:hover .feature-icon {
  /* background: var(--color-accent); */
  background: var(--color-accent2);
}

.section.features h2 {
  /* color: white; */
  color: #fff4db;
}


#top::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 300px;
    height: 300px;
    background-image: url('deco1.png');
    background-size: contain;
    background-repeat: no-repeat;
}

#top::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background-image: url('deco1.png');
    background-size: contain;
    background-repeat: no-repeat;
    transform: rotate(180deg);  /* Rotates bottom-right */
}
/* Schema.org structured data placeholder */