/* --- Variables & Reset --- */
:root {
    --bg-main: #030508; 
    --color-white: #ffffff;
    --color-blue: #00e1ff; 
    --text-muted: #8b9bb4;
    --glass-bg: rgba(255, 255, 255, 0.02);
    --glass-border: rgba(0, 225, 255, 0.15);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Outfit', sans-serif; }

body { background-color: var(--bg-main); color: var(--color-white); overflow-x: hidden; scroll-behavior: smooth; position: relative; }

/* --- Smooth Background Animation --- */
.animated-background {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: -1;
    background: radial-gradient(circle at 15% 50%, rgba(0, 225, 255, 0.06), transparent 50%),
                radial-gradient(circle at 85% 30%, rgba(0, 85, 255, 0.04), transparent 50%);
    animation: smoothBgPulse 15s ease-in-out infinite alternate;
}
@keyframes smoothBgPulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.1); opacity: 1; }
}

/* Language Display Logic */
body[lang="en"] .lang-de { display: none; }
body[lang="en"] .lang-en { display: inline-block; }
body[lang="de"] .lang-en { display: none; }
body[lang="de"] .lang-de { display: inline-block; }
p .lang-en, p .lang-de, h1 .lang-en, h1 .lang-de, h2 .lang-en, h2 .lang-de, h3 .lang-en, h3 .lang-de { display: inline; }
body[lang="en"] p .lang-de, body[lang="en"] h1 .lang-de, body[lang="en"] h2 .lang-de, body[lang="en"] h3 .lang-de { display: none; }
body[lang="de"] p .lang-en, body[lang="de"] h1 .lang-en, body[lang="de"] h2 .lang-en, body[lang="de"] h3 .lang-en { display: none; }

/* --- Typography & Colors --- */
a { text-decoration: none; color: inherit; }
.text-center { text-align: center; }

