@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

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

:root {
    --navy: #1a2332;
    --teal: #00d4aa;
    --coral: #ff6b6b;
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, var(--navy) 0%, #2d3e50 100%);
    color: var(--white);
    overflow-x: hidden;
}

.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--navy);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s, visibility 0.5s;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.ctp-machine {
    text-align: center;
}

.machine-body {
    width: 300px;
    height: 150px;
    background: linear-gradient(145deg, #2a3f5f, #1a2332);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.plate {
    width: 80%;
    height: 80px;
    background: linear-gradient(90deg, #e0e0e0, #f5f5f5);
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    border-radius: 5px;
}

.laser {
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, transparent, var(--teal), transparent);
    position: absolute;
    top: 0;
    left: 10%;
    animation: scan 2s linear infinite;
    box-shadow: 0 0 20px var(--teal);
}

@keyframes scan {
    0% { left: 10%; }
    100% { left: 90%; }
}

.percentage {
    font-size: 48px;
    font-weight: 700;
    color: var(--teal);
    margin-top: 30px;
}

.loader-text {
    font-size: 18px;
    color: var(--white);
    margin-top: 10px;
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: all 0.3s;
}

.navbar.scrolled {
    padding: 15px 0;
    background: rgba(26, 35, 50, 0.95);
}

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

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-main {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 50px;
    width: 50px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--teal);
    padding: 2px;
    background: rgba(255, 255, 255, 0.1);
}

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

.logo-name {
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
}

.logo-name .text-p { color: #ff6b6b; }
.logo-name .text-r { color: #00d4aa; }
.logo-name .text-i { color: #4ecdc4; }
.logo-name .text-n { color: #ffd93d; }
.logo-name .text-t { color: #ff6b6b; }
.logo-name .text-m { color: #a8e6cf; }
.logo-name .text-a { color: #00d4aa; }
.logo-name .text-x { color: #95e1d3; }

.logo-slogan {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
    margin: 0;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--teal);
}

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

.nav-links a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--teal);
}

.lang-selector {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.lang-selector:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--teal);
}

.lang-selector option {
    background: var(--navy);
    color: var(--white);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--white);
    transition: all 0.3s;
}

.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 35, 50, 0.7);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0 20px;
}

.hero-title {
    font-size: 64px;
    font-weight: 700;
    margin-bottom: 20px;
    animation: fadeInUp 1s;
}

.hero-subtitle {
    font-size: 24px;
    margin-bottom: 40px;
    animation: fadeInUp 1s 0.2s backwards;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    animation: fadeInUp 1s 0.4s backwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn {
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--teal);
    color: var(--navy);
}

.btn-primary:hover {
    background: #00b894;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 212, 170, 0.3);
}

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

.btn-secondary:hover {
    background: var(--white);
    color: var(--navy);
}

.clients-section {
    padding: 80px 0;
    background: rgba(0, 0, 0, 0.2);
}

.section-title {
    text-align: center;
    font-size: 42px;
    margin-bottom: 50px;
    color: var(--teal);
}

.clients-slider {
    overflow: hidden;
    position: relative;
}

.slider-track {
    display: flex;
    gap: 50px;
    animation: slide 20s linear infinite;
}

.client-logo {
    min-width: 150px;
    height: 80px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.client-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    opacity: 0.9;
    transition: all 0.3s;
}

.client-logo:hover img {
    opacity: 1;
    transform: scale(1.05);
}

@keyframes slide {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.services-section {
    padding: 80px 0;
    background: rgba(0, 0, 0, 0.1);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-10px);
    background: rgba(0, 212, 170, 0.1);
}

.service-icon {
    font-size: 48px;
    color: var(--teal);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.service-card p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.products-section {
    padding: 80px 0;
    background: rgba(0, 0, 0, 0.2);
}

.products-slider {
    position: relative;
    overflow: hidden;
    padding: 20px 60px;
}

.products-track {
    display: flex;
    gap: 30px;
    transition: transform 0.5s ease;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.products-track::-webkit-scrollbar {
    display: none;
}

.product-card {
    min-width: 300px;
    padding: 0;
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 212, 170, 0.3);
}

.product-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 15px 15px 0 0;
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--teal);
}

