:root {
    --bg-color: #f4f6f8;
    --card-bg: #ffffff;
    --card-glass: rgba(255, 255, 255, 0.5); 
    --text-color: #1a1a1a;
    --text-muted: #555555;
    --primary-color: #2e7d32; 
    --primary-dark: #1b5e20;
    --accent-color: #1565c0; 
    --border-color: #e0e0e0;
    --hero-overlay: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(46, 125, 50, 0.4) 100%);
    --shadow: 0 10px 30px rgba(0,0,0,0.08);
    --footer-bg: #f0f0f0; 
    --footer-text-color: var(--text-color); 
    --footer-muted-color: var(--text-muted);
}
[data-theme="dark"] {
    --bg-color: #1e2a3c; 
    --card-bg: #2c3a50; 
    --card-glass: rgba(44, 58, 80, 0.5); 
    --text-color: #e0e0e0;
    --text-muted: #a0a0a0;
    --primary-color: #4caf50;
    --primary-dark: #66bb6a;
    --accent-color: #42a5f5;
    --border-color: #445970; 
    --hero-overlay: linear-gradient(135deg, rgba(30, 42, 60, 0.9) 0%, rgba(46, 125, 50, 0.4) 100%);
    --shadow: 0 10px 30px rgba(0,0,0,0.5);
    --footer-bg: #1c2636; 
    --footer-text-color: #fff; 
    --footer-muted-color: #bbb;
}

* { box-sizing: border-box; margin: 0; padding: 0; scroll-behavior: smooth; }
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: background-color 0.4s ease, color 0.4s ease;
    overflow-x: hidden;
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
.header {
    background-color: var(--card-bg); 
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: 0.3s;
}
.nav-container { display: flex; justify-content: space-between; align-items: center; height: 75px; }
.logo { font-weight: 800; font-size: 1.4rem; letter-spacing: -0.5px; display: flex; align-items: center; gap: 8px; }
.logo .highlight-logo { color: var(--primary-color); }
.logo .logo-img-icon { height: 60px; width: 170px; transition: filter 0.3s; object-fit: contain; }

[data-theme="dark"] .logo .logo-img-icon {
    filter: brightness(1.5) drop-shadow(0 0 5px var(--primary-color)); 
}
.nav-menu { display: flex; gap: 30px; align-items: center; }
.nav-menu a:not(.dropbtn) { font-weight: 500; font-size: 0.95rem; position: relative; }
.nav-menu a:not(.dropbtn)::after {
    content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 2px;
    background: var(--primary-color); transition: width 0.3s;
}
.nav-menu a:not(.dropbtn):hover { color: var(--primary-color); }
.nav-menu a:not(.dropbtn):hover::after { width: 100%; }
.dropdown { position: relative; display: flex; align-items: center; }
.dropdown:hover .dropbtn { color: var(--primary-color); }
.dropbtn { display: flex; align-items: center; gap: 5px; cursor: pointer; font-weight: 500; font-size: 0.95rem; position: relative; }
.dropbtn::after { content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 2px; background: var(--primary-color); transition: width 0.3s; }
.dropdown:hover .dropbtn::after { width: 100%; }
.dropbtn i { transition: transform 0.3s; }
.dropdown:hover .dropbtn i { transform: rotate(180deg); }
.dropdown-content {
    display: none; position: absolute; top: 100%; left: 0; background-color: var(--card-bg);
    min-width: 200px; box-shadow: var(--shadow); z-index: 1001; border-radius: 8px;
    border: 1px solid var(--border-color); padding-top: 15px; margin-top: -5px; padding-bottom: 5px; 
    transform: translateY(-5px); opacity: 0; transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}
