:root {
    --accent: #2b6eb5;
    --accent-light: #4a90e2;
    --accent-glow: rgba(43, 110, 181, 0.4);
    --silver: #a9acb1;
    --bg-dark: #0a0e14;
    --bg-secondary: #05080c;
    --text-main: #f8f9fa;
    --text-dim: #a0a8b3;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

html, body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
}


.mobile-only { display: none !important; }

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

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

.floating-connect {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: var(--accent);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 4000;
    box-shadow: 0 5px 20px var(--accent-glow);
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.floating-connect:hover { transform: scale(1.1); }
.floating-connect .icon { font-size: 1.8rem; }

.pulse {
    position: absolute;
    width: 100%; height: 100%; border-radius: 50%;
    background: var(--accent); opacity: 0.5;
    animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.8); opacity: 0; }
}

#ai-chat-window {
    position: fixed;
    bottom: 7rem;
    right: 2rem;
    width: 350px;
    height: 450px;
    z-index: 4500;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(20px) scale(0.9);
    opacity: 0;
    visibility: hidden;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#ai-chat-window.active {
    transform: translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
}

.chat-header {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid var(--glass-border);
    display: flex; justify-content: space-between; align-items: center;
}

.bot-info { display: flex; align-items: center; gap: 0.5rem; }
.pulse-green { width: 8px; height: 8px; background: #00ff88; border-radius: 50%; box-shadow: 0 0 10px #00ff88; }

#close-chat { background: none; border: none; color: white; font-size: 1.5rem; cursor: pointer; opacity: 0.6; }
#close-chat:hover { opacity: 1; }

.chat-body {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.msg {
    max-width: 80%;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    font-size: 0.85rem;
}
.msg.bot { background: rgba(255, 255, 255, 0.05); border-bottom-left-radius: 2px; align-self: flex-start; }
.msg.user { background: var(--accent); color: var(--bg-dark); font-weight: 600; border-bottom-right-radius: 2px; align-self: flex-end; }

.chat-footer {
    padding: 1rem;
    display: flex; gap: 0.5rem;
    border-top: 1px solid var(--glass-border);
}

#chat-input {
    flex: 1; border: none; background: rgba(255,255,255,0.05);
    padding: 0.6rem 1rem; border-radius: 4px; color: white; font-size: 0.8rem;
}

#send-chat {
    background: var(--accent); border: none; width: 35px; height: 35px;
    border-radius: 4px; cursor: pointer; transition: 0.3s;
}
#send-chat:hover { transform: scale(1.1); }

header {
    padding: 0.5rem 0;
    position: sticky; top: 0; z-index: 1000;
    transition: all 0.4s;
}

header.scrolled {
    background: rgba(10, 14, 20, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--glass-border);
}

header.scrolled .logo img {
    height: 100px;
    transform: translateY(0) scaleX(1.1);
}
.mobile-only { display: none; }

nav { display: flex; justify-content: space-between; align-items: center; }


.logo { display: flex; align-items: center; }
.logo img { 
    height: 140px; 
    width: auto; 
    transform: translateY(-5px) scaleX(1.1);
    transition: transform 0.4s ease, filter 0.4s ease;
    filter: drop-shadow(0 0 15px rgba(43, 110, 181, 0.3));
}

.logo:hover img { transform: translateY(0) scaleX(1.2); }