.product-info p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--teal);
    color: var(--navy);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
    font-size: 18px;
}

.slider-btn:hover {
    background: #00b894;
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

.contact-section {
    padding: 80px 0;
    background: rgba(0, 0, 0, 0.3);
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    margin-top: -30px;
    margin-bottom: 40px;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-form {
    padding: 40px;
}

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

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--teal);
    font-size: 14px;
    font-weight: 500;
}

.form-group label i {
    margin-right: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: var(--white);
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--teal);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-group select {
    cursor: pointer;
}

.form-group select option {
    background: var(--navy);
    color: var(--white);
}

.file-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s;
}

.file-label:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--teal);
}

.file-label i {
    font-size: 24px;
    color: var(--teal);
}

.file-info {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.file-label input[type="file"] {
    display: none;
}

.btn-submit {
    width: 100%;
    font-size: 16px;
    padding: 18px;
}

.btn-submit i {
    margin-right: 10px;
}

.map-container {
    height: 500px;
    overflow: hidden;
    position: relative;
}

.map-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 212, 170, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 400;
}

#map {
    height: 100%;
    width: 100%;
    border-radius: 15px;
}

.leaflet-container {
    background: #1a2332 !important;
}

.custom-marker {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.5;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.footer {
    padding: 30px 0;
    text-align: center;
    background: rgba(0, 0, 0, 0.3);
    position: relative;
}

.footer .container {
    position: relative;
}

.admin-link {
    position: absolute;
    bottom: 10px;
    right: 20px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 12px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.admin-link:hover {
    color: var(--teal);
    transform: translateY(-2px);
}

.admin-link i {
    font-size: 14px;
}

.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--white);
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all 0.3s;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
}

@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .product-card {
        min-width: 280px;
    }
}

@media (max-width: 768px) {
    .admin-link {
        position: static;
        display: inline-flex;
        margin-top: 15px;
    }
    
    .logo-img {
        height: 40px;
        width: 40px;
    }
    
    .logo-main {
        gap: 8px;
    }
    
    .logo-name {
        font-size: 22px;
    }
    
    .logo-slogan {
        font-size: 8px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .section-subtitle {
        font-size: 16px;
        padding: 0 20px;
    }
    
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        right: -100%;
        flex-direction: column;
        background: rgba(26, 35, 50, 0.98);
        padding: 30px;
        border-radius: 15px;
        transition: right 0.3s;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    }

    .nav-links.active {
        right: 20px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 32px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card {
        padding: 30px 20px;
    }
    
    .products-slider {
        padding: 20px 50px;
    }
    
    .product-card {
        min-width: 250px;
    }
    
    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .client-logo {
        min-width: 120px;
        height: 60px;
    }
    
    .whatsapp-btn {
        width: 50px;
        height: 50px;
        font-size: 28px;
        bottom: 20px;
        right: 20px;
    }
}

.success-popup, .error-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.popup-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.success-popup .popup-content {
    border-top: 5px solid #00d4aa;
}

.error-popup .popup-content {
    border-top: 5px solid #ff6b6b;
}

.popup-content i {
    font-size: 48px;
    margin-bottom: 15px;
}

.success-popup i {
    color: #00d4aa;
}

.error-popup i {
    color: #ff6b6b;
}

.popup-content h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 24px;
}

.popup-content p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}

.popup-content button {
    background: #00d4aa;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}

.popup-content button:hover {
    background: #00b894;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .products-slider {
        padding: 20px 40px;
    }
    
    .product-card {
        min-width: 220px;
    }
    
    .contact-form {
        padding: 30px 20px;
    }
    
    .map-container {
        height: 350px;
    }
}
