/* ==========================================================================
   İMZA MEKATRONİK - STYLESHEET
   ========================================================================== */

/* --- Design Tokens / Variables --- */
:root {
    --primary: #0056b3;
    --primary-hover: #0076f7;
    --primary-glow: rgba(0, 86, 179, 0.45);
    
    --bg-darker: #080c14;
    --bg-dark: #0f172a;
    --bg-card: #1e293b;
    --bg-card-hover: #26354a;
    
    --border-color: #1e293b;
    --border-light: rgba(255, 255, 255, 0.08);
    
    --text-white: #ffffff;
    --text-light: #f1f5f9;
    --text-muted: #94a3b8;
    --text-dark: #0f172a;
    
    --success: #10b981;
    --error: #ef4444;
    
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-heading: 'Montserrat', sans-serif;
    
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.15);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.35);
    --shadow-glow: 0 0 20px var(--primary-glow);
    
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    
    --container-width: 1200px;
}

/* --- Base & Reset --- */
* {
    margin: 0;
    padding: 0;
    box-index: border-box;
    box-sizing: border-box;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-darker);
    color: var(--text-light);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- Language Toggle CSS Rules --- */
body.lang-tr .en {
    display: none !important;
}
body.lang-en .tr {
    display: none !important;
}

/* --- Utility Components --- */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

section {
    position: relative;
}

.section-padding {
    padding: 100px 0;
}

.section-dark {
    background-color: var(--bg-dark);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    display: block;
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-white);
}

.title-underline {
    width: 60px;
    height: 4px;
    background-color: var(--primary);
    margin: 20px auto 0;
    border-radius: var(--radius-full);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 15px;
    padding: 12px 28px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-normal);
    text-decoration: none;
    gap: 8px;
    border: none;
    outline: none;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--text-white);
    box-shadow: var(--shadow-sm);
}

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

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

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

.btn-large {
    padding: 16px 36px;
    font-size: 16px;
}

.btn-full {
    width: 100%;
}

/* --- Topbar --- */
.topbar {
    background-color: var(--bg-darker);
    border-bottom: 1px solid var(--border-light);
    font-size: 13px;
    padding: 8px 0;
    z-index: 100;
    position: relative;
}

.topbar-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar-contacts {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.topbar-link {
    color: var(--text-muted);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-fast);
}

.topbar-link:hover {
    color: var(--text-white);
}

.topbar-link svg {
    color: var(--primary);
}

.topbar-lang {
    display: flex;
    align-items: center;
    gap: 6px;
}

.lang-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-weight: 600;
    cursor: pointer;
    font-size: 13px;
    transition: var(--transition-fast);
    padding: 2px 6px;
    border-radius: var(--radius-sm);
}

.lang-btn:hover, .lang-btn.active {
    color: var(--text-white);
    background-color: rgba(255, 255, 255, 0.05);
}

.lang-divider {
    color: var(--border-color);
}

/* --- Header --- */
.header {
    background-color: rgba(8, 12, 20, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 99;
    padding: 16px 0;
    transition: var(--transition-normal);
}

.header.scrolled {
    padding: 10px 0;
    background-color: rgba(8, 12, 20, 0.95);
    box-shadow: var(--shadow-sm);
}

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

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

.logo-img {
    height: 52px;
    width: auto;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-normal);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 20px;
    letter-spacing: 0.5px;
    color: var(--text-white);
    line-height: 1.2;
}

.logo-subtitle {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-top: 2px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 40px;
}

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

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    position: relative;
    padding: 6px 0;
    transition: var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
    color: var(--text-white);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition-normal);
    border-radius: var(--radius-full);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 101;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-white);
    position: relative;
    transition: var(--transition-normal);
}

.hamburger::before, .hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: var(--text-white);
    transition: var(--transition-normal);
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    bottom: -8px;
}

.nav-toggle.open .hamburger {
    background-color: transparent;
}

.nav-toggle.open .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.nav-toggle.open .hamburger::after {
    transform: rotate(-45deg);
    bottom: 0;
}

