/* =========================================
   ALBMETAL PREMIUM THEME - 2025 REBUILD
   "Industrial Elegance"
   ========================================= */

:root {
    --bg-dark: #121212;
    --bg-card: #1e2024;
    --primary-gold: #d4af37;
    --primary-gold-dim: #b8962d;
    --text-white: #ffffff;
    --text-gray: #a0a0a0;
    --font-main: 'Inter', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Font-display swap is handled via Google Fonts URL parameter &display=swap */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

/* --- TYPOGRAPHY --- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 0.5em;
    letter-spacing: -0.02em;
}

p {
    color: var(--text-gray);
    margin-bottom: 1.5em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* --- BUTTONS --- */
.btn {
    display: inline-block;
    padding: 1em 2.5em;
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-gold {
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--primary-gold-dim) 100%);
    color: #000;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

/* --- HEADER --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1em 5%;
    background: rgba(18, 18, 18, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8em;
    text-decoration: none;
}

.logo-text {
    font-size: 1.5em;
    font-weight: 800;
    color: var(--text-white);
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.logo img {
    height: 40px;
    /* Slightly smaller to balance with text */
    width: auto;
}

nav ul {
    display: flex;
    gap: 2em;
    list-style: none;
}

nav a {
    font-size: 0.95em;
    font-weight: 500;
    opacity: 0.8;
}

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

.menu-toggle {
    display: none;
    font-size: 1.5em;
    color: var(--text-white);
}

/* --- LANGUAGE SWITCHER --- */
.lang-switch {
    display: flex;
    align-items: center;
    gap: 0.5em;
    /* Margin removed; relying on li spacing or specific margin on li element if needed */
}

.lang-item {
    margin-left: 1.5em;
    padding-left: 1.5em;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
}

.lang-link {
    font-size: 0.75em;
    font-weight: 700;
    color: var(--text-gray);
    transition: var(--transition);
    text-transform: uppercase;
    padding: 0.4em 0.8em;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.lang-link:hover {
    border-color: var(--primary-gold);
    color: var(--primary-gold);
}

.lang-link.active {
    background: var(--primary-gold);
    color: #000;
    border-color: var(--primary-gold);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.lang-separator {
    display: none;
    /* Hide separator for box design */
}


/* --- HERO SECTION --- */
.hero {
    height: 100vh;
    width: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.7)), url('../../images/1111.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 1em;
    position: relative;
}

.hero-content {
    max-width: 800px;
    animation: fadeUp 1s ease-out;
}

.hero h1 {
    font-size: 3.5em;
    line-height: 1.1;
    margin-bottom: 0.5em;
    text-transform: uppercase;
}

.hero p {
    font-size: 1.25em;
    max-width: 600px;
    margin: 0 auto 2em auto;
}

.scroll-indicator {
    position: absolute;
    bottom: 2em;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    opacity: 0.7;
}

/* --- SECTIONS GENERAL --- */
section {
    padding: 5em 5%;
}

.section-title {
    text-align: center;
    margin-bottom: 3em;
}

.section-title h2 {
    font-size: 2.5em;
    display: inline-block;
    position: relative;
    padding-bottom: 0.5em;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-gold);
}

/* --- PRODUCTS GRID --- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2em;
    max-width: 1200px;
    margin: 0 auto;
}

.product-card {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    height: 400px;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: flex-end;
    text-decoration: none;
    /* For the link wrapper */
}

/* Image Background via CSS to avoid layout shifts */
.product-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%);
    z-index: 1;
}

.product-content {
    position: relative;
    z-index: 2;
    padding: 2em;
    width: 100%;
    transform: translateY(0);
    transition: var(--transition);
}

.product-card h3 {
    font-size: 1.5em;
    margin-bottom: 0.2em;
    color: var(--text-white);
}

.product-card p {
    font-size: 0.95em;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.8);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-color: rgba(212, 175, 55, 0.3);
}

.product-card:hover .product-card-bg {
    transform: scale(1.05);
}

/* --- ABOUT SECTION PROFESSIONAL --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4em;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

.about-content {
    text-align: left;
    padding-right: 2em;
}

.about-lead {
    font-size: 1.35em;
    color: var(--primary-gold);
    margin-bottom: 1.25em;
    font-weight: 500;
    line-height: 1.5;
    border-left: 4px solid var(--primary-gold);
    padding-left: 1.25em;
    letter-spacing: 0.5px;
}

.about-text p {
    margin-bottom: 1.6em;
    font-size: 1.1em;
    color: #ffffff;
    /* Pure white as requested */
    line-height: 1.8;
    font-weight: 400;
}

.about-visual {
    position: relative;
}

.about-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 20px 20px 0px rgba(30, 32, 36, 1),
        20px 20px 0px 2px rgba(212, 175, 55, 0.2);
    /* Corporate styling frame */
    transition: transform 0.5s ease;
}

