/* =========================================
   DESIGN SYSTEM & VARIABLES
   ========================================= */
:root {
    --bg-main: #0a0a0c;
    --bg-card: rgba(20, 20, 25, 0.7);
    --accent: #5efce8;
    --accent-secondary: #736efe;
    --text-primary: #f0f0f5;
    --text-secondary: #a0a0b0;
    --border-glass: rgba(255, 255, 255, 0.08);
    --shadow-accent: rgba(94, 252, 232, 0.15);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: cubic-bezier(0.4, 0, 0.2, 1);
}

/* =========================================
   GLOBAL STYLES
   ========================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
    background: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main { flex: 1; }

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

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-main); }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--accent), var(--accent-secondary)); border-radius: 10px; }

/* =========================================
   BACKGROUND GLOW
   ========================================= */
.glow-sphere {
    position: fixed; top: 20%; left: -200px;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(94, 252, 232, 0.12) 0%, transparent 60%);
    pointer-events: none; z-index: -1;
    animation: glowPulse 6s ease-in-out infinite;
}
.glow-sphere-2 {
    position: fixed; top: 30%; right: -200px;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(115, 110, 254, 0.12) 0%, transparent 60%);
    pointer-events: none; z-index: -1;
    animation: glowPulse 6s ease-in-out 3s infinite;
}
.glow-bottom {
    position: fixed; bottom: -100px; left: 50%;
    transform: translateX(-50%);
    width: 60%; height: 400px;
    background: radial-gradient(ellipse at center, rgba(94, 252, 232, 0.08) 0%, rgba(115, 110, 254, 0.05) 40%, transparent 70%);
    pointer-events: none; z-index: -1;
    animation: glowPulse 8s ease-in-out 1s infinite;
}
@keyframes glowPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* =========================================
   LANGUAGE SELECTOR (root index.html)
   ========================================= */
.lang-overlay-fullscreen {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100%;
    display: flex; flex-direction: column;
    justify-content: center; align-items: center;
    background: rgba(10, 10, 12, 0.95);
    backdrop-filter: blur(40px);
    z-index: 9999; text-align: center;
}
.lang-title {
    font-family: var(--font-heading);
    font-size: 2.5rem; font-weight: 900;
    margin-bottom: 3rem;
}
.lang-options {
    display: flex; flex-direction: column;
    gap: 1.5rem; width: 100%; max-width: 320px;
}
.lang-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    padding: 1.5rem 2.5rem; border-radius: 20px;
    display: flex; align-items: center; justify-content: space-between;
    text-decoration: none; color: var(--text-primary);
    font-family: var(--font-heading); font-weight: 700; font-size: 1.2rem;
    transition: all 0.3s var(--transition);
}
.lang-card:hover {
    background: rgba(94, 252, 232, 0.1);
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(94, 252, 232, 0.1);
}
.lang-card img { width: 32px; }

/* =========================================
   HEADER
   ========================================= */
header {
    height: 90px; display: flex; align-items: center;
    background: transparent; border-bottom: none;
    position: sticky; top: 0; z-index: 1000;
}
.header-content {
    display: flex; justify-content: space-between;
    align-items: center; width: 100%;
}
.logo {
    display: flex; align-items: center; gap: 0.8rem;
}
.logo-img {
    height: 48px;
    filter: drop-shadow(0 0 8px var(--shadow-accent));
}

/* Logo text - hidden when on Home tab, shown on others */
.logo-text {
    font-family: var(--font-heading);
    font-weight: 900; font-size: 1.3rem;
    letter-spacing: 1px;
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
}
.logo-text.visible {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.centered-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    padding: 6px; border-radius: 50px;
    border: 1px solid var(--border-glass);
}
.nav-btn {
    background: transparent; border: none;
    color: var(--text-secondary); font-weight: 600;
    padding: 10px 22px; border-radius: 50px;
    cursor: pointer; transition: 0.3s;
    font-family: var(--font-body); font-size: 0.95rem;
}
.nav-btn:hover { color: var(--text-primary); }
.nav-btn.active { background: rgba(255, 255, 255, 0.1); color: var(--accent); }

/* =========================================
   BUTTONS
   ========================================= */
.btn-primary {
    background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
    color: #000; padding: 12px 32px;
    border-radius: 100px; text-decoration: none;
    font-weight: 800; font-family: var(--font-heading);
    display: inline-flex; align-items: center; gap: 0.8rem;
    transition: all 0.3s var(--transition);
    border: none; cursor: pointer;
    box-shadow: 0 10px 20px rgba(94, 252, 232, 0.2);
    font-size: 0.95rem;
}
.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px rgba(94, 252, 232, 0.4);
    filter: brightness(1.1);
}
.btn-primary i { font-size: 1.2rem; }

