/* ===== CSS Variables - Trans-Electro Style ===== */
:root {
    --primary-color: #2986CC;
    --primary-dark: #004B87;
    --primary-light: #3d9fe0;
    --accent-red: #C41E3A;
    --accent-red-dark: #a01830;
    --text-dark: #1a1a1a;
    --text-light: #ffffff;
    --text-gray: #6b7280;
    --footer-bg: #1C1B1B;
    --gray: #949599;
    --light-gray: #f8f9fa;
    --border-color: #e5e7eb;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --transition: all 0.3s ease;
    --transition-fast: all 0.2s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #ffffff;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

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

/* ===== Typography ===== */
h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
}

h2 {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
}

h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 10px;
}

p {
    margin-bottom: 15px;
    color: var(--text-gray);
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-transform: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.btn-light {
    background-color: var(--text-light);
    color: var(--primary-dark);
}

.btn-light:hover {
    background-color: var(--light-gray);
    transform: translateY(-2px);
}

.btn-red {
    background-color: var(--accent-red);
    color: var(--text-light);
}

.btn-red:hover {
    background-color: var(--accent-red-dark);
}

/* ===== Top Bar ===== */
.top-bar {
    background-color: var(--primary-dark);
    padding: 10px 0;
    color: var(--text-light);
    font-size: 14px;
}

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

.top-bar-left {
    display: flex;
    gap: 25px;
}

.top-bar-left a {
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.9;
}

.top-bar-left a:hover {
    opacity: 1;
    color: #fff;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.social-links {
    display: flex;
    gap: 8px;
}

.social-links a {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    transition: var(--transition-fast);
}

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

/* ===== Language Switcher (Custom Dropdown) ===== */
.lang-switcher {
    position: relative;
    display: flex;
    align-items: center;
}

.lang-current {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-light);
    background-color: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    cursor: pointer;
    transition: var(--transition-fast);
    user-select: none;
}

.lang-current:hover {
    background-color: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.4);
}

.lang-current .lang-arrow {
    font-size: 8px;
    transition: transform 0.2s ease;
}

.lang-switcher.open .lang-current {
    background-color: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

.lang-switcher.open .lang-arrow {
    transform: rotate(180deg);
}

.lang-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    left: auto;
    min-width: 100%;
    width: max-content;
    background: var(--primary-dark);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    z-index: 10000;
    animation: langMenuIn 0.15s ease;
}

@keyframes langMenuIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.lang-switcher.open .lang-menu {
    display: block;
}

.lang-menu a {
    display: block;
    padding: 9px 16px;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
    transition: var(--transition-fast);
    text-align: center;
    text-decoration: none;
}

.lang-menu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

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

/* ===== Protected Info (SVG anti-copy) ===== */
.protected-info {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    pointer-events: none;
}

.protected-info svg {
    vertical-align: middle;
    display: inline-block;
}

/* ===== CAPTCHA Modal ===== */
.captcha-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
}

.captcha-overlay.active {
    display: flex;
}

.captcha-modal {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    animation: captchaSlideIn 0.3s ease;
}

@keyframes captchaSlideIn {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.captcha-modal h3 {
    margin-bottom: 8px;
    color: var(--text-dark);
}

.captcha-modal p {
    margin-bottom: 24px;
    font-size: 14px;
}

.captcha-checkbox-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 20px 24px;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    margin-bottom: 24px;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.captcha-checkbox-wrap:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(41, 134, 204, 0.1);
}

.captcha-checkbox {
    width: 28px;
    height: 28px;
    border: 2px solid #d1d5db;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.captcha-checkbox.checked {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.captcha-check-icon {
    color: #fff;
    font-size: 16px;
    line-height: 1;
}

.captcha-checkbox-wrap span {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-dark);
    user-select: none;
}

.captcha-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px 24px;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    margin-bottom: 24px;
}

.captcha-spinner-icon {
    width: 24px;
    height: 24px;
    border: 3px solid #e5e7eb;
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: captchaSpin 0.8s linear infinite;
}

@keyframes captchaSpin {
    to { transform: rotate(360deg); }
}

.captcha-spinner span {
    font-size: 14px;
    color: var(--text-light);
}

.captcha-success {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px 24px;
    background: #f0fdf4;
    border: 2px solid #86efac;
    border-radius: 12px;
    margin-bottom: 24px;
}

.captcha-success i {
    color: #22c55e;
    font-size: 22px;
}

