/* ============================================
   ai-automatizare — Shared Stylesheet
   ============================================ */

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

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #2196F3;
    --primary-purple: #9C27B0;
    --dark-bg: #0a1628;
    --light-bg: #f8f9fa;
    --text-dark: #1a1a1a;
    --text-light: #ffffff;
    --accent-gradient: linear-gradient(135deg, #2196F3 0%, #9C27B0 100%);
    --success-green: #4CAF50;
    --shadow-sm: 0 2px 10px rgba(0,0,0,0.08);
    --shadow-md: 0 5px 20px rgba(0,0,0,0.12);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.18);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* ============================================
   Navigation
   ============================================ */

nav {
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: padding 0.3s ease, box-shadow 0.3s ease;
}

nav.scrolled {
    padding: 0.5rem 0;
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.logo:hover {
    opacity: 0.85;
}

.logo img {
    height: 52px;
    width: auto;
    display: block;
    transition: height 0.3s ease;
}

nav.scrolled .logo img {
    height: 42px;
}

/* Text logo fallback — hidden by default, shown by JS if image fails */
.logo-text-fallback {
    display: none;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-light);
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.logo-text-fallback em {
    font-style: normal;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Text logo fallback (pentru pagini fără imagine) */
.logo-text {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-light);
    text-decoration: none;
    letter-spacing: -0.01em;
}

.logo-text span {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
    position: relative;
    padding: 0.4rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: width 0.3s ease;
}

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

.nav-links a:hover::after {
    width: 100%;
}

/* Mobile hamburger */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.4rem 0.6rem;
    line-height: 1;
}

/* ============================================
   Buttons
   ============================================ */

.btn {
    padding: 0.85rem 2.2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.25s ease;
    display: inline-block;
    cursor: pointer;
    border: none;
    letter-spacing: 0.01em;
}

.btn-primary {
    background: var(--accent-gradient);
    color: var(--text-light);
    box-shadow: 0 4px 14px rgba(33, 150, 243, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.35);
}

.btn-secondary {
    background: transparent;
    color: var(--text-light);
    border: 1.5px solid rgba(255,255,255,0.7);
}

.btn-secondary:hover {
    background: var(--text-light);
    color: var(--dark-bg);
    border-color: var(--text-light);
}

/* ============================================
   Page Hero (pagini interioare)
   ============================================ */

.page-hero {
    background: var(--dark-bg);
    color: var(--text-light);
    padding: 120px 2rem 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 60%, rgba(33, 150, 243, 0.12) 0%, transparent 55%);
}

.page-hero-content {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s ease;
}

.page-hero h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.page-hero p {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.75);
    font-weight: 400;
}

/* ============================================
   Section Header (comun)
   ============================================ */

.section-header,
.section-title {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3.5rem;
}

.section-header h2,
.section-title h2 {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    letter-spacing: -0.02em;
}

.section-header p,
.section-title p {
    font-size: 1rem;
    color: #666;
}

/* ============================================
   Floating Chat Buttons
   ============================================ */

.floating-chat {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    animation: slideInRight 0.4s ease;
}

.chat-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 1.6rem;
    box-shadow: 0 4px 14px rgba(0,0,0,0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.chat-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.chat-telegram {
    background: linear-gradient(135deg, #0088cc, #00aaee);
}

.chat-whatsapp {
    background: linear-gradient(135deg, #25D366, #128C7E);
}

/* ============================================
   Back to Top
   ============================================ */

.back-to-top {
    position: fixed;
    bottom: 28px;
    left: 28px;
    width: 46px;
    height: 46px;
    background: var(--accent-gradient);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.2s ease;
    z-index: 999;
    box-shadow: var(--shadow-md);
    line-height: 1;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
}

/* ============================================
   Footer
   ============================================ */

footer {
    background: var(--dark-bg);
    color: var(--text-light);
    padding: 4rem 2rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto 3rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.5rem;
}

.footer-section h3 {
    margin-bottom: 1.25rem;
    color: var(--primary-blue);
    font-size: 1.1rem;
    font-weight: 600;
}

.footer-section p {
    color: rgba(255,255,255,0.65);
    line-height: 1.65;
    font-size: 0.93rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.6rem;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.65);
}

.footer-section a {
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-section a:hover {
    color: var(--primary-blue);
}

.social-links {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    transition: background 0.2s, transform 0.2s;
    font-size: 1.1rem;
}

.social-links a:hover {
    background: var(--primary-blue);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.4);
    font-size: 0.9rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* ============================================
   Animații
   ============================================ */

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

@keyframes fadeIn {
    to { opacity: 1; }
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

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

/* ============================================
   Container util
   ============================================ */

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

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 768px) {
    /* Nav mobile */
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 22, 40, 0.98);
        flex-direction: column;
        padding: 1.5rem 2rem;
        gap: 0.75rem;
        box-shadow: var(--shadow-lg);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    /* Logo smaller on mobile */
    .logo img {
        height: 44px;
    }

    /* Page hero */
    .page-hero h1 {
        font-size: 2rem;
    }

    .page-hero p {
        font-size: 1rem;
    }

    /* Section headers */
    .section-header h2,
    .section-title h2 {
        font-size: 1.9rem;
    }

    /* Floating chat */
    .floating-chat {
        bottom: 18px;
        right: 18px;
    }

    .chat-btn {
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
    }

    .back-to-top {
        bottom: 18px;
        left: 18px;
        width: 42px;
        height: 42px;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .page-hero h1 {
        font-size: 2.4rem;
    }
}

@media (min-width: 1920px) {
    .nav-container,
    .footer-content,
    .container {
        max-width: 1400px;
    }
}