.about-visual:hover .about-image {
    transform: translateY(-5px);
}

/* Mobile Adaptation */
@media screen and (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3em;
    }

    .about-content {
        padding-right: 0;
        order: 2;
        /* Image first on mobile? Or text first? Let's keep text first for storytelling */
    }

    .about-image {
        box-shadow: 10px 10px 0px rgba(30, 32, 36, 1),
            10px 10px 0px 2px rgba(212, 175, 55, 0.2);
    }
}

/* --- CONTACT SECTION --- */
.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 3em;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-form-wrapper,
.contact-info-wrapper {
    flex: 1;
    min-width: 300px;
}

.form-group {
    margin-bottom: 1.5em;
}

.form-group label {
    display: block;
    margin-bottom: 0.5em;
    font-size: 0.9em;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 1em;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-white);
    font-family: inherit;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-gold);
    background: rgba(255, 255, 255, 0.08);
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2em;
    padding: 1.5em;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.info-icon {
    font-size: 1.5em;
    color: var(--primary-gold);
    margin-right: 1em;
    min-width: 24px;
}

.info-text h3,
.info-text h4 {
    margin-bottom: 0.3em;
    font-size: 1.1em;
    font-weight: 600;
}

.info-text p,
.info-text a {
    margin: 0;
    font-size: 0.95em;
    color: var(--text-gray);
}

#map-frame {
    width: 100%;
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 2em;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- FOOTER --- */
footer {
    background: #000;
    padding: 3em 5%;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

.social-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-btn:hover {
    background: var(--primary-gold);
    color: #000;
    transform: translateY(-3px);
}

.copyright p {
    font-size: 0.9em;
    margin: 0.5em 0;
    color: #b0b0b0;
}

.copyright a {
    color: var(--primary-gold);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.copyright a:hover {
    color: #fff;
}

/* --- MOBILE RESPONSIVE --- */
@media screen and (max-width: 768px) {
    .menu-toggle {
        display: block;
        cursor: pointer;
    }

    nav ul {
        display: none;
        /* Would implement JS toggle here */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-card);
        flex-direction: column;
        padding: 2em;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    /* Simple JS-less hover menu for now or we add JS later */
    nav:hover ul {
        display: flex;
    }

    .hero h1 {
        font-size: 2.2em;
    }

    /* Mobile Performance: Disable fixed attachment (causes GPU issues) and use smaller image */
    .hero,
    .page-hero {
        background-attachment: scroll;
        background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.7)), url('../../images/1111-mobile.jpg');
    }

    .hero {
        background-position: center top;
    }

    .products-grid {
        grid-template-columns: 1fr;
        /* Full width cards */
        gap: 1.5em;
    }

    .product-card {
        height: 300px;
        /* Optimal mobile height */
    }

    .section {
        padding: 4em 1em;
    }

    .contact-container {
        flex-direction: column;
    }

    .lang-item {
        margin: 1em 0 0 0;
        padding: 1em 0 0 0;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        width: 100%;
        justify-content: center;
    }

    .lang-switch {
        justify-content: center;
    }
}

/* Animation Defs */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* =========================================
   SUBPAGES STYLING
   ========================================= */

/* --- PAGE HERO --- */
.page-hero {
    height: 50vh;
    min-height: 400px;
    width: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    margin-bottom: 4em;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

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

.page-hero h1 {
    font-size: 3.5em;
    margin-bottom: 0.2em;
}

/* --- GALLERY GRID --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    /* Clean responsive grid */
    gap: 1.5em;
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    /* Square images looks professional */
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: var(--bg-card);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 1.5em;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-title {
    color: var(--text-white);
    font-size: 1.2em;
    font-weight: 600;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-title {
    transform: translateY(0);
}

/* Mobile Gallery Tweaks */
@media screen and (max-width: 768px) {
    .page-hero {
        height: 40vh;
        min-height: 300px;
    }

    .page-hero h1 {
        font-size: 2.5em;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
        /* Full width on mobile */
        gap: 1em;
    }

    .gallery-item {
        aspect-ratio: 4/3;
        /* Slightly shorter on mobile */
    }

    .gallery-overlay {
        opacity: 1;
        /* Always show text on mobile */
        background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    }

    .gallery-title {
        transform: translateY(0);
        font-size: 1.1em;
    }
}

/* --- LIGHTBOX --- */
#lightbox {
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

#lightbox.active {
    display: flex;
    animation: fadeIn 0.3s;
}

#lightbox img {
    max-width: 90%;
    max-height: 90%;
    border: 2px solid var(--primary-gold);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    border-radius: 4px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 3rem;
    color: white;
    cursor: pointer;
    transition: 0.3s;
}

.lightbox-close:hover {
    color: var(--primary-gold);
}

/* Make gallery items clickable cursor */
.gallery-item img {
    cursor: zoom-in;
    transition: transform 0.3s ease;
}