/* 
  Zamoner Marcenaria - Premium Landing Page Design (V2)
  Theme: Dark Luxury (Black & Gold)
*/

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
    /* Palette */
    --bg-body: #0a0a0a;
    --bg-surface: #141414;
    --bg-surface-translucent: rgba(20, 20, 20, 0.8);
    
    --color-gold: #D4AF37;
    --color-gold-light: #F4DF90;
    --color-gold-dark: #AA8C2C;
    
    --text-main: #FFFFFF;
    --text-muted: #A3A3A3;
    
    /* Typography */
    --font-display: 'Playfair Display', serif;
    --font-body: 'Manrope', sans-serif;

    /* Metrics */
    --container-max: 1400px;
    --header-height: 90px;
    --radius-lg: 0px; /* Sharp edges for luxury feel */
}

/* Reset & Base */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: var(--font-body);
    font-weight: 300;
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.1;
    color: var(--text-main);
}

h1 { font-size: clamp(3rem, 8vw, 6rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(2.5rem, 5vw, 4rem); margin-bottom: 2rem; }
h3 { font-size: 1.5rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--color-gold); margin-bottom: 1rem; }

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

a { text-decoration: none; color: inherit; transition: 0.4s ease; }
img { width: 100%; display: block; }
ul { list-style: none; }

/* Utilities */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
}

.text-gold { color: var(--color-gold); }
.text-center { text-align: center; }
.my-lg { margin: 8rem 0; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 1.2rem 3rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 600;
    border: 1px solid var(--color-gold);
    color: var(--color-gold);
    background: transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.btn:hover {
    background: var(--color-gold);
    color: var(--bg-body);
}

.btn-filled {
    background: var(--color-gold);
    color: var(--bg-body);
}

.btn-filled:hover {
    background: var(--color-gold-light);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.2);
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 2rem 0;
    transition: 0.4s ease;
}

header.scrolled {
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.logo {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--text-main);
}

.nav-links {
    display: flex;
    gap: 3rem;
}

.nav-links a {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.7;
}

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

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    filter: brightness(0.4);
    transform: scale(1.1); /* For parallax effect in JS */
}

.hero-content {
    max-width: 900px;
    position: relative;
    z-index: 1;
    padding-top: var(--header-height);
}

.hero-subtitle {
    display: block;
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 1.5rem;
    color: var(--color-gold);
    font-weight: 600;
}

/* About Section (Asymmetrical) */
.about-section {
    position: relative;
    padding: 10rem 0;
}

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

.about-img-wrapper {
    position: relative;
}

.about-img {
    width: 85%;
    filter: sepia(20%) contrast(110%);
}

.about-img-decoration {
    position: absolute;
    bottom: -30px;
    right: 0;
    width: 200px;
    height: 200px;
    border: 1px solid var(--color-gold);
    z-index: -1;
}

/* Portfolio / Gallery Horizontal Scroll */
.portfolio-section {
    padding: 6rem 0;
    overflow: hidden;
}

.portfolio-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 4rem;
}

.gallery-track {
    display: flex;
    gap: 2rem;
    padding-bottom: 4rem;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
}
.gallery-track::-webkit-scrollbar { display: none; }

.project-card {
    min-width: 400px;
    position: relative;
    cursor: pointer;
    group;
}

.project-img-container {
    height: 500px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.project-img-container img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.project-info h4 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.project-info span {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    color: var(--color-gold);
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
    margin-top: 4rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 4rem;
}

.feature-item h4 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.feature-number {
    font-size: 3rem;
    font-family: var(--font-display);
    color: var(--color-gold);
    opacity: 0.3;
    margin-bottom: 1rem;
    display: block;
}

/* Contact */
.contact-section {
    background: var(--bg-surface);
    padding: 8rem 0;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding: 1rem 0;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 1rem;
    margin-bottom: 2rem;
    transition: 0.3s;
}

.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-bottom-color: var(--color-gold);
}

/* Footer */
footer {
    padding: 4rem 0;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.social-links a { font-size: 1.5rem; }
.social-links a:hover { color: var(--color-gold); }

/* Animation Utility Classes */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease;
}

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

/* Mobile */
.mobile-menu-btn { display: none; color: white; background: none; border: none; font-size: 2rem; cursor: pointer; }

@media (max-width: 900px) {
    h1 { font-size: 3.5rem; }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 100%;
        background: var(--bg-body);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateX(100%);
        transition: 0.5s ease;
        z-index: 900;
    }
    
    .nav-links.active { transform: translateX(0); }
    .mobile-menu-btn { display: block; z-index: 1001; }
    
    .about-grid, .contact-layout, .features-grid { grid-template-columns: 1fr; gap: 3rem; }
    
    
    .project-card { min-width: 300px; }
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-body);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
    color: var(--color-gold);
}

.loader-text {
    font-family: var(--font-display);
    font-size: 2rem;
    letter-spacing: 0.1em;
    overflow: hidden; /* Ensures the content is not revealed until the animation */
    white-space: nowrap; /* Keeps the content on a single line */
    margin: 0 auto;
    animation: typing 3.5s steps(40, end), blink-caret .75s step-end infinite;
    border-right: .15em solid var(--color-gold);
}

.loader-line {
    width: 0;
    height: 2px;
    background: var(--color-gold);
    margin: 1rem auto 0;
    animation: lineGrow 2s ease-in-out forwards;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: var(--color-gold); }
}

@keyframes lineGrow {
    0% { width: 0; opacity: 0; }
    50% { opacity: 1; }
    100% { width: 100px; opacity: 1; }
}

/* --- V4 Additions: Futurism & Practicality --- */

/* 3D Tilt Effect Container */
.project-card {
    transform-style: preserve-3d;
    transform: perspective(1000px);
}

.project-img-container, .project-info {
    transform: translateZ(20px); /* Pop out effect */
    transition: transform 0.1s ease-out; /* Smooth movement for script */
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: 0.3s;
    animation: pulse-green 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #128C7E;
}

@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Process Section */
.process-section {
    padding: 8rem 0;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.process-steps {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 4rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.step-item {
    flex: 1;
    min-width: 200px;
    text-align: center;
    position: relative;
}

/* Connecting line (desktop only) */
.step-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 30px;
    right: -50%;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, var(--color-gold) 0%, transparent 100%);
    opacity: 0.3;
    z-index: -1;
}

.step-number {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    border: 1px solid var(--color-gold);
    border-radius: 50%;
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--color-gold);
    margin-bottom: 1.5rem;
    background: var(--bg-body);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.1);
    transition: 0.3s;
}

.step-item:hover .step-number {
    background: var(--color-gold);
    color: var(--bg-body);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.4);
}

.step-item h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.step-item p {
    font-size: 0.9rem;
}
