/* ==========================================================================
   ULTRA-PREMIUM CSS - COMINTEG PRIM SRL
   ========================================================================== */
* {
  -webkit-font-smoothing: antialiased;
  backface-visibility: hidden;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

[data-aos] {
  will-change: transform, opacity;
}

:root {
  --primary: #F59E0B;       
  --primary-dark: #D97706;
  --secondary: #1E293B;     
  --secondary-light: #334155;
  --dark: #0F172A;
  --light: #F8FAFC;
  --white: #FFFFFF;
  --gray: #F1F5F9;
  --text-main: #475569;
  
  --font-main: 'Manrope', sans-serif;
  
  --radius: 12px;
  --radius-lg: 24px;
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 30px -5px rgba(15, 23, 42, 0.08);
  --shadow-hover: 0 20px 40px -10px rgba(15, 23, 42, 0.15);
  
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

html { 
  scroll-behavior: smooth; 
  font-family: var(--font-main); 
  max-width: 100vw; 
  overflow-x: hidden; 
}
body { 
  color: var(--text-main); 
  background-color: var(--white); 
  line-height: 1.6; 
  max-width: 100vw; 
  overflow-x: hidden; 
}

h1, h2, h3, h4, h5, h6 { color: var(--dark); font-weight: 800; line-height: 1.2; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
.container { max-width: 1320px; margin: 0 auto; padding: 0 24px; }
.section { padding: 120px 0; }
.bg-dark { background-color: var(--dark); }
.bg-gray { background-color: var(--gray); }

/* --- PRELOADER --- */
.preloader { position: fixed; inset: 0; background: radial-gradient(circle at center, #1E293B 0%, #0F172A 100%); z-index: 999999; display: flex; flex-direction: column; align-items: center; justify-content: center; transition: opacity 0.6s ease; }
.loader-brand { font-size: 1.6rem; font-weight: 800; color: var(--white); margin-bottom: 20px; letter-spacing: 1px; display: flex; align-items: center; justify-content: center; gap: 10px; white-space: nowrap; animation: pulseLogo 2s infinite alternate cubic-bezier(0.4, 0, 0.2, 1); }
.loader-brand span { color: var(--primary); }
.loader-brand i { color: var(--primary); font-size: 2rem; }
@keyframes pulseLogo { 0% { transform: scale(1); text-shadow: 0 0 10px rgba(245, 158, 11, 0); } 100% { transform: scale(1.08); text-shadow: 0 0 40px rgba(245, 158, 11, 0.6); } }
.progress-bar { width: 200px; height: 6px; background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 10px rgba(0,0,0,0.5); border-radius: 10px; overflow: hidden; }
.progress { width: 0%; height: 100%; background: linear-gradient(90deg, #D97706, #F59E0B, #FFD166); box-shadow: 0 0 20px rgba(245, 158, 11, 0.8); border-radius: 10px; transition: width 1s ease; }

/* --- BUTTONS --- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 28px; border-radius: var(--radius); font-weight: 700; font-size: 15px; transition: var(--transition-bounce); cursor: pointer; border: 2px solid transparent; position: relative; overflow: hidden; z-index: 1; }
.btn::after { content: ''; position: absolute; top: 50%; left: 50%; width: 300%; height: 300%; background: rgba(255, 255, 255, 0.15); transform: translate(-50%, -50%) scale(0); border-radius: 50%; transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); z-index: -1; }
.btn:hover::after { transform: translate(-50%, -50%) scale(1); }
.btn-primary { background-color: var(--primary); color: var(--white); box-shadow: 0 8px 20px rgba(245, 158, 11, 0.3); }
.btn-primary:hover { transform: translateY(-5px) scale(1.03); box-shadow: 0 15px 35px rgba(245, 158, 11, 0.5); background-color: var(--primary-dark); }
.btn-outline { border-color: var(--white); color: var(--white); }
.btn-outline:hover { background-color: var(--white); color: var(--dark); transform: translateY(-3px); }

/* --- HEADER --- */
.header { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; padding: 24px 0; transition: var(--transition); background: transparent; }
.header.scrolled { background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(12px); padding: 16px 0; box-shadow: var(--shadow-md); }
.nav-wrapper { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.brand-logo { display: flex; align-items: center; gap: 12px; font-size: 22px; color: var(--white); transition: var(--transition); }
.header.scrolled .brand-logo { color: var(--dark); }
.brand-text { display: flex; flex-direction: row; gap: 5px; white-space: nowrap !important; }
.brand-text strong { font-weight: 800; }
.brand-text span { font-weight: 300; opacity: 0.9; }
.accent-color { color: var(--primary); font-size: 28px; }
.header-actions { display: flex; align-items: center; gap: 20px; }

/* NAVBAR DESKTOP */
.navbar { display: flex; align-items: center; gap: 40px; margin: 0 auto; }
.nav-list { display: flex; gap: 32px; }
.nav-link { font-weight: 600; font-size: 15px; color: rgba(255, 255, 255, 0.8); position: relative; transition: var(--transition); }
.header.scrolled .nav-link { color: var(--text-main); }
.nav-link:hover, .nav-link.active { color: var(--primary); }
.nav-link::after { content: ''; position: absolute; bottom: -6px; left: 0; width: 0%; height: 2px; background: var(--primary); transition: var(--transition); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.menu-toggle { display: none; font-size: 24px; color: var(--white); cursor: pointer; }
.header.scrolled .menu-toggle { color: var(--dark); }

/* --- LIMBĂ ULTRA-PREMIUM --- */
.ultra-lang-switcher { position: relative; display: flex; background: rgba(255, 255, 255, 0.1); border-radius: 30px; padding: 4px; backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.2); }
.header.scrolled .ultra-lang-switcher { background: rgba(15, 23, 42, 0.05); border-color: rgba(15, 23, 42, 0.1); }
.lang-slider { position: absolute; top: 4px; left: 4px; width: calc(33.33% - 2.6px); height: calc(100% - 8px); background: var(--primary); border-radius: 20px; transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); z-index: 1; box-shadow: 0 4px 10px rgba(245, 158, 11, 0.4); }
.lang-btn { position: relative; z-index: 2; background: none; border: none; color: rgba(255, 255, 255, 0.7); padding: 6px 14px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; font-size: 13px; font-weight: 600; letter-spacing: 0.3px; cursor: pointer; transition: color 0.4s ease; }
.header.scrolled .lang-btn { color: var(--text-main); }
.lang-btn:hover { color: var(--white); }
.header.scrolled .lang-btn:hover { color: var(--primary); }
.lang-btn.active { color: var(--dark) !important; font-weight: 700; }
.header.scrolled .lang-btn.active { color: var(--white) !important; }

/* --- HERO --- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding-top: 80px; overflow: hidden; }
.hero-bg { position: absolute; inset: -100px; background: url('https://images.unsplash.com/photo-1581094288338-2314dddb7ece?auto=format&fit=crop&w=1920&q=80') center/cover; z-index: 1; }
.hero-bg::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(15,23,42,0.95) 0%, rgba(15,23,42,0.6) 100%); }
.hero-container { position: relative; z-index: 3; }
.hero-content { max-width: 800px; }
.hero-badge { display: inline-block; padding: 8px 20px; background: rgba(245, 158, 11, 0.15); border: 1px solid rgba(245, 158, 11, 0.5); color: var(--primary); border-radius: 100px; font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 24px; }
.hero-title { font-size: clamp(2.5rem, 5vw, 4.5rem); color: var(--white); margin-bottom: 24px; }
.hero-title span { color: var(--primary); }
.hero-description { font-size: 1.125rem; color: rgba(255, 255, 255, 0.8); margin-bottom: 40px; max-width: 600px; }
.hero-actions { display: flex; gap: 16px; }

/* --- SECTION GENERAL --- */
.section-tag { color: var(--primary); font-weight: 800; text-transform: uppercase; letter-spacing: 2px; font-size: 13px; display: block; margin-bottom: 12px; }
.section-title { font-size: 2.5rem; margin-bottom: 24px; }
.section-title span { color: var(--primary); }
.light-text .section-title { color: var(--white); }
.text-center { text-align: center; }

/* --- ABOUT & ISO --- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-image-wrapper { position: relative; }
.about-img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.experience-card { position: absolute; bottom: -30px; right: -30px; background: var(--white); padding: 30px; border-radius: var(--radius); box-shadow: var(--shadow-hover); border-left: 6px solid var(--primary); }
.experience-card i { font-size: 32px; color: var(--primary); margin-bottom: 12px; }
.about-content .lead-text { font-size: 1.25rem; color: var(--secondary); font-weight: 600; margin-bottom: 20px; }
.about-content p { margin-bottom: 16px; }

.iso-badges-container { display: flex; flex-direction: column; gap: 12px; margin-top: 25px; }
.iso-badge-card { display: flex; align-items: center; gap: 15px; background: var(--white); border: 1px solid rgba(0,0,0,0.06); padding: 12px 18px; border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: var(--transition-bounce); cursor: default; overflow: hidden; }
.iso-badge-card:hover { transform: translateX(8px); box-shadow: var(--shadow-md); border-color: rgba(245, 158, 11, 0.4); }

.iso-seal-img { width: 75px; height: 75px; object-fit: contain; flex-shrink: 0; mix-blend-mode: multiply; }
.iso-details strong { display: block; font-size: 15px; color: var(--dark); margin-bottom: 2px; }
.iso-details span { font-size: 13px; color: var(--text-main); font-weight: 600; }

/* --- SERVICES & CLICKABLE CARDS --- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 30px; margin: 60px auto 0; max-width: 1000px; }
.service-card { background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.05); padding: 40px 30px; border-radius: var(--radius-lg); transition: var(--transition-smooth); position: relative; overflow: hidden; }
.service-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: var(--primary); transform: scaleX(0); transform-origin: left; transition: var(--transition); }
.service-card:hover { transform: translateY(-15px) scale(1.02); background: rgba(255, 255, 255, 0.06); border-color: rgba(245, 158, 11, 0.5); box-shadow: 0 30px 60px -12px rgba(245, 158, 11, 0.2); }
.service-card:hover::before { transform: scaleX(1); }
.service-icon { display: inline-block; font-size: 40px; color: var(--primary); margin-bottom: 24px; transition: var(--transition-bounce); }
.service-card:hover .service-icon { transform: scale(1.1) rotate(2deg); color: #FFD166; text-shadow: 0 0 20px rgba(245, 158, 11, 0.8); }
.service-card h3 { color: var(--white); font-size: 1.5rem; margin-bottom: 16px; }
.service-card p { color: rgba(255,255,255,0.7); }

.interactive-card { cursor: pointer; padding-bottom: 60px !important; }
.click-to-view { position: absolute; bottom: 20px; left: 30px; color: var(--primary); font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; display: flex; align-items: center; gap: 8px; opacity: 0; transform: translateY(10px); transition: var(--transition-bounce); }
.click-to-view.dark { color: var(--primary-dark); }
.interactive-card:hover .click-to-view { opacity: 1; transform: translateY(0); }

/* --- PORTFOLIO --- */
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(450px, 1fr)); gap: 40px; margin-top: 50px; }
.portfolio-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: var(--transition-smooth); cursor: default; }
.portfolio-card:hover { transform: translateY(-12px) scale(1.02); box-shadow: 0 30px 60px rgba(15, 23, 42, 0.2); }
.portfolio-img { position: relative; height: 400px; overflow: hidden; }
.portfolio-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1); }
.portfolio-card:hover .portfolio-img img { transform: scale(1.15) rotate(-1deg); filter: brightness(0.8); }
.portfolio-info { padding: 35px; position: relative; }
.portfolio-category { color: var(--primary); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; }
.portfolio-info h3 { margin: 12px 0; font-size: 1.5rem; }

/* --- CONTACT --- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.contact-methods { display: flex; flex-direction: column; gap: 30px; margin-top: 40px; }
.method { display: flex; flex-direction: row; align-items: center; gap: 20px; }
.method-icon { width: 60px; height: 60px; background: rgba(245, 158, 11, 0.1); color: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; transition: var(--transition); flex-shrink: 0; }
.method:hover .method-icon { background: var(--primary); color: var(--white); transform: translateY(-5px); }
.method-details h4 { margin-bottom: 5px; font-size: 1.1rem; }
.method-details p { margin: 0; }
.contact-map { width: 100%; height: 100%; min-height: 400px; }
.contact-map iframe { width: 100%; height: 100%; min-height: 400px; border: 0; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); transition: var(--transition); }
.contact-map iframe:hover { box-shadow: var(--shadow-hover); }

/* --- FOOTER & SOCIALS --- */
.footer { background: #090D14; padding: 40px 0; color: rgba(255,255,255,0.5); text-align: center; }
.footer-bottom { display: flex; flex-direction: column; align-items: center; gap: 25px; }
.footer-logo { font-size: 1.5rem; color: var(--white); margin-bottom: 5px; }
.footer-logo strong { color: var(--primary); }
.footer-socials { display: flex; gap: 15px; justify-content: center; align-items: center; }
.social-icon { width: 45px; height: 45px; border-radius: 50%; background: rgba(255, 255, 255, 0.05); color: var(--white); display: flex; align-items: center; justify-content: center; font-size: 20px; transition: var(--transition); border: 1px solid rgba(255, 255, 255, 0.1); text-decoration: none; }
.social-icon:hover { transform: translateY(-5px); }
.social-icon.fb:hover { background: #1877F2; color: #fff; border-color: #1877F2; }
.social-icon.ig:hover { background: #E4405F; color: #fff; border-color: #E4405F; }
.social-icon.tiktok:hover { background: #000000; color: #fff; border-color: #000000; }
.social-icon.phone:hover { background: #00A3FF; color: #fff; border-color: #00A3FF; }
.social-icon.wa:hover { background: #25D366; color: #fff; border-color: #25D366; }
.social-icon.viber:hover { background: #7360F2; color: #fff; border-color: #7360F2; }
.mobile-only { display: none; }

/* --- INTRO MODAL --- */
.intro-modal { position: fixed; inset: 0; background-color: var(--dark); z-index: 9999999; display: flex; flex-direction: column; align-items: center; justify-content: center; transition: opacity 0.5s ease; padding: 20px; }
.intro-box { background: rgba(255, 255, 255, 0.05); padding: 40px 30px; border-radius: var(--radius-lg); text-align: center; border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 20px 50px rgba(0,0,0,0.5); max-width: 100%; width: 550px; }
.intro-logo { font-size: 1.6rem; color: var(--white); margin-bottom: 25px; display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: nowrap; white-space: nowrap; }
.intro-logo span { color: var(--primary); font-weight: 400; }
.intro-logo i { color: var(--primary); font-size: 2rem; }
.intro-box h3 { color: var(--white); font-size: 1.4rem; margin-bottom: 12px; }
.intro-box p { color: rgba(255, 255, 255, 0.7); margin-bottom: 30px; font-size: 14px; line-height: 1.6; }
.intro-buttons { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; }
.btn-device { padding: 12px 22px; border-radius: var(--radius); border: 2px solid var(--primary); background: var(--primary); color: var(--white); font-weight: 700; cursor: pointer; font-family: inherit; font-size: 14px; transition: var(--transition); display: flex; align-items: center; justify-content: center; gap: 10px; flex: 1; min-width: 160px; }
.btn-device.outline { background: transparent; color: var(--primary); }
.btn-device:hover { transform: translateY(-4px); box-shadow: 0 10px 25px rgba(245, 158, 11, 0.3); }

/* --- STILURI PENTRU GALERIA FOTO (LIGHTBOX) --- */
.gallery-modal { position: fixed; inset: 0; z-index: 1000000; display: none; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.4s ease; }
.gallery-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.92); backdrop-filter: blur(8px); cursor: pointer; }
.close-gallery { position: absolute; top: 25px; right: 35px; font-size: 40px; color: white; cursor: pointer; z-index: 1000001; transition: var(--transition); opacity: 0.8; }
.close-gallery:hover { opacity: 1; transform: scale(1.1); color: var(--primary); }
.gallery-content { position: relative; z-index: 1000001; display: flex; align-items: center; justify-content: center; max-width: 90%; max-height: 85vh; }
.gallery-content img { max-width: 100%; max-height: 80vh; object-fit: contain; border-radius: 8px; box-shadow: 0 15px 50px rgba(0,0,0,0.8); user-select: none; }
.gallery-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); color: white; width: 60px; height: 60px; border-radius: 50%; font-size: 24px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: var(--transition-bounce); z-index: 1000002; backdrop-filter: blur(5px); }
.gallery-btn:hover { background: var(--primary); border-color: var(--primary); transform: translateY(-50%) scale(1.1); }
.prev-btn { left: -80px; }
.next-btn { right: -80px; }

/* --- CALCULATOR / ECRANE MARI (MĂRIRE GIF) --- */
@media (min-width: 1025px) {
  .about-img.main-img {
    max-width: 750px !important;
    width: 100%;
    height: auto;
  }
}

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 1024px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .experience-card { right: 0; bottom: -20px; }
  .contact-map { min-height: 350px; margin-top: 20px; }
}
@media (max-width: 768px) {
  .navbar { display: none !important; }
  .nav-wrapper { justify-content: space-between !important; }
  .brand-logo { font-size: 15px !important; gap: 6px !important; }
  .brand-logo i { font-size: 18px !important; }
  .header-actions { gap: 10px; margin-right: 0; }
  .container { padding: 0 16px; }
  .lang-btn { padding: 4px 8px; font-size: 11px; letter-spacing: 0px; }
  .hero-title { font-size: 2.5rem; }
  .hero-actions { flex-direction: column; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .portfolio-img { height: 250px; }
  .mobile-only { display: flex; }
  .click-to-view { opacity: 1; transform: none; } 
  
  .about-img.main-img {
    height: 320px;
    width: 100%;
    object-fit: cover;
  }
  .about-grid {
    gap: 30px !important;
  }
  
  .prev-btn { left: 10px; }
  .next-btn { right: 10px; }
  .gallery-btn { width: 50px; height: 50px; font-size: 20px; background: rgba(0,0,0,0.5); border: none; }
  .gallery-content img { max-height: 70vh; }
  .close-gallery { top: 15px; right: 20px; font-size: 30px; }
}

/* --- SIMULARE TELEFON PE PC --- */
body.simulare-mobil-activa { background-color: #0B1120; }
body.simulare-mobil-activa #main-site-wrapper { max-width: 430px; margin: 0 auto; background-color: var(--white); min-height: 100vh; box-shadow: 0 0 80px rgba(0,0,0,0.9); position: relative; overflow-x: hidden; }
body.simulare-mobil-activa .header { max-width: 430px; left: 50%; transform: translateX(-50%); }
body.simulare-mobil-activa .navbar { display: none !important; }
body.simulare-mobil-activa .nav-wrapper { justify-content: space-between !important; }
body.simulare-mobil-activa .brand-logo { font-size: 15px !important; gap: 6px !important; }
body.simulare-mobil-activa .brand-logo i { font-size: 18px !important; }
body.simulare-mobil-activa .header-actions { gap: 10px; }
body.simulare-mobil-activa .lang-btn { padding: 4px 8px; font-size: 11px; letter-spacing: 0px; }

body.simulare-mobil-activa .about-grid, body.simulare-mobil-activa .services-grid, body.simulare-mobil-activa .portfolio-grid, body.simulare-mobil-activa .contact-grid { grid-template-columns: 1fr !important; }
body.simulare-mobil-activa .hero-title { font-size: 2.5rem !important; }
body.simulare-mobil-activa .hero-actions { flex-direction: column; }
body.simulare-mobil-activa .contact-map { min-height: 250px; margin-top: 20px; }
body.simulare-mobil-activa .portfolio-img { height: 250px; }
body.simulare-mobil-activa .mobile-only { display: flex; }
body.simulare-mobil-activa .click-to-view { opacity: 1; transform: none; }