.captcha-success span {
    font-size: 16px;
    font-weight: 600;
    color: #16a34a;
}

.captcha-actions {
    display: flex;
    gap: 10px;
}

.captcha-actions .btn {
    flex: 1;
}

.captcha-actions .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ===== Header ===== */
.header {
    background-color: #ffffff;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 50px;
    width: auto;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    letter-spacing: -0.5px;
}

.logo-subtitle {
    font-size: 0.7rem;
    color: var(--text-gray);
    display: block;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== Navigation ===== */
.nav-menu {
    display: flex;
    gap: 8px;
}

.nav-menu a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    padding: 10px 16px;
    border-radius: 6px;
    position: relative;
    transition: var(--transition-fast);
}

.nav-menu a:hover {
    color: var(--primary-color);
    background-color: rgba(41, 134, 204, 0.08);
}

.nav-menu a.active {
    color: var(--primary-color);
    background-color: rgba(41, 134, 204, 0.1);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    border-radius: 2px;
    transition: var(--transition);
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-dark) 0%, #001f3f 100%);
    color: var(--text-light);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../img/20230822-1ES_0688.jpg');
    background-size: 125% auto;
    background-position: left center;
    background-repeat: no-repeat;
}

.hero-bg-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, var(--primary-dark) 0%, var(--primary-dark) 15%, rgba(0,31,63,0.7) 45%, rgba(0,31,63,0.4) 70%, rgba(0,31,63,0.25) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
}

.hero-badge {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero p {
    font-size: 1.25rem;
    max-width: 550px;
    margin-bottom: 30px;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.9);
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* ===== Page Hero (smaller) ===== */
.page-hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #001f3f 100%);
    color: var(--text-light);
    padding: 80px 0;
    text-align: center;
    position: relative;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
}

.page-hero h1 {
    font-size: 2.75rem;
    margin-bottom: 15px;
    position: relative;
}

.breadcrumbs {
    display: flex;
    justify-content: center;
    gap: 10px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    position: relative;
}

.breadcrumbs a {
    color: var(--primary-color);
}

.breadcrumbs a:hover {
    color: var(--text-light);
}

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

.section-gray {
    background-color: var(--light-gray);
}

.section-blue {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--text-light);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title .badge {
    display: inline-block;
    color: var(--primary-color);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
}

.section-title h2 {
    color: var(--text-dark);
}

.section-title p {
    color: var(--text-gray);
    margin-top: 15px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== Stats Cards ===== */
.stats-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: -120px auto 60px;
    position: relative;
    z-index: 10;
}

.stat-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--text-light);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-xl);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-light);
}

.stat-card p {
    font-size: 0.95rem;
    opacity: 0.9;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
}

/* ===== Feature Cards ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.feature-card {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.feature-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--text-light);
    border-radius: 12px;
    font-size: 24px;
    margin-bottom: 20px;
}

.feature-card h4 {
    color: var(--text-dark);
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 0.95rem;
    margin: 0;
}

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

.card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.card-image {
    height: 200px;
    overflow: hidden;
    background-color: var(--light-gray);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.card-content {
    padding: 25px;
}

.card-content h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.card-content p {
    font-size: 0.95rem;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
    font-size: 13px;
    color: var(--gray);
}

/* ===== Service Cards ===== */
.service-card {
    text-align: center;
    padding: 40px 30px;
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--text-light);
    border-radius: 16px;
    font-size: 32px;
}

/* ===== Stats Section ===== */
.stats {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--text-light);
    padding: 70px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-item h3 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-light);
}

.stat-item p {
    font-size: 1rem;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.9);
}

/* ===== About Section ===== */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text .badge {
    display: inline-block;
    color: var(--primary-color);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
}

.about-text h2 {
    color: var(--text-dark);
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 20px;
}

.about-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== Benefits List ===== */
.benefits-list {
    list-style: none;
    padding: 0;
    margin: 25px 0;
}

.benefits-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.benefits-list li i {
    color: var(--primary-color);
    font-size: 18px;
    margin-top: 3px;
}

/* ===== Partners Section ===== */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 25px;
    align-items: center;
}

.partner-item {
    background-color: #ffffff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.partner-item:hover {
    transform: scale(1.05);
    border-color: var(--primary-color);
}

.partner-item img {
    max-height: 50px;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: var(--transition);
}

.partner-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* ===== Contact Section ===== */
.contact-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 400px;
}

