/* css/electrica.css */

:root {
    /* Paletă Tech / Electrica Premium */
    --bg-base: #03070e;
    --bg-surface: #0a1120;
    --bg-light: #10192e;
    --primary: #00d2ff; /* Electric Cyan */
    --primary-dark: #00a3cc;
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --border: rgba(0, 210, 255, 0.15);
    --border-light: rgba(255, 255, 255, 0.05);
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; cursor: none; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-base);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .main-text, .section-badge, .step-number {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

/* Font specific pentru accente Tech */
.sub-text, .trust-item strong, .tech-corners, .cyber-form label, .step-number {
    font-family: 'Orbitron', sans-serif;
}

a { text-decoration: none; color: inherit; }

/* --- Cursor Custom (Doar Desktop) --- */
.cursor-dot, .cursor-ring {
    position: fixed; top: 0; left: 0; pointer-events: none; z-index: 999999; will-change: transform;
}
.cursor-dot {
    width: 6px; height: 6px; background-color: var(--primary);
    border-radius: 50%; transform: translate(-50%, -50%); transition: opacity 0.2s;
    box-shadow: 0 0 10px var(--primary);
}
.cursor-ring {
    width: 40px; height: 40px; border: 1px solid rgba(0, 210, 255, 0.4);
    border-radius: 50%; transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background-color 0.3s, border-color 0.3s;
}
body.cursor-hover .cursor-ring {
    width: 60px; height: 60px; background-color: rgba(0, 210, 255, 0.05);
    border-color: var(--primary); backdrop-filter: blur(2px);
}
body.cursor-hover .cursor-dot { opacity: 0; }

@media (hover: none) and (pointer: coarse) {
    .cursor-dot, .cursor-ring { display: none !important; }
    * { cursor: auto !important; }
}

/* --- Navbar --- */
nav {
    position: fixed; top: 0; width: 100%; padding: 25px 5%;
    z-index: 1000; transition: var(--transition);
}
nav.scrolled {
    background: rgba(3, 7, 14, 0.95); backdrop-filter: blur(15px);
    padding: 15px 5%; border-bottom: 1px solid var(--border);
}
.nav-container { display: flex; justify-content: space-between; align-items: center; max-width: 1300px; margin: 0 auto; }

.logo { display: flex; align-items: center; gap: 12px; transition: transform 0.3s; }
.logo:hover { transform: scale(1.05); }
.logo-icon {
    font-size: 1.8rem; color: var(--primary);
    text-shadow: 0 0 15px rgba(0, 210, 255, 0.5);
}
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-text .main-text { font-size: 1.5rem; letter-spacing: 2px; }
.logo-text .sub-text { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 3px; color: var(--primary); }

.nav-links { display: flex; align-items: center; gap: 35px; }
.nav-links a:not(.btn-nav) {
    color: var(--text-muted); font-size: 0.85rem; text-transform: uppercase;
    letter-spacing: 1px; font-weight: 600; transition: color 0.3s;
    position: relative; padding-bottom: 5px;
}
.nav-links a:not(.btn-nav):hover, .nav-links a.active:not(.btn-nav) { color: #fff; }
.nav-links a:not(.btn-nav)::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px;
    background: var(--primary); transition: width 0.4s ease;
    box-shadow: 0 0 10px var(--primary);
}
.nav-links a:not(.btn-nav):hover::after, .nav-links a.active:not(.btn-nav)::after { width: 100%; }

.btn-nav {
    background: rgba(0, 210, 255, 0.05); color: var(--primary); border: 1px solid var(--primary);
    padding: 10px 25px; border-radius: 4px; font-size: 0.8rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1px; transition: var(--transition);
}
.btn-nav:hover { background: var(--primary); color: #000; box-shadow: 0 0 20px rgba(0, 210, 255, 0.4); }

.hamburger { display: none; flex-direction: column; gap: 6px; cursor: pointer; z-index: 1001; }
.hamburger span { width: 30px; height: 2px; background: #fff; transition: 0.3s; }

/* --- Hero Section --- */
.hero { position: relative; height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 0 5%; overflow: hidden; }
.hero-bg {
    position: absolute; top: -5%; left: -5%; width: 110%; height: 110%;
    background: url('https://images.unsplash.com/photo-1581092921461-eab62e97a780?q=80&w=2000') center/cover no-repeat;
    z-index: 1; transition: transform 0.1s ease-out; filter: grayscale(80%) brightness(0.4);
}
.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(3,7,14,0.95) 0%, rgba(3,7,14,0.7) 100%); z-index: 2;
}
.hero-content { position: relative; z-index: 3; max-width: 1300px; margin: 0 auto; width: 100%; }
.badge {
    display: inline-block; background: rgba(0, 210, 255, 0.1); color: var(--primary);
    border: 1px solid var(--border); padding: 6px 15px; border-radius: 4px;
    font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 25px;
    font-family: 'Orbitron', sans-serif; box-shadow: 0 0 10px rgba(0,210,255,0.1) inset;
}
.hero h1 { font-size: clamp(3rem, 7vw, 5.5rem); line-height: 1.1; margin-bottom: 25px; letter-spacing: -1px; }
.hero h1 span { color: var(--primary); text-shadow: 0 0 30px rgba(0, 210, 255, 0.3); }
.hero p { font-size: 1.15rem; color: var(--text-muted); max-width: 650px; margin-bottom: 40px; font-weight: 300; }

.cta-group { display: flex; gap: 20px; }
.btn {
    display: inline-flex; justify-content: center; align-items: center; padding: 16px 35px;
    font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; font-weight: 700;
    text-decoration: none; border-radius: 4px; transition: var(--transition); border: 1px solid transparent;
}
.btn-primary { background: var(--primary); color: #000; box-shadow: 0 0 15px rgba(0, 210, 255, 0.2); }
.btn-primary:hover { background: #fff; box-shadow: 0 0 25px rgba(255, 255, 255, 0.4); }
.btn-outline { background: transparent; color: #fff; border-color: var(--border-light); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: rgba(0, 210, 255, 0.05); }
.btn-block { width: 100%; }

.trust-bar {
    position: absolute; bottom: 0; left: 0; width: 100%; z-index: 3;
    display: flex; justify-content: space-around; background: rgba(10, 17, 32, 0.8);
    backdrop-filter: blur(10px); border-top: 1px solid var(--border); padding: 25px 5%;
}
.trust-item { display: flex; align-items: center; gap: 15px; }
.trust-icon { font-size: 2rem; filter: drop-shadow(0 0 5px rgba(0,210,255,0.5)); }
.trust-item strong { color: #fff; font-size: 1rem; letter-spacing: 1px; text-transform: uppercase; display: block; margin-bottom: 5px; }
.trust-item p { color: var(--text-muted); font-size: 0.85rem; margin: 0; }

/* --- Layout Generala --- */
.section { padding: 120px 0; }
.container { max-width: 1300px; margin: 0 auto; padding: 0 5%; }
.dark-section { background: var(--bg-surface); border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); }
.text-center { text-align: center; }
.split-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }

/* Animatii Scroll */
.reveal { opacity: 0; transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.slide-up { transform: translateY(40px); }
.reveal.slide-left { transform: translateX(40px); }
.reveal.slide-right { transform: translateX(-40px); }
.reveal.active { opacity: 1; transform: translate(0); }
.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }

/* --- Tehnologie --- */
.section-badge { display: inline-block; color: var(--primary); text-transform: uppercase; letter-spacing: 2px; font-size: 0.8rem; font-weight: 700; margin-bottom: 20px; font-family: 'Orbitron', sans-serif; }
.tech-text h2 { font-size: 3rem; margin-bottom: 25px; line-height: 1.1; }
.tech-text h2 span { color: var(--primary); }
.tech-text .lead { font-size: 1.2rem; color: #fff; margin-bottom: 20px; font-weight: 500; }
.tech-text p { color: var(--text-muted); margin-bottom: 25px; }

.tech-list { list-style: none; margin-top: 30px; }
.tech-list li { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 15px; font-size: 1rem; color: #fff; }
.tech-list .bullet { width: 8px; height: 8px; background: var(--primary); border-radius: 50%; margin-top: 8px; box-shadow: 0 0 10px var(--primary); flex-shrink: 0; }

.image-wrapper { position: relative; padding: 15px; }
.image-wrapper img { width: 100%; height: auto; border: 1px solid var(--border-light); border-radius: 4px; filter: grayscale(30%); transition: var(--transition); }
.image-wrapper:hover img { filter: grayscale(0); border-color: var(--primary); }
/* Tech Corners Effect */
.corner { position: absolute; width: 30px; height: 30px; border: 2px solid var(--primary); transition: var(--transition); }
.top-left { top: 0; left: 0; border-right: none; border-bottom: none; }
.top-right { top: 0; right: 0; border-left: none; border-bottom: none; }
.bottom-left { bottom: 0; left: 0; border-right: none; border-top: none; }
.bottom-right { bottom: 0; right: 0; border-left: none; border-top: none; }
.image-wrapper:hover .corner { width: 40px; height: 40px; box-shadow: 0 0 15px rgba(0, 210, 255, 0.4) inset; }
/* Scan line effect */
.scan-line { position: absolute; top: 15px; left: 15px; right: 15px; height: 2px; background: rgba(0, 210, 255, 0.5); box-shadow: 0 0 10px var(--primary); animation: scan 3s infinite linear; opacity: 0; transition: 0.3s; pointer-events: none;}
.image-wrapper:hover .scan-line { opacity: 1; }
@keyframes scan { 0% { top: 15px; } 50% { top: calc(100% - 15px); } 100% { top: 15px; } }

/* --- Solutii --- */
.section-header { max-width: 700px; margin: 0 auto 60px; }
.section-header h2 { font-size: 3.2rem; margin-bottom: 20px; }
.section-header h2 span { color: var(--primary); }
.section-header p { color: var(--text-muted); font-size: 1.1rem; }

.solutions-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.solution-card {
    background: var(--bg-surface); border: 1px solid var(--border-light);
    padding: 40px; border-radius: 8px; position: relative; overflow: hidden;
    transition: var(--transition);
}
.solution-card:hover { border-color: var(--primary); transform: translateY(-10px); background: var(--bg-light); }
.card-glow { position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(circle, rgba(0,210,255,0.05) 0%, transparent 60%); opacity: 0; transition: var(--transition); pointer-events: none;}
.solution-card:hover .card-glow { opacity: 1; }
.icon-box { font-size: 2.5rem; margin-bottom: 25px; filter: drop-shadow(0 0 8px rgba(0,210,255,0.4)); }
.solution-card h3 { font-size: 1.5rem; margin-bottom: 15px; color: #fff; }
.solution-card p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; }

/* --- Process --- */
.process-section h2 { font-size: 3rem; margin-bottom: 15px; }
.process-section h2 span { color: var(--primary); }
.process-steps { display: flex; justify-content: space-between; align-items: flex-start; margin-top: 60px; }
.step { flex: 1; padding: 0 20px; position: relative; }
.step-number { font-size: 3rem; color: rgba(0, 210, 255, 0.2); margin-bottom: 15px; line-height: 1; }
.step h4 { font-size: 1.2rem; color: #fff; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 1px; }
.step p { color: var(--text-muted); font-size: 0.9rem; }
.step-line { width: 50px; height: 1px; background: var(--border); margin-top: 25px; flex-shrink: 0; }

/* --- Contact / Form --- */
.contact-info h2 { font-size: 3.5rem; margin-bottom: 20px; line-height: 1.1; }
.contact-info h2 span { color: var(--primary); }
.contact-info p { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 40px; }

.contact-details { display: flex; flex-direction: column; gap: 20px; }
.detail-row { display: flex; align-items: center; gap: 15px; background: var(--bg-surface); padding: 15px 20px; border: 1px solid var(--border-light); border-radius: 4px; }
.detail-row .icon { font-size: 1.2rem; filter: drop-shadow(0 0 5px rgba(0,210,255,0.5)); }
.detail-row span:last-child { color: #fff; font-weight: 500; }

.contact-form-wrapper { position: relative; background: var(--bg-surface); padding: 50px; border: 1px solid var(--border-light); }
.tech-corners div { position: absolute; width: 20px; height: 20px; border: 2px solid var(--primary); }
.tech-corners .tl { top: -2px; left: -2px; border-right: none; border-bottom: none; }
.tech-corners .tr { top: -2px; right: -2px; border-left: none; border-bottom: none; }
.tech-corners .bl { bottom: -2px; left: -2px; border-right: none; border-top: none; }
.tech-corners .br { bottom: -2px; right: -2px; border-left: none; border-top: none; }

.cyber-form .input-row { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.cyber-form .input-group { position: relative; margin-bottom: 35px; }
.cyber-form input, .cyber-form textarea, .cyber-form select {
    width: 100%; padding: 12px 0; background: transparent; border: none;
    color: #fff; font-family: 'Inter', sans-serif; font-size: 1rem; outline: none; resize: none;
    appearance: none; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.cyber-form select { cursor: pointer; color: var(--text-muted); }
.cyber-form select option { background: var(--bg-surface); color: #fff; }
.cyber-form label {
    position: absolute; top: 12px; left: 0; color: var(--text-muted);
    font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px;
    transition: var(--transition); pointer-events: none;
}
.cyber-form input:focus ~ label, .cyber-form input:valid ~ label,
.cyber-form textarea:focus ~ label, .cyber-form textarea:valid ~ label,
.cyber-form select:focus ~ label, .cyber-form select:valid ~ label {
    top: -20px; font-size: 0.7rem; color: var(--primary);
}
.cyber-line { position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--primary); transition: 0.4s ease; box-shadow: 0 0 10px var(--primary); }
.cyber-form input:focus ~ .cyber-line, .cyber-form textarea:focus ~ .cyber-line, .cyber-form select:focus ~ .cyber-line { width: 100%; }

/* --- Footer --- */
footer { background: var(--bg-base); padding: 40px 0; border-top: 1px solid var(--border-light); }
.footer-content { display: flex; justify-content: space-between; align-items: center; color: var(--text-muted); font-size: 0.9rem; }
.footer-logo { display: flex; align-items: center; gap: 10px; font-family: 'Montserrat', sans-serif; font-weight: 800; color: #fff; font-size: 1.2rem; letter-spacing: 1px; }
.footer-logo .logo-icon { color: var(--primary); text-shadow: 0 0 10px rgba(0,210,255,0.5); }
.agency-credit a { color: var(--primary); font-weight: 600; }

/* --- Popup --- */
.custom-popup { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(3,7,14,0.9); display: flex; justify-content: center; align-items: center; z-index: 999990; opacity: 0; visibility: hidden; transition: var(--transition); backdrop-filter: blur(5px); }
.custom-popup.active { opacity: 1; visibility: visible; }
.popup-content { background: var(--bg-surface); border: 1px solid var(--primary); padding: 50px; text-align: center; transform: scale(0.95); transition: var(--transition); max-width: 450px; border-radius: 4px; box-shadow: 0 0 30px rgba(0,210,255,0.1); }
.custom-popup.active .popup-content { transform: scale(1); }
.popup-icon { width: 60px; height: 60px; border: 2px solid var(--primary); color: var(--primary); border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 1.5rem; margin: 0 auto 25px; box-shadow: 0 0 15px rgba(0,210,255,0.2) inset; }
.popup-content h2 { font-size: 1.8rem; color: #fff; margin-bottom: 15px; }
.popup-content p { color: var(--text-muted); margin-bottom: 30px; }

/* --- Responsivitate --- */
@media (max-width: 1024px) {
    .split-layout { grid-template-columns: 1fr; gap: 50px; }
    .solutions-grid { grid-template-columns: repeat(2, 1fr); }
    .trust-bar { position: relative; flex-direction: column; gap: 20px; align-items: flex-start; }
    .hero { height: auto; padding: 150px 5% 50px; }
}

@media (max-width: 768px) {
    nav { padding: 15px 5%; }
    .nav-links {
        position: fixed; top: 0; right: -100%; width: 100%; height: 100vh;
        background: rgba(3,7,14,0.98); backdrop-filter: blur(15px);
        flex-direction: column; justify-content: center; gap: 30px; transition: 0.4s;
    }
    .nav-links.active { right: 0; border-left: 1px solid var(--border); }
    .nav-links a:not(.btn-nav) { font-size: 1.2rem; }
    .hamburger { display: flex; }
    .hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .hero h1 { font-size: 2.8rem; }
    .cta-group { flex-direction: column; }
    .btn { width: 100%; }
    
    .section { padding: 80px 0; }
    .section-header h2, .tech-text h2, .contact-info h2 { font-size: 2.3rem; }
    
    .solutions-grid { grid-template-columns: 1fr; }
    .process-steps { flex-direction: column; gap: 30px; margin-top: 40px; }
    .step-line { width: 2px; height: 30px; margin: 10px auto; }
    
    .cyber-form .input-row { grid-template-columns: 1fr; gap: 0; }
    .contact-form-wrapper { padding: 40px 20px; }
    .footer-content { flex-direction: column; gap: 15px; text-align: center; }
}