body, html { 
    margin: 0; padding: 0; 
    width: 100%; height: 100%;
    background-color: #000;
    color: #fff; font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb { background: #00d4ff; border-radius: 4px; }

#bg-canvas { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
#pixel-canvas { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: 9998; pointer-events: none; }

.page-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: #000; z-index: 9999; opacity: 0; pointer-events: none;
    transition: opacity 0.8s ease;
}

.content-wrapper {
    position: relative; z-index: 10; background: transparent;
    transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.1, 1, 0.1, 1);
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem); text-align: center; margin-bottom: 10px;
    text-transform: uppercase; letter-spacing: 2px;
}

.section-subtitle {
    text-align: center; opacity: 0.6; margin-bottom: 60px; font-size: 1rem; letter-spacing: 1px;
}

.glass-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: 20px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: 0.4s all ease;
}

.glass-card:hover {
    background: rgba(0, 212, 255, 0.04);
    border-color: #00d4ff;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px -10px rgba(0, 212, 255, 0.3);
}

header {
    padding: 15px 8%; background: rgba(0,0,0,0.95);
    display: flex; justify-content: space-between; align-items: center;
    border-bottom: 1px solid #00d4ff33; position: sticky; top: 0; z-index: 1000;
    backdrop-filter: blur(10px);
}

.logo {
    font-size: 1.5rem; font-weight: bold; color: #00d4ff; letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5); text-decoration: none;
}

nav { display: flex; gap: 25px; align-items: center; }
nav a, .dropdown-btn { 
    cursor: pointer; font-size: 0.85rem; color: #fff; 
    text-decoration: none; text-transform: uppercase; 
    transition: 0.3s; letter-spacing: 1px; display: flex; align-items: center; gap: 5px;
}
nav a:hover, .dropdown:hover .dropdown-btn, nav a.active-link { color: #00d4ff; text-shadow: 0 0 8px #00d4ff; }

.dropdown { position: relative; display: inline-block; }
.dropdown-menu {
    display: none; position: absolute; top: 100%; left: 0; min-width: 250px;
    background: rgba(3, 10, 20, 0.98); border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 12px; padding: 10px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.9), 0 0 20px rgba(0, 212, 255, 0.15);
    backdrop-filter: blur(15px); z-index: 1001;
}
.dropdown:hover .dropdown-menu { display: block; animation: fadeInMenu 0.3s ease forwards; }

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