.contact-left {
    background: linear-gradient(135deg, var(--accent-red) 0%, var(--accent-red-dark) 100%);
    color: var(--text-light);
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-left .logo {
    margin-bottom: 30px;
}

.contact-left .logo-text {
    color: var(--text-light);
}

.contact-left h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: var(--text-light);
}

.contact-info-list {
    list-style: none;
    padding: 0;
}

.contact-info-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 18px;
    font-size: 1rem;
}

.contact-info-list li i {
    width: 20px;
    opacity: 0.9;
}

.contact-right {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--text-light);
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-right h4 {
    font-size: 1.25rem;
    margin-bottom: 20px;
    color: var(--text-light);
}

.contact-right ul {
    list-style: none;
    padding: 0;
}

.contact-right ul li {
    margin-bottom: 12px;
}

.contact-right ul li a {
    color: rgba(255, 255, 255, 0.9);
    transition: var(--transition-fast);
}

.contact-right ul li a:hover {
    color: var(--text-light);
    padding-left: 5px;
}

/* Contact Grid (alternative) */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info h3 {
    margin-bottom: 30px;
    color: var(--text-dark);
}

.contact-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--text-light);
    border-radius: 12px;
    flex-shrink: 0;
}

.contact-text h4 {
    font-size: 1rem;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.contact-text p {
    margin: 0;
}

/* ===== Contact Form ===== */
.contact-form {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

.contact-form h3 {
    margin-bottom: 25px;
    color: var(--text-dark);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 15px;
    transition: var(--transition-fast);
    background-color: var(--light-gray);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(41, 134, 204, 0.1);
}

.form-group textarea {
    min-height: 140px;
    resize: vertical;
}

/* ===== Map ===== */
.map-container {
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 50px;
    box-shadow: var(--shadow);
}

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

/* ===== News Section ===== */
.news-card .card-meta {
    color: var(--primary-color);
    font-weight: 500;
}

.news-date {
    color: var(--primary-color);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 10px;
}

/* ===== Catalog Section ===== */
.catalog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.catalog-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 24px;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    background: transparent;
    cursor: pointer;
    transition: var(--transition-fast);
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--primary-color);
    color: var(--text-light);
    border-color: var(--primary-color);
}

.download-catalog {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ===== Projects Gallery ===== */
.project-card {
    position: relative;
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    color: var(--text-light);
    padding: 30px 20px 20px;
}

.project-overlay h3 {
    color: var(--text-light);
    margin-bottom: 5px;
}

.project-overlay p {
    font-size: 14px;
    opacity: 0.9;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
}

/* ===== Timeline ===== */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 3px;
}

.timeline-item {
    position: relative;
    padding-bottom: 30px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -34px;
    top: 0;
    width: 14px;
    height: 14px;
    background-color: var(--primary-color);
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: var(--shadow);
}

.timeline-year {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
    font-size: 1.1rem;
}

/* ===== Footer ===== */
.footer {
    background-color: var(--footer-bg);
    color: var(--text-light);
    padding: 70px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-about .logo {
    margin-bottom: 20px;
}

.footer-about .logo-text {
    color: var(--text-light);
}

.footer-about p {
    color: var(--gray);
    font-size: 14px;
    line-height: 1.7;
}

.footer h4 {
    font-size: 1.1rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 12px;
    color: var(--text-light);
}

.footer h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--gray);
    font-size: 14px;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--gray);
    font-size: 14px;
    margin-bottom: 15px;
}

.footer-contact p i {
    color: var(--primary-color);
    width: 16px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px 0;
    margin-top: 50px;
    text-align: center;
    color: var(--gray);
    font-size: 14px;
}

/* ===== CTA Section ===== */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--text-light);
    padding: 80px 0;
    text-align: center;
}

.cta-section h2 {
    color: var(--text-light);
    margin-bottom: 15px;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto 30px;
}

/* ===== Admin Panel ===== */
.admin-bar {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-toggle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%);
    color: var(--text-light);
    border: none;
    cursor: pointer;
    font-size: 22px;
    box-shadow: 0 4px 20px rgba(238, 90, 90, 0.4);
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.admin-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(238, 90, 90, 0.5);
}

.admin-toggle.active {
    background: linear-gradient(135deg, #28a745 0%, #218838 100%);
    animation: none;
    box-shadow: 0 4px 20px rgba(40, 167, 69, 0.4);
}

.admin-label {
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 10px 18px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    animation: fadeInOut 3s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 4px 20px rgba(238, 90, 90, 0.4); }
    50% { box-shadow: 0 4px 30px rgba(238, 90, 90, 0.7); }
    100% { box-shadow: 0 4px 20px rgba(238, 90, 90, 0.4); }
}