/* --- Hero Section --- */
.hero {
    height: calc(100vh - 120px);
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background-image: url('assets/hero-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(15, 23, 42, 0.6) 0%, rgba(8, 12, 20, 0.95) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-badge {
    background-color: rgba(0, 86, 179, 0.15);
    border: 1px solid rgba(0, 86, 179, 0.3);
    color: var(--text-white);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 8px 18px;
    border-radius: var(--radius-full);
    margin-bottom: 24px;
    display: inline-block;
    backdrop-filter: blur(4px);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 56px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 20px;
    color: var(--text-white);
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-light);
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.typing-text {
    color: var(--primary-hover);
    font-weight: 700;
    border-right: 2px solid var(--primary-hover);
    padding-right: 4px;
    animation: blink-cursor 0.75s step-end infinite;
}

@keyframes blink-cursor {
    from, to { border-color: transparent }
    50% { border-color: var(--primary-hover); }
}

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

.hero-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

.mouse {
    width: 22px;
    height: 36px;
    border: 2px solid var(--text-muted);
    border-radius: 12px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background-color: var(--text-muted);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel 1.5s infinite;
}

@keyframes scroll-wheel {
    0% { top: 6px; opacity: 1; }
    50% { top: 14px; opacity: 0; }
    100% { top: 6px; opacity: 1; }
}

/* --- About Section --- */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: start;
}

.about-h3 {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 20px;
}

.about-info p {
    color: var(--text-muted);
    margin-bottom: 18px;
    font-size: 16px;
}

.about-bold {
    font-weight: 700;
    color: var(--text-white) !important;
    margin-bottom: 8px !important;
}

.activity-desc {
    background-color: rgba(255, 255, 255, 0.02);
    border-left: 4px solid var(--primary);
    padding: 16px 20px;
    font-style: italic;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.stat-card {
    background-color: var(--bg-dark);
    padding: 24px 16px;
    border-radius: var(--radius-md);
    text-align: center;
    border: 1px solid var(--border-color);
    transition: var(--transition-normal);
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 6px;
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
}

.about-cards {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-card {
    background-color: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 30px;
    transition: var(--transition-normal);
}

.premium-card {
    background: linear-gradient(135deg, var(--bg-dark) 0%, rgba(0, 86, 179, 0.06) 100%);
    border: 1px solid rgba(0, 86, 179, 0.2);
}

.card-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-title svg {
    color: var(--primary);
}

.info-list {
    list-style: none;
}

.info-list li {
    display: flex;
    flex-direction: column;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
}

.info-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.info-list li:first-child {
    padding-top: 0;
}

.info-list li strong {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.info-value {
    font-size: 14px;
    color: var(--text-white);
    font-weight: 500;
}

.design-values {
    background-color: var(--bg-dark);
}

.value-item {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.value-item:last-child {
    margin-bottom: 0;
}

.value-icon {
    width: 38px;
    height: 38px;
    background-color: rgba(0, 86, 179, 0.1);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.value-item h5 {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 4px;
}

.value-item p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* --- Products / Machinery Section --- */
.product-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    background-color: var(--bg-darker);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 14px;
    padding: 10px 22px;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition-normal);
}

.filter-btn:hover {
    color: var(--text-white);
    border-color: var(--text-muted);
}

.filter-btn.active {
    background-color: var(--primary);
    color: var(--text-white);
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 86, 179, 0.4);
    box-shadow: var(--shadow-md);
}

.product-img-wrapper {
    position: relative;
    width: 100%;
    padding-top: 60%; /* 5:3 Ratio */
    background-color: var(--bg-dark);
    overflow: hidden;
}

.product-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.product-card:hover .product-img {
    transform: scale(1.08);
}

.product-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: rgba(8, 12, 20, 0.85);
    backdrop-filter: blur(4px);
    border: 1px solid var(--border-light);
    color: var(--text-light);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
}

.product-info {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 12px;
}

.product-desc {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 24px;
    line-height: 1.5;
    flex-grow: 1;
}

/* --- Services Section --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 35px 25px;
    text-align: center;
    transition: var(--transition-normal);
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    background-color: var(--bg-card);
}

.service-icon {
    width: 64px;
    height: 64px;
    background-color: rgba(0, 86, 179, 0.08);
    color: var(--primary-hover);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    transition: var(--transition-normal);
}

.service-card:hover .service-icon {
    background-color: var(--primary);
    color: var(--text-white);
    transform: scale(1.05);
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 14px;
}

.service-card p {
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* --- Contact Section --- */
.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 50px;
    align-items: start;
}

.contact-info-panel h3, .contact-form-panel h3 {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 16px;
}

.contact-intro {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 30px;
}

.contact-method-item {
    display: flex;
    gap: 16px;
}

.method-icon {
    width: 44px;
    height: 44px;
    background-color: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}

.method-details {
    display: flex;
    flex-direction: column;
}

.method-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.method-desc {
    font-size: 14px;
    color: var(--text-white);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-fast);
}

a.method-desc:hover {
    color: var(--primary-hover);
}

.contact-person {
    font-size: 14px;
    color: var(--text-white);
    margin-bottom: 8px;
    display: flex;
    flex-direction: column;
}