.gradient-text {
    background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    padding: 80px 0 40px; text-align: center;
    transition: opacity 0.4s ease, max-height 0.5s ease, padding 0.5s ease, margin 0.5s ease;
    overflow: hidden;
}
.hero.hidden {
    opacity: 0; max-height: 0;
    padding: 0; margin: 0;
    pointer-events: none;
}
.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 900; margin-bottom: 15px;
}
.hero-desc {
    color: var(--text-secondary);
    max-width: 650px; margin: 0 auto;
    font-size: 1.1rem;
}

/* =========================================
   TAB CONTENT
   ========================================= */
.tab-content-container {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 24px; padding: 3rem;
    backdrop-filter: blur(20px);
    margin-bottom: 60px;
    overflow: hidden;
    position: relative;
}

.tab-panel {
    display: none;
}
.tab-panel.active {
    display: block;
}

/* Slide animations */
.tab-panel.slide-in-right {
    animation: slideInRight 0.4s ease forwards;
}
.tab-panel.slide-in-left {
    animation: slideInLeft 0.4s ease forwards;
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to { opacity: 1; transform: translateX(0); }
}

.panel-header {
    display: flex; align-items: center;
    gap: 1rem; margin-bottom: 1.5rem;
}
.panel-icon { font-size: 2rem; color: var(--accent); }
.panel-header h2 { font-family: var(--font-heading); }

.tab-panel p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

/* =========================================
   SERVICES
   ========================================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}
.service-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 2rem; border-radius: 20px;
    border: 1px solid var(--border-glass);
    transition: 0.3s;
}
.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}
.service-card i {
    font-size: 2.5rem; color: var(--accent);
    margin-bottom: 1.2rem; display: block;
}
.service-card h3 {
    font-family: var(--font-heading);
    margin-bottom: 0.5rem;
}

/* =========================================
   PRICING
   ========================================= */
.pricing-grid { display: grid; gap: 1rem; }
.price-row {
    background: rgba(255, 255, 255, 0.03);
    padding: 1.5rem; border-radius: 15px;
    border: 1px solid var(--border-glass);
    transition: background 0.2s;
}
.price-row:hover { background: rgba(255, 255, 255, 0.06); }
.price-row h3 { font-family: var(--font-heading); margin-bottom: 0.5rem; }
.price-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.tag {
    padding: 6px 14px; border-radius: 8px;
    font-weight: 600; background: rgba(255, 255, 255, 0.05);
}
.tag.featured { background: var(--accent); color: #000; font-size: 1.1rem; }

.highlight-row {
    background: linear-gradient(135deg, rgba(94, 252, 232, 0.1), rgba(115, 110, 254, 0.1));
    padding: 2.5rem; border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

/* =========================================
   HIGHLIGHTS & CONTACT
   ========================================= */
.highlights {
    display: flex; flex-wrap: wrap;
    gap: 1.5rem; margin-top: 2rem;
}
.h-item {
    display: flex; align-items: center; gap: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.8rem 1.4rem; border-radius: 12px;
    border: 1px solid var(--border-glass);
}
.h-item i { color: var(--accent); }

.contact-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem 3rem; border-radius: 20px;
    display: flex; flex-direction: column;
    align-items: center; gap: 1rem;
    text-decoration: none; color: var(--text-primary);
    border: 1px solid var(--border-glass);
    transition: all 0.3s var(--transition);
    max-width: 300px;
}
.contact-card:hover {
    background: rgba(94, 252, 232, 0.08);
    border-color: var(--accent);
    transform: translateY(-5px);
}
.contact-card i { font-size: 3rem; color: var(--accent); }

/* =========================================
   FOOTER
   ========================================= */
footer {
    margin-top: auto;
    padding: 0;
}
.footer-bar {
    background: rgba(15, 15, 20, 0.9);
    backdrop-filter: blur(15px);
    border-top: 1px solid var(--border-glass);
    padding: 1.5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.footer-bar::before {
    content: '';
    position: absolute; top: 0; left: 50%;
    transform: translateX(-50%);
    width: 40%; height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), var(--accent-secondary), transparent);
}
.footer-bar p {
    color: var(--text-secondary);
    font-size: 0.85rem; letter-spacing: 1px;
}
.footer-accent {
    color: var(--accent); font-weight: 600;
}

/* =========================================
   ANIMATIONS
   ========================================= */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-in { opacity: 0; animation: fadeIn 0.8s ease forwards; }
.animate-in-delay { opacity: 0; animation: fadeIn 0.8s ease 0.2s forwards; }

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 768px) {
    .header-content { flex-direction: column; height: auto; padding: 1rem; gap: 1rem; }
    header { height: auto; }
    .centered-tabs { flex-wrap: wrap; justify-content: center; width: 100%; }
    .nav-btn { padding: 8px 14px; font-size: 0.85rem; }
    .cta-header { display: none; }
    .tab-content-container { padding: 1.5rem; }
    .services-grid { grid-template-columns: 1fr; }
    .highlights { flex-direction: column; }
    .hero-title { font-size: 2.5rem; }
}
