@tailwind utilities;

/* stiluri pagina */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    /* Light Mode Colors - BLUE THEME */
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-tertiary: #eef2f7;
    --bg-hero: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 55%, #f8fafc 100%);
    --bg-card: #ffffff;
    --bg-card-hover: #f1f5f9;

    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-tertiary: #94a3b8;
    --text-accent: #2563eb;

    --border-primary: #e2e8f0;
    --border-secondary: #cbd5e1;

    --accent-primary: #2563eb;
    --accent-secondary: #1d4ed8;
    --accent-gradient: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);

    --terminal-bg: #0f172a;
    --terminal-header: #0b1220;
    --terminal-text: #e2e8f0;

    --navbar-bg: rgba(255, 255, 255, 0.92);
    --navbar-border: rgba(226, 232, 240, 0.9);

    --badge-bg: rgba(37, 99, 235, 0.12);
    --badge-text: #1d4ed8;
    --badge-border: rgba(37, 99, 235, 0.2);

    --mobile-menu-bg: rgba(255, 255, 255, 0.98);
}

.dark {
    /* Dark Mode - BLUE */
    --bg-primary: #0b1220;
    --bg-secondary: #0f172a;
    --bg-tertiary: #111827;
    --bg-hero: linear-gradient(135deg, #0b1220 0%, #0f172a 55%, #0b1220 100%);
    --bg-card: #0f172a;
    --bg-card-hover: #111827;

    --text-primary: #e2e8f0;
    --text-secondary: #cbd5e1;
    --text-tertiary: #94a3b8;
    --text-accent: #60a5fa;

    --border-primary: #1f2937;
    --border-secondary: #273449;

    --accent-primary: #3b82f6;
    --accent-secondary: #2563eb;
    --accent-gradient: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);

    --terminal-bg: #0b1220;
    --terminal-header: #0f172a;
    --terminal-text: #cbd5e1;

    --navbar-bg: rgba(15, 23, 42, 0.92);
    --navbar-border: rgba(31, 41, 55, 0.9);

    --badge-bg: rgba(59, 130, 246, 0.18);
    --badge-text: #bfdbfe;
    --badge-border: rgba(59, 130, 246, 0.35);

    --mobile-menu-bg: rgba(15, 23, 42, 0.98);
}

* {
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
}

/* Prevent body scroll when mobile menu is open */
body.menu-open {
    overflow: hidden;
}

.hero-bg {
    background: var(--bg-hero);
}

.navbar {
    background: var(--navbar-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--navbar-border);
}

.announcement-bar {
    background: var(--accent-gradient);
}

.badge {
    background: var(--badge-bg);
    color: var(--badge-text);
    border: 1px solid var(--badge-border);
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px -10px var(--accent-primary);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-secondary);
}

.btn-secondary:hover {
    background: var(--bg-tertiary);
    border-color: var(--accent-primary);
}

.terminal {
    background: var(--terminal-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-primary);
}

.terminal-header {
    background: var(--terminal-header);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.terminal-body {
    padding: 20px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 13px;
    line-height: 1.6;
    color: var(--terminal-text);
}

@media (max-width: 640px) {
    .terminal-body {
        padding: 16px;
        font-size: 11px;
    }
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 16px;
    padding: 32px;
    transition: all 0.3s ease;
}

@media (max-width: 640px) {
    .feature-card {
        padding: 24px;
    }
}

.feature-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-primary);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -15px rgba(20, 184, 166, 0.2);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: var(--badge-bg);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    font-size: 20px;
}

.stats-card {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    padding: 24px;
}

.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-bg {
    background: var(--bg-secondary);
}

.footer-bg {
    background: var(--bg-tertiary);
    border-top: 1px solid var(--border-primary);
}

.code-green { color: #4ade80; }
.code-blue { color: #2563eb; }
.code-yellow { color: #facc15; }
.code-purple { color: #c084fc; }
.code-orange { color: #fb923c; }
.code-comment { color: #6b7280; }

.dark .code-blue { color: #60a5fa; }

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 16px;
    padding: 32px;
}

@media (max-width: 640px) {
    .testimonial-card {
        padding: 24px;
    }
}

.avatar-stack {
    display: flex;
}

.avatar-stack img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--bg-primary);
    margin-left: -8px;
}

.avatar-stack img:first-child {
    margin-left: 0;
}

.theme-toggle {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    border-radius: 9999px;
    padding: 4px;
    display: flex;
    gap: 4px;
}

.theme-toggle button {
    padding: 8px 12px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    min-height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.theme-toggle button.active {
    background: var(--bg-secondary);
    color: var(--text-primary);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 20px;
    padding: 32px;
    position: relative;
}

@media (max-width: 640px) {
    .pricing-card {
        padding: 24px;
    }
}

.pricing-card.popular {
    border-color: var(--accent-primary);
    box-shadow: 0 25px 50px -12px rgba(20, 184, 166, 0.2);
}

.pricing-card.popular::before {
    content: 'Most Popular';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-gradient);
    color: white;
    padding: 4px 16px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 600;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.float-animation {
    animation: float 6s ease-in-out infinite;
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--text-primary);
}

/* ==================== */
/* MOBILE MENU STYLES   */
/* ==================== */

/* Hamburger Button */
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0;
    z-index: 100;
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger-line:nth-child(1) {
    margin-bottom: 6px;
}

.hamburger-line:nth-child(3) {
    margin-top: 6px;
}

/* Hamburger animation to X */
.hamburger.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu Overlay */
#mobileMenuOverlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 60;
    display: none;
}

/* Mobile Menu Sidebar */
#mobileMenu {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100%;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-primary);
    z-index: 70;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
}

@media (min-width: 1024px) {
    #mobileMenu {
        display: none;
    }
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    padding: 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: 8px;
    transition: background-color 0.2s ease, color 0.2s ease;
    margin-bottom: 4px;
}

.mobile-nav-link:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.mobile-theme-toggle {
    display: flex;
    gap: 8px;
}

.mobile-theme-btn {
    flex: 1;
    padding: 10px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 1px solid var(--border-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.mobile-theme-btn.active {
    background: var(--accent-gradient);
    color: white;
    border-color: transparent;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-secondary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-tertiary);
}

/* Theme indicator - hidden on mobile */
.theme-indicator {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

@media (max-width: 768px) {
    .theme-indicator {
        display: none;
    }
}

/* Focus states for accessibility */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

/* Touch-friendly tap targets */
@media (max-width: 768px) {
    .nav-link,
    .btn-primary,
    .btn-secondary {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
}

/* Responsive announcement bar */
@media (max-width: 768px) {
    .announcement-bar .flex {
        gap: 8px;
    }
    .announcement-bar .opacity-80 .items-center{
        display: none;
    }
    .announcement-bar .font-semibold {
        font-size: 13px;
    }

}
@media (min-width: 1024px) {
  #hamburgerBtn { display: none !important; }
}

/* Responsive hero section */
@media (max-width: 1024px) {
     #hamburgerBtn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0;
    z-index: 100;
  }
}

@media (max-width: 1024px) {
    .hidden{
        display: none;

    }

    .hero-title {
        display: none;
        font-size: 2.5rem;
        line-height: 1.2;
    }
}