.gradient-text { background: linear-gradient(90deg, var(--color-white), var(--color-blue)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.gradient-title {
    font-size: 3.2rem; font-weight: 800;
    background: linear-gradient(135deg, #ffffff 0%, var(--color-blue) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    display: inline-block;
}
.gradient-title-sm { font-size: 1.8rem; background: linear-gradient(135deg, #ffffff 0%, var(--color-blue) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 1rem; }
.section-title { font-size: 2.6rem; margin-bottom: 1.5rem; }
.section-desc { color: var(--text-muted); font-size: 1.15rem; max-width: 750px; margin: 0 auto 2.5rem auto; line-height: 1.8; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

/* --- Smooth Sections & Dividers --- */
.section { padding: 90px 0; position: relative; z-index: 2; }
.section-divider {
    width: 70%; height: 1px; margin: 0 auto;
    background: linear-gradient(90deg, transparent, rgba(0, 225, 255, 0.4), transparent);
    box-shadow: 0 0 10px rgba(0, 225, 255, 0.2);
}

/* --- Header --- */
.navbar {
    position: fixed; top: 15px; left: 5%; width: 90%;
    background: rgba(3, 5, 8, 0.4); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border); border-radius: 50px;
    display: flex; justify-content: space-between; align-items: center;
    padding: 1rem 2.5rem; z-index: 1000; transition: all 0.4s ease;
}
.navbar.scrolled { background: rgba(3, 5, 8, 0.85); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.9); }
.logo { cursor: pointer; } 
.logo h2 { font-size: 1.8rem; font-weight: 800; }
.logo-color { color: var(--color-blue); }

.header-right { display: flex; align-items: center; gap: 2rem; margin-left: auto; }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links li a { font-size: 0.95rem; font-weight: 400; color: #fff; transition: color 0.3s; }
.nav-links li a:hover { color: var(--color-blue); }

.header-actions { display: flex; align-items: center; gap: 1rem; }
.lang-toggle-btn { background: rgba(0, 225, 255, 0.1); border: 1px solid var(--color-blue); color: var(--color-blue); padding: 0.5rem 1.2rem; border-radius: 20px; cursor: pointer; transition: 0.3s; font-weight: 600; display: flex; align-items: center; gap: 0.5rem; }
.lang-toggle-btn:hover { background: var(--color-blue); color: #000; }
.menu-toggle { display: none; font-size: 1.5rem; color: var(--color-blue); cursor: pointer; }

/* --- Modals --- */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background: rgba(3, 5, 8, 0.95); backdrop-filter: blur(20px);
    z-index: 2000; display: flex; justify-content: center; align-items: center; flex-direction: column;
    opacity: 0; pointer-events: none; transition: all 0.4s ease;
}
.modal-overlay.active { opacity: 1; pointer-events: all; }
.close-btn { position: absolute; top: 30px; right: 40px; font-size: 2.5rem; color: var(--color-blue); cursor: pointer; transition: 0.3s; }
.close-btn:hover { transform: rotate(90deg); }

.glass-box { background: var(--glass-bg); border: 1px solid var(--glass-border); padding: 3rem; border-radius: 24px; text-align: center; }
.lang-options { display: flex; flex-direction: column; gap: 1rem; margin-top: 1.5rem; }
.lang-option { background: transparent; border: 1px solid var(--text-muted); color: #fff; padding: 1rem 2rem; border-radius: 12px; font-size: 1.2rem; cursor: pointer; transition: 0.3s; }
.lang-option:hover, .lang-option.active { border-color: var(--color-blue); background: rgba(0, 225, 255, 0.1); color: var(--color-blue); }

.modal-links { list-style: none; text-align: center; display: flex; flex-direction: column; gap: 2rem; margin-bottom: 3rem; }
.modal-links li a { font-size: 2rem; font-weight: 600; color: #fff; transition: 0.3s; }
.modal-links li a:hover { color: var(--color-blue); }
.mobile-lang-container { display: none; } 

/* --- Buttons --- */
.gradient-btn {
    background: linear-gradient(45deg, var(--color-blue), #0088ff);
    color: #fff; padding: 0.8rem 2.2rem; border-radius: 30px; font-weight: 600; border: none; cursor: pointer; transition: 0.3s; display: inline-flex; align-items: center; gap: 0.6rem;
}
.gradient-btn:hover { box-shadow: 0 10px 25px rgba(0, 225, 255, 0.3); transform: translateY(-3px); }
.whatsapp-hero-btn { background: linear-gradient(45deg, #1ebea5, #075e54); font-size: 1.1rem; }
.whatsapp-hero-btn:hover { box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3); }

/* --- Hero Section --- */
.hero { min-height: 100vh; display: flex; align-items: center; justify-content: space-between; padding: 0 10%; position: relative; z-index: 2; }
.hero-content { flex: 1; max-width: 650px; }
.badge { display: inline-block; padding: 0.5rem 1.2rem; border-radius: 50px; background: rgba(0, 225, 255, 0.05); border: 1px solid var(--color-blue); color: var(--color-blue); margin-bottom: 1.5rem; font-size: 0.85rem; letter-spacing: 2px; text-transform: uppercase; }
.hero-content p { color: var(--text-muted); font-size: 1.15rem; margin: 1.5rem 0 2.5rem 0; line-height: 1.8; }
.hero-visual { flex: 1; display: flex; justify-content: center; }

/* Rocket Portal */
.rocket-portal { position: relative; width: 300px; height: 300px; display: flex; justify-content: center; align-items: center; }
.ring { position: absolute; border-radius: 50%; border: 1px solid transparent; }
.ring-1 { width: 100%; height: 100%; border-top-color: var(--color-white); border-bottom-color: var(--color-blue); animation: spin 10s linear infinite; box-shadow: 0 0 40px rgba(0, 225, 255, 0.1); }
.ring-2 { width: 80%; height: 80%; border-left-color: var(--color-blue); border-right-color: var(--color-white); animation: spin-reverse 7s linear infinite; }
.rocket-icon { font-size: 5rem; color: #fff; text-shadow: 0 0 30px var(--color-blue); animation: float-icon 4s ease-in-out infinite; }

/* --- Value Grid --- */
.value-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; margin-top: 2rem; }
.value-box { padding: 3rem 2rem; transition: transform 0.4s; }
.value-box i { font-size: 2.5rem; color: var(--color-blue); margin-bottom: 1.5rem; }
.value-box h3 { font-size: 1.3rem; margin-bottom: 1rem; color: var(--color-white); }
.value-box p { color: var(--text-muted); font-size: 0.95rem; }

/* --- Tech Cards --- */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2.5rem; margin-top: 1rem; }
.tech-card {
    background: rgba(10, 15, 25, 0.4); border: 1px solid var(--glass-border); padding: 2.5rem;
    border-radius: 24px; position: relative; overflow: hidden; transition: all 0.4s ease;
    backdrop-filter: blur(10px); text-align: left;
}
.tech-card:hover { border-color: var(--color-blue); box-shadow: 0 10px 30px rgba(0, 225, 255, 0.15); }

/* Animated Border Class for Specific Cards */
.animated-border:hover {
    border-color: transparent;
    box-shadow: 0 0 25px rgba(0, 225, 255, 0.3), inset 0 0 15px rgba(0, 225, 255, 0.1);
    border: 1px solid var(--color-white);
    animation: borderPulse 1.5s infinite alternate;
}
@keyframes borderPulse {
    0% { border-color: rgba(0, 225, 255, 0.2); }
    100% { border-color: rgba(0, 225, 255, 1); }
}

/* Card Background Icon - Right Bottom */
.card-bg-icon { position: absolute; right: -20px; bottom: -20px; font-size: 10rem; color: #fff; opacity: 0.03; transform: rotate(-15deg); transition: 0.5s; pointer-events: none; }
.tech-card:hover .card-bg-icon { opacity: 0.08; color: var(--color-blue); transform: rotate(0deg) scale(1.1); }
.card-icon { font-size: 2.2rem; color: var(--color-blue); margin-bottom: 1.5rem; }
.tech-card h3 { font-size: 1.4rem; margin-bottom: 0.8rem; color: var(--color-white); }
.tech-card p { color: var(--text-muted); font-size: 1rem; line-height: 1.6; }

/* --- Stats Container --- */
.stats-container { display: flex; justify-content: center; gap: 5rem; flex-wrap: wrap; margin-top: 3rem; }
.stat-item h3 { font-size: 3.5rem; font-weight: 800; margin-bottom: 0.5rem; }
.stat-item p { font-size: 1rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 2px; }

/* --- Footer --- */
footer { padding: 4rem 0; text-align: center; border-top: 1px solid rgba(0, 225, 255, 0.1); background: transparent; position: relative; z-index: 2; }
footer h2 { font-size: 2rem; margin-bottom: 2rem; opacity: 0.5; }
.footer-whatsapp { display: inline-flex; align-items: center; gap: 0.8rem; background: #25D366; color: #fff; padding: 1rem 2.5rem; border-radius: 50px; font-size: 1.2rem; font-weight: 600; transition: 0.3s; }
.footer-whatsapp:hover { transform: scale(1.05); box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4); color: #fff; }

/* --- 3D Hover --- */
.hover-3d { transition: transform 0.4s ease; transform-style: preserve-3d; }
.hover-3d:hover { transform: perspective(1000px) rotateX(2deg) rotateY(-2deg) translateY(-5px); }

/* --- Animations --- */
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes spin-reverse { 0% { transform: rotate(360deg); } 100% { transform: rotate(0deg); } }
@keyframes float-icon { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }

.fade-up { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.fade-in { opacity: 0; transition: opacity 1s ease-out; }
.fade-up.visible, .fade-in.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* --- Responsive (Mobile / iPad) Gaps & Fixes --- */
@media (max-width: 991px) {
    .stats-container { gap: 3rem; }
    .cards-grid { gap: 2rem; }
}

@media (max-width: 768px) {
    .navbar { width: 95%; left: 2.5%; padding: 1rem 1.5rem; }
    .header-right { gap: 1rem; }
    .nav-links { display: none; }
    .desktop-lang-btn { display: none; } 
    .menu-toggle { display: block; }
    .mobile-lang-container { display: block; } 
    
    .hero { flex-direction: column; padding-top: 130px; text-align: center; }
    .hero-visual { order: -1; margin-bottom: 3rem; margin-top: 1rem; }
    .rocket-portal { width: 220px; height: 220px; }
    .rocket-icon { font-size: 3.5rem; }
    
    .gradient-title { font-size: 2rem; }
    .section-title { font-size: 1.7rem; }
    .hero-content p, .section-desc { font-size: 0.95rem; }
    
    .section { padding: 60px 0; }
    .cards-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .value-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .tech-card, .value-box { padding: 2rem; }
    
    .section-divider { width: 90%; height: 2px; background: linear-gradient(90deg, transparent, rgba(0, 225, 255, 0.6), transparent); box-shadow: 0 0 15px rgba(0, 225, 255, 0.4); margin: 10px auto; }
    
    .card-bg-icon { font-size: 8rem; opacity: 0.05 !important; right: -5px; bottom: -5px; }
}