.contact-person strong {
    font-weight: 600;
}

.contact-person a {
    color: var(--primary-hover);
    text-decoration: none;
    font-weight: 700;
    margin-top: 2px;
}

.person-email {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 1px;
}

.map-container {
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    line-height: 0;
}

.contact-form-panel {
    background-color: var(--bg-darker);
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: var(--radius-lg);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-light);
}

.form-control {
    background-color: var(--bg-dark);
    border: 1px solid var(--border-color);
    color: var(--text-white);
    font-family: var(--font-sans);
    font-size: 14px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    outline: none;
    transition: var(--transition-fast);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.2);
}

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%25#94a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: calc(100% - 16px) center;
    padding-right: 40px;
}

.form-message {
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-md);
    padding: 12px 16px;
    display: none;
    animation: fadeIn 0.3s ease;
}

.form-message.success {
    display: block;
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.form-message.error {
    display: block;
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--error);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* --- Footer --- */
.footer {
    background-color: var(--bg-darker);
    border-top: 1px solid var(--border-light);
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
}

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

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

.footer-desc {
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.6;
}

.footer-title {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    color: var(--text-white);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--text-white);
    padding-left: 4px;
}

.footer-info-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-info-list li {
    font-size: 13.5px;
    color: var(--text-muted);
}

.footer-info-list li strong {
    color: var(--text-white);
    font-weight: 600;
}

.footer-bottom {
    border-top: 1px solid var(--border-light);
    padding: 24px 0;
}

.footer-bottom-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.copyright, .credit {
    font-size: 12px;
    color: var(--text-muted);
}

.credit {
    font-weight: 600;
}

/* --- Product Details Modal --- */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal.open {
    opacity: 1;
    pointer-events: auto;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(8, 12, 20, 0.85);
    backdrop-filter: blur(8px);
}

.modal-wrapper {
    position: relative;
    background-color: var(--bg-dark);
    border: 1px solid var(--border-color);
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 2;
    overflow-y: auto;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal.open .modal-wrapper {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    background-color: var(--bg-darker);
    border: 1px solid var(--border-color);
    color: var(--text-white);
    font-size: 24px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: var(--transition-fast);
}

.modal-close:hover {
    background-color: var(--primary);
    border-color: var(--primary);
}

.modal-content-area {
    padding: 40px;
}

.modal-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 30px;
    margin-top: 10px;
}

.modal-img-container {
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    line-height: 0;
}

.modal-img-container img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.modal-header-info {
    margin-bottom: 24px;
}

.modal-header-info h2 {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 6px;
}

.modal-category-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-hover);
    margin-bottom: 12px;
}

.modal-section-title {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 6px;
}

.modal-desc-text {
    font-size: 14.5px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 24px;
}

.modal-specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
}

.modal-specs-table tr {
    border-bottom: 1px solid var(--border-light);
}

.modal-specs-table tr:last-child {
    border-bottom: none;
}

.modal-specs-table td {
    padding: 10px 0;
    font-size: 13.5px;
}

.modal-specs-table td.spec-name {
    color: var(--text-muted);
    font-weight: 600;
    width: 45%;
}

.modal-specs-table td.spec-val {
    color: var(--text-white);
    font-weight: 500;
}

.modal-advantages-list {
    list-style: none;
    margin-bottom: 30px;
}

.modal-advantages-list li {
    font-size: 13.5px;
    color: var(--text-muted);
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
}

.modal-advantages-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--success);
    font-weight: 700;
}

/* --- Scroll Animation Classes --- */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }
.delay-4 { transition-delay: 0.6s; }

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
    .section-padding {
        padding: 80px 0;
    }
    
    .hero-title {
        font-size: 44px;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    
    .footer-info {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .topbar-contacts {
        flex-direction: column;
        gap: 8px;
    }
    
    .topbar-wrapper {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    
    .topbar-lang {
        align-self: flex-end;
        margin-top: -24px;
    }
    
    .nav {
        position: fixed;
        top: 120px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 120px);
        background-color: var(--bg-darker);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 40px 24px;
        gap: 40px;
        transition: var(--transition-normal);
        z-index: 98;
        border-top: 1px solid var(--border-light);
    }
    
    .nav.open {
        left: 0;
    }
    
    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }
    
    .nav-link {
        font-size: 18px;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .hero {
        height: calc(100vh - 150px);
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-form-panel {
        padding: 24px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-info {
        grid-column: span 1;
    }
    
    .modal-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content-area {
        padding: 30px 20px;
    }
}