.footer-logo { 
    height: 400px !important; 
    opacity: 0.8 !important; 
    filter: brightness(0) invert(1) !important;
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.footer-logo:hover { opacity: 1 !important; transform: scale(1.05); }

.nav-links { display: flex; gap: 2.5rem; align-items: center; }
.nav-links a { text-decoration: none; color: var(--text-dim); font-weight: 600; font-size: 0.9rem; transition: color 0.3s; }
.nav-links a:hover { color: var(--accent); }

.lang-switcher { display: flex; gap: 0.5rem; }
.lang-btn {
    background: none; border: 1px solid var(--glass-border); color: var(--text-dim);
    padding: 0.4rem 0.8rem; cursor: pointer; border-radius: 4px; border-radius: 4px;
    font-weight: 700; font-size: 0.7rem;
}
.lang-btn.active { border-color: var(--accent); color: var(--accent); }

.hero { 
    height: 85vh; position: relative; display: flex; align-items: center; overflow: hidden;
    background-image: url('assets/hero.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
#hero-img { display: none; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to right, rgba(2, 6, 12, 0.9), transparent); z-index: 1; }
.hero-content { position: relative; z-index: 10; max-width: 650px; }
.hero-content h1 { font-size: 4.5rem; line-height: 1.1; margin-bottom: 1.5rem; font-weight: 800; }
.hero-content p { font-size: 1.2rem; color: var(--text-dim); margin-bottom: 2.5rem; }

.btn-primary { background: var(--accent); color: var(--bg-dark); padding: 1rem 2.5rem; border: none; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; cursor: pointer; text-decoration: none; border-radius: 4px; display: inline-block; }
.btn-secondary { background: transparent; border: 1px solid var(--accent); color: var(--accent); padding: 1rem 2.5rem; font-weight: 800; margin-left: 1rem; text-decoration: none; border-radius: 4px; }
.btn-outline { border: 1px solid var(--glass-border); padding: 0.6rem 1.5rem; text-decoration: none; color: white; border-radius: 50px; }

.stats { display: flex; justify-content: space-between; padding: 6rem 0; gap: 2rem; flex-wrap: wrap; }
.stat-item { text-align: center; flex: 1; }
.stat-item .num { font-size: 3.5rem; font-weight: 800; display: block; color: var(--accent); }
.stat-item .label { text-transform: uppercase; letter-spacing: 2px; font-size: 0.75rem; color: var(--text-dim); }

.section-header { margin-bottom: 4rem; }
.section-header h2 { font-size: 3rem; font-weight: 800; margin-bottom: 1rem; }
.section-header p { max-width: 600px; color: var(--text-dim); }

.glass { background: var(--glass-bg); backdrop-filter: blur(8px); border: 1px solid var(--glass-border); padding: 2.5rem; border-radius: 12px; }

.services { padding: 8rem 0; }
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.btn-text { color: var(--accent); text-decoration: none; font-weight: 800; display: block; margin-top: 2rem; }

.material-library { padding: 8rem 0; background: rgba(255, 255, 255, 0.02); }
.material-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.mat-card h3 { margin-bottom: 1rem; color: var(--accent); letter-spacing: 1px; }

.process { padding: 10rem 0; }
.process-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 3rem; }
.step-icon { font-size: 3rem; font-weight: 800; color: var(--accent); opacity: 0.3; margin-bottom: 1.5rem; }

.gallery { padding: 8rem 0; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.gallery-item { height: 350px; border-radius: 12px; overflow: hidden; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.gallery-item:hover img { transform: scale(1.1); }

.locations { padding: 8rem 0; }
.location-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2rem; }
.loc-card { display: flex; align-items: center; gap: 1.5rem; }
.loc-dot { width: 12px; height: 12px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 15px var(--accent); }

.mission { padding: 12rem 0; background: linear-gradient(to bottom, transparent, rgba(43, 110, 181, 0.05)); }
.mission-content { display: grid; grid-template-columns: 1fr 1fr; gap: 8rem; align-items: center; }
.image-single { display: flex; justify-content: center; align-items: center; }
.mission-img { 
    width: 100%; 
    max-width: 500px;
    border-radius: 12px; 
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    transform: perspective(1000px) rotateY(-10deg) rotateX(5deg);
    transition: transform 0.5s ease;
}
.mission-img:hover { transform: perspective(1000px) rotateY(0) rotateX(0) scale(1.05); }

.contact { padding: 8rem 0; }
.contact-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 4rem; align-items: start; }

.contact-info { display: flex; flex-direction: column; gap: 2rem; }
.contact-info h2 { font-size: 2.2rem; margin-bottom: 0.5rem; }
.contact-info p { color: var(--text-dim); font-size: 0.95rem; }

.info-item { display: flex; gap: 1.5rem; align-items: flex-start; }
.info-item i { font-size: 1.5rem; margin-top: 0.3rem; }
.info-item h4 { margin-bottom: 0.3rem; font-size: 1.1rem; }
.info-item p { margin: 0; font-size: 1rem; color: var(--text-main); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 1.5rem; }
input, select, textarea, select option { background: rgba(255, 255, 255, 0.05); border: 1px solid var(--glass-border); padding: 1rem; color: white; outline: none; width: 100%; }
select option { background: #02060c; }

#back-to-top { position: fixed; bottom: 2rem; left: 2rem; width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 1px solid var(--glass-border); color: var(--accent); cursor: pointer; z-index: 2500; opacity: 0; visibility: hidden; transition: 0.4s; }
#back-to-top.active { opacity: 1; visibility: visible; }
.toast { position: fixed; bottom: 2rem; right: 8rem; padding: 1rem 2rem; border-radius: 8px; border: 1px solid var(--accent); background: var(--bg-dark); z-index: 3000; transform: translateY(150%); transition: 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.toast.active { transform: translateY(0); }

footer { padding: 6rem 0; background: #05080c; border-top: 1px solid var(--glass-border); }
.footer-grid { display: grid; grid-template-columns: 1fr; text-align: center; }
.footer-info { max-width: 600px; margin: 0 auto; }
.footer-logo { margin: 0 auto; }
footer ul { list-style: none; margin-top: 1.5rem; }
footer li { margin-bottom: 0.8rem; color: var(--text-dim); font-size: 0.9rem; }
.footer-bottom { margin-top: 4rem; padding-top: 2rem; border-top: 1px solid var(--glass-border); color: var(--text-dim); font-size: 0.8rem; }

.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); backdrop-filter: blur(8px); display: none; align-items: center; justify-content: center; z-index: 5000; }
.modal-overlay.active { display: flex; }
.modal-content { max-width: 600px; width: 90%; position: relative; }
.modal-close { position: absolute; top: 1rem; right: 1rem; background: none; border: none; color: var(--accent); font-size: 2rem; cursor: pointer; }

#ai-chat-window.expanded {
    width: 600px;
    height: 700px;
}

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

.chat-controls button {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.6;
    transition: 0.3s;
    padding: 5px;
}

.chat-controls button:hover {
    opacity: 1;
    transform: scale(1.1);
}

#expand-chat {
    font-size: 1rem;
    font-weight: bold;
}

@media (max-width: 992px) {
    .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
    .mission-content { grid-template-columns: 1fr; gap: 4rem; }
    .hero-content h1 { font-size: 3rem; }
    .nav-links { gap: 1.5rem; }
}

@media (max-width: 768px) {
    .container { padding: 0 1.5rem; }
    
    .logo img { height: 80px; transform: translateY(0) scaleX(1); }
    header.scrolled .logo img { height: 60px; }
    
    .mobile-only { display: block !important; }
    #mobile-menu-toggle { background: none; border: none; color: white; font-size: 1.5rem; cursor: pointer; padding: 0.5rem; margin-left: 0.5rem; }
    
    .nav-links { 
        position: fixed; top: 0; right: 0; width: 70%; height: 100vh; 
        background: var(--bg-dark); flex-direction: column; justify-content: center; 
        gap: 3rem; transition: 0.4s; z-index: 5000; border-left: 1px solid var(--glass-border);
        transform: translateX(100%);
    }
    .nav-links.active { transform: translateX(0); display: flex; }
    
    .hero { 
        height: 70vh; text-align: center; display: flex; flex-direction: column; justify-content: center; 
        position: relative; overflow: hidden; background: #000; 
        background-image: url('assets/hero.png') !important;
        background-size: cover !important;
        background-position: center !important;
        background-repeat: no-repeat !important;
    }
    #hero-img { display: none !important; }
    .hero-content { margin: 0 auto; z-index: 10; position: relative; }
    .hero-overlay { background: linear-gradient(to bottom, rgba(2, 6, 12, 0.8), rgba(2, 6, 12, 0.4)); z-index: 1; position: absolute; top: 0; left: 0; width: 100%; height: 100%; }






    .hero-content h1 { font-size: 2.2rem; }
    
    .form-row { grid-template-columns: 1fr; gap: 1rem; }
    
    #ai-chat-window { width: calc(100% - 4rem); right: 2rem; }
    #ai-chat-window.expanded { width: calc(100% - 2rem); right: 1rem; bottom: 1rem; height: 80vh; }
    
    .section-header h2 { font-size: 2.2rem; }
    .stat-item { flex: 1 1 100%; margin-bottom: 2rem; }
    .stat-item .num { font-size: 2.5rem; }
    .footer-logo { height: 150px !important; }
    .mission-img { display: none; }
    .service-grid, .gallery-grid, .material-grid { grid-template-columns: 1fr; }
    .section-header { text-align: center; }
    .section-header p { margin: 0 auto; }
}




@media (max-width: 480px) {
    .hero-content h1 { font-size: 1.8rem; }
    .btn-primary, .btn-secondary { padding: 0.8rem 1.5rem; width: 100%; margin: 0.5rem 0; text-align: center; }
    .hero-btns { display: flex; flex-direction: column; }
}