.dropdown:hover .dropdown-content { display: block; transform: translateY(0); opacity: 1; }
.dropdown-content a {
    color: var(--text-color); padding: 10px 15px; display: block; text-align: left; font-size: 0.95rem; font-weight: 500; white-space: nowrap; border-left: 3px solid transparent;
}
.dropdown-content a:hover { background-color: var(--bg-color); color: var(--primary-color); border-left-color: var(--primary-color); }
.controls { display: flex; align-items: center; gap: 15px; }
.icon-btn { background: none; border: none; cursor: pointer; color: var(--text-color); font-size: 1.2rem; transition: transform 0.3s; }
.icon-btn:hover { transform: rotate(15deg) scale(1.1); color: var(--primary-color); }
.lang-select { padding: 5px 10px; border-radius: 20px; background: transparent; color: var(--text-color); border: 1px solid var(--border-color); cursor: pointer; font-weight: 600; outline: none; }
.mobile-menu-btn { display: none; background: none; border: none; font-size: 1.5rem; color: var(--text-color); cursor: pointer; }
.mobile-menu { display: none; background: var(--card-bg); padding: 20px; text-align: center; border-bottom: 1px solid var(--border-color); }
.mobile-menu a { display: block; padding: 10px; font-weight: 600; }
.mobile-menu a.mobile-section-title { font-weight: 700; margin-top: 10px; padding-top: 15px; border-top: 1px solid var(--border-color); }
.mobile-menu a.mobile-nested-link { padding-left: 30px; font-size: 0.95rem; color: var(--text-muted); font-weight: 500; }
.hero {
    height: 90vh;
    background: url('https://images.unsplash.com/photo-1550751827-4bd374c3f58b?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80') no-repeat center center/cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 0;
}
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: var(--hero-overlay); }
.hero-content { position: relative; z-index: 2; color: #fff; max-width: 800px; padding: 0 20px; }
.hero h1 { font-size: 3rem; margin-bottom: 1.5rem; font-weight: 800; letter-spacing: -1px; line-height: 1.1; }
.hero p { font-size: 1.2rem; margin-bottom: 2.5rem; opacity: 0.9; }
.hero-btns { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.btn { padding: 14px 35px; border-radius: 50px; font-weight: 600; text-transform: uppercase; font-size: 0.9rem; letter-spacing: 0.5px; cursor: pointer; transition: 0.3s; }
.primary-btn { background-color: var(--primary-color); color: #fff; border: 2px solid var(--primary-color); }
.primary-btn:hover { background-color: var(--primary-dark); border-color: var(--primary-dark); transform: translateY(-3px); box-shadow: 0 5px 15px rgba(46, 125, 50, 0.4); }
.secondary-btn { background-color: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.5); }
.secondary-btn:hover { background-color: #fff; color: #000; border-color: #fff; transform: translateY(-3px); }
.section { padding: 100px 0; }
.section-title, .section-title-left { font-size: 2.5rem; margin-bottom: 60px; color: var(--text-color); font-weight: 700; position: relative; display: inline-block; }
.section-title { width: 100%; text-align: center; }
.section-title::after { content: ''; display: block; width: 60px; height: 4px; background: var(--primary-color); margin: 15px auto 0; border-radius: 2px; }
.section-title-left::after { content: ''; display: block; width: 60px; height: 4px; background: var(--primary-color); margin: 15px 0 0; border-radius: 2px; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.about-text p { margin-bottom: 20px; font-size: 1.1rem; color: var(--text-muted); }
.stats { display: flex; gap: 40px; margin-top: 30px; }
.stat-item { display: flex; flex-direction: column; }
.stat-num { font-size: 2.5rem; font-weight: 800; color: var(--primary-color); }
.stat-desc { font-size: 0.9rem; font-weight: 600; text-transform: uppercase; }
.about-image img { 
    width: 100%; 
    max-width: 100%; 
    height: auto;    
    border-radius: 20px; 
    box-shadow: var(--shadow); 
    transition: transform 0.3s; 
}
.about-image img:hover { transform: scale(1.02); }
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 30px; }
.card {
    background-color: var(--card-bg);
    border-radius: 15px;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    min-height: 350px;
}
.card-bg {
    height: 180px; 
    background-size: cover;
    background-position: center;
    position: relative;
    opacity: 0.55; 
    z-index: 0;
    transition: transform 0.5s, opacity 0.5s;
    filter: grayscale(100%);
}
.card:hover { transform: translateY(-10px); box-shadow: var(--shadow); border-color: var(--primary-color); }
.card:hover .card-bg { transform: scale(1.1); opacity: 0.4; filter: grayscale(0%); }
.card-content { 
    position: relative; 
    z-index: 1; 
    padding: 15px 30px 20px 30px; 
    height: 100%; 
    background: var(--card-bg); 
    min-height: calc(100% - 180px); 
}
.card h3 { 
    margin-top: 0; 
    font-size: 1.4rem; 
    margin-bottom: 10px;
} 
.card p { color: var(--text-muted); font-size: 0.95rem; }
.card ul { margin-top: 15px; }
.card ul li { margin-bottom: 10px; padding-left: 20px; position: relative; font-size: 0.95rem; color: var(--text-muted); }
.card ul li::before { content: "✓"; color: var(--primary-color); position: absolute; left: 0; font-weight: bold; }
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.project-item { position: relative; border-radius: 15px; overflow: hidden; height: 250px; cursor: pointer; }
.project-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.project-overlay {
    position: absolute; bottom: 0; left: 0; width: 100%; padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 20%, rgba(0,0,0,0.7) 60%, transparent);
    color: #fff; transform: translateY(0); 
    transition: 0.3s;
}
.project-item:hover img { transform: scale(1.1); }
.project-item:hover .project-overlay { color: var(--primary-color); } 
.project-overlay h4 { font-size: 1.2rem; margin-bottom: 5px; color: #fff; transition: 0.3s; }
.project-item:hover .project-overlay h4 { color: var(--primary-color); }
.partners { padding-bottom: 50px; overflow: hidden; }
.marquee-container {
    width: 100%; overflow: hidden; padding: 30px 0; white-space: nowrap;
    background: var(--card-bg); border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color);
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
}
.marquee-content {
    display: inline-block;
    animation: marquee-scroll 60s linear infinite; 
}
@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-33.333%); } 
}
.partner-logo {
    display: inline-block;
    margin: 0 40px;
    filter: grayscale(100%) brightness(0.9); 
    opacity: 0.7;
    transition: filter 0.3s, opacity 0.3s, transform 0.3s;
}
.partner-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}
.partner-logo img {
    height: 50px; 
    max-width: 120px;
    object-fit: contain;
    vertical-align: middle;
}
.footer { 
    background-color: var(--footer-bg); 
    color: var(--footer-text-color); 
    padding: 80px 0 20px; 
}
.footer-content { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; border-bottom: 1px solid var(--border-color); padding-bottom: 50px; }
.footer-info h3 { color: var(--footer-text-color); margin-bottom: 20px; display: flex; align-items: center; gap: 10px; font-size: 1.8rem; }
.footer-info h3 .highlight-logo { color: var(--primary-color); }
.footer-info h3 .logo-img-icon { height: 50px; width: 145px; transition: filter 0.3s; object-fit: contain; }
[data-theme="dark"] .footer-info h3 .logo-img-icon {
    filter: brightness(1.5) drop-shadow(0 0 5px var(--primary-color)); 
}
.footer-info p { color: var(--footer-muted-color); margin-bottom: 30px; max-width: 300px; }
.social-links a { 
    display: inline-flex; justify-content: center; align-items: center; width: 40px; height: 40px; 
    border-radius: 50%; margin-right: 10px; transition: 0.3s;
    background: rgba(0,0,0,0.05); 
    color: var(--footer-muted-color);
}
[data-theme="dark"] .social-links a {
    background: rgba(255,255,255,0.1); 
    color: #fff;
}
.social-links a:hover { background: var(--primary-color); color: #fff; }
.footer-contacts h4 { font-size: 1.2rem; margin-bottom: 25px; }
.contact-item { margin-bottom: 20px; display: flex; gap: 15px; align-items: center; color: var(--footer-muted-color); }
.contact-item i { color: var(--primary-color); }
.contact-item a:hover { color: var(--footer-text-color); }
.footer-bottom { text-align: center; padding-top: 30px; color: var(--footer-muted-color); font-size: 0.9rem; }
.footer-bottom span[data-i18n="footer_rights"] { color: var(--footer-muted-color); }
.hidden-el { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.show-el { opacity: 1; transform: translateY(0); }
@media (max-width: 768px) {
    .nav-menu { display: none; }
    .mobile-menu-btn { display: block; }
    .hero h1 { font-size: 2rem; }
    .about-grid { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr; }
    .controls { gap: 10px; }
    /* Mobile logo fixes */
    .logo .logo-img-icon { height: 50px; width: 140px; }
}
@media (max-width: 480px) {
    .hero-btns { flex-direction: column; }
    .btn { width: 100%; }
}