@keyframes fadeInOut {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.admin-panel {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 380px;
    height: 100vh;
    background-color: #ffffff;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.15);
    z-index: 9998;
    overflow-y: auto;
}

.admin-panel.active {
    display: block;
}

.admin-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--text-light);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-close {
    background: transparent;
    border: none;
    color: var(--text-light);
    font-size: 28px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.admin-close:hover {
    transform: rotate(90deg);
}

.admin-content {
    padding: 25px;
}

.admin-section {
    margin-bottom: 30px;
}

.admin-section h4 {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-dark);
}

[contenteditable="true"] {
    outline: 2px dashed var(--primary-color);
    outline-offset: 3px;
    border-radius: 4px;
}

[contenteditable="true"]:focus {
    outline-color: var(--accent-red);
    background-color: rgba(41, 134, 204, 0.05);
}

/* ===== Form Select Styles ===== */
.form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 15px;
    transition: var(--transition-fast);
    background-color: var(--light-gray);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(41, 134, 204, 0.1);
}

/* ===== Responsive ===== */

/* Large tablets and small desktops */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid,
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image {
        order: -1;
    }

    .stats-cards {
        grid-template-columns: 1fr;
        margin-top: -80px;
    }

    .contact-section {
        grid-template-columns: 1fr;
    }

    .catalog-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .download-catalog {
        width: 100%;
    }

    .download-catalog .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Tablets */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    /* Hero Section */
    .hero {
        min-height: auto;
        padding: 60px 0;
    }

    .hero h1 {
        font-size: 2rem;
        line-height: 1.2;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    /* Navigation */
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #ffffff;
        flex-direction: column;
        padding: 15px;
        box-shadow: var(--shadow-lg);
        gap: 0;
        max-height: 70vh;
        overflow-y: auto;
    }

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

    .nav-menu a {
        padding: 15px;
        border-bottom: 1px solid var(--border-color);
        border-radius: 0;
        text-align: center;
        font-size: 16px;
    }

    .nav-menu a:last-child {
        border-bottom: none;
    }

    .menu-toggle {
        display: flex;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    /* Top Bar */
    .top-bar {
        padding: 8px 0;
    }

    .top-bar .container {
        flex-direction: column;
        gap: 8px;
    }

    .top-bar-left {
        flex-direction: column;
        gap: 5px;
        align-items: center;
        font-size: 13px;
    }

    .top-bar-right {
        gap: 15px;
    }

    .lang-current {
        padding: 4px 10px;
        font-size: 11px;
    }

    /* Page Hero */
    .page-hero {
        padding: 50px 0;
    }

    .page-hero h1 {
        font-size: 1.75rem;
    }

    .breadcrumbs {
        font-size: 13px;
        flex-wrap: wrap;
        justify-content: center;
    }

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

    .section-title {
        margin-bottom: 35px;
    }

    .section-title h2 {
        font-size: 1.5rem;
    }

    /* Footer */
    .footer {
        padding: 50px 0 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 35px;
        text-align: center;
    }

    .footer h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-about .social-links {
        justify-content: center;
    }

    .footer-contact p {
        justify-content: center;
    }

    .footer-bottom {
        margin-top: 35px;
        padding: 20px 0;
    }

    /* Stats */
    .stats {
        padding: 50px 0;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .stat-item h3 {
        font-size: 2rem;
    }

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

    /* Cards */
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .card-content {
        padding: 20px;
    }

    /* Features */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .feature-card {
        padding: 25px;
    }

    /* Catalog */
    .catalog-filters {
        width: 100%;
        justify-content: center;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 13px;
        flex: 1;
        min-width: auto;
    }

    /* Contact */
    .contact-grid {
        gap: 30px;
    }

    .contact-form {
        padding: 25px;
    }

    .contact-left,
    .contact-right {
        padding: 35px 25px;
    }

    .contact-item {
        margin-bottom: 20px;
    }

    .contact-icon {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    /* Map */
    .map-container {
        height: 300px;
        margin-top: 35px;
    }

    /* About - Mission/Vision */
    .cards-grid[style*="repeat(2, 1fr)"] {
        grid-template-columns: 1fr !important;
    }

    /* CTA */
    .cta-section {
        padding: 50px 0;
    }

    .cta-section h2 {
        font-size: 1.5rem;
    }

    /* Admin Panel */
    .admin-panel {
        width: 100%;
        max-width: 100%;
    }

    .admin-bar {
        bottom: 15px;
        right: 15px;
    }

    .admin-label {
        display: none;
    }

    .admin-toggle {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    /* Timeline */
    .timeline {
        padding-left: 25px;
    }

    .timeline-item::before {
        left: -29px;
        width: 12px;
        height: 12px;
    }
}

/* Mobile phones */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    body {
        font-size: 15px;
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.35rem;
    }

    /* Header */
    .header .container {
        padding: 10px 15px;
    }

    .logo img {
        height: 40px;
    }

    .logo-text {
        font-size: 1.25rem;
    }

    /* Hero */
    .hero {
        padding: 40px 0;
    }

    .hero h1 {
        font-size: 1.5rem;
        letter-spacing: 1px;
    }

    .hero p {
        font-size: 0.9rem;
    }

    .hero-badge {
        font-size: 11px;
        padding: 5px 10px;
    }

    .hero-bg-image {
        background-position: 35% center;
    }

    /* Buttons */
    .btn {
        padding: 12px 20px;
        font-size: 14px;
        width: 100%;
        justify-content: center;
    }

    /* Stats Cards */
    .stats-cards {
        margin-top: -40px;
        gap: 10px;
    }

    .stat-card {
        padding: 15px 10px;
    }

    .stat-card h3 {
        font-size: 1.5rem;
    }

    .stat-card p {
        font-size: 11px;
    }

    /* Stats */
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }

    .stat-item h3 {
        font-size: 1.75rem;
    }

    .stat-item p {
        font-size: 0.8rem;
    }

    /* Catalog filters */
    .catalog-filters {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .filter-btn {
        padding: 10px 12px;
        font-size: 12px;
        border-radius: 8px;
    }

    /* Page Hero */
    .page-hero {
        padding: 35px 0;
    }

    .page-hero h1 {
        font-size: 1.5rem;
    }

    /* Contact */
    .contact-form {
        padding: 20px 15px;
    }

    .contact-info h3 {
        font-size: 1.2rem;
    }

    .contact-item {
        flex-direction: row;
        align-items: flex-start;
        gap: 12px;
    }

    .contact-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
        border-radius: 10px;
    }

    .contact-text h4 {
        font-size: 14px;
    }

    .contact-text p,
    .contact-text .protected-info {
        font-size: 13px;
    }

    .protected-info svg {
        max-width: 100%;
        height: auto;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 12px 14px;
        font-size: 14px;
    }

    /* Map */
    .map-container {
        height: 280px;
        margin-top: 25px;
        border-radius: 10px;
    }

    #contact-map {
        min-height: 280px !important;
    }

    /* Cards */
    .card-image {
        height: 180px;
    }

    .card-content h3 {
        font-size: 1.1rem;
    }

    /* Feature cards */
    .feature-card {
        padding: 20px;
    }

    .feature-icon {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }

    /* Section */
    .section {
        padding: 40px 0;
    }

    .section-title p {
        font-size: 14px;
    }

    /* Photo strip gallery */
    .photo-strip-item {
        width: 220px;
    }

    .photo-strip-item img {
        height: 150px;
    }

    .photo-strip-caption {
        padding: 8px 10px;
        font-size: 11px;
    }

    .photo-gallery-section {
        padding-bottom: 40px;
    }

    /* Gallery grid (VIN) */
    .gallery-grid {
        gap: 20px;
    }

    .gallery-caption {
        font-size: 12px;
    }

    /* Lightbox */
    .lightbox-overlay img {
        max-width: 95%;
        max-height: 80vh;
    }

    .lightbox-close {
        top: 10px;
        right: 15px;
        font-size: 30px;
    }

    .lightbox-arrow {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .lightbox-prev {
        left: 5px;
    }

    .lightbox-next {
        right: 5px;
    }

    /* Timeline */
    .timeline {
        padding-left: 20px;
    }

    .timeline-item {
        padding: 15px 0 15px 20px;
    }

    .timeline-year {
        font-size: 1.1rem;
    }

    .timeline-item p {
        font-size: 13px;
    }

    .timeline-item::before {
        left: -24px;
        width: 10px;
        height: 10px;
    }

    /* Social links */
    .social-links a {
        width: 36px;
        height: 36px;
    }

    /* Top bar */
    .top-bar-left a {
        font-size: 12px;
    }

    /* About content */
    .about-content {
        gap: 25px;
    }

    .about-image {
        min-height: 220px !important;
    }

    .about-text p {
        font-size: 14px;
        line-height: 1.7;
    }

    /* Benefits list */
    .benefits-list li {
        font-size: 14px;
    }

    /* Project cards */
    .project-overlay {
        padding: 15px 12px 12px;
    }

    .project-overlay h3 {
        font-size: 1rem;
    }

    .project-overlay p {
        font-size: 12px;
    }

    /* News card */
    .news-date {
        font-size: 12px;
    }

    /* CTA Section */
    .cta-section {
        padding: 40px 0;
    }

    .cta-section p {
        font-size: 14px;
    }

    /* Footer */
    .footer {
        padding: 40px 0 0;
    }

    .footer h4 {
        font-size: 16px;
    }

    .footer p, .footer li, .footer a {
        font-size: 13px;
    }

    .footer-bottom {
        padding: 15px 0;
        font-size: 12px;
    }

    /* Admin panel */
    .admin-content {
        padding: 20px;
    }

    .admin-header {
        padding: 15px;
    }

    .admin-toggle {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    .admin-logout {
        font-size: 11px !important;
        padding: 6px 10px !important;
    }
}

/* Very small phones */
@media (max-width: 360px) {
    .container {
        padding: 0 12px;
    }

    h1 {
        font-size: 1.35rem;
    }

    h2 {
        font-size: 1.15rem;
    }

    .hero h1 {
        font-size: 1.35rem;
    }

    .hero p {
        font-size: 0.85rem;
    }

    .stats-cards {
        margin-top: -30px;
    }

    .stat-card h3 {
        font-size: 1.3rem;
    }

    .stat-card p {
        font-size: 10px;
    }

    .stats-grid {
        gap: 10px;
    }

    .stat-item h3 {
        font-size: 1.5rem;
    }

    .catalog-filters {
        grid-template-columns: 1fr 1fr;
    }

    .filter-btn {
        padding: 8px 10px;
        font-size: 11px;
    }

    .lang-current {
        padding: 3px 8px;
        font-size: 10px;
    }

    .photo-strip-item {
        width: 190px;
    }

    .photo-strip-item img {
        height: 130px;
    }

    .contact-icon {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .timeline-year {
        font-size: 1rem;
    }
}

/* Landscape orientation on phones */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 40px 0;
    }

    .page-hero {
        padding: 30px 0;
    }

    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ===== Utilities ===== */
.text-center {
    text-align: center;
}

.text-primary {
    color: var(--primary-color);
}

.text-white {
    color: var(--text-light);
}

.mb-0 {
    margin-bottom: 0;
}

.mt-30 {
    margin-top: 30px;
}

.mt-50 {
    margin-top: 50px;
}

.hidden {
    display: none;
}

/* ===== Photo Strip (horizontal scrollable gallery) ===== */
.photo-gallery-section {
    padding-bottom: 60px;
}

.photo-strip {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0 20px 15px;
    cursor: grab;
}

.photo-strip::-webkit-scrollbar {
    display: none;
}

.photo-strip-track {
    display: flex;
    gap: 20px;
    width: max-content;
}

.photo-strip-item {
    position: relative;
    flex-shrink: 0;
    width: 320px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.photo-strip-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.photo-strip-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    cursor: zoom-in;
}

.photo-strip-caption {
    padding: 12px 16px;
    background: #fff;
    font-size: 13px;
    font-weight: 500;
    color: #334155;
    text-align: center;
}

@media (max-width: 768px) {
    .photo-strip-item {
        width: 260px;
    }

    .photo-strip-item img {
        height: 180px;
    }
}

/* ===== Gallery Grid ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

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

.gallery-img {
    width: 100%;
    border-radius: 12px;
    cursor: zoom-in;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.gallery-img:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.gallery-caption {
    margin-top: 12px;
    font-size: 14px;
    color: #64748b;
    line-height: 1.5;
}

/* Lightbox */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    cursor: zoom-out;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-overlay img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 36px;
    cursor: pointer;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.lightbox-close:hover {
    opacity: 1;
}

.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 28px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    cursor: pointer;
    transition: background 0.2s;
    z-index: 10001;
}

.lightbox-arrow:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .lightbox-arrow {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }
}

/* ===== Placeholder for images ===== */
.placeholder-img {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 14px;
    font-weight: 500;
}
