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

:root {
    --bg-dark: #111111;
    --bg-darker: #080808;
    --color-primary: #cc0000;
    --color-primary-hover: #ff1a1a;
    --text-main: #e0e0e0;
    --text-muted: #999999;
    --font-sans: 'Montserrat', sans-serif;
    --font-script: 'Great Vibes', cursive;
    --glass-bg: rgba(25, 25, 25, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
    --transition-speed: 0.3s;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    background-image: linear-gradient(rgba(17, 17, 17, 0.94), rgba(17, 17, 17, 0.94)), url('../assets/images/carbon_texture.png?v=2');
    background-size: 500px;
    background-repeat: repeat;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 15px;
}

.text-center {
    text-align: center;
}

/* Utilities */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 30px;
    transition: transform var(--transition-speed), border-color var(--transition-speed), box-shadow var(--transition-speed);
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(204, 0, 0, 0.4);
    box-shadow: 0 10px 30px rgba(204, 0, 0, 0.15);
}

.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, var(--color-primary), #8a0000);
    color: #fff;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid transparent;
    transition: all var(--transition-speed);
    cursor: pointer;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--color-primary-hover), var(--color-primary));
    box-shadow: 0 5px 20px rgba(204, 0, 0, 0.4);
    border-color: #ff4d4d;
}

.btn-small {
    padding: 8px 20px;
    font-size: 0.9rem;
}

/* Header */
#main-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    transition: background var(--transition-speed), border-bottom var(--transition-speed);
    padding: 20px 0;
    border-bottom: 1px solid transparent;
}

#main-header.scrolled {
    background: rgba(17, 17, 17, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    padding: 15px 0;
}

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

.logo-link {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1;
}

.logo-text-script {
    font-family: var(--font-script);
    font-size: 2.5rem;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.logo-text-sans {
    font-size: 0.7rem;
    letter-spacing: 4px;
    color: var(--text-muted);
    font-weight: 800;
    margin-top: -5px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

/* Language Switcher */
.lang-switcher {
    display: flex;
    gap: 10px;
    margin-left: 20px;
}

.lang-btn {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--transition-speed);
    font-family: var(--font-sans);
    font-weight: 600;
}

.lang-btn:hover {
    color: #fff;
    border-color: rgba(255,255,255, 0.5);
}

.lang-btn.active {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #fff;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    background-image: url('../assets/images/loft_workshop_hero.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(17, 17, 17, 0.7) 0%, rgba(17, 17, 17, 1) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-title {
    font-size: 4.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.accent-red {
    color: var(--color-primary);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

/* Sections */
.section {
    padding: 100px 0;
}

.dark-section {
    background-color: rgba(17, 17, 17, 0.5);
}

.texture-section {
    background-color: transparent;
}

.section-title-wrap {
    margin-bottom: 50px;
}

.section-title {
    font-size: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.title-underline {
    height: 3px;
    width: 60px;
    background-color: var(--color-primary);
    margin-top: 10px;
}

.center-line {
    margin: 10px auto 0 auto;
}

/* About Grid */
.about-grid {
    max-width: 800px;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.about-text p:last-child {
    margin-bottom: 0;
}

/* Production Grid */
.production-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.prod-icon {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 20px;
}

/* Technologies Grid */
.tech-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.tech-item {
    display: flex;
    align-items: center;
    gap: 30px;
}

.tech-icon-wrapper {
    background: var(--bg-darker);
    border: 1px solid var(--glass-border);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--text-main);
    transition: all var(--transition-speed);
}

.tech-item:hover .tech-icon-wrapper {
    border-color: var(--color-primary);
    color: var(--color-primary);
    box-shadow: 0 0 20px rgba(204, 0, 0, 0.3);
}

.tech-info h4 {
    margin-bottom: 5px;
    font-size: 1.3rem;
}

/* Projects & Video */
.video-loader-card {
    margin-bottom: 40px;
    text-align: center;
}

.yt-form {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.form-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 12px 20px;
    color: #fff;
    border-radius: 4px;
    font-family: var(--font-sans);
    outline: none;
    transition: border-color var(--transition-speed);
}

.form-input:focus {
    border-color: var(--color-primary);
}

.yt-form .form-input {
    max-width: 400px;
}

.video-container {
    width: 100%;
    aspect-ratio: 16/9;
    margin-top: 30px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--color-primary);
}

.video-container-hidden {
    display: none;
}

.video-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
}

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

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

.gallery-overlay {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    color: #fff;
    font-weight: 600;
    transition: bottom 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    bottom: 0;
}

/* Contacts */
.contacts-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-list {
    list-style: none;
    margin-top: 30px;
}

.contact-list li {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-list i {
    color: var(--color-primary);
    font-size: 1.2rem;
}

.social-links {
    margin-top: 30px;
    display: flex;
    gap: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    transition: all var(--transition-speed);
}

.social-links a:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    transform: translateY(-3px);
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.btn-submit {
    width: 100%;
}

/* Footer */
footer {
    background: #050505;
    padding: 30px 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    border-top: 1px solid var(--glass-border);
}

/* Lightbox Modal */
.lightbox-overlay {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
    border: 2px solid var(--color-primary);
    box-shadow: 0 0 30px rgba(204, 0, 0, 0.3);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

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

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

    .contacts-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(17, 17, 17, 0.95);
        padding: 20px;
        border-bottom: 1px solid var(--glass-border);
    }

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

    .mobile-menu-toggle {
        display: block;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .yt-form {
        flex-direction: column;
    }

    .yt-form .form-input {
        max-width: 100%;
    }
}