/* 
  LINDMARK MACHINE WORKS - Modern Design System 
  Pure CSS3 / No JavaScript UI
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap');

:root {
    --primary: #CC3300;
    /* Precision Red */
    --accent: #FFCC00;
    /* Industrial Yellow */
    --bg-dark: #0F1115;
    /* Deep Charcoal */
    --bg-card: #1C1F26;
    /* Steel Grey */
    --text-main: #E2E8F0;
    --text-muted: #94A3B8;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --container-width: 1300px;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Typography Enhancements */
h1,
h2,
h3,
h4 {
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

/* --- Header & Navigation --- */
header {
    background: linear-gradient(135deg, #000 0%, #1a1a1a 100%);
    padding: 3rem 1rem;
    text-align: center;
    border-bottom: 2px solid var(--primary);
}

header h1 {
    font-size: clamp(2rem, 5vw, 4rem);
    color: var(--accent);
    margin: 0;
    text-shadow: 0 4px 20px rgba(255, 204, 0, 0.2);
}

.since {
    color: var(--primary);
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 0.3em;
    margin-top: 0.5rem;
}

nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(15, 17, 21, 0.85);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
}

nav ul {
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 1rem;
}

nav a {
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-muted);
    border-radius: 8px;
}

nav a:hover,
nav a.active {
    color: #fff;
    background: var(--glass);
    box-shadow: inset 0 0 0 1px var(--glass-border);
}

/* Standard Pure CSS Dropdown */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-card);
    min-width: 240px;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    padding: 0.5rem;
}

.dropdown:hover .dropdown-content {
    display: block;
    animation: slideUp 0.3s ease;
}

.dropdown-content a {
    display: block;
    padding: 0.8rem 1rem;
    font-weight: 400;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Main Layout --- */
main {
    max-width: var(--container-width);
    margin: 4rem auto;
    padding: 0 2rem;
}

.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 6rem;
}

.hero-image {
    width: 100%;
    height: auto;
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--glass-border);
}

.hero h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.1;
    background: linear-gradient(to bottom right, #fff, #888);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Content Sections */
.page-content {
    background: var(--bg-card);
    padding: 4rem;
    border-radius: 32px;
    border: 1px solid var(--glass-border);
}

.content h2 {
    margin-bottom: 2rem;
    color: var(--accent);
}

.content p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* Custom Grid for Capabilities */
.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin: 4rem 0;
}

.capability-item {
    background: var(--glass);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.capability-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-8px);
    border-color: var(--primary);
}

.capability-item h4 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.capability-item ul {
    list-style: none;
}

.capability-item li {
    color: var(--text-muted);
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.capability-item li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary);
}

/* --- Gallery & Lightbox --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.gallery-item {
    cursor: pointer;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--glass-border);
    background: var(--glass);
    transition: var(--transition);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
    transition: var(--transition);
    filter: grayscale(20%);
}

.gallery-item:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.gallery-item:hover img {
    transform: scale(1.05);
    filter: grayscale(0%);
}

.gallery-item:after {
    content: "VIEW PHOTO";
    position: absolute;
    inset: 0;
    background: rgba(204, 51, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    color: #fff;
}

.gallery-item:hover:after {
    opacity: 1;
}

.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox img {
    max-width: 90%;
    max-height: 85%;
    border-radius: 12px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 1);
    border: 1px solid var(--glass-border);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox.active img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #fff;
    font-size: 40px;
    font-weight: 300;
}

/* --- Footer --- */
footer {
    background: #000;
    padding: 6rem 1rem 4rem;
    margin-top: 8rem;
    border-top: 1px solid var(--glass-border);
}

.vcard {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    text-align: center;
}

.org {
    font-size: 2rem;
    color: var(--accent);
    font-weight: 800;
}

.adr {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.tel {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    border-bottom: 2px solid var(--primary);
}

/* --- Parallax Section --- */
.parallax-section {
    position: relative;
    padding: 8rem 2rem;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 6rem 0;
    border-radius: 32px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.parallax-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(15, 17, 21, 0.8), rgba(15, 17, 21, 0.5));
    z-index: 1;
}

.parallax-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
}

.parallax-content h3 {
    font-size: clamp(1.8rem, 5vw, 3rem);
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.parallax-content p {
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 2.5rem;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 900px) {
    .parallax-section {
        background-attachment: scroll;
        padding: 5rem 1rem;
    }

    .hero {
        grid-template-columns: 1fr;
        text-align: center;
    }

    nav ul {
        flex-wrap: wrap;
    }

    .page-content {
        padding: 2rem;
    }
}

@media (max-width: 600px) {
    .tel {
        font-size: 1.5rem;
    }

    nav a {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }
}