.dropdown-menu a {
    padding: 12px 20px; font-size: 0.8rem; color: rgba(255, 255, 255, 0.85);
    display: block; text-transform: uppercase; transition: 0.3s ease;
}
.dropdown-menu a:hover { background: rgba(0, 212, 255, 0.1); color: #00d4ff; padding-left: 25px; }

.menu-icon { display: none; cursor: pointer; flex-direction: column; gap: 6px; z-index: 1001; }
.menu-icon div { width: 25px; height: 2px; background-color: #00d4ff; transition: 0.4s; }

.hero {
    height: 100vh; display: flex; flex-direction: column;
    justify-content: center; align-items: center;
    text-align: center; padding: 0 20px; position: relative;
}
.hero h1 { font-size: clamp(2.2rem, 7vw, 3.8rem); margin: 0; text-transform: uppercase; letter-spacing: 3px; line-height: 1.1; }
.hero h1 span { color: #00d4ff; text-shadow: 0 0 20px #00d4ff; display: block; font-size: clamp(2.8rem, 9vw, 5rem); }
.hero p { font-size: clamp(0.8rem, 2.5vw, 1rem); letter-spacing: 5px; margin-top: 25px; opacity: 0.8; text-transform: uppercase; }

.cta-btn {
    margin-top: 40px; padding: 16px 38px; background: rgba(0, 212, 255, 0.05);
    border: 1px solid #00d4ff; color: #00d4ff; text-transform: uppercase;
    letter-spacing: 2px; font-size: 0.9rem; font-weight: 600; border-radius: 50px;
    cursor: pointer; transition: transform 0.3s ease, opacity 0.3s ease, background 0.4s ease;
    text-decoration: none; display: inline-block; box-shadow: 0 0 20px rgba(0, 212, 255, 0.15);
    position: relative; overflow: hidden;
}
.cta-btn:hover { background: #00d4ff; color: #000; box-shadow: 0 0 35px rgba(0, 212, 255, 0.7); transform: translateY(-2px); }

.marquee { background: #00d4ff; color: #000; padding: 12px 0; font-weight: bold; overflow: hidden; white-space: nowrap; position: relative; z-index: 2; font-size: 0.9rem; }
.marquee-inner { display: inline-block; animation: scroll 30s linear infinite; }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.section { padding: 100px 8%; position: relative; z-index: 2; }
.dark-bg { background: rgba(0, 5, 10, 0.85); backdrop-filter: blur(10px); }

.logo-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 40px; align-items: center; justify-items: center; perspective: 1000px;
}
.logo-grid img {
    max-width: 130px; max-height: 75px; height: auto; object-fit: contain;
    transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.4s ease;
    transform-style: preserve-3d;
}
.logo-grid img:hover { transform: rotateY(360deg) scale(1.12); filter: drop-shadow(0 0 15px rgba(0, 212, 255, 0.7)); }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; text-align: center; }
.stat-item { padding: 40px; }
.stat-item h3 { font-size: 3.5rem; color: #00d4ff; margin: 0; text-shadow: 0 0 15px rgba(0,212,255,0.4); }
.stat-item p { font-size: 1rem; text-transform: uppercase; letter-spacing: 2px; opacity: 0.8; margin-top: 10px; }

.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; }
.service-card { padding: 35px 25px; text-align: left; cursor: pointer; }
.service-card h3 { color: #00d4ff; font-size: 1.3rem; margin: 0 0 15px 0; text-transform: uppercase; letter-spacing: 1px; }
.service-card p { font-size: 0.95rem; line-height: 1.6; opacity: 0.7; margin: 0; }

.process-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; position: relative; }
.process-item { padding: 30px; text-align: center; position: relative;}
.process-count {
    width: 60px; height: 60px; border-radius: 50%; background: transparent;
    border: 2px solid #00d4ff; color: #00d4ff; font-size: 1.5rem; font-weight: bold;
    display: flex; align-items: center; justify-content: center; margin: 0 auto 20px;
    box-shadow: 0 0 15px rgba(0,212,255,0.2);
}
.process-item h3 { text-transform: uppercase; letter-spacing: 1px; font-size: 1.1rem; margin-bottom: 10px;}
.process-item p { font-size: 0.9rem; opacity: 0.7; line-height: 1.5;}

.tech-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 30px; justify-items: center; align-items: center; }
.tech-box { width: 100px; height: 100px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 10px; }
.tech-box img { max-width: 50px; max-height: 50px; margin-bottom: 10px; filter: drop-shadow(0 0 5px rgba(255,255,255,0.2));}
.tech-box span { font-size: 0.75rem; text-transform: uppercase; opacity: 0.8; letter-spacing: 1px;}

.detail-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; text-align: left; }
.detail-box { padding: 35px; border-right: 4px solid #00d4ff; }
.detail-box h3 { color: #00d4ff; margin: 0 0 15px 0; font-size: 1.5rem; text-transform: uppercase; }
.detail-box p { line-height: 1.6; opacity: 0.8; }

.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.card { padding: 30px; border-radius: 20px; text-align: center; }
.team-img { width: 120px; height: 120px; border-radius: 50%; margin: 0 auto 20px; border: 3px solid #00d4ff; overflow: hidden; box-shadow: 0 0 15px rgba(0,212,255,0.3); }
.team-img img { width: 100%; height: 100%; object-fit: cover; }
.card h3 { margin: 10px 0 5px; font-size: 1.2rem; }

.contact-container { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.contact-text h2 { font-size: 3rem; text-transform: uppercase; letter-spacing: 2px; line-height: 1.2; margin-bottom: 20px;}
.contact-text h2 span { color: #00d4ff; text-shadow: 0 0 15px #00d4ff; }
.contact-text p { opacity: 0.7; line-height: 1.6; margin-bottom: 30px;}

.contact-form { padding: 40px; }
.form-group { margin-bottom: 20px; }
.form-group input, .form-group textarea, .form-group select {
    width: 100%; padding: 15px; background: rgba(0,0,0,0.4);
    border: 1px solid rgba(0, 212, 255, 0.25); border-radius: 10px;
    color: #fff; font-family: inherit; font-size: 0.9rem; box-sizing: border-box; transition: 0.3s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none; border-color: #00d4ff; box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
    background: rgba(0, 212, 255, 0.05);
}
.form-group select { appearance: none; color: rgba(255,255,255,0.7); }
.form-group select option { background: #080808; color: #fff; }

.submit-btn {
    width: 100%; padding: 15px; background: transparent; border: 2px solid #00d4ff;
    color: #00d4ff; text-transform: uppercase; letter-spacing: 2px; font-weight: bold;
    border-radius: 10px; cursor: pointer; transition: 0.3s;
}
.submit-btn:hover { background: #00d4ff; color: #000; box-shadow: 0 0 20px rgba(0, 212, 255, 0.6); }

/* Popup Modal */
.popup-modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(1, 4, 9, 0.92); backdrop-filter: blur(18px);
    display: flex; justify-content: center; align-items: center;
    z-index: 9999; opacity: 0; visibility: hidden;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s;
}
.popup-modal-overlay.active { opacity: 1; visibility: visible; }
.popup-modal-content {
    width: 90%; max-width: 500px; padding: 40px 35px; position: relative;
    transform: translateY(20px) scale(0.95); transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    background: rgba(3, 10, 20, 0.95) !important; border: 1px solid rgba(0, 212, 255, 0.4);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), 0 0 40px rgba(0, 212, 255, 0.3);
    border-radius: 20px;
}
.popup-modal-overlay.active .popup-modal-content { transform: translateY(0) scale(1); }
.terminal-badge {
    display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px;
    background: rgba(0, 212, 255, 0.08); border: 1px solid rgba(0, 212, 255, 0.25);
    border-radius: 20px; font-size: 0.72rem; letter-spacing: 1.5px;
    color: #00d4ff; text-transform: uppercase; margin-bottom: 20px;
}
.terminal-dot { width: 6px; height: 6px; border-radius: 50%; background: #00d4ff; animation: pulse 1.8s infinite; }
@keyframes pulse { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }

.close-popup-btn {
    position: absolute; top: 20px; right: 22px; background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1); width: 34px; height: 34px; border-radius: 50%;
    color: rgba(255,255,255,0.7); font-size: 1.2rem; cursor: pointer; transition: all 0.3s ease;
    display: flex; align-items: center; justify-content: center;
}
.close-popup-btn:hover { background: #00d4ff; color: #000; }

.success-screen { display: none; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 20px 10px; }
.success-screen.active { display: flex; animation: fadeIn 0.4s ease forwards; }
@keyframes fadeIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }
.checkmark { width: 80px; height: 80px; border-radius: 50%; stroke-width: 3; stroke: #00d4ff; filter: drop-shadow(0 0 12px #00d4ff); }

/* Footer */
.epic-footer {
    background: #000000 !important; border-top: 1px solid rgba(0, 212, 255, 0.4);
    position: relative; z-index: 20; color: #fff; padding-top: 60px; box-shadow: 0 -30px 50px rgba(0, 0, 0, 1);
}
.footer-container {
    max-width: 1200px; margin: 0 auto; padding: 0 8% 40px 8%;
    display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px;
}
.footer-logo { font-size: 1.4rem; font-weight: bold; color: #00d4ff; letter-spacing: 2px; text-shadow: 0 0 10px rgba(0, 212, 255, 0.5); margin-bottom: 15px; }
.footer-desc { font-size: 0.88rem; line-height: 1.6; opacity: 0.85; margin-bottom: 20px; }

.footer-heading { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: 1.5px; margin-top: 0; margin-bottom: 20px; position: relative; }
.footer-heading::after { content: ''; position: absolute; bottom: -6px; left: 0; width: 25px; height: 2px; background: #00d4ff; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: rgba(255, 255, 255, 0.8); text-decoration: none; font-size: 0.88rem; transition: all 0.3s ease; }
.footer-links a:hover { color: #00d4ff; padding-left: 5px; }

.newsletter-text { font-size: 0.85rem; opacity: 0.8; margin-bottom: 15px; line-height: 1.4; }
.footer-newsletter { display: flex; margin-bottom: 5px; }
.footer-newsletter input { width: 100%; padding: 10px 14px; background: #0d0d0d; border: 1px solid rgba(0, 212, 255, 0.3); border-radius: 8px 0 0 8px; color: #fff; font-size: 0.85rem; outline: none; }
.footer-newsletter button { background: #00d4ff; border: none; padding: 0 15px; border-radius: 0 8px 8px 0; cursor: pointer; color: #000; display: flex; align-items: center; justify-content: center; }
.footer-newsletter button svg { width: 16px; height: 16px; }

.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.08); padding: 20px 8%; display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; opacity: 0.8; background: #000000; }
.legal-links { display: flex; gap: 10px; align-items: center; }
.legal-links a { color: rgba(255, 255, 255, 0.8); text-decoration: none; }
.legal-links a:hover { color: #00d4ff; }

/* AI Chatbot Styles */
.epic-chat-widget { position: fixed; bottom: 20px; right: 20px; z-index: 99999; }
.chat-trigger-btn {
    width: 65px; height: 65px; background: linear-gradient(135deg, #030a14, #002238);
    border: 2px solid #00d4ff; border-radius: 50%; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.5); transition: 0.3s ease; position: relative;
}
.chat-trigger-btn:hover { transform: scale(1.1); box-shadow: 0 0 40px rgba(0, 212, 255, 0.9); background: #00d4ff; }
.chat-trigger-btn svg { width: 32px; height: 32px; fill: #00d4ff; transition: 0.3s; }
.chat-trigger-btn:hover svg { fill: #000; }

.chat-notification-badge {
    position: absolute; top: 0; right: 0; width: 14px; height: 14px;
    background: #27c93f; border-radius: 50%; border: 2px solid #000;
    box-shadow: 0 0 10px #27c93f, 0 0 20px #27c93f;
    animation: pulseGreenBadge 1.8s infinite ease-in-out;
}
@keyframes pulseGreenBadge {
    0% { transform: scale(0.9); box-shadow: 0 0 4px #27c93f; }
    50% { transform: scale(1.2); box-shadow: 0 0 15px #27c93f, 0 0 25px rgba(39, 201, 63, 0.8); }
    100% { transform: scale(0.9); box-shadow: 0 0 4px #27c93f; }
}

.chat-window {
    position: fixed; bottom: 90px; right: 15px; width: 380px; max-width: calc(100vw - 30px);
    height: 520px; max-height: calc(100vh - 110px);
    background: rgba(3, 10, 22, 0.98); border: 1px solid rgba(0, 212, 255, 0.4);
    border-radius: 20px; box-shadow: 0 20px 50px rgba(0,0,0,0.9), 0 0 30px rgba(0, 212, 255, 0.25);
    backdrop-filter: blur(15px); display: none; flex-direction: column; overflow: hidden;
    animation: slideUpChat 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.chat-window.active { display: flex; }
@keyframes slideUpChat { from { opacity: 0; transform: translateY(20px) scale(0.95); } to { opacity: 1; transform: translateY(0) scale(1); } }

.chat-header {
    background: rgba(0, 212, 255, 0.12); padding: 15px 20px;
    display: flex; justify-content: space-between; align-items: center;
    border-bottom: 1px solid rgba(0, 212, 255, 0.25);
}
.chat-header-info { display: flex; align-items: center; gap: 10px; }
.chat-avatar { width: 36px; height: 36px; background: #00d4ff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; color: #000; font-size: 0.85rem; box-shadow: 0 0 10px #00d4ff; }
.chat-title { font-size: 0.95rem; font-weight: bold; color: #fff; text-transform: uppercase; letter-spacing: 1px; }
.chat-status { font-size: 0.7rem; color: #27c93f; }
.chat-close-btn { background: none; border: none; color: #aaa; font-size: 1.4rem; cursor: pointer; transition: 0.3s; }
.chat-close-btn:hover { color: #00d4ff; }

.chat-body {
    flex: 1; padding: 18px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; font-size: 0.88rem;
}
.chat-msg { max-width: 85%; padding: 12px 16px; border-radius: 12px; line-height: 1.5; word-wrap: break-word; }
.chat-msg.bot { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(0, 212, 255, 0.25); color: #fff; align-self: flex-start; border-bottom-left-radius: 2px; }
.chat-msg.user { background: #00d4ff; color: #000; font-weight: 500; align-self: flex-end; border-bottom-right-radius: 2px; }

.chat-footer { padding: 12px; background: rgba(0,0,0,0.7); border-top: 1px solid rgba(0, 212, 255, 0.25); display: flex; gap: 8px; }
.chat-input { flex: 1; padding: 12px 14px; background: #080808; border: 1px solid rgba(0, 212, 255, 0.35); border-radius: 10px; color: #fff; font-size: 0.88rem; outline: none; }
.chat-input:focus { border-color: #00d4ff; box-shadow: 0 0 12px rgba(0,212,255,0.4); }
.chat-send-btn { background: #00d4ff; border: none; padding: 0 18px; border-radius: 10px; cursor: pointer; color: #000; font-weight: bold; }
.chat-send-btn:hover { background: #fff; }

@media (max-width: 992px) { .contact-container { grid-template-columns: 1fr; } .footer-container { grid-template-columns: 1fr 1fr; } }
@media (max-width: 768px) {
    .menu-icon { display: flex; }
    nav { position: fixed; top: 0; right: -100%; width: 85%; height: 100vh; background: rgba(0, 0, 0, 0.98); flex-direction: column; justify-content: center; align-items: center; transition: 0.5s; z-index: 1000; }
    nav.active { right: 0; }
    .detail-container, .contact-container { grid-template-columns: 1fr; }
    .chat-window { bottom: 90px; right: 10px; width: calc(100vw - 20px); height: 460px